All of lore.kernel.org
 help / color / mirror / Atom feed
* Is it possible to reset graphics controller on reboot in a framebuffer driver?
@ 2019-03-07  5:16 ` Tom Li
  0 siblings, 0 replies; 16+ messages in thread
From: Tom Li @ 2019-03-07  5:16 UTC (permalink / raw)
  To: linux-fbdev, dri-devel, linux-kernel
  Cc: Yifeng Li, Sudip Mukherjee, Teddy Wang, Bartlomiej Zolnierkiewicz

Hi all.

As you may have noticed, recently I've been working on a reworked version
of sm712fb, and planned to convert it to a DRM/KMS driver. Besides using
it on embedded/non-x86 systems, I thought it would be a good idea to support
histrocial x86 laptops with this VGA chipset as well, so I've acquired a
machine for testing.

However, soon I found a nasty problem. The BIOS does not reset the chip
on boot! Like most graphics controller of that era, sm712 chipset has a
VGA compatible mode and a 2D framebuffer mode. The power-on default is
VGA. The BIOS writer just assumed this, and does nothing to reinitialize
it. If one uses the framebuffer driver under Linux, once the machine reboots,
the entire LCD panel becomes a piece of garbage.

AFAIK, the framebuffer driver would be running throughout the kernel's life-
cycle, is it really possible to workaround this issue by restoring on VGA
state upon reboot?

Thanks,
Tom Li

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

end of thread, other threads:[~2019-03-12  9:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07  5:16 Is it possible to reset graphics controller on reboot in a framebuffer driver? Tom Li
2019-03-07  5:16 ` Tom Li
2019-03-07  8:58 ` Jani Nikula
2019-03-07  9:00   ` Jani Nikula
2019-03-07  9:00   ` Jani Nikula
2019-03-07  9:39   ` Geert Uytterhoeven
2019-03-07  9:39     ` Geert Uytterhoeven
2019-03-07  9:39     ` Geert Uytterhoeven
2019-03-07 21:38     ` Tom Li
2019-03-07 21:38       ` Tom Li
2019-03-08  9:13       ` Geert Uytterhoeven
2019-03-08  9:13         ` Geert Uytterhoeven
2019-03-08 10:35         ` Tom Li
2019-03-08 10:35           ` Tom Li
2019-03-12  9:19           ` Tom Li
2019-03-12  9:19             ` Tom Li

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.