From: Aleksandr Bezzubikov Date: Fri, 28 Jul 2017 23:37:49 +0000 (+0300) Subject: hw/i386: allow SHPC for Q35 machine X-Git-Tag: v2.9.1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f7f7e4f0562508df96e26da3ed3ce3a42247114;p=thirdparty%2Fqemu.git hw/i386: allow SHPC for Q35 machine Unmask previously masked SHPC feature in _OSC method. Signed-off-by: Aleksandr Bezzubikov Reviewed-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin (cherry picked from commit a41c78c135eb1850826e96b2154690323ff66719) Signed-off-by: Michael Roth --- diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 20731085773..76fa4555bf3 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1818,9 +1818,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 */