drm/ast: Disconnect BMC if physical connector is connected
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Nov 2023 13:02:12 +0000 (14:02 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 21 Nov 2023 08:40:08 +0000 (09:40 +0100)
commit8d6ef26501b97243ee6c16b8187c5b38cb69b77d
treed933d67e7809a7e435bda7eb04cb3cdc2155528a
parent3f7c0634926daf48cd2f6db6c1197a1047074088
drm/ast: Disconnect BMC if physical connector is connected

Many user-space compositors fail with mode setting if a CRTC has
more than one connected connector. This is the case with the BMC
on Aspeed systems. Work around this problem by setting the BMC's
connector status to disconnected when the physical connector has
a display attached. This way compositors will only see one connected
connector at a time; either the physical one or the BMC.

Suggested-by: Jocelyn Falempe <jfalempe@redhat.com>
Fixes: e329cb53b45d ("drm/ast: Add BMC virtual connector")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: <stable@vger.kernel.org> # v6.6+
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231116130217.22931-1-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c