android_kernel_samsung_a7y1.../drivers/hwtracing/intel_th
Alexander Shishkin 265445fbe7 intel_th: msu: Fix single mode with IOMMU
commit 4e0eaf239fb33ebc671303e2b736fa043462e2f4 upstream.

Currently, the pages that are allocated for the single mode of MSC are not
mapped into the device's dma space and the code is incorrectly using
*_to_phys() in place of a dma address. This fails with IOMMU enabled and
is otherwise bad practice.

Fix the single mode buffer allocation to map the pages into the device's
DMA space.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes: ba82664c134e ("intel_th: Add Memory Storage Unit driver")
Cc: stable@vger.kernel.org # v4.4+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 18:13:40 +02:00
..
core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gth.c intel_th: gth: Fix an off-by-one in output unassigning 2020-04-06 16:40:30 +02:00
gth.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_th.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msu.c intel_th: msu: Fix single mode with IOMMU 2020-04-06 18:13:40 +02:00
msu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pti.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pti.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sth.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sth.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30