Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1035712imm; Fri, 29 Jun 2018 10:14:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKITF7TFYoYsh8pubAZ+2/L1a6UnEBtqe/hpY4Hi+xb8q8bXK/NHm9IAFKw+GI3h0mZZEDx1 X-Received: by 2002:a63:a119:: with SMTP id b25-v6mr13079080pgf.279.1530292487988; Fri, 29 Jun 2018 10:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530292487; cv=none; d=google.com; s=arc-20160816; b=jtMbvUWpJU3wdMNSF5LR1wvJXdlkb0CRv/YvxaxDH8IX3L3uj5EOW3fSWtsQ+PC7Aj HwckwV44hLikAuLtIExOrlcyGUaheMQsS6LhGRzy6+DZPsYfupmBRfpgfriwyj+isCJD N4koXa4O30lfIopYjB1KBCJ/+xKIg8Rvyr2h1NVAXuJOsM1dhj7KR4nx7NZytcooe4CY +X2auCfcoo31AoTAeNE08ABW8q2ThhOxK6J0qPfwQGWVK63aY0jf5k4F1HLDWXCmg9SQ D6eqSGEx0l57lv4xsuJGJp+LiItv+qLAKfo/ztFovFxqSXsvA/AYcel48u9QLYF3Z+LM bm6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=KOTvF5zwSLQqS+Nk+ok3kn0dWbPoJueug2M0jSzGuZI=; b=Cnc+fkEWzTpxO3MDZw6hlMbuGPCVWqH6G0hlYMiSeCc74uSG+CL9+u7P2GqagEKqaX mdyex02QULXQix6vFSp70HzYe8oYDriyeYTsnGO14nISIQbDnn35rzPWok/YSyvz7LLa IMqlDGGw2S8/RqF0z8co233IZdEh/PMeeDkxzk7qY1v3kZFMmcfR+q2pU9lhAJS+nc+T 22SuWp13DvIO691R4fOY89pr/oXdaUvHnVpWdTtSC7Ff8viadRy2Y4bcowecPPmBgxhy 0VIw0zGXuhUfR55zcgPdig7CC7xV0z52fdA48uIqLcOmG87unD/W7pCxLW0ez72jXirR pncQ== 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 w4-v6si8229801pgp.10.2018.06.29.10.14.33; Fri, 29 Jun 2018 10:14:47 -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 S936835AbeF2P4G (ORCPT + 99 others); Fri, 29 Jun 2018 11:56:06 -0400 Received: from foss.arm.com ([217.140.101.70]:36420 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936157AbeF2P4B (ORCPT ); Fri, 29 Jun 2018 11:56:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 267D218A; Fri, 29 Jun 2018 08:56:01 -0700 (PDT) Received: from e107155-lin (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5AADD3F5C0; Fri, 29 Jun 2018 08:55:59 -0700 (PDT) Date: Fri, 29 Jun 2018 16:55:56 +0100 From: Sudeep Holla To: Andrew Jones Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, ard.biesheuvel@linaro.org, shunyong.yang@hxt-semitech.com, yu.zheng@hxt-semitech.com, catalin.marinas@arm.com, will.deacon@arm.com, Sudeep Holla Subject: Re: [PATCH] arm64: acpi: reenumerate topology ids Message-ID: <20180629155556.GD16282@e107155-lin> References: <20180628145128.10057-1-drjones@redhat.com> <20180628173243.obydzakh2stfs26w@kamzik.brq.redhat.com> <20180629102927.GA18043@e107155-lin> <20180629112354.hefdl2pe72frl6x3@kamzik.brq.redhat.com> <20180629132934.GA16282@e107155-lin> <20180629154608.nqudibf54ti6dpjc@kamzik.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180629154608.nqudibf54ti6dpjc@kamzik.brq.redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 05:46:08PM +0200, Andrew Jones wrote: > On Fri, Jun 29, 2018 at 02:29:34PM +0100, Sudeep Holla wrote: [..] > > > > How is that different from OS generated one from user's perspective ? > > Vendors might assign sockets UID and he may help them to replace one. > > Having some generated counter based id is not helpful. > > I agree with this. It's a good argument for maintaining a mapping of > package-id to id-physically-printed-on-a-package somewhere. To avoid > maintaining a mapping it could just be stored directly in > cpu_topology[cpu].package_id, but then how can we tell the difference > between a valid printed-on-package-id and an ACPI offset? We'd still > have to maintain additional state to determine if it's valid or not, > so we could just maintain a mapping instead. > x86 may have a architectural way to obtain it and hence they don't need to rely on PPTT. But for ARM, we need to rely on PPTT for it and if vendors/users need accurate information, it has to come from PPTT and any other place is never going to be consistent and hence unusable. So, even though specification doesn't mandate, I think OS should as it's the only robust way. We can get the firmware fixed/updated if random unique number hurts. Firmware is not upgradeable is no longer a valid argument. -- Regards, Sudeep