* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:22 [PATCH] arm64: Properly clean up iommu-dma remnants Robin Murphy
@ 2024-04-30 10:32 ` Dmitry Baryshkov
2024-04-30 11:00 ` Robin Murphy
2024-04-30 11:22 ` Catalin Marinas
` (4 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Dmitry Baryshkov @ 2024-04-30 10:32 UTC (permalink / raw)
To: Robin Murphy; +Cc: joro, will, catalin.marinas, linux-arm-kernel, iommu
On Tue, 30 Apr 2024 at 13:23, Robin Murphy <robin.murphy@arm.com> 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@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@arm.com>
> ---
> arch/arm64/Kconfig | 1 -
> arch/arm64/mm/dma-mapping.c | 8 --------
> 2 files changed, 9 deletions(-)
Thanks!
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:32 ` Dmitry Baryshkov
@ 2024-04-30 11:00 ` Robin Murphy
0 siblings, 0 replies; 9+ messages in thread
From: Robin Murphy @ 2024-04-30 11:00 UTC (permalink / raw)
To: Dmitry Baryshkov; +Cc: joro, will, catalin.marinas, linux-arm-kernel, iommu
On 2024-04-30 11:32 am, Dmitry Baryshkov wrote:
> On Tue, 30 Apr 2024 at 13:23, Robin Murphy <robin.murphy@arm.com> 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@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@arm.com>
>> ---
>> arch/arm64/Kconfig | 1 -
>> arch/arm64/mm/dma-mapping.c | 8 --------
>> 2 files changed, 9 deletions(-)
>
>
> Thanks!
>
> Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Great! Always nice when the issue is one of simply not deleting *enough*
code :)
Cheers,
Robin.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:22 [PATCH] arm64: Properly clean up iommu-dma remnants Robin Murphy
2024-04-30 10:32 ` Dmitry Baryshkov
@ 2024-04-30 11:22 ` Catalin Marinas
2024-04-30 12:51 ` Konrad Dybcio
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Catalin Marinas @ 2024-04-30 11:22 UTC (permalink / raw)
To: Robin Murphy; +Cc: joro, will, linux-arm-kernel, iommu, Dmitry Baryshkov
On Tue, Apr 30, 2024 at 11:22:53AM +0100, 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@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@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:22 [PATCH] arm64: Properly clean up iommu-dma remnants Robin Murphy
2024-04-30 10:32 ` Dmitry Baryshkov
2024-04-30 11:22 ` Catalin Marinas
@ 2024-04-30 12:51 ` Konrad Dybcio
2024-05-04 14:21 ` Dmitry Baryshkov
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2024-04-30 12:51 UTC (permalink / raw)
To: Robin Murphy, joro
Cc: will, catalin.marinas, linux-arm-kernel, iommu, Dmitry Baryshkov
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@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@arm.com>
> ---
Tested-by: Konrad Dybcio <konrad.dybcio@linaro.org> # QC SM8550 QRD
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:22 [PATCH] arm64: Properly clean up iommu-dma remnants Robin Murphy
` (2 preceding siblings ...)
2024-04-30 12:51 ` Konrad Dybcio
@ 2024-05-04 14:21 ` Dmitry Baryshkov
2024-05-07 9:50 ` Will Deacon
2024-05-09 9:04 ` Nicolin Chen
2024-05-10 7:04 ` Joerg Roedel
5 siblings, 1 reply; 9+ messages in thread
From: Dmitry Baryshkov @ 2024-05-04 14:21 UTC (permalink / raw)
To: Robin Murphy; +Cc: joro, will, catalin.marinas, linux-arm-kernel, iommu
On Tue, 30 Apr 2024 at 13:23, Robin Murphy <robin.murphy@arm.com> 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@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@arm.com>
> ---
> arch/arm64/Kconfig | 1 -
> arch/arm64/mm/dma-mapping.c | 8 --------
> 2 files changed, 9 deletions(-)
Just wanted to ping regarding the patch. It's still not a part of
linux-net, Is it going to be picked up for 6.10?
--
With best wishes
Dmitry
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-05-04 14:21 ` Dmitry Baryshkov
@ 2024-05-07 9:50 ` Will Deacon
0 siblings, 0 replies; 9+ messages in thread
From: Will Deacon @ 2024-05-07 9:50 UTC (permalink / raw)
To: Dmitry Baryshkov, joro
Cc: Robin Murphy, catalin.marinas, linux-arm-kernel, iommu
On Sat, May 04, 2024 at 05:21:12PM +0300, Dmitry Baryshkov wrote:
> On Tue, 30 Apr 2024 at 13:23, Robin Murphy <robin.murphy@arm.com> 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@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@arm.com>
> > ---
> > arch/arm64/Kconfig | 1 -
> > arch/arm64/mm/dma-mapping.c | 8 --------
> > 2 files changed, 9 deletions(-)
>
>
> Just wanted to ping regarding the patch. It's still not a part of
> linux-next, Is it going to be picked up for 6.10?
Oops, thanks Dmitry!
Joerg -- please can you pick this one up for iommu next? It fixes a
commit you already have there, so I think it's best to keep everything
together.
FWIW:
Acked-by: Will Deacon <will@kernel.org>
Will
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:22 [PATCH] arm64: Properly clean up iommu-dma remnants Robin Murphy
` (3 preceding siblings ...)
2024-05-04 14:21 ` Dmitry Baryshkov
@ 2024-05-09 9:04 ` Nicolin Chen
2024-05-10 7:04 ` Joerg Roedel
5 siblings, 0 replies; 9+ messages in thread
From: Nicolin Chen @ 2024-05-09 9:04 UTC (permalink / raw)
To: joro, Robin Murphy
Cc: will, catalin.marinas, linux-arm-kernel, iommu, Dmitry Baryshkov
On Tue, Apr 30, 2024 at 11:22:53AM +0100, 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@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@arm.com>
This fixes the breakage occurring to my system too. Thanks!
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] arm64: Properly clean up iommu-dma remnants
2024-04-30 10:22 [PATCH] arm64: Properly clean up iommu-dma remnants Robin Murphy
` (4 preceding siblings ...)
2024-05-09 9:04 ` Nicolin Chen
@ 2024-05-10 7:04 ` Joerg Roedel
5 siblings, 0 replies; 9+ messages in thread
From: Joerg Roedel @ 2024-05-10 7:04 UTC (permalink / raw)
To: Robin Murphy
Cc: will, catalin.marinas, linux-arm-kernel, iommu, Dmitry Baryshkov
On Tue, Apr 30, 2024 at 11:22:53AM +0100, Robin Murphy wrote:
> arch/arm64/Kconfig | 1 -
> arch/arm64/mm/dma-mapping.c | 8 --------
> 2 files changed, 9 deletions(-)
Applied, thanks.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread