Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1815165ybb; Thu, 2 Apr 2020 07:53:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJRgO0Puy5A+JQWbaL3trFjSXWlHPOqqWtJpz58+GPJ1SVCbQ1Wf4wAnKMgZgQpW6TfXYu3 X-Received: by 2002:a9d:6e02:: with SMTP id e2mr2687690otr.317.1585839190043; Thu, 02 Apr 2020 07:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585839190; cv=none; d=google.com; s=arc-20160816; b=h8QVKzAeQzwebd3D2GmMuz19ndhuRKt7es9nF/WAJ4/WH66DpzNGq2bPdPpMgoiGdE UDpjDPA57/Z/jl9YqjzsP5U2wiGec2QlAtGYy4JyDEtq+Uy4/AWkP191K0blv8cZFQfT ejDNg4Li8BgMS1aNqnJUPfkEbT05vBz54F7f6J38mRciGnAeUhNxv2/kYnj/i3KtC3dn 3EyIdtWnbY+KC5ARbExrzV5r7HRAVZ8Mc3w6lJQA/Ll8xwkUzPRvrYFd8yRw0Bhpmzg3 7jl1chvQlQpaWGzvtnxxATPw/u+Fn9iD9+z99+TcjU2tL8Z404u5KxKbhQ4VOv6j7LW4 AkiA== 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; bh=JrHy6W1+jEl35w7TWzXzcIWJB65Yi4UCZfnSkHfKjLc=; b=ZnFfZGk1Alo44l/BvekSuAaNLEUcI4JlCNmYiP37k1wTUoW+Y4H1YV/tbye0LpHeMM ZNChBRGVO8sQQwjHcQrSnQTJguA9qL/TnYuCAn/MKRVElgujxkwMeqUN0WY6sZ6cDLr9 9UtL7EhN++kga+fGyzCFiKeFpbObNAKkJ+/133GLekLY0wTfOjGe4inFAZjQutnRzi3T M/OGEBz/hcupqkRZNSc4WUIdTTY7tYjyBAYjSswkonzEGmrZyre9O4w9Tpu9usExjIb0 jvfhaXBQd9d42PCzo876GgVK1lj6Z0SfWkHcAh1OxvNyNtKRy6hoXNLaGhRzgjSHp8nk mrlA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si2390822otl.298.2020.04.02.07.52.56; Thu, 02 Apr 2020 07:53:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388808AbgDBOwH (ORCPT + 99 others); Thu, 2 Apr 2020 10:52:07 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2632 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732598AbgDBOwH (ORCPT ); Thu, 2 Apr 2020 10:52:07 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 57434B94BE28AFBA3846; Thu, 2 Apr 2020 15:52:05 +0100 (IST) Received: from [127.0.0.1] (10.47.6.242) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Apr 2020 15:52:03 +0100 Subject: Re: [PATCH] ACPI: PPTT: Inform user that table offset used for Physical processor node ID To: Jeremy Linton , , CC: , , , , References: <1585830145-208714-1-git-send-email-john.garry@huawei.com> <89f68a3c-264a-5d1b-e63a-d1147ea07320@arm.com> From: John Garry Message-ID: <0244dcc3-6006-2a67-e861-d2bcce4360f6@huawei.com> Date: Thu, 2 Apr 2020 15:51:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <89f68a3c-264a-5d1b-e63a-d1147ea07320@arm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.47.6.242] X-ClientProxiedBy: lhreml729-chm.china.huawei.com (10.201.108.80) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/2020 14:55, Jeremy Linton wrote: > Hi, > > On 4/2/20 7:22 AM, John Garry wrote: >> If the the Processor ID valid is not set for a Physical Processor Package >> node, then the node table offset is used as a substitute. As such, we >> may get info like this from sysfs: >> >> root@(none)$ pwd >> /sys/devices/system/cpu/cpu0/topology >> root@(none)$ more physical_package_id >> 56 >> >> Inform the user of this in the bootlog, as it is much less than ideal, >> and >> they can remedy this in their FW. >> >> This topic was originally discussed in: >> https://lore.kernel.org/linux-acpi/c325cfe2-7dbf-e341-7f0f-081b6545e890@huawei.com/T/#m0ec18637d8586f832084a8a6af22580e6174669a >> >> >> Signed-off-by: John Garry >> >> diff --git a/drivers/acpi/pptt.c b/drivers/acpi/pptt.c >> index 4ae93350b70d..b4ed3c818e00 100644 >> --- a/drivers/acpi/pptt.c >> +++ b/drivers/acpi/pptt.c >> @@ -515,6 +515,8 @@ static int topology_get_acpi_cpu_tag(struct >> acpi_table_header *table, >>           if (level == 0 || >>               cpu_node->flags & ACPI_PPTT_ACPI_PROCESSOR_ID_VALID) >>               return cpu_node->acpi_processor_id; >> +        if (level == PPTT_ABORT_PACKAGE) >> +            pr_notice_once("Physical package node Processor ID valid >> not set, will use table offset as substitute\n"); Hi Jeremy, > > What happens in the find_acpi_cpu_topology_hetro_id() case, if the last > IDENTICAL node isn't a socket/etc. Are we expecting to warn of a missing > processor container there as well? ok, I could just use this then: if (flags & ACPI_PPTT_PHYSCIAL_PACKAGE) pr_notice_once("Physical package node Processor ID ...") As I recall, this tag for hetro id is not exposed to userspace (yet). Thanks, John