Re: [PATCH AUTOSEL 5.15 10/47] iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity

From: Sasha Levin
Date: Sun Oct 16 2022 - 09:30:31 EST


On Thu, Oct 13, 2022 at 08:07:46AM +0100, John Garry wrote:
On 13/10/2022 01:20, Sasha Levin wrote:
From: Yicong Yang<yangyicong@xxxxxxxxxxxxx>

[ Upstream commit 24b6c7798a0122012ca848ea0d25e973334266b0 ]

The DMA operations of HiSilicon PTT device can only work properly with
identical mappings. So add a quirk for the device to force the domain
as passthrough.

Acked-by: Will Deacon<will@xxxxxxxxxx>
Signed-off-by: Yicong Yang<yangyicong@xxxxxxxxxxxxx>
Reviewed-by: John Garry<john.garry@xxxxxxxxxx>
Link:https://lore.kernel.org/r/20220816114414.4092-2-yangyicong@xxxxxxxxxx
Signed-off-by: Mathieu Poirier<mathieu.poirier@xxxxxxxxxx>
Signed-off-by: Sasha Levin<sashal@xxxxxxxxxx>
---
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

I don't think that this commit should be backported to any stable tree. It's only required for a new driver.

I'll drop it, thanks!
--
Thanks,
Sasha