linux/drivers/gpu/drm/ast
Thomas Zimmermann c3fd672e66 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-05-29 11:03:05 +02:00
..
ast_ddc.c drm/ast: Define struct ast_ddc in ast_ddc.c 2024-04-11 09:38:17 +02:00
ast_ddc.h drm/ast: Define struct ast_ddc in ast_ddc.c 2024-04-11 09:38:17 +02:00
ast_dp.c drm/ast: Fix ast_dp connection status 2025-04-25 10:47:57 +02:00
ast_dp501.c drm/ast: dp501: Transparently handle BMC support 2024-08-22 09:13:11 +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 pci-v6.12-changes 2024-09-23 12:47:06 -07:00
ast_drv.h drm/ast: Remove BMC output 2024-08-22 09:13:21 +02:00
ast_main.c drm/ast: astdp: Test firmware status once during probing 2024-07-30 12:15:37 +02:00
ast_mm.c drm/ast: Rename AST_IO_CRTC_PORT to AST_IO_VGACRI 2023-10-19 13:55:33 +02:00
ast_mode.c drm/ast: Find VBIOS mode from regular display size 2025-05-29 11:03:05 +02:00
ast_post.c drm/ast: astdp: Test firmware status once during probing 2024-07-30 12:15:37 +02:00
ast_reg.h drm/ast: astdp: Clean up EDID reading 2024-07-30 12:15:37 +02:00
ast_sil164.c drm/ast: sil164: Clear EDID if no display is connected 2024-10-17 08:50:14 +02:00
ast_tables.h drm/ast: Add resolution support for 1152x864@75 2022-09-20 10:19:32 +02:00
ast_vga.c drm/ast: vga: Clear EDID if no display is connected 2024-10-17 08:50:14 +02:00
Kconfig drm: Only select I2C_ALGOBIT for drivers that actually need it 2023-01-10 11:15:44 +01:00
Makefile drm/ast: Move code for physical outputs into separate files 2024-08-22 09:12:46 +02:00