]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: CPPC: Check _OSC for flexible address space
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 18 May 2022 09:08:57 +0000 (11:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 May 2022 17:45:34 +0000 (19:45 +0200)
commit9f6dea857f077a42202dff6b8953c1c6ade09c94
tree5876bb3f8913c34b617e391d7fa36d59a8a02ed7
parent28ef5cda58b7b0fbfe06f63e642fe761ca3a12fa
ACPI: CPPC: Check _OSC for flexible address space

ACPI 6.2 Section 6.2.11.2 'Platform-Wide OSPM Capabilities':
  Starting with ACPI Specification 6.2, all _CPC registers can be in
  PCC, System Memory, System IO, or Functional Fixed Hardware address
  spaces. OSPM support for this more flexible register space scheme is
  indicated by the “Flexible Address Space for CPPC Registers” _OSC bit

Otherwise (cf ACPI 6.1, s8.4.7.1.1.X), _CPC registers must be in:
- PCC or Functional Fixed Hardware address space if defined
- SystemMemory address space (NULL register) if not defined

Add the corresponding _OSC bit and check it when parsing _CPC objects.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
drivers/acpi/cppc_acpi.c
include/linux/acpi.h