Files
linux/drivers/gpu/drm
Dave Airlie f295c8cfec drm/nouveau: fix dma syncing warning with debugging on.
Since I wrote the below patch if you run a debug kernel you can a
dma debug warning like:
nouveau 0000:1f:00.0: DMA-API: device driver tries to sync DMA memory it has not allocated [device address=0x000000016e012000] [size=4096 bytes]

The old nouveau code wasn't consolidate the pages like the ttm code,
but the dma-debug expects the sync code to give it the same base/range
pairs as the allocator.

Fix the nouveau sync code to consolidate pages before calling the
sync code.

Fixes: bd549d35b4 ("nouveau: use ttm populate mapping functions. (v2)")
Reported-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/417588/
2021-02-04 06:56:06 +10:00
..
2021-01-28 13:40:48 -05:00
2020-11-13 14:53:34 +10:00
2021-01-25 11:53:44 +01:00
2020-11-06 10:31:26 +01:00
2020-11-16 20:48:20 +01:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-11-16 20:48:20 +01:00
2020-08-11 11:58:31 +10:00
2021-01-20 10:28:39 +01:00