Received: by 10.213.65.68 with SMTP id h4csp385413imn; Tue, 20 Mar 2018 05:57:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELsNksmQPS/go6v1QpJ0pwGp1lQqv8f94hH9zodAeNw6bKz3SMQhCY5EhFmQCNWu6a+Bi5/W X-Received: by 2002:a17:902:7102:: with SMTP id a2-v6mr16323851pll.87.1521550679048; Tue, 20 Mar 2018 05:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521550679; cv=none; d=google.com; s=arc-20160816; b=EcfcQanDKQHr036zJOS9Xd9shuTO6+lSBuFZ0O0mg51YOJ87zn3eGD+V+ns3+lqEKs qpZZo30gy0H14nd4ldf5Ht0hsM540DBZK1ZXE+YmB6CerH5YW7kSQLnd0geXhPHwIgJO TG3yA/rGfKRUdYmZb72l8+qHAgSxL3ZqxdsFwKbWCt3nIZty8si+KJPyoF/kIoOh6r5a i+PmQN9Q0lk5VP0k3gRmnksiE+Hu4ujrmkBOPyzqXeAHk3LbsErMz8F0WDYXMEnLLCQK mw4j40J5UG/LCOKW0WNjAdrVc/MIzEYSG+ZFjF8GbZv6bqkNaBusaW8RxrLss/tX5bDD FqWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=b1dF/rUOoTIh9PvjarQvpohLnJg1Dxopsz97+b1Tofo=; b=hIC4oKs8QcvNZrWG5idK5W/ZnnXacBggX3d1R6lUaNvX7MzBqyNuNaBirqtQgnz0XQ 8zKpuHhJos+zTVJCC3uOTiUI2rlAQgGjlJyPTAU2LA3+cYzDtpBf/yodkvRd4m2A/+ll rHaJz/NMapwnX/4NBYo7mVMMMCNnf/JL3w1GVr4F1ERxnzbqmbS3kZpRX9V7bRQ+oAvg UgpZ4ykmb7yq0m1hjAe0E2Q/RGX8Q10d047pSZ7NYeu/UHaZmIXfEmBtKpomt0viyUd9 pV7jWxzaxuXxSjxy+NEIYIOM0Pz9WGrjUrzzoZz4ZUQVbsXH3rG4Vj76mlxFrywM2g5T u1xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=n5o41ylB; 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 b94-v6si1556441pli.389.2018.03.20.05.57.43; Tue, 20 Mar 2018 05:57:59 -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=n5o41ylB; 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 S1753228AbeCTMzi (ORCPT + 99 others); Tue, 20 Mar 2018 08:55:38 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36302 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091AbeCTMzf (ORCPT ); Tue, 20 Mar 2018 08:55:35 -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 w2KClVVU036998; Tue, 20 Mar 2018 12:55:13 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=b1dF/rUOoTIh9PvjarQvpohLnJg1Dxopsz97+b1Tofo=; b=n5o41ylBUQXmMqAEvLyWN1g8dCb8ThaoXSivUHic0joHCmrs/3OW8SoEpGHrRzXsLiJO c0sF889F+qV3t/nquk53skvO0YQ++YuY2cktkIdl2vA4SylAXgO7+QufD+/mrKEUgwqI G5quIpm702uNpgjtVDTeEI8Do6R7fcg7tmDjs5QN3bjaLw1S7/z7YGRWqdsnvwK9tqOF BWTA7spSZtJTXaMXJQ6TwLVUsSLDQToR97dAH1Ohy/n5BPpCMM8g/AMRp4MmTvq0XZ05 W8MzNvvvESRc2JlnNkVhbLIoPxoDNAWMh/uFVMrXp+qRF8SJjj9st8BiVYw/6mFew3cq sg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2gu2m5013n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 12:55:13 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2KCtD4m021915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 12:55:13 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2KCtBOQ011732; Tue, 20 Mar 2018 12:55:12 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Mar 2018 05:55:11 -0700 Subject: Re: [PATCH v3] xen/acpi: upload _PSD info for non Dom0 CPUs too To: "Rafael J. Wysocki" , Joao Martins Cc: 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: Boris Ostrovsky Message-ID: <5561dd0a-2483-7084-ad88-f277473bd93f@oracle.com> Date: Tue, 20 Mar 2018 08:56:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8837 signatures=668693 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 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 05: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 > > Do you want to route this via Xen? Sure, I'll queue it for 4.17 Thanks. -boris