android_kernel_samsung_a7y1.../drivers/hwtracing/intel_th
Alexander Shishkin 6b0b8836fd intel_th: msu: Fix single mode with disabled IOMMU
commit 918b8646497b5dba6ae82d4a7325f01b258972b9 upstream.

Commit 4e0eaf239fb3 ("intel_th: msu: Fix single mode with IOMMU") switched
the single mode code to use dma mapping pages obtained from the page
allocator, but with IOMMU disabled, that may lead to using SWIOTLB bounce
buffers and without additional sync'ing, produces empty trace buffers.

Fix this by using a DMA32 GFP flag to the page allocation in single mode,
as the device supports full 32-bit DMA addressing.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes: 4e0eaf239fb3 ("intel_th: msu: Fix single mode with IOMMU")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reported-by: Ammy Yi <ammy.yi@intel.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190621161930.60785-4-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 20:04:57 +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 disabled IOMMU 2020-04-06 20:04:57 +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