[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v1 1/4] xen/acpi: upload power and performance related data from a PVH dom0


  • To: "Andryuk, Jason" <Jason.Andryuk@xxxxxxx>, Jürgen Groß <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Thu, 5 Dec 2024 05:24:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9QGzr0bpIIS6cGjua0AR48f45vIQxjwsO4CcqQH7VWU=; b=HP+oif/7ddYsdneV4cR/IJcOpGFOu16T2MdY7jxNgp+8fWk1a/EoXqQhMtCtNBcQDBsPSKnYE0LBZDXmsDps+47eeGuJ8zvXvcdYMU/3glgAWe/xcsZVh3C2Dc3ApnP0zCDOlHhpfY65GOkk7jDtFJb81mqCBwcq6taJMNFsZN03R8T0n6RIMwq+BTjQ/ndI23rONeXToj3R2hlbGnVf5UShc7mMfU5gYRMVz7WIZae0BTdiB8m+no7L6IOkRuY2VCFuskbJ5QYcDKgmeI9RRb/Jhvolce7+6qN8xlK99QtA8PZvNgpLMRDz5NP7oPihLTJ9Nzfdjv3kRSRlN5wwDw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dZrMNKeAbkh+Q5jfoKuWakCH1iZdTyFSOHuzXltULjcR9t1x7z8ErBLlsb5TttTYWo6wjycY1ZIoOI05RVqym2aw+hHyLr+EF9biLPW/p/ISKD7okc3ynVf5UJrDK49DDMm9VSY/u8IZb9T9tl9Z32LFSM8cbWERHWfJadoTXPW/bp415bsZKGTms4yVmGnMBpUsd1UhieJMNaMyud3qVzj5vvxiPnR/ulnKHaEY4oAmIVMhUf1uU0Ls4cCPMu36Q52+SGYey8YYcti7OtmZWH9nvcu1OO3t3bLuwpIMzWytgxXnQuOUCKn4cwGEUE4pt0MoRHLZIxwt0247qiQlhg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "Huang, Ray" <Ray.Huang@xxxxxxx>, "Ragiadakou, Xenia" <Xenia.Ragiadakou@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 05 Dec 2024 05:24:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ActionId=6ee03fae-d4d4-4996-ae84-4d17a9756712;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ContentBits=0;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Enabled=true;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Method=Standard;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Name=AMD Internal Distribution Only;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SetDate=2024-12-05T05:22:22Z;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;
  • Thread-index: AQHbRiYT0x98jyXl30G0kVQmyAsIc7LVwRsAgACzWQCAAKqSkA==
  • Thread-topic: [PATCH v1 1/4] xen/acpi: upload power and performance related data from a PVH dom0

[AMD Official Use Only - AMD Internal Distribution Only]

Hi,

> -----Original Message-----
> From: Jason Andryuk <jason.andryuk@xxxxxxx>
> Sent: Thursday, December 5, 2024 3:12 AM
> To: Jürgen Groß <jgross@xxxxxxxx>; Penny, Zheng <penny.zheng@xxxxxxx>;
> Stefano Stabellini <sstabellini@xxxxxxxxxx>; Oleksandr Tyshchenko
> <oleksandr_tyshchenko@xxxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Ragiadakou, Xenia
> <Xenia.Ragiadakou@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx; Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Subject: Re: [PATCH v1 1/4] xen/acpi: upload power and performance related 
> data
> from a PVH dom0
>
> On 2024-12-04 03:29, Jürgen Groß wrote:
> > On 04.12.24 09:24, Penny Zheng wrote:
> >> From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> >>
> >> When running as a PVH dom0 the ACPI MADT is crafted by Xen in order
> >> to report the correct numbers of vCPUs that dom0 has, so the host
> >> MADT is not provided to dom0.  This creates issues when parsing the
> >> power and performance related data from ACPI dynamic tables, as the
> >> ACPI Processor UIDs found on the dynamic code are likely to not match
> >> the ones crafted by Xen in the dom0 MADT.
> >>
> >> Xen would rely on Linux having filled at least the power and
> >> performance related data of the vCPUs on the system, and would clone
> >> that information in order to setup the remaining pCPUs on the system
> >> if dom0 vCPUs < pCPUs.  However when running as PVH dom0 it's likely
> >> that none of dom0 CPUs will have the power and performance data
> >> filled, and hence the Xen ACPI Processor driver needs to fetch that
> >> information by itself.
> >>
> >> In order to do so correctly, introduce a new helper to fetch the _CST
> >> data without taking into account the system capabilities from the
> >> CPUID output, as the capabilities reported to dom0 in CPUID might be
> >> different from the ones on the host.
> >>
> >> Note that the newly introduced code will only fetch the _CST, _PSS,
> >> _PPC and _PCT from a single CPU, and clone that information for all
> >> the other Processors.  This won't work on an heterogeneous system
> >> with Processors having different power and performance related data
> >> between them.
> >>
> >> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> >> Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
> >
> > I think this is the V2 version of Jason's patch, of which he sent V3
> > just yesterday?
>
> Penny's patch has some of the changes I made, but then I made an additional
> change and didn't tell her about it.
>
> > Please sync with him how to proceed: is his patch meant to be a
> > prerequisite for your series or a part of it?
>
> Sorry for the confusion.  Penny, I think you should just grab my v3
> (https://lore.kernel.org/xen-devel/20241203225338.1336-1-
> jason.andryuk@xxxxxxx/T/#u)
> and resubmit with that.  It removes a BUG_ON that checkpatch complained about
> (which is unreachable because of an earlier NULL check).
>

Sure, I'm downloading your version, and will rebase and push a new version here~

> Thanks,
> Jason

Mant thx,
Penny

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.