hw/i386: allow SHPC for Q35 machine
authorAleksandr Bezzubikov <zuban32s@gmail.com>
Fri, 28 Jul 2017 23:37:49 +0000 (02:37 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Aug 2017 21:31:09 +0000 (00:31 +0300)
Unmask previously masked SHPC feature in _OSC method.

Signed-off-by: Aleksandr Bezzubikov <zuban32s@gmail.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c

index b9c245c9bb389d3c05531e28eb368e6efcad53d9..98dd4246780f324cb047d6bf56fd577e92943987 100644 (file)
@@ -1862,9 +1862,9 @@ static Aml *build_q35_osc_method(void)
 
     /*
      * Always allow native PME, AER (no dependencies)
-     * Never allow SHPC (no SHPC controller in this system)
+     * Allow SHPC (PCI bridges can have SHPC controller)
      */
-    aml_append(if_ctx, aml_and(a_ctrl, aml_int(0x1D), a_ctrl));
+    aml_append(if_ctx, aml_and(a_ctrl, aml_int(0x1F), a_ctrl));
 
     if_ctx2 = aml_if(aml_lnot(aml_equal(aml_arg(1), aml_int(1))));
     /* Unknown revision */