]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: Initialize ASTDP in ast_post_gpu()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 17 Jan 2025 10:29:09 +0000 (11:29 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 22 Jan 2025 12:52:49 +0000 (13:52 +0100)
commit1c6220a3950bd8e60126f5ea234f3f7bd86321b1
tree854287e3d54320542ccf82a644145538b3b4096b
parentb40e209130bff435c8dcd17660cb4614ae62a3fb
drm/ast: Initialize ASTDP in ast_post_gpu()

Remove the call to ast_dp_launch() from ast_detect_tx_chip() and
perform it unconditionally in ast_post_gpu().

Also add error handling: the detection code apparently used
ast_dp_launch() to test for a working ASTDP, falling back to VGA on
errors. As the VBIOS reports ASTDP, silently ignoring errors is
questionable behavior. With the refactoring, failing to initialize
the ASTDP will also fail probing the driver.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250117103450.28692-5-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_post.c