diff options
author | Tomi Valkeinen <[email protected]> | 2019-08-09 13:00:38 +0300 |
---|---|---|
committer | Tomi Valkeinen <[email protected]> | 2019-08-12 16:16:34 +0300 |
commit | 63daf4e166545363f3b875f5b81aecb46e1e1d19 (patch) | |
tree | ba7577119c7e1f7b3eb4df546c8abdd84f47349c /tools/perf/util/trace-event-scripting.c | |
parent | 181ae8844578d0a80f188c1d195fd6bb91bcec81 (diff) |
drm/omap: ensure we have a valid dma_mask
The omapdrm driver uses dma_set_coherent_mask(), but that's not enough
anymore when LPAE is enabled.
From Christoph Hellwig <[email protected]>:
> The traditional arm DMA code ignores, but the generic dma-direct/swiotlb
> has stricter checks and thus fails mappings without a DMA mask. As we
> use swiotlb for arm with LPAE now, omapdrm needs to catch up and
> actually set a DMA mask.
Change the dma_set_coherent_mask() call to
dma_coerce_mask_and_coherent() so that the dev->dma_mask is also set.
Fixes: ad3c7b18c5b3 ("arm: use swiotlb for bounce buffering on LPAE configs")
Reported-by: "H. Nikolaus Schaller" <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Peter Ujfalusi <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions