public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Q] How to tell we're using the KMS (during suspend/resume) outside the graphics driver
@ 2010-03-06 21:36 Rafael J. Wysocki
  2010-03-09 11:01 ` Luca Tettamanti
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2010-03-06 21:36 UTC (permalink / raw)
  To: LKML
  Cc: Linux PCI, pm list, dri-devel, Jesse Barnes, Matthew Garrett,
	ACPI Devel Maling List

Hi,

For at least two reasons it would be beneficial for some code outisde the
graphics driver(s) to know if the KMS are used.

First, in the non-KMS (ie. UMS) case we probably wouldn't want to call
acpi_video_resume(), because that has a potential to mess up with the GPU
(it actually is known to do that on at least one system).

Second, in the KMS case, we'd be able to skip the kernel VT switch, because
the KMS driver uses its own framebuffer anyway.

So, is there any reasonable way to check that from the outside of the graphics
driver?  It should be general enough to cover the cases when there are two
graphics adapters with different drivers in the system and so forth.

Rafael

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

end of thread, other threads:[~2010-04-06  7:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-06 21:36 [Q] How to tell we're using the KMS (during suspend/resume) outside the graphics driver Rafael J. Wysocki
2010-03-09 11:01 ` Luca Tettamanti
2010-03-09 11:34   ` Rafael J. Wysocki
2010-03-09 11:38     ` Rafał Miłecki
2010-03-09 16:16     ` James Simmons
2010-03-09 21:08       ` Rafael J. Wysocki
2010-03-10  5:50         ` Paul Mundt
2010-03-10 10:54           ` Pauli Nieminen
2010-03-10 20:56             ` Matthew Garrett
2010-03-10 21:15               ` Rafael J. Wysocki
2010-03-10 21:17                 ` Matthew Garrett
2010-04-06  7:47                   ` Rafał Miłecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox