Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp213141imm; Thu, 28 Jun 2018 18:24:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfeHLtVEjyeLEgHCRIYZVTHAyjL5ijhBZrKimE7wM5eizXgmbVSolsj96p9UR8snjBstrYm X-Received: by 2002:a17:902:6047:: with SMTP id a7-v6mr5112257plt.188.1530235471308; Thu, 28 Jun 2018 18:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530235471; cv=none; d=google.com; s=arc-20160816; b=g0MvruOgA+2cVCAePdl05SPhoQz522j/sm8tsjiwKjKiQNjocCrvl83cYCXVNegD2K lpnRkoNGOzx5+cb8HG72IHPrA2yJlJ2M41X249/VeJodgHgIkbD/Fh03eM9vvpzlOYi/ BXlwdg2l1wKtEY7kpZ0XrOQxzaGtj7UW2NrHK/BH+P47UlzPJu77EMIGhEDqlev6eKaV N6MqvP8j0HzEzw7k8X9JqntELGxUi5RcBQfp35s5PlTR7jhiXQ4BVlk+JJS/dQZELjPd 9JiicoZv5zFGJeFVAWrv96Cr/QHCwF0kuDd24Jmm2DvnVNfU/f5ZplGEp6T3ig5nkKOq ci/g== 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=IyvckB5d7vOAXvlAtPFL0KgTkRBsXYShe3Rnxp+V0zM=; b=0nIEyX2Bf9xGBskeiGRzl5rRuckpPI692FpSPAp9+nnISJggLqmCDarz/K7dZdORqZ iN6pRpi4V9J61iugte0vZtVIOBwAnu4+CfLpgvlGnlfT46etJ3XnXUt89nilQXLmtJen qZXCezJer1w5fP3d2/bNJdHFS+vW/XAjZ70W4L3234FM8KMVwtJDQvmETJ9dJmkpq+wL h6LXHeHG2ploDcSr1QdjX3LwoMhy8AIC634X0Maq54ehK2xrE2AXgAUEMZKttBiEtDyV ZtNxYJcACCZxv+iIEpM5xYd0Suo5T/QwEIL1i/CJbXi+r9iDV0yhzJp6rQokeiwcFAYJ lTeA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18-v6si4890323pfl.209.2018.06.28.18.24.17; Thu, 28 Jun 2018 18:24:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935684AbeF1Rcs (ORCPT + 99 others); Thu, 28 Jun 2018 13:32:48 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52684 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934583AbeF1Rcr (ORCPT ); Thu, 28 Jun 2018 13:32:47 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 191CA40255D7; Thu, 28 Jun 2018 17:32:47 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9C6FF21565E1; Thu, 28 Jun 2018 17:32:45 +0000 (UTC) Date: Thu, 28 Jun 2018 19:32:43 +0200 From: Andrew Jones To: Sudeep Holla 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 Subject: Re: [PATCH] arm64: acpi: reenumerate topology ids Message-ID: <20180628173243.obydzakh2stfs26w@kamzik.brq.redhat.com> References: <20180628145128.10057-1-drjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180622 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 28 Jun 2018 17:32:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 28 Jun 2018 17:32:47 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'drjones@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 28, 2018 at 05:30:51PM +0100, Sudeep Holla wrote: > I am not sure if we can ever guarantee that DT and ACPI will get the > same ids whatever counter we use as it depends on the order presented in > the firmware(DT or ACPI). So I am not for generating ids for core and > threads in that way. I don't believe we have to guarantee that the exact (package,core,thread) triplet describing a PE with DT matches ACPI. We just need to guarantee that each triplet we select properly puts a PE in the same group as its peers. So, as long as we keep the grouping described by DT or ACPI, then the (package,core,thread) IDs assigned are pretty arbitrary. I could change the commit message to state we can generate IDs *like* DT does (i.e. with counters), even if they may not result in identical triplet to PE mappings. > > So I would like to keep it simple and just have this counters for > package ids as demonstrated in Shunyong's patch. > If we don't also handle cores when there are threads, then the cores will also end up having weird IDs. Thanks, drew