[PATCH] arm64: Properly clean up iommu-dma remnants

Konrad Dybcio konrad.dybcio at somainline.org
Tue Apr 30 05:51:28 PDT 2024



On 30.04.2024 12:22 PM, Robin Murphy wrote:
> Thanks to the somewhat asymmetrical nature, while removing
> iommu_setup_dma_ops() from the arch_setup_dma_ops() flow, I managed to
> forget that arm64's teardown path was also specific to iommu-dma. Clean
> that up to match, otherwise probe deferral will lead to the arch code
> erroneously removing DMA ops set elsewhere.
> 
> Reported-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
> Link: https://lore.kernel.org/linux-iommu/Zi_LV28TR-P-PzXi@eriador.lumag.spb.ru/
> Fixes: b67483b3c44e ("iommu/dma: Centralise iommu_setup_dma_ops()")
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
> ---

Tested-by: Konrad Dybcio <konrad.dybcio at linaro.org> # QC SM8550 QRD
Reviewed-by: Konrad Dybcio <konrad.dybcio at linaro.org>

Konrad



More information about the linux-arm-kernel mailing list