linux/drivers/video
Thomas Zimmermann 0fbd06de08 drm: Implement struct vga_switcheroo_client_ops.pre_switch
Call drm_client_dev_acquire_outputs() from vga_switcheroo's pre_switch
callback. Pushes fbcon updates from vga_switcheroo into DRM's fbdev
emulation. This affects amdgpu, i915, nouveau and radeon. No other
drivers implement vga_switcheroo.

Also remove the calls to vga_switcheroo_client_fb_set() from fbcon. It
is called from the DRM client's hotplug and sets the fbcon's framebuffer
at vga_switcheroo. Running pre_switch and hotplug concurrently could
result in a deadlock between clientlist_mutex and vgasr_mutex. Hence
clean up fbcon here as well.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Lyude Paul <lyude@redhat.com> # nouveau
Acked-by: Maxime Ripard <mripard@kernel.org>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patch.msgid.link/20260709092215.168172-6-tzimmermann@suse.de
2026-09-11 16:52:43 +02:00
..
backlight Backlight for v7.3 2026-08-27 11:16:39 -07:00
console console: mdacon: remove this obsolete driver 2026-05-20 20:23:32 +02:00
fbdev drm: Implement struct vga_switcheroo_client_ops.pre_switch 2026-09-11 16:52:43 +02:00
logo video/logo: don't select LOGO_LINUX_MONO and LOGO_LINUX_VGA16 by default 2026-02-14 11:09:46 +01:00
aperture.c
cmdline.c
display_timing.c
hdmi.c
Kconfig Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00
Makefile
nomodeset.c
of_display_timing.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
of_videomode.c
screen_info_generic.c
screen_info_pci.c sysfb: Replace screen_info with sysfb_primary_display 2025-12-16 14:12:44 +01:00
sticore.c sticon/parisc: Detect default STI graphics card for console output 2026-08-10 08:13:26 +02:00
vgastate.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
videomode.c