linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aubrey Li <aubrey.li@intel.com>
To: rjw@rjwysocki.net, lenb@kernel.org
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Aubrey Li <aubrey.li@intel.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Aubrey Li <aubrey.li@linux.intel.com>
Subject: [PATCH 2/2] ACPI: let BIOS fall back to legacy handling if PRM disabled
Date: Fri,  2 Jul 2021 15:03:50 +0800	[thread overview]
Message-ID: <1625209430-19934-2-git-send-email-aubrey.li@intel.com> (raw)
In-Reply-To: <1625209430-19934-1-git-send-email-aubrey.li@intel.com>

Based on _OSC PRM bit, BIOS can choose switch from legacy handling
to using PRM. So if CONFIG_ACPI_PRMT is disabled, this bit should
not be set to let BIOS fall back to the legacy handling (such as SMI).

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Aubrey Li <aubrey.li@linux.intel.com>
---
 drivers/acpi/bus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 60fb6a84..30a3d4a 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -303,7 +303,9 @@ static void acpi_bus_osc_negotiate_platform_control(void)
 
 	capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
 	capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT;
+#ifdef CONFIG_ACPI_PRMT
 	capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT;
+#endif
 
 #ifdef CONFIG_ARM64
 	capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT;
-- 
2.7.4


  reply	other threads:[~2021-07-02  7:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02  7:03 [PATCH 1/2] ACPI: Correct \_SB._OSC bit definition for PRM Aubrey Li
2021-07-02  7:03 ` Aubrey Li [this message]
2021-07-02 11:37   ` [PATCH 2/2] ACPI: let BIOS fall back to legacy handling if PRM disabled Rafael J. Wysocki
2021-07-02 14:02     ` Rafael J. Wysocki
2021-07-02 14:02     ` Aubrey Li
2021-07-02 14:02       ` Rafael J. Wysocki
2021-07-02 14:06         ` Aubrey Li
2021-07-02 14:00 ` [PATCH 1/2] ACPI: Correct \_SB._OSC bit definition for PRM Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1625209430-19934-2-git-send-email-aubrey.li@intel.com \
    --to=aubrey.li@intel.com \
    --cc=aubrey.li@linux.intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).