All of lore.kernel.org
 help / color / mirror / Atom feed
* drmfb console switching problems/questions
@ 2020-10-09 10:50 ` stsp
  0 siblings, 0 replies; 14+ messages in thread
From: stsp @ 2020-10-09 10:50 UTC (permalink / raw)
  To: linux-fbdev, Linux kernel

Hi!

I am trying to run my sdl1-based app
under linux kms framebuffer (amdgpudrmfb
in my case).
The app itself works perfectly, but
console switching is not.

If I switch the console while the app
is drawing, then it will corrupt the
VC I switched to. It will just draw on
top of the VC's content.
Question: is this expected? Is drm
framebuffer global, rather than per-vc?
If so, should I somehow freeze my
app when it is switched away? And
why would it be the case, with the
modern video cards that have multi
gigas of RAM on board?

If my app crashes without a clean
shutdown, then the framebuffer kinda
hangs. I can switch to other VCs but
I don't see their content. All I see is
the last drawing of my app. If I happen
to have an X server on some other VC,
then switching to it immediately unhangs
everything, and I can switch back.
In fact, even if I hit Ctrl-Alt-Del, then
fb immediately unhangs (by systemd
or plymouth or whoever else). But for
example SAK combo doesn't unhang.
So it seems to be very simple to hang
the framebuffer, and is quite difficult
to recover.
Question: is this an expected behaviour
or a drmfb bug?

Thanks!


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-10-09 14:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09 10:50 drmfb console switching problems/questions stsp
2020-10-09 10:50 ` stsp
2020-10-09 11:59 ` Thomas Zimmermann
2020-10-09 11:59   ` Thomas Zimmermann
2020-10-09 12:16   ` stsp
2020-10-09 12:16     ` stsp
2020-10-09 12:58     ` Thomas Zimmermann
2020-10-09 12:58       ` Thomas Zimmermann
2020-10-09 13:19       ` stsp
2020-10-09 13:19         ` stsp
2020-10-09 13:31         ` Thomas Zimmermann
2020-10-09 13:31           ` Thomas Zimmermann
2020-10-09 14:14           ` stsp
2020-10-09 14:14             ` stsp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.