Received: by 10.223.185.111 with SMTP id b44csp278572wrg; Fri, 9 Mar 2018 04:57:57 -0800 (PST) X-Google-Smtp-Source: AG47ELuiOQKE61h0R9RrTjziVk4cBAz2IwbVxghzQfQ3iSD4E8hWLMR+3QAwdog2+oqRB5cjWtlj X-Received: by 10.98.215.81 with SMTP id v17mr8399147pfl.110.1520600277770; Fri, 09 Mar 2018 04:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520600277; cv=none; d=google.com; s=arc-20160816; b=u6PU9SuoDfMkFS5/BsESknCb17HjZ+yjJo1L4UW763G5sdRRALyfEygkdTJGHNO/QC yAlbtAzOO3Z1KfpQU2vjnUVvw5+pR8EAldiAyxbXs9JeMnDlM3zN0xK4j2kB467xrpTj XORgjbU3odWJLlhK7ya/tMfrZjwRGieiG9HEnTpF0LKaPXv+BnG+/t/z29oNg17O0Sci BibB6v/l36UXNO+6nu9d1s60kYYJoPxlWo0A4MdP0jn33G+BWom7aNQ4delLEueXCkFP BZi3Kz75FUbNujIIjwHoeqUgky8KeHVzYBrpH1xRfAqGk1dA2cdIPHBB02uVkPECxCg7 nioA== 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=Bst/N0BfJLRGMYMsOoRdHAY2L7ffRneZxSIJiwo5yFo=; b=P5G0JfGPaZVNHBYnmdALLATaN9O2WYYkRK/jqAtIcOfz6wGvFyPrzBcWU7lySYGKGL oHcvPhivq32mpQuC4UVZ4ohTauR4NnPJ/VNqAr24Peh+iMb95Ak4RWQK2khFtFa6XPDF YBoI/M/MU0vfYCwFJn27nzYUlxzAApgYzBs66USPu6oGcNs6p6aPGcZS1DJsl+jAje21 LyOxlxqeYRlIfrjI+8yI4mNjzpMjYFSkhYYe0OMoxqdKNWV6T9WbettXaXsfGxglLepO L2tLlQte6Es8oYY+8bDmjCAdQoJHp/aamKYqpwBh11FEMvP9Ahx7IYXme2Jirtr1q00n llwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=b3P63OpN; 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 m63-v6si835253pld.602.2018.03.09.04.57.43; Fri, 09 Mar 2018 04:57:57 -0800 (PST) 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=b3P63OpN; 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 S1751194AbeCIM4r (ORCPT + 99 others); Fri, 9 Mar 2018 07:56:47 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:38578 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbeCIM4p (ORCPT ); Fri, 9 Mar 2018 07:56:45 -0500 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 w29CqdY0017312; Fri, 9 Mar 2018 12:56:34 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=Bst/N0BfJLRGMYMsOoRdHAY2L7ffRneZxSIJiwo5yFo=; b=b3P63OpNsJ1Qe3LBMULMEs9Wn+4mcygywg6iGfKhGEqtCh2HcX4c14LqXzcT4+rQ6Nl9 WtSCi7rWKooLNWmxJxsw702eVr9Xl0F6R+gqjv+g6RkNW3UcwZIMBnsvhXIlwC2WQkWH GWH0ab8FM0wyOufIrQz0zg1fbNjxXCT7ysi5hOkomtx+OVHfKhgjCg4gOHiuP/rIKP75 30J1dMsTgZCjEWdOsO2xAH/sJROjjIKGFhMie9uSJwml4Wf0CsDOgCFbMaB1Jj7xeTdq bvMZQDGWafMUEfyPNrHAdI/dtZYdlj+xDmngro8stpcXxtWWW4YDJMTuSsrSjMm8ODxZ lw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2gkt8k8563-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Mar 2018 12:56:33 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w29CuXVQ011575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Mar 2018 12:56:33 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w29CuWHe008477; Fri, 9 Mar 2018 12:56:32 GMT Received: from [10.175.222.25] (/10.175.222.25) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Mar 2018 04:56:32 -0800 Subject: Re: [Xen-devel] [PATCH v2] xen/acpi: upload _PSD info for non Dom0 CPUs too To: Boris Ostrovsky Cc: linux-kernel@vger.kernel.org, Juergen Gross , "Rafael J. Wysocki" , Robert Moore , linux-acpi@vger.kernel.org, xen-devel@lists.xenproject.org, Len Brown , Erik Schmauss , devel@acpica.org References: <20180308105751.8176-1-joao.m.martins@oracle.com> <4f20689f-552f-b9eb-272d-0035ba2efdd6@oracle.com> From: Joao Martins Message-ID: <165abeed-3194-fe35-74f6-e2c68543c92c@oracle.com> Date: Fri, 9 Mar 2018 12:56:28 +0000 MIME-Version: 1.0 In-Reply-To: <4f20689f-552f-b9eb-272d-0035ba2efdd6@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8826 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=936 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803090165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/08/2018 10:33 PM, Boris Ostrovsky wrote: > On 03/08/2018 05:57 AM, Joao Martins wrote: > >> @@ -372,6 +376,15 @@ read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv) >> >> pr_debug("ACPI CPU%u w/ PBLK:0x%lx\n", acpi_id, (unsigned long)pblk); >> >> + /* It has P-state dependencies */ >> + if (!acpi_processor_get_psd(handle, &acpi_psd[acpi_id])) { >> + __set_bit(acpi_id, acpi_id_psd_present); >> + >> + pr_debug("ACPI CPU%u w/ PST:coord_type = %llu domain = %llu\n", >> + acpi_id, acpi_psd[acpi_id].coord_type, >> + acpi_psd[acpi_id].domain); >> + } > > > I should have noticed this earlier, but do you really need > acpi_id_psd_present? Can you just go by acpi_psd[i] != NULL? > Oh yes! I was trying to be consistent with the rest of the module, but we surely don't need that array of longs. Will respin after testing. > Sorry for missing it in the first patch. > Thanks for the feedback! > -boris > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xenproject.org > https://lists.xenproject.org/mailman/listinfo/xen-devel >