[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241205054252.471761-1-Penny.Zheng@amd.com>
Date: Thu, 5 Dec 2024 13:42:48 +0800
From: Penny Zheng <Penny.Zheng@....com>
To: Juergen Gross <jgross@...e.com>, Stefano Stabellini
<sstabellini@...nel.org>, Oleksandr Tyshchenko
<oleksandr_tyshchenko@...m.com>
CC: Ray Huang <Ray.Huang@....com>, Xenia Ragiadakou
<Xenia.Ragiadakou@....com>, Jason Andryuk <jason.andryuk@....com>, "Penny
Zheng" <Penny.Zheng@....com>, <xen-devel@...ts.xenproject.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH v2 0/4] xen/acpi: introduce cppc performance hypercall
When running as Xen dom0 PVH guest, MADT table is customized
and may have the "wrong" UID processor number, which is
inconsistent with the UID in Processor entry in native DSDT.
As a result, during ACPI boot-up for dom0, linux fails to set
up proper processor logical id <-> physical id map(acpi_map_cpuid).
Furthermore, It leads to that some ACPI processor feature capibility,
like per-cpu cpc_desc structure, failed to be correctly stored
and processed.
With upstreaming "amd-pstate CPU Performance Scaling Driver"(
https://lore.kernel.org/all/20241203081111.463400-1-Penny.Zheng@amd.com/)
to Xen community, amd-pstate driver is supported on Xen platform.
And as Xen is uncapable of parsing the ACPI dynamic table, like _CPC
entry, this patch serie introduces a new sub-hypercall XEN_PM_CPPC
to deliver CPPC performance capability data.
This patch serie is based on commit "xen/acpi: upload power and performance
related data from a PVH dom0"(
https://patchwork.kernel.org/project/xen-devel/patch/20241203225338.1336-1-jason.andryuk@amd.com/),
which is still under review.
v2 -> v1 :
- rebase to the latest v3 version of "xen/acpi: upload power and performance
related data from a PVH dom0"
Penny Zheng (3):
acpi/cppc: extract _cpc entry parsing logic
xen/cppc: get xen-required cppc perf caps data
xen/cppc: introduce cppc data upload sub-hypercall
Roger Pau Monne (1):
xen/acpi: upload power and performance related data from a PVH dom0
drivers/acpi/cppc_acpi.c | 204 +++++++++++++++-----
drivers/xen/pcpu.c | 3 +-
drivers/xen/xen-acpi-processor.c | 321 +++++++++++++++++++++++++++++--
include/acpi/cppc_acpi.h | 5 +
include/acpi/processor.h | 2 +
include/xen/interface/platform.h | 11 ++
include/xen/xen.h | 2 +-
7 files changed, 475 insertions(+), 73 deletions(-)
--
2.34.1
Powered by blists - more mailing lists