]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/fb-helper: Consolidate CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Mar 2023 15:07:50 +0000 (16:07 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 22 Mar 2023 12:32:52 +0000 (13:32 +0100)
commita51c7663f144606a5f08e772fa3e1e4f2277a614
tree495e3d374ec7419791baf9505d9bf7a4c261d744
parent61b5d0072a88cfd8c5fda31a7c19d105187c8841
drm/fb-helper: Consolidate CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM

Consolidate all handling of CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM by
making the module parameter optional in drm_fb_helper.c.

Without the config option, modules can set smem_start in struct
fb_info for internal usage, but not export if to userspace. The
address can only be exported by enabling the option and setting
the module parameter. Also update the comment.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Zack Rusin <zackr@vmware.com>
Tested-by: Sui Jingfeng<suijingfeng@loongson.cn>
Link: https://patchwork.freedesktop.org/patch/msgid/20230320150751.20399-8-tzimmermann@suse.de
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/drm_fbdev_dma.c
include/drm/drm_fb_helper.h