Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5120982yba; Mon, 13 May 2019 05:50:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhaLmsRmizlwnIwu/Ya0czi/XeQyKORY+1Stua7fVY5hHpZ/vL2GaZX70RV2jcIKZPWbpf X-Received: by 2002:a62:6f87:: with SMTP id k129mr32889661pfc.53.1557751804122; Mon, 13 May 2019 05:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557751804; cv=none; d=google.com; s=arc-20160816; b=x256Zd699hYNcupowT5AgUDRCYv4oRjcJ7OuSA1EfTtdQ+vYJkK1xObJxkUh5s/l2l QxLXNt4PEIMqw8fIuWe1nmNEJhtvb6+QKFx7EBRpWOchLXK72ACuR5miR9XKz7c3GX1q puU87mxnTLsnjhUnLjAAMauAKaTJOmoRuofHOLXyNp54IuXNJdXNRXWc/prWhyGi+TUI d7FZzZ70kOyWpg1C4d7yPJChPTNq7RgQgTwee7Ec8x8NTsFWByY7lNldQouDXDexE9YR NYdx9jSHDOA3J8RwIzzlLO05FYCPwN+zXiSuqCYvQ3iLzXd1Y8xN1BdLBYSviHjOquJL Miwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yyWZcQ9xuv1ePUmeginCRniFMdb4kDi9LqXon/ofAQQ=; b=DEFPqLvKHNiYHonGVSE2s/n6YsLcC92yrzkO9AkDrvy7JcVjUUD1L5z3PVtA+sBitL zcqUyp0KENSG+SKQ8AAxxgsn6BrI5SswL1BV2PDGvpabt7X2s5RBtkGfegaY0TQEp1ui rhGX6PX+o4xxG/PAgKlCBkw1JjYLVAjWmYYigaNuUPAFPPB9Ayh7jXTkMMxDuqPw83JV 8AXvHKZWkhMeiSL5BtTBSSRg2A0YWEjVraDCRsvST9QkhKwUWo2LmxLFwweaS0gPjs7I RakQCb74JE/JbJVXFFYOXDgEGH/ZFGFnIpwvN0jWE90HENmRinlfLtZw790ypiM7yI6+ 2UsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jXx8pNJk; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si15773020pgv.445.2019.05.13.05.49.47; Mon, 13 May 2019 05:50:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=jXx8pNJk; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729557AbfEMLyZ (ORCPT + 99 others); Mon, 13 May 2019 07:54:25 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:34113 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729548AbfEMLyZ (ORCPT ); Mon, 13 May 2019 07:54:25 -0400 Received: by mail-vs1-f65.google.com with SMTP id q64so7810334vsd.1 for ; Mon, 13 May 2019 04:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yyWZcQ9xuv1ePUmeginCRniFMdb4kDi9LqXon/ofAQQ=; b=jXx8pNJkE0BbTjzMl7ivd+4vUnwuWMZXoLK6dKwCD5Px7FRMEWcLN5UBHSs+iWUJFq NzWQIAGGOq2HyielWqQqbyC9NUXNi1TYrbMQ/wR45z5Jy5zwO0G7VznGT3+nejtB49+M 0FRchXIaofI7FZ911LZh7NxZNk+Ry4+UPlQk0x5UX4Botj5meRNgCts9JYBJx2TUha4F VwbZWM+Q4L1BNKyH2M1N1OabEDxPZYz9eQUXqvINeGa+9LIudp8X7+cpC+tKagpQ66yo 0wZNfw/YGz+ZaeN6/KeNasPFsGfzCDDv+5cCyZAeyg9d8c6w9ko2ys5YL/kyKJKSir/I VJwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yyWZcQ9xuv1ePUmeginCRniFMdb4kDi9LqXon/ofAQQ=; b=OnGWFKEbV0aSacZATkyr7aeF6gzLj/ZzavvezlnlrMjaLI04HuP8NX/RXkADfwZe7T xfulSja7uvI4wCosGnzwYftFSetGN6zGvkZVavQm09MZTnHcbCdEG+AvePPHagiu69xt /3RbGVwaULG4TQLWfKmWz4kUSelnMY3E3Y1AWO7ScZHfuf9JUQ5oZAHLjvZFYWCvsjX7 oYLbpFUvvENncBuh23jNHFM594by7EsuyY2Bn0UsocS30h1oyC1FQihLM4qP8PoQuFZu XY76Stbq5bttFcB517qWnflC6paY/kcUhiD/RnrmpcjlAcqr+3J3Yj2Y/51kjsZPMENq 2btA== X-Gm-Message-State: APjAAAX/SimmfRgVCPRKWzYZ3A0JRLk6e1xy5345M5V4lce6+UVXj+xP 2c2Nrb0QDt+JLM+eSkVGXVduIxZ7E/TUDiOW12MhhQ== X-Received: by 2002:a67:f34d:: with SMTP id p13mr11993272vsm.95.1557748463269; Mon, 13 May 2019 04:54:23 -0700 (PDT) MIME-Version: 1.0 References: <20190114184255.258318-1-mka@chromium.org> In-Reply-To: From: Amit Kucheria Date: Mon, 13 May 2019 17:24:12 +0530 Message-ID: Subject: Re: [PATCH] arm64: dts: sdm845: Add CPU topology To: Matthias Kaehlcke Cc: Andy Gross , David Brown , Rob Herring , Mark Rutland , linux-arm-msm , "open list:ARM/QUALCOMM SUPPORT" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Douglas Anderson , Rajendra Nayak Content-Type: multipart/mixed; boundary="000000000000cdd7180588c393b1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000cdd7180588c393b1 Content-Type: text/plain; charset="UTF-8" On Mon, May 13, 2019 at 4:31 PM Amit Kucheria wrote: > > On Tue, Jan 15, 2019 at 12:13 AM Matthias Kaehlcke wrote: > > > > The 8 CPU cores of the SDM845 are organized in two clusters of 4 big > > ("gold") and 4 little ("silver") cores. Add a cpu-map node to the DT > > that describes this topology. > > This is partly true. There are two groups of gold and silver cores, > but AFAICT they are in a single cluster, not two separate ones. SDM845 > is one of the early examples of ARM's Dynamiq architecture. > > > Signed-off-by: Matthias Kaehlcke > > I noticed that this patch sneaked through for this merge window but > perhaps we can whip up a quick fix for -rc2? > And please find attached a patch to fix this up. Andy, since this hasn't landed yet (can we still squash this into the original patch?), I couldn't add a Fixes tag. Regards, Amit > > --- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 38 ++++++++++++++++++++++++++++ > > 1 file changed, 38 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > index c27cbd3bcb0a6..f6c0d87e663f3 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > @@ -192,6 +192,44 @@ > > next-level-cache = <&L3_0>; > > }; > > }; > > + > > + cpu-map { > > + cluster0 { > > + core0 { > > + cpu = <&CPU0>; > > + }; > > + > > + core1 { > > + cpu = <&CPU1>; > > + }; > > + > > + core2 { > > + cpu = <&CPU2>; > > + }; > > + > > + core3 { > > + cpu = <&CPU3>; > > + }; > > + }; > > + > > + cluster1 { > > This shouldn't exist. > > > + core0 { > > Rename to core4, 5, etc... > > > + cpu = <&CPU4>; > > + }; > > + > > + core1 { > > + cpu = <&CPU5>; > > + }; > > + > > + core2 { > > + cpu = <&CPU6>; > > + }; > > + > > + core3 { > > + cpu = <&CPU7>; > > + }; > > + }; > > + }; > > }; > > > > pmu { > > -- > > 2.20.1.97.g81188d93c3-goog > > --000000000000cdd7180588c393b1 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-arm64-dts-sdm845-Fix-up-CPU-topology.patch" Content-Disposition: attachment; filename="0001-arm64-dts-sdm845-Fix-up-CPU-topology.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jvmb7ded0 RnJvbSA5ZTdkNjBiY2FiYWQ3NTk0YTFkYTQzOTgyYmJjOWZkYTA0NjY5NzE3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpNZXNzYWdlLUlkOiA8OWU3ZDYwYmNhYmFkNzU5NGExZGE0Mzk4MmJiYzlm ZGEwNDY2OTcxNy4xNTU3NzQ4NDM3LmdpdC5hbWl0Lmt1Y2hlcmlhQGxpbmFyby5vcmc+CkZyb206 IEFtaXQgS3VjaGVyaWEgPGFtaXQua3VjaGVyaWFAbGluYXJvLm9yZz4KRGF0ZTogTW9uLCAxMyBN YXkgMjAxOSAxNzowODozMyArMDUzMApTdWJqZWN0OiBbUEFUQ0hdIGFybTY0OiBkdHM6IHNkbTg0 NTogRml4IHVwIENQVSB0b3BvbG9neQoKU0RNODQ1IGltcGxlbWVudHMgQVJNJ3MgRHluYW1pcSBh cmNoaXRlY3R1cmUgdGhhdCBhbGxvd3MgdGhlIGJpZyBhbmQKTElUVExFIGNvcmVzIHRvIGV4aXN0 IGluIGEgc2luZ2xlIGNsdXN0ZXIgc2hhcmluZyB0aGUgTDMgY2FjaGUuCgpGaXggdGhlIGNwdS1t YXAgdG8gcHV0IGFsbCBjcHVzIGludG8gYSBzaW5nbGUgY2x1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