From patchwork Tue Jan 12 01:32:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Lin X-Patchwork-Id: 12012033 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 828B4C433DB for ; Tue, 12 Jan 2021 01:34:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FF0B22E02 for ; Tue, 12 Jan 2021 01:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729164AbhALBeD (ORCPT ); Mon, 11 Jan 2021 20:34:03 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44283 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729339AbhALBeD (ORCPT ); Mon, 11 Jan 2021 20:34:03 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id DC8305C0061; Mon, 11 Jan 2021 20:33:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 11 Jan 2021 20:33:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kdrag0n.dev; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=mtfFrTyX/+9/DrgMLh8qvL+wEV rs0MG0RhAVdwyXeYU=; b=55w/xXaLgK371x9biYT6Mxvj50mrS9X0+nMNgRH2Ca CD4SPXSmcaC6Xkvggp/aT2dWBbhGbw6+sXgqbGF/KiCbVze/JltAGc5c0EGFWb1K QpA8ijowwjclN3RPOWOWWFPvgNfeBpA8ckkVKAl5LfIBNDbfGd/QKIZDcprpXWIT Qa+HE+t9/4cx8Tm5Jumm5OosAXmV3Z3xpkU3uhMebXYVXQzQbAmf6+n4J15dCLnR 9YCbjsVTtDjEHaPAlTw+zK6NWLBI/hOuzGC1ldjdil2xPtJrWvP8KkbtqIT0kfUN pb6MvC8S2LLvntsbP31+DJ13SRPooU9yrHuDrmhcOhJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mtfFrTyX/+9/DrgML h8qvL+wEVrs0MG0RhAVdwyXeYU=; b=SqMFbxXOiV80g6KAHoPPdPSF0BZ4Tgyi2 07nGjXnE8UQyuKYczjnzWsUKyTsMdSBMuyr8kN/eBUw5sfsPQTmQbv3OJvblyYnm +ebFmzjSECxzk/4i75pbjsDxEKtSGNqHiMpXnQc8fsDH5/O7uAsI6lKIIv5EekqA 0QBpqAKhCWGELytNKzlBEj65lmzcHV3LdBpxBGMl2E4U0xx0xBW15wSjrpQCxcco RlkupeXndb28BXb9NUbYfKe/HC4ypr1A6O/LMH63qgDQERAwqiUiFOnMhlX3pBdP KIn9Q8DojRZSwDTffuwT8+XZXHcHukHbRkpigqKOmj5RrsAX1mMgA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehvddgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne hmihhsshhinhhgucfvqfcufhhivghlugculdeftddmnegoteeftdduqddtudculdduhedm necujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeffrghnnhihuc fnihhnuceouggrnhhnhieskhgurhgrghdtnhdruggvvheqnecuggftrfgrthhtvghrnhep hfeihffglefgudefvdduledvfedvfefgieeuueefgeetffdukeeghfevtdeifeetnecukf hppedutdegrddvtddtrdduvdelrddvuddvnecuufhprghmkfhppfgvthifohhrkhepuddt gedrvddttddruddvledrvdduvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegurghnnhihsehkughrrghgtdhnrdguvghv X-ME-Proxy: Received: from pinwheel.localdomain (unknown [104.200.129.212]) by mail.messagingengine.com (Postfix) with ESMTPA id 9C94D24005A; Mon, 11 Jan 2021 20:33:15 -0500 (EST) From: Danny Lin Cc: Danny Lin , Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8250: Define CPU topology Date: Mon, 11 Jan 2021 17:32:53 -0800 Message-Id: <20210112013255.415253-1-danny@kdrag0n.dev> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org sm8250 has a big.LITTLE CPU setup with DynamIQ, so all cores are within the same CPU cluster and LLC (Last-Level Cache) domain. Define this topology to help the scheduler make decisions. Signed-off-by: Danny Lin --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 65acd1f381eb..30ccadb753a5 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -199,6 +199,42 @@ L2_700: l2-cache { next-level-cache = <&L3_0>; }; }; + + cpu-map { + cluster0 { + core0 { + cpu = <&CPU0>; + }; + + core1 { + cpu = <&CPU1>; + }; + + core2 { + cpu = <&CPU2>; + }; + + core3 { + cpu = <&CPU3>; + }; + + core4 { + cpu = <&CPU4>; + }; + + core5 { + cpu = <&CPU5>; + }; + + core6 { + cpu = <&CPU6>; + }; + + core7 { + cpu = <&CPU7>; + }; + }; + }; }; firmware {