diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-06-27 17:24:08 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-08-11 18:49:05 +0200 |
commit | c585c1b29a52e4c556565fc7c4bb767781894b57 (patch) | |
tree | 548ed731e55f984fa10e692150a7fbac44ae3831 /rust/helpers/vmalloc.c | |
parent | fb6c2d16a46e6366cc154ade97dd466a9f595537 (diff) |
drm/repaper: Do not access GEM-DMA vaddr directly
Use DRM's shadow-plane helper to map and access the GEM object's buffer
within kernel address space. Encapsulates the vmap logic in the GEM-DMA
helpers.
The repaper driver currently reads the vaddr field from the GME buffer
object directly. This only works because GEM code 'automagically' sets
vaddr.
Shadow-plane helpers perform the same steps, but with correct abstraction
behind drm_gem_vmap(). The shadow-plane state provides the buffer address
in kernel address space and the format-conversion state.
v2:
- fix typo in commit description
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250627152422.8399-1-tzimmermann@suse.de
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions