linux/drivers/gpu/drm/ast
Thomas Zimmermann 164beeabcb drm/ast: Find VBIOS mode from regular display size
[ Upstream commit c81202906b ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-04 14:38:04 +02:00
..
ast_dp501.c drm/ast: Fixed CVE for DP501 2021-04-27 14:12:34 +02:00
ast_dram_tables.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ast_drv.c drm/aperture: Pass DRM driver structure instead of driver name 2021-07-01 11:11:55 +02:00
ast_drv.h drm/ast: Disable fast reset after DRAM initial 2021-07-20 11:19:57 +02:00
ast_main.c drm/ast: Fix ARM compatibility 2023-06-09 10:32:20 +02:00
ast_mm.c drm/ast: Remove references to struct drm_device.pdev 2021-01-06 15:38:30 +01:00
ast_mode.c drm/ast: Find VBIOS mode from regular display size 2025-06-04 14:38:04 +02:00
ast_post.c drm/ast: Fix DRAM init on AST2200 2023-09-19 12:22:55 +02:00
ast_tables.h Revert "drm/ast: Support 1600x900 with 108MHz PCLK" 2022-02-01 17:27:13 +01:00
Kconfig drm/vram: fix Kconfig 2019-09-10 08:53:08 +02:00
Makefile drm/ast: Inline ast cursor-update functions into modesetting code 2021-02-17 12:40:05 +01:00