]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: Find VBIOS mode from regular display size
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 31 Jan 2025 09:21:08 +0000 (10:21 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Feb 2025 13:01:11 +0000 (14:01 +0100)
commitc81202906b5cd56db403e95db3d29c9dfc8c74c1
treedd63e141df0d31f28b44e18fde065aefc84f0a97
parent255b3ff65d8ffd70db8c29dda6c8765d58fea2b6
drm/ast: Find VBIOS mode from regular display size

The ast driver looks up supplied display modes from an internal list of
display modes supported by the VBIOS.

Do not use the crtc_-prefixed display values from struct drm_display_mode
for looking up the VBIOS mode. The fields contain raw values that the
driver programs to hardware. They are affected by display settings like
double-scan or interlace.

Instead use the regular vdisplay and hdisplay fields for lookup. As the
programmed values can now differ from the values used for lookup, set
struct drm_display_mode.crtc_vdisplay and .crtc_hdisplay from the VBIOS
mode.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250131092257.115596-9-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c