kernel-fxtec-pro1x/drivers/hwtracing
Alexander Shishkin 88cfd822f9 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-05-25 18:23:26 +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 IOMMU 2019-05-25 18:23:26 +02:00
stm stm class: Fix channel bitmap on 32-bit systems 2019-05-25 18:23:24 +02:00
Kconfig