drm/fb-helper: Support smem_len in deferred I/O
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Mar 2023 15:07:47 +0000 (16:07 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 22 Mar 2023 12:32:50 +0000 (13:32 +0100)
commit24dc4f4c2a5cc97e340f440bb01f5f30fb4704f8
tree5370ea5a1c7ae50c4c3204f2da82402a464f27a0
parent6a4fef21816be4bc818905e07d47e0c20738e164
drm/fb-helper: Support smem_len in deferred I/O

The size of the framebuffer can either be stored in screen_info or
smem_len. Take both into account in the deferred I/O code.

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