]> Git Repo - linux.git/commit
drm/prime: Unbreak virtgpu dma-buf export
authorRob Clark <[email protected]>
Fri, 22 Mar 2024 21:48:01 +0000 (14:48 -0700)
committerSimon Ser <[email protected]>
Thu, 28 Mar 2024 18:52:22 +0000 (19:52 +0100)
commita4ec240f6b7c21cf846d10017c3ce423a0eae92c
treee8640282c2a71eb0aa72cf86defab33e6c914e96
parentbe141849ec00ef39935bf169c0f194ac70bf85ce
drm/prime: Unbreak virtgpu dma-buf export

virtgpu "vram" GEM objects do not implement obj->get_sg_table().  But
they also don't use drm_gem_map_dma_buf().  In fact they may not even
have guest visible pages.  But it is perfectly fine to export and share
with other virtual devices.

Reported-by: Dominik Behr <[email protected]>
Fixes: 207395da5a97 ("drm/prime: reject DMA-BUF attach when get_sg_table is missing")
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Simon Ser <[email protected]>
Signed-off-by: Simon Ser <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_prime.c
This page took 0.052834 seconds and 4 git commands to generate.