Linux ACPI
 help / color / mirror / Atom feed
* [PATCH v3 0/4] ACPI/PCC: Correct PCC OperationRegion handling
@ 2026-09-22 14:42 Sudeep Holla
  2026-09-22 14:42 ` [PATCH v3 1/4] ACPICA: Fix PCC OperationRegion command offsets Sudeep Holla
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Sudeep Holla @ 2026-09-22 14:42 UTC (permalink / raw)
  To: linux-acpi, acpica-devel
  Cc: Sudeep Holla, Rafael J . Wysocki, Maciej Wieczor-Retman,
	Pawel Chmielewski, Huisong Li

Hi,

This series corrects the handling of PCC OperationRegions and their
shared memory.

ACPI 6.3 states that a PCC OperationRegion describes the shared memory
following the PCC signature. Consequently, COMMAND fields at raw shared
memory offsets 4 and 12 appear at OperationRegion offsets 0 and 8.

The first patch corrects those offsets in ACPICA. This change has already
been submitted upstream:

  https://github.com/acpica/acpica/pull/1205

The ACPICA patch is included here only to document the complete
dependency and aid review and testing. It must enter the kernel through
the ACPICA pull/import process and will not be merged directly through
the Linux ACPI tree.

The remaining Linux patches:

- Preserve the platform-populated PCC signature when copying
  OperationRegion data.
- Release the mailbox channel and region context when ACPICA
  deactivates an OperationRegion.
- Compute and cache the command timeout during channel setup.

There is no strict build dependency in case ACPICA and other 3 changes
need to be merged at different timeline or via different branch.

Regards,
Sudeep

---

Changes in v3:
 - Updated the ACPICA patch to the version accepted as part of
   https://github.com/acpica/acpica/pull/1205
 - Rebased other patches to v7.3-rc4
 - v2: https://lore.kernel.org/all/20260722131553.2117835-1-sudeep.holla@kernel.org/

Changes in v2:
 - Updated the commit message to include correct example of PCC Opregion
   as the example added by original commit 77e2a04745ff ("ACPI: PCC:
   Implement OperationRegion handler for the PCC Type 3 subtype")
   incorrectly included the signature as an OperationRegion field.
 - v1: https://lore.kernel.org/all/20260717081005.470013-1-sudeep.holla@kernel.org/

Sudeep Holla (4):
  ACPICA: Fix PCC OperationRegion command offsets
  ACPI: PCC: Preserve shared memory signature in OpRegion handler
  ACPI: PCC: Free channel on OpRegion deactivation
  ACPI: PCC: Cache OpRegion command timeout

 drivers/acpi/acpi_pcc.c       | 55 ++++++++++++++++++++++++++---------
 drivers/acpi/acpica/exfield.c | 11 +++----
 2 files changed, 48 insertions(+), 18 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-25 16:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-22 14:42 [PATCH v3 0/4] ACPI/PCC: Correct PCC OperationRegion handling Sudeep Holla
2026-09-22 14:42 ` [PATCH v3 1/4] ACPICA: Fix PCC OperationRegion command offsets Sudeep Holla
2026-09-22 14:43 ` [PATCH v3 2/4] ACPI: PCC: Preserve shared memory signature in OpRegion handler Sudeep Holla
2026-09-22 14:43 ` [PATCH v3 3/4] ACPI: PCC: Free channel on OpRegion deactivation Sudeep Holla
2026-09-22 14:43 ` [PATCH v3 4/4] ACPI: PCC: Cache OpRegion command timeout Sudeep Holla
2026-09-25 16:19 ` [PATCH v3 0/4] ACPI/PCC: Correct PCC OperationRegion handling Rafael J. Wysocki (Intel)
2026-09-25 16:28   ` Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox