android_kernel_oneplus_msm8998/drivers/hwtracing
Alexander Shishkin 2a98d34639 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: ba82664c13 ("intel_th: Add Memory Storage Unit driver")
Cc: stable@vger.kernel.org # v4.4+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-11 12:23:44 +02:00
..
coresight coresight: etm4x: Add support to enable ETMv4.2 2019-04-27 09:33:50 +02:00
intel_th intel_th: msu: Fix single mode with IOMMU 2019-06-11 12:23:44 +02:00
stm stm class: Fix channel free in stm output free path 2019-06-11 12:23:44 +02:00