]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/test: fix the gem shmem test to map the sg table.
authorDave Airlie <airlied@redhat.com>
Mon, 15 Jul 2024 08:35:51 +0000 (18:35 +1000)
committerMaxime Ripard <mripard@kernel.org>
Fri, 2 Aug 2024 07:24:31 +0000 (09:24 +0200)
commit62b45bab010d1b0cea6166f818f1cd0666a6d8d8
tree699456d75d7cdd7a5c10bc6fee4e137b6fe335e4
parent113fd6372a5bb3689aba8ef5b8a265ed1529a78f
drm/test: fix the gem shmem test to map the sg table.

The test here creates an sg table, but never maps it, when
we get to drm_gem_shmem_free, the helper tries to unmap and this
causes warnings on some platforms and debug kernels.

This also sets a 64-bit dma mask, as I see an swiotlb warning if I
stick with the default 32-bit one.

Fixes: 93032ae634d4 ("drm/test: add a test suite for GEM objects backed by shmem")
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Marco Pagani <marpagan@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240715083551.777807-1-airlied@gmail.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/tests/drm_gem_shmem_test.c