aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2025-05-20 07:14:00 +0000
committerThomas Zimmermann <[email protected]>2025-05-26 07:35:34 +0000
commit03bcbbb3995ba5df43af9aba45334e35f2dfe27b (patch)
tree21db1017208026833f9c752e9c33d1dfe6b456a0 /drivers/fpga/tests/fpga-mgr-test.c
parentdrm/scheduler: signal scheduled fence when kill job (diff)
downloadkernel-03bcbbb3995ba5df43af9aba45334e35f2dfe27b.tar.gz
kernel-03bcbbb3995ba5df43af9aba45334e35f2dfe27b.zip
dummycon: Trigger redraw when switching consoles with deferred takeover
Signal vt subsystem to redraw console when switching to dummycon with deferred takeover enabled. Makes the console switch to fbcon and displays the available output. With deferred takeover enabled, dummycon acts as the placeholder until the first output to the console happens. At that point, fbcon takes over. If the output happens while dummycon is not active, it cannot inform fbcon. This is the case if the vt subsystem runs in graphics mode. A typical graphical boot starts plymouth, a display manager and a compositor; all while leaving out dummycon. Switching to a text-mode console leaves the console with dummycon even if a getty terminal has been started. Returning true from dummycon's con_switch helper signals the vt subsystem to redraw the screen. If there's output available dummycon's con_putc{s} helpers trigger deferred takeover of fbcon, which sets a display mode and displays the output. If no output is available, dummycon remains active. v2: - make the comment slightly more verbose (Javier) Signed-off-by: Thomas Zimmermann <[email protected]> Reported-by: Andrei Borzenkov <[email protected]> Closes: https://bugzilla.suse.com/show_bug.cgi?id=1242191 Tested-by: Andrei Borzenkov <[email protected]> Acked-by: Javier Martinez Canillas <[email protected]> Fixes: 83d83bebf401 ("console/fbcon: Add support for deferred console takeover") Cc: Hans de Goede <[email protected]> Cc: [email protected] Cc: [email protected] Cc: <[email protected]> # v4.19+ Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions