]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/iommu: Find existing DDW with given property name
authorLeonardo Bras <leobras.c@gmail.com>
Tue, 17 Aug 2021 06:39:27 +0000 (03:39 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Aug 2021 14:56:55 +0000 (00:56 +1000)
commiteabb268b9f0f60ff0ed66ddd875092f973a8993a
treec67f9a94c0ce4eee2076e2c04de2746c703fb0e5
parent1ff559ede9f3eb8d8838238442c735c9e30b1d67
powerpc/pseries/iommu: Find existing DDW with given property name

At the moment pseries stores information about created directly mapped
DDW window in DIRECT64_PROPNAME.

With the objective of implementing indirect DMA mapping with DDW, it's
necessary to have another propriety name to make sure kexec'ing into older
kernels does not break, as it would if we reuse DIRECT64_PROPNAME.

In order to have this, find_existing_ddw_windows() needs to be able to
look for different property names.

Extract find_existing_ddw_windows() into find_existing_ddw_windows_named()
and calls it with current property name.

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210817063929.38701-10-leobras.c@gmail.com
arch/powerpc/platforms/pseries/iommu.c