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

Re: [PATCH 2/4] x86/idle: Get PC{8..10} counters for Tiger and Alder Lake


  • To: Simon Gaiser <simon@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 18 Jul 2023 16:04:24 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=+25IvNh56WZG8jpnz8opXrTMLKi925FBHoqVUdLjewc=; b=QdZXU9kD2dTtkXKK4D6wcEszG9r4EogY5VCFF2xSHwm9886QD/w1mLZoF/MonFqBkCxR52yjYgaMTQ2PxmEidmkQef6PGpL0mNtelen5SIN0OUPro/5h19KQ9e0DpKBC4tBhpub5qSus9nW50u01xxULr35WKSiFc+B9AWpQIBOKV59h7w32k774jPQJ85F2EJ9lCcYT/fpoAVkt80nNYXvDtSNol9cvTmf+Ww9SsfzujFnk+rlZyJVzWQ3UQ1UZEu8pktOpwyEVDwVv1cfd2G0kvoWkFIfd8nkb70P+d7WLyUZxlYMP33bmv9fNl9c3kA2qgJA16X75YtskjIXM9g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hK27GhChaj5iEhVvr10kuQ7KrK2Lnpn3xn2DGa5xttbB61OzDmVSMUGVESk5rA588g1tpsYcGzOdw46ddN5sINtSqfL+vzrUYIGWVwVRXStyP6Mg8e4gCKtikq2ABqQii/30gaafRtnIbfQXp/obT1sI3vRzWrOSiZVaUsD7QxQtbqNhoOo/f+Bvd9SCp1shGOgXHV1OANMEhBkTw0Foty6VevOqKIO7s+yixknrr3A3lhSyc9K4tyEw9ioWGZp8/rl8+7/1vjLHbiSY/VjAJyDIsfoAvrVgjk4urE13qW4i/KeGHrhub57+gCEJJnth1H7ATp5RpTaZRPNS6AOsow==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 18 Jul 2023 14:04:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.07.2023 15:46, Simon Gaiser wrote:
> Jan Beulich:
>> On 18.07.2023 15:23, Simon Gaiser wrote:
>>> ---
>>>  xen/arch/x86/acpi/cpu_idle.c | 9 ++++++---
>>>  1 file changed, 6 insertions(+), 3 deletions(-)
>>
>> This lacks both S-o-b and a proper description. The latter in
>> particular because you ...
> 
> Yeah, I also noticed in the meantime, sorry. Will be fixed in v2.
> 
>>> --- a/xen/arch/x86/acpi/cpu_idle.c
>>> +++ b/xen/arch/x86/acpi/cpu_idle.c
>>> @@ -155,6 +155,12 @@ static void cf_check do_get_hw_residencies(void *arg)
>>>  
>>>      switch ( c->x86_model )
>>>      {
>>> +    /* Tiger Lake */
>>> +    case 0x8C:
>>> +    case 0x8D:
>>> +    /* Alder Lake */
>>> +    case 0x97:
>>> +    case 0x9A:
>>>      /* 4th generation Intel Core (Haswell) */
>>>      case 0x45:
>>>          GET_PC8_RES(hw_res->pc8);
>>> @@ -185,9 +191,6 @@ static void cf_check do_get_hw_residencies(void *arg)
>>>      case 0x6C:
>>>      case 0x7D:
>>>      case 0x7E:
>>> -    /* Tiger Lake */
>>> -    case 0x8C:
>>> -    case 0x8D:
>>>      /* Kaby Lake */
>>>      case 0x8E:
>>>      case 0x9E:
>>
>> ... don't just add new case labels, but you actually move two. It
>> wants explaining whether this was outright wrong, or what else
>> causes the movement.
> 
> Yes, as the commit message says it get those PC{8..10} counters for
> Tiger and Alder Lake.

But that's the problem - there was no commit message.

> The former already had a label, therefore the
> move. I assume that when Tiger Lake was added it was an oversight to not
> also read those package C-state counters.

Or the SDM wasn't clear, and we needed to err on the safe side.

Jan



 


Rackspace

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