kernel-fxtec-pro1x/drivers/hwtracing
Alexander Shishkin 98318cd31b 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>
2019-07-26 09:14:30 +02:00
..
coresight coresight: cpu-debug: Support for CA73 CPUs 2019-04-20 09:16:04 +02:00
intel_th intel_th: msu: Fix single mode with disabled IOMMU 2019-07-26 09:14:30 +02:00
stm stm class: Fix channel bitmap on 32-bit systems 2019-05-25 18:23:24 +02:00
Kconfig hwtracing: Add HW tracing support menu 2018-03-29 13:38:10 +03:00