Received: by 10.213.65.68 with SMTP id h4csp306508imn; Tue, 20 Mar 2018 04:10:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELsJceHW46bGHST1D2Wn49/O6U+r8pKhQHDFwyem0yaGAufDUq7S90shreOlcMFB2BLk28UV X-Received: by 2002:a17:902:529:: with SMTP id 38-v6mr16307324plf.64.1521544222213; Tue, 20 Mar 2018 04:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521544222; cv=none; d=google.com; s=arc-20160816; b=OUYPQXmSDNZ7Qvsymex53tIeZxbFPhOg8Km0jGxETdNz0jrSP5cXzQG7D0F831volI 4Mr3efqib37HaKNEFFcCgliQYs3n/LVGODJUNiuKAD5XCoR06drJRRNJ7FUf8Ei6y+8w eHbhxzdXecfLJSfw66TBH5y3RJ53cn33of/ZpmYQ+eM+eBiNSu4E6QL5BkFvF83RfPqv lyxd0eh35rXKI7dSXtul1qEdQPgYxzH5TNt0JCxjoT5F9z+9h/EV4iQJ7sCOMY76qpL+ 1YwWy/GQfkiVNsm1hMfyFr1mkQ43Zrs6LrDqE7cQdAZdJm1E0I6x/S24G0Sn0CA8fWlu pzDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject:dkim-signature:arc-authentication-results; bh=85P1yLJB3YJvvv5CNXQGcQqn0pTdmxOVJAa0reOqAzc=; b=Ezo4fkrLOvGZWDIvejT8UtcK1szirZ4RBAIUAZegAx7q/lzvLbLX4wzIuQ5S2e10UN pa/0rt9Dfq6x7Gg3xciZCjcqcELmLzFjYGOuh+sLPd0LJsGi+Ms298mqgK8wW848M0Gm acCm6QZPjLVMLhHQicYU8Eanvq87r0+OyRumYbDSSN/c5dc6t+Aak2KVMxkjdHcUdEEl dgMsP+SDuzuIRIiwHUr35HHGG/TWpkO2aHWO8BSTW5kO9eYULcBuLZoO6atCbzT3AqVZ kJr/uDjOXuXeHMmskevpcoG4SIv1DGus90gHUnojmaxR5k0TonrIFKSBilkVorsPQvbT veHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=G+Suc1nO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y21-v6si1405554pll.284.2018.03.20.04.10.08; Tue, 20 Mar 2018 04:10:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=G+Suc1nO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753013AbeCTLIP (ORCPT + 99 others); Tue, 20 Mar 2018 07:08:15 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:47246 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbeCTLIL (ORCPT ); Tue, 20 Mar 2018 07:08:11 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2KB39WA141633; Tue, 20 Mar 2018 11:07:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=85P1yLJB3YJvvv5CNXQGcQqn0pTdmxOVJAa0reOqAzc=; b=G+Suc1nOrznzOItMVoUhFwPzuPsTdy3ZISZGOReOoBByR10nsRT9jxFPgdmOH69eGsf/ vAumIij79/JgBAPuCjs1bwoEwl6auRfFtzCX4x3jUnPPaumrj2m/ddxMN2Vx83/NA3PT T+McSqcI60wvPbai2/P5VHKwxkrq1VOkcWo5srwL1G0iUMkz5nmCHNd+iqGOhgaOunE5 lyp3ztIMUQxpcAAJPG0pZrTB/ClHuYbtyftR/pYhp4PFCxY3Uyb/dPpNQmk8IRBfI/t/ KS6mfoqc7XZ9wW5jOkle17mBcK6/vc/Nuv6/vmqwtVedykPYE6mkK67uYZLNG9oUjd/Q MA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2gu0t28bjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 11:07:58 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2KB7vnW002483 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 11:07:57 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2KB7u9b008585; Tue, 20 Mar 2018 11:07:56 GMT Received: from [192.168.1.67] (/94.61.137.133) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Mar 2018 04:07:55 -0700 Subject: Re: [PATCH v3] xen/acpi: upload _PSD info for non Dom0 CPUs too To: "Rafael J. Wysocki" Cc: Boris Ostrovsky , Linux Kernel Mailing List , Juergen Gross , "Rafael J. Wysocki" , Len Brown , Robert Moore , Erik Schmauss , xen-devel@lists.xenproject.org, ACPI Devel Maling List , devel@acpica.org References: <20180315142205.15839-1-joao.m.martins@oracle.com> From: Joao Martins Message-ID: <5549560b-44ba-8063-de11-2e74b99a3e20@oracle.com> Date: Tue, 20 Mar 2018 11:07:51 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8837 signatures=668693 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/20/2018 09:41 AM, Rafael J. Wysocki wrote: > On Fri, Mar 16, 2018 at 2:57 PM, Joao Martins wrote: >> On 03/15/2018 03:45 PM, Boris Ostrovsky wrote: >>> On 03/15/2018 10:22 AM, Joao Martins wrote: >>>> All uploaded PM data from non-dom0 CPUs takes the info from vCPU 0 and >>>> changing only the acpi_id. For processors which P-state coordination type >>>> is HW_ALL (0xFD) it is OK to upload bogus P-state dependency information >>>> (_PSD), because Xen will ignore any cpufreq domains created for past CPUs. >>>> >>>> Albeit for platforms which expose coordination types as SW_ANY or SW_ALL, >>>> this will have some unintended side effects. Effectively, it will look at >>>> the P-state domain existence and *if it already exists* it will skip the >>>> acpi-cpufreq initialization and thus inherit the policy from the first CPU >>>> in the cpufreq domain. This will finally lead to the original cpu not >>>> changing target freq to P0 other than the first in the domain. Which will >>>> make turbo boost not getting enabled (e.g. for 'performance' governor) for >>>> all cpus. >>>> >>>> This patch fixes that, by also evaluating _PSD when we enumerate all ACPI >>>> processors and thus always uploading the correct info to Xen. We export >>>> acpi_processor_get_psd() for that this purpose, but change signature >>>> to not assume an existent of acpi_processor given that ACPI isn't creating >>>> an acpi_processor for non-dom0 CPUs. >>>> >>>> Signed-off-by: Joao Martins >>> >>> Reviewed-by: Boris Ostrovsky >>> >> Thanks! >> >> I suppose what's remaining is review (or ack) from ACPI folks on the interface >> changes made to acpi_processor_get_psd(). > > There you go: > > Acked-by: Rafael J. Wysocki > Thank you! > Do you want to route this via Xen? > I suppose that makes sense given that the majority of the change is on xen acpi processor. But it's ultimately Boris/Juergen call. Joao