From patchwork Mon Dec 21 00:29:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Lin X-Patchwork-Id: 11984037 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,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 1D7C2C43331 for ; Mon, 21 Dec 2020 00:30:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB2EF2343B for ; Mon, 21 Dec 2020 00:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727034AbgLUAaY (ORCPT ); Sun, 20 Dec 2020 19:30:24 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44295 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbgLUAaV (ORCPT ); Sun, 20 Dec 2020 19:30:21 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id F25345C0130; Sun, 20 Dec 2020 19:29:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 20 Dec 2020 19:29:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kdrag0n.dev; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=DywCLncDVnWCY z8TnEB38M0DsxPI5PKcpmKQY7KHOhM=; b=Bley0H6F8ibXAW3p8ZdvMrPDT8baL JHZel8n5CinkI8JhmC9N6JzqWYnjSXDJrogR1fQwvDB/Gnm5ufrK950fqw6JQ6Cf BZwQLuxLKHY3rlPS2V5RDY+r3jz8dIOvE5PrGHGsJ6iC4Djn4FiJ9KYvzN3VI3Ui Sb4P+xpRAyEAcbcjFe4o5IjCAvtlp94Ru/xhLUkjwFnp8jBRwbPUDr3MJ1LTbgXx G2VcZLfCZuwXz/EazC4riC0JX9S9j65PgCLhz5xg7o73IiQFGdOJj8OoRVstCnXS TKX3cWRcrzpS8jTk4UXTxXncGizwa/7T6VxT0XBe3Ytr0Ph1DlaXde1Ow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=DywCLncDVnWCYz8TnEB38M0DsxPI5PKcpmKQY7KHOhM=; b=JIzc3GlJ sdP33BCpKPG5vikmMGzsYI9E8JS2IBzUDENB5A5nIN2Hq3T+RH4jtFWMoA3Pe4Jg l9WC0OlTTLjlVKUMS5gY6Np/s72tzVaengAKM05qf1QNZLGNW3/sTUBAIrgRfocD HXdt0jtff0f+CtWX+voJQ9KQk5EbcRAAu2cfAbsYtMLn6jXJNRt6546Xq0MHzyzH W26DRG2TD6wl+l3HZlGQXoHeAxc3Rc0M8tMC8X+IpCp99rw/k9JC6B3ZAdpgK9pe hcnSxADmTTecW/4n0yV9arR/NwD0LfJdWVhrq7nXQtd+P3fVCPEKWCRul4a4dXLL 6BZMOhTGdAOKww== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtuddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne hmihhsshhinhhgucfvqfcufhhivghlugculdeftddmnegoteeftdduqddtudculdduhedm necujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeffrghnnh ihucfnihhnuceouggrnhhnhieskhgurhgrghdtnhdruggvvheqnecuggftrfgrthhtvghr nheptefghfehteeugefgueeviedutdduheetheeghfevjeelvefhgfetleduheduuedune cukfhppedutdegrddvtddtrdduvdelrddvuddvnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepuggrnhhnhieskhgurhgrghdtnhdruggvvh X-ME-Proxy: Received: from pinwheel.localdomain (unknown [104.200.129.212]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A5ED240057; Sun, 20 Dec 2020 19:29:29 -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/3] arm64: dts: qcom: sm8150: Define CPU topology Date: Sun, 20 Dec 2020 16:29:05 -0800 Message-Id: <20201221002907.2870059-2-danny@kdrag0n.dev> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201221002907.2870059-1-danny@kdrag0n.dev> References: <20201221002907.2870059-1-danny@kdrag0n.dev> 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 sm8150 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/sm8150.dtsi | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index b58cf1b8542c..75ed38ee5d88 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -160,6 +160,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 {