diff options
| author | Thomas Zimmermann <[email protected]> | 2023-11-27 13:15:58 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2023-11-29 11:20:44 +0000 |
| commit | 76f92201b821dd2f442ebe37ec9b52b525855bac (patch) | |
| tree | 156abcd154eb74b08493323ecfdeca50b40daa76 /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | fbdev: Remove trailing whitespaces (diff) | |
| download | kernel-76f92201b821dd2f442ebe37ec9b52b525855bac.tar.gz kernel-76f92201b821dd2f442ebe37ec9b52b525855bac.zip | |
fbdev: Push pgprot_decrypted() into mmap implementations
If a driver sets struct fb_ops.fb_mmap, the fbdev core automatically
calls pgprot_decrypted(). But the default fb_mmap code doesn't handle
pgprot_decrypted().
Move the call to pgprot_decrypted() into each drivers' fb_mmap function.
This only concerns fb_mmap functions for system and DMA memory. For
I/O memory, which is the default case, nothing changes. The fb_mmap
for I/O-memory can later be moved into a helper as well.
DRM's fbdev emulation handles pgprot_decrypted() internally via the
Prime helpers. Fbdev doesn't have to do anything in this case. In
cases where DRM uses deferred I/O, this patch updates fb_mmap correctly.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions
