Thread (23 messages) 23 messages, 4 authors, 2021-01-28

Re: [PATCH 4/6] ACPI: Execute platform _OSC also with query bit clear

From: Yehezkel Bernat <yehezkelshb@gmail.com>
Date: 2021-01-26 16:26:36
Also in: linux-acpi

On Tue, Jan 26, 2021 at 5:57 PM Mika Westerberg
[off-list ref] wrote:
From: Mario Limonciello <redacted>

The platform _OSC can change the hardware state when query bit is not
set. According to ACPI spec it is recommended that the OS runs _OSC with
query bit set until the platform does not mask any of the capabilities.
Then it should run it with query bit clear in order to actually commit
the changes. At the moment Linux only runs the _OSC with query bit set
and this is going to cause problems with the USB4 CM (Connection
Manager) switch that is going to commit the switch only when the OS
requests control over the feature.

For this reason modify the _OSC support so that we first execute it with
query bit set, then use the returned valu as base of the features we
Totally out of my depth here, but just noticed the typo (valu => value).
want to control and run the _OSC again with query bit clear.

Also rename the function to better match what it does.

Cc: Rafael J. Wysocki <redacted>
Signed-off-by: Mario Limonciello <redacted>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help