android_kernel_samsung_a7y1.../arch/powerpc/platforms
Alexey Kardashevskiy 2e4189b44d powerpc/pseries: Allow not having ibm, hypertas-functions::hcall-multi-tce for DDW
commit 7559d3d295f3365ea7ac0c0274c05e633fe4f594 upstream.

By default a pseries guest supports a H_PUT_TCE hypercall which maps
a single IOMMU page in a DMA window. Additionally the hypervisor may
support H_PUT_TCE_INDIRECT/H_STUFF_TCE which update multiple TCEs at once;
this is advertised via the device tree /rtas/ibm,hypertas-functions
property which Linux converts to FW_FEATURE_MULTITCE.

FW_FEATURE_MULTITCE is checked when dma_iommu_ops is used; however
the code managing the huge DMA window (DDW) ignores it and calls
H_PUT_TCE_INDIRECT even if it is explicitly disabled via
the "multitce=off" kernel command line parameter.

This adds FW_FEATURE_MULTITCE checking to the DDW code path.

This changes tce_build_pSeriesLP to take liobn and page size as
the huge window does not have iommu_table descriptor which usually
the place to store these numbers.

Fixes: 4e8b0cf46b25 ("powerpc/pseries: Add support for dynamic dma windows")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Tested-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191216041924.42318-3-aik@ozlabs.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:54:43 +02:00
..
8xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
40x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
44x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
52xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
82xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
83xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
85xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
86xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
512x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amigaone A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cell A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chrp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
embedded6xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
maple A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pasemi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
powermac powerpc/32s: fix suspend/resume when IBATs 4-7 are used 2020-04-06 20:04:51 +02:00
powernv powerpc/powernv: Restrict OPAL symbol map to only be readable by root 2020-04-07 08:07:44 +02:00
ps3 powerpc: Fix signedness bug in update_flash_db() 2020-04-07 12:34:21 +02:00
pseries powerpc/pseries: Allow not having ibm, hypertas-functions::hcall-multi-tce for DDW 2020-04-07 13:54:43 +02:00
fsl_uli1575.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig.cputype A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30