xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove _PS0 from the DSDT
@ 2011-02-23 14:18 Stefano Stabellini
  2011-02-26  0:02 ` Kay, Allen M
  0 siblings, 1 reply; 13+ messages in thread
From: Stefano Stabellini @ 2011-02-23 14:18 UTC (permalink / raw)
  To: xen-devel; +Cc: Allen Kay, Ian Campbell, Jean.Guyader

This patch removes all the _PS0 entries from the DSDT.
The reason for removing them is that if a passthrough device doesn't
have power management capabilities declared in its pci config space but
_PS0 is declared in the DSDT a Linux HVM guest gets confused and cannot
set the device to D0.  In order to reproduce this problem you can try to
assign a VF to a Linux HVM guest, the result is a guest kernel crash as
reported in this bug:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1742.
I tested this patch with Linux and Windows guests and it looks like it
is not breaking anything (guest S3 in particular is working).
However I am afraid it could cause unwanted side effects, specifically
it could break gfx passthrough of Intel GPUs (I haven't tested this on xen
4.1 but it looks like it would break gfx passthrough on xen 3.4).
Could anyone from Intel confirm whether this patch is correct or might
cause any problems?

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

diff -r 13a7d1f7f62c tools/firmware/hvmloader/acpi/mk_dsdt.c
--- a/tools/firmware/hvmloader/acpi/mk_dsdt.c	Mon Feb 21 09:11:57 2011 +0000
+++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c	Wed Feb 23 12:27:35 2011 +0000
@@ -252,7 +252,6 @@ int main(int argc, char **argv)
      *  _EJ0: eject a device
      *  _STA: return a device's status, e.g. enabled or removed
      * Other methods are optional: 
-     *  _PS0/3: put them here for debug purpose
      * 
      * Eject button would generate a general-purpose event, then the
      * control method for this event uses Notify() to inform OSPM which
@@ -271,10 +270,6 @@ int main(int argc, char **argv)
         stmt("Name", "_ADR, 0x%08x", ((slot & ~7) << 13) | (slot & 7));
         /* _SUN == dev */
         stmt("Name", "_SUN, 0x%08x", slot >> 3);
-        push_block("Method", "_PS0, 0");
-        stmt("Store", "0x%02x, \\_GPE.DPT1", slot);
-        stmt("Store", "0x80, \\_GPE.DPT2");
-        pop_block();
         push_block("Method", "_PS3, 0");
         stmt("Store", "0x%02x, \\_GPE.DPT1", slot);
         stmt("Store", "0x83, \\_GPE.DPT2");

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

end of thread, other threads:[~2011-03-18 11:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23 14:18 [PATCH] remove _PS0 from the DSDT Stefano Stabellini
2011-02-26  0:02 ` Kay, Allen M
2011-02-28 15:33   ` [PATCH] remove _PS0 from the DSDTo Stefano Stabellini
2011-02-28 15:52     ` Keir Fraser
2011-02-28 16:21       ` Stefano Stabellini
2011-02-28 16:39     ` Paolo Bonzini
2011-02-28 16:41       ` Stefano Stabellini
2011-03-17 18:31         ` Jason Kwon
2011-03-17 18:40           ` Stefano Stabellini
2011-03-17 19:12             ` Jason Kwon
2011-03-17 19:15               ` Stefano Stabellini
2011-03-17 21:21                 ` Jason Kwon
2011-03-18 11:45                   ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).