Re: [PATCH v9 07/16] drivers: acpi: implement acpi_dma_configure

2016-12-02 Thread Lorenzo Pieralisi
Rafael, Mark, Suravee, On Mon, Nov 21, 2016 at 10:01:39AM +, Lorenzo Pieralisi wrote: > On DT based systems, the of_dma_configure() API implements DMA > configuration for a given device. On ACPI systems an API equivalent to > of_dma_configure() is missing which implies that it is currently not

Re: [RESEND PATCH V6 0/6] Add support for privileged mappings

2016-12-02 Thread Robin Murphy
Hi Sricharan, On 02/12/16 14:55, Sricharan R wrote: > This series is a resend of the V5 that Mitch sent sometime back [2] > All the patches are the same and i have just rebased. Not sure why this > finally did not make it last time. The last patch in the previous > series does not apply now [3], s

Re: [PATCH v9 07/16] drivers: acpi: implement acpi_dma_configure

2016-12-02 Thread Rafael J. Wysocki
On Fri, Dec 2, 2016 at 4:38 PM, Lorenzo Pieralisi wrote: > Rafael, Mark, Suravee, > > On Mon, Nov 21, 2016 at 10:01:39AM +, Lorenzo Pieralisi wrote: >> On DT based systems, the of_dma_configure() API implements DMA >> configuration for a given device. On ACPI systems an API equivalent to >> of

[RESEND PATCH V6 1/6] iommu: add IOMMU_PRIV attribute

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys Add the IOMMU_PRIV attribute, which is used to indicate privileged mappings. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Mitchel Humpherys --- [V6] No change include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) dif

[RESEND PATCH V6 2/6] iommu/io-pgtable-arm: add support for the IOMMU_PRIV flag

2016-12-02 Thread Sricharan R
From: Jeremy Gebben Allow the creation of privileged mode mappings, for stage 1 only. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Jeremy Gebben --- [V6] No change drivers/iommu/io-pgtable-arm.c | 5 - 1 file changed, 4 insertions(+), 1 deleti

[RESEND PATCH V6 0/6] Add support for privileged mappings

2016-12-02 Thread Sricharan R
This series is a resend of the V5 that Mitch sent sometime back [2] All the patches are the same and i have just rebased. Not sure why this finally did not make it last time. The last patch in the previous series does not apply now [3], so just redid that. Also Copied the tags that he had from last

[PATCH V6 6/6] iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'

2016-12-02 Thread Sricharan R
Currently the driver sets all the device transactions privileges to UNPRIVILEGED, but there are cases where the iommu masters wants to isolate privileged supervisor and unprivileged user. So don't override the privileged setting to unprivileged, instead set it to default as incoming and let it be c

[RESEND PATCH V6 5/6] dmaengine: pl330: Make sure microcode is privileged

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys The PL330 performs privileged instruction fetches. This can result in SMMU permission faults on SMMUs that implement the ARMv8 VMSA, which specifies that mappings that are writeable at one execution level shall not be executable at any higher-privileged level. Fix this b

[RESEND PATCH V6 3/6] common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys This patch adds the DMA_ATTR_PRIVILEGED attribute to the DMA-mapping subsystem. Some advanced peripherals such as remote processors and GPUs perform accesses to DMA buffers in both privileged "supervisor" and unprivileged "user" modes. This attribute is used to indicate

[RESEND PATCH V6 4/6] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Implement it in dma-iommu.c so that the ARM64 DMA IOMMU mapper can make use of it. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will D