Received: by 10.223.185.116 with SMTP id b49csp149450wrg; Thu, 8 Mar 2018 14:35:42 -0800 (PST) X-Google-Smtp-Source: AG47ELu/5bhczqnT+FPaCPDmzXFHs+6IdXm19+kcZrcA6zgmXqC5jSeemdiifVGxZgxc1UzSGzWN X-Received: by 10.99.56.11 with SMTP id f11mr22629709pga.63.1520548542102; Thu, 08 Mar 2018 14:35:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520548542; cv=none; d=google.com; s=arc-20160816; b=oXSnrGhZLsKljYa6+0Mnj93BGfGrkGphpFAvW7WVMEyLDLOyqFc4XXJ0sMfgPdmX3z UlOwXz1KL0yYLmeMp6+cPOgjqnIWXSead0Za2C8NoJu30JSbZuJSFASHB/kW+jxfSELu PP4nfjJ14Uzcv18p5SDz1ynoluxyqY0kjvLZGcog11D3854Wj7pU8pExyQZgBGVtsYXS VNdDVlFb9q2gak/HiFfZq9rksazrVUwocE7DhDwcWM4HOSAKunew6ukSNr36qAWdbD6F 8y0LVAW4+YmMSbEz6msuluRQB4fKA359h9L978DA/xf2O6Ddp+XXCCk27pX37Y+16fez 0m6g== 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:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=3jju5INlH/sV3BQ8XYYMkiEm9pSq1E1/QrEuvdEp34U=; b=rCCD3Nr4cTuCfFKNxqeILu1t+dOxQMDiW67bISsVOdts7e3KGRZQyZPwN1eXEvLDNC DVoKwyci6ZMnJks5MxHjjwqZZal3m6y3Z+e9XwrRd2H2OY0AUtG9c5fmj0eSFLjn7FFn 0coCySoMiQxl+OuetVTJIx10rYrPOdYCCTez7mNdu+UX4WskvuI1o5+CZEHqh0WL1y75 1g8IDYzIYeG7kEMI3aXZWrD3qipJEeKzUyGgWehhC2Mtle7dnpMV34zj2FGE0BqbshX4 vDQfNnyX/j1i1cCz4lIw2HmlNSUm/t6H2YYcrlPKenKeZBWx1OrPt/iaRGd6vlY+pLnL DC5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=rvOwFGZ9; 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 h89si16638183pfa.182.2018.03.08.14.35.27; Thu, 08 Mar 2018 14:35:42 -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=rvOwFGZ9; 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 S1750897AbeCHWeZ (ORCPT + 99 others); Thu, 8 Mar 2018 17:34:25 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:55434 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbeCHWeX (ORCPT ); Thu, 8 Mar 2018 17:34:23 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w28MWQLw106734; Thu, 8 Mar 2018 22:34:10 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=3jju5INlH/sV3BQ8XYYMkiEm9pSq1E1/QrEuvdEp34U=; b=rvOwFGZ9DCsZ8xHt4ff2+KqP1a0X+xPNtsHc5fx7Rb4WHZEPxDAPFd2xk9SDvfGqr3ex EzvaGVx65wLlqm7elqQcWYzFjbyqJNt62TpgbzaR+8ScbVgieIzrgAZ5K139HifmyAiO vtu2LOqYrKXnJUeb2VhR0erTAzpTD3LIfB+JKNiJv+2ZB/f6H4KG9fLlyiKAdaECkNRV QHBUV8kV47kI/MOWXv5IGsaPomKVFQ7hgPDGMPNh6JDzXh7KK+Z8tJso9Z1JJxuWXRiW AZV/pspqsOYcrezA/euigQqzI2TSzU/u3jCc2bfXQgB+vYxDf5YVrp1d9asquqP8qGDY Eg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2gkdgug671-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 08 Mar 2018 22:34:10 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w28MY9jG008661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Mar 2018 22:34:09 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w28MY8cw025798; Thu, 8 Mar 2018 22:34:08 GMT Received: from [10.39.251.173] (/10.39.251.173) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 08 Mar 2018 14:34:08 -0800 Subject: Re: [Xen-devel] [PATCH v2] xen/acpi: upload _PSD info for non Dom0 CPUs too To: Joao Martins , linux-kernel@vger.kernel.org Cc: Juergen Gross , "Rafael J. Wysocki" , Robert Moore , linux-acpi@vger.kernel.org, xen-devel@lists.xenproject.org, devel@acpica.org, Erik Schmauss , Len Brown References: <20180308105751.8176-1-joao.m.martins@oracle.com> From: Boris Ostrovsky Message-ID: <4f20689f-552f-b9eb-272d-0035ba2efdd6@oracle.com> Date: Thu, 8 Mar 2018 17:33:56 -0500 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: <20180308105751.8176-1-joao.m.martins@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed 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=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=791 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803080243 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Sorry for missing it in the first patch. -boris