projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cce16fc
)
drm/fb-dma-helper: Test for imported buffers with drm_gem_is_imported()
author
Thomas Zimmermann
<tzimmermann@suse.de>
Wed, 26 Feb 2025 17:03:11 +0000
(18:03 +0100)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Thu, 6 Mar 2025 07:59:17 +0000
(08:59 +0100)
Instead of testing import_attach for imported GEM buffers, invoke
drm_gem_is_imported() to do the test.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Anusha Srivatsa <asrivats@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20250226172457.217725-9-tzimmermann@suse.de
drivers/gpu/drm/drm_fb_dma_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_fb_dma_helper.c
b/drivers/gpu/drm/drm_fb_dma_helper.c
index
e1d61a6
..
2c4dc7e
100644
(file)
--- a/
drivers/gpu/drm/drm_fb_dma_helper.c
+++ b/
drivers/gpu/drm/drm_fb_dma_helper.c
@@
-178,7
+178,7
@@
int drm_fb_dma_get_scanout_buffer(struct drm_plane *plane,
dma_obj = drm_fb_dma_get_gem_obj(fb, 0);
/* Buffer should be accessible from the CPU */
- if (d
ma_obj->base.import_attach
)
+ if (d
rm_gem_is_imported(&dma_obj->base)
)
return -ENODEV;
/* Buffer should be already mapped to CPU */