]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bochs: Validate display modes against available video memory
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Sep 2024 10:53:47 +0000 (12:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 12:41:37 +0000 (14:41 +0200)
commit4dc9bb66ebdd123cc6dc823516b2710e7ff8df7b
treea96c6af1e021dfc13d3737fd54ca17837d289abf
parentc3ac343c1448599952829456bc2d65b6a4307c6c
drm/bochs: Validate display modes against available video memory

For each mode, test the required memory against the available video
memory. Filters out modes that do not fit into display memory.

Also remove the old test against the 4 MiB limit. It is now obsolete
and did not necessarily produce correct results.

v2:
- fix __udivdi3 linker error (kernel test robot)
- fix vdisplay and hdisplay usage

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240902105546.792625-10-tzimmermann@suse.de
drivers/gpu/drm/tiny/bochs.c