drm/amdgpu: Fix dummy_read_page overlapping mappings
authorPrike Liang <Prike.Liang@amd.com>
Thu, 24 Oct 2024 08:51:05 +0000 (16:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 17:05:30 +0000 (12:05 -0500)
commitb78612939de33ffd247f3d39eaca7fb2648801ba
tree69b7bd59de1de2cdfa3b606f3272b4118ce7a94a
parentafe260df55ac280cd56306248cb6d8a6b0db095c
drm/amdgpu: Fix dummy_read_page overlapping mappings

Use the dma_map_page_attrs() with DMA_ATTR_SKIP_CPU_SYNC
attribute setting to handle the dummy page overlapping
mappings.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c