Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-27 Thread Joseph Lo
Hi Robin Sorry for separate the comments into many replies. On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy --- arch/arm64/include/a

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-26 Thread Joseph Lo
On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy --- [snip] static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dev_

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-25 Thread Joseph Lo
On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy --- arch/arm64/include/asm/device.h | 3 + arch/arm64/include/asm/dma-mapping.

Re: [RFC 04/10] memory: Add Tegra124 memory controller support

2014-06-27 Thread Joseph Lo
Hi Thierry, On 06/27/2014 04:49 AM, Thierry Reding wrote: [snip] + +#define MC_INTSTATUS 0x000 +#define MC_INT_DECERR_MTS (1 << 16) +#define MC_INT_SECERR_SEC (1 << 13) +#define MC_INT_DECERR_VPR (1 << 12) +#define MC_INT_INVALID_APB_ASID_UPDATE (1 << 11) +#define MC_INT_INVALID_SMMU_PAGE (