Received: by 10.213.65.68 with SMTP id h4csp408844imn; Fri, 16 Mar 2018 06:58:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELt/0F7WNgbD5QOzxYIb0iEAz2UrjXYKuYVsJE2Y9lqxuV4rFveprjersEWb2RqIKxbrLF4Z X-Received: by 10.98.212.80 with SMTP id u16mr1688006pfl.58.1521208735531; Fri, 16 Mar 2018 06:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521208735; cv=none; d=google.com; s=arc-20160816; b=z1YSFeigxtadvl7Ri6N3ypy4155pIClCrBBOCqhxO2EdIXhy5pqWcmKSDKge3gWyaD i/4Dk4roLljHnfY3ltRumW4jpG5YdMhtTLbV0BuCF9EGYexcPqTN/0dIN3yAXd+n9cwc ky23jAL/AfWdelh296IYPom/+ifINEEKTNmL2NzIrdYIhqAC4gelTN1iUHii+T8Lbt5g GKmAZGDtcgQ1VBfCjGOfSgfbigXk0NEqyHXz36JPAHewOtMneJA4SBPjS1PwdSl+MUD4 NSPWBHh3YSPOX6+AjjEM8dBZhFzVj+IxpLuxM/Ldjsh3HhlJvVWJAreNxfi6LgZ78/ce qPPA== 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=qBQR3fH/2A54bPZG+Z1HRpj1L5m96jBFw1fuetcZT9Y=; b=jAlnloPOq0d1mZlkslMUJj7KorQ2Zww4ktDktVMtWsqO0Fazi3suFTgur5EP4PcW1U oseqhCBWPlJvrMvQX6u8Rjhhsp4OevprwOmQtAbfglHqytYfUmUbwUaQqmq66ciraUk7 CfhPRQItfpkofD37J9Jaol3FWVqm5DyIxAeVpF7ttc4EReRVM6R7LUyApZp+MNkVM056 3PaxH09p4wmOyatwO4pMr4zttARCanAo/LKil5pJFn87rYhvW6wtxzL3l5QtXQO5n3sr 7NV4v99v8mttQZMXqScHxUW/BohnwPhyIhl50BmT5E2HJ4Mx+81rZ/RbKOE3siCkD+NH g4jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=dY4+UYNk; 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 s11-v6si6334248plj.701.2018.03.16.06.58.41; Fri, 16 Mar 2018 06:58:55 -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=dY4+UYNk; 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 S1751705AbeCPN5d (ORCPT + 99 others); Fri, 16 Mar 2018 09:57:33 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:41344 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbeCPN5a (ORCPT ); Fri, 16 Mar 2018 09:57:30 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2GDqKsB184425; Fri, 16 Mar 2018 13:57:20 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=qBQR3fH/2A54bPZG+Z1HRpj1L5m96jBFw1fuetcZT9Y=; b=dY4+UYNkzsl7XB4q3gwO+uqx+COn6PAJlTfSpCyVOnEWUwPwWz0i1xHzzdpcTAxxqbc0 pnES/eQG8sM6GKZ+Wut6Nx9hXTUqWn+vAQPit8DbPhXwc0hJT8skHIK8Yd96iJYRA+Ow 7OGOgiLqmxa6TW34NL1lw0DUTopbJCUvmqoF74FOqZrKTGlYK/bVu+WwQ5tjqmgDFOvZ w7ISnzzgXI+1VKKAKkL655R51zT66vXC6t0YA2QtNNyo0VEEtNkDhtzkkrkRtbWx0M3j nRcmzejTF0WlKp4AAbd/Z8iJYvrktglXGiYrQ4mcTlidThrXR0ik3SSflcHYWTosdxv9 /A== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2grf6j8104-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Mar 2018 13:57:20 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2GDvJjP028256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Mar 2018 13:57:19 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2GDvHbQ019612; Fri, 16 Mar 2018 13:57:18 GMT Received: from [10.175.213.213] (/10.175.213.213) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Mar 2018 06:57:17 -0700 Subject: Re: [PATCH v3] xen/acpi: upload _PSD info for non Dom0 CPUs too To: Boris Ostrovsky , linux-kernel@vger.kernel.org Cc: Juergen Gross , "Rafael J. Wysocki" , Len Brown , Robert Moore , Erik Schmauss , xen-devel@lists.xenproject.org, linux-acpi@vger.kernel.org, devel@acpica.org References: <20180315142205.15839-1-joao.m.martins@oracle.com> From: Joao Martins Message-ID: Date: Fri, 16 Mar 2018 13:57:13 +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=8833 signatures=668690 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-1803160153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Joao