Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp768750ybm; Tue, 21 May 2019 03:16:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqys20wjka80iv2MVsvd6du9i1n1k/x4jsVXfC1bk4MVVdsaRdr9SxParQmcI1qKn/a18ygI X-Received: by 2002:a63:a709:: with SMTP id d9mr12817174pgf.263.1558433811431; Tue, 21 May 2019 03:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558433811; cv=none; d=google.com; s=arc-20160816; b=UnwMKtVpozXb0FczblIsXabPCDY+3FalmTgscl6YzVHOzm+N96XY77jLgVmLtI1bh4 0mu3VS0K0Wfk+yOpjnOfZGYJtmmWiAT7rpIfClgweuA9ST9qZ8S732T+9KnphbaZs1/w l9DBINGFqfwNd87b2UJ9Zc/GKt3UKqXuGLRhYMnVwYDTHvi42mSEAx+xGwmvWx+oSBrj nbhMtZEEPyp+a/ENDZZIbJ/JGshyjWFn4knu2g8b9+Ho0hAuJMvh9C7/AGPHYhf8qPFI PQSE1TmU5vMPMr934Cifmo24J9mAZv/RiDI0CET6VYuk9PkMyUhut8revV0ekASIFZBm hE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3voex/jBEW9v9dc4oWg0TTQi5rLILcSF0U6L8KVM4UE=; b=mueWl7pI8Ggur8pw2IcSApD9AYeglS/c06ebENW3YQsVRABzkSG4kb4oHuh010fJTd SE/oIk2yzefFg/+mEUeObCktWMeJyHW2mEj3kl6LeyN/4XF4Q445GztW0S8If0vvDZfx Ae6fYZJVmzlVJrCJDwkEV2mdKya1CKU8l7uq1wYDhyhRizGuPEYT3/FbEnKZzY0Ojolu xCekmyIFXZC7KjdPrAoRs0X8kXAYEFMbcrh6EmlnetoBoeqzPz9yl/EuDJjls9ejrKA7 rfL1AjaJmoaNypS1Se1QXLyWB93S7DXeb2zDFVbLWrvZqRSqYL8D7LM3VbxpDEwYOY4v lrnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PIkr1V2Q; 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 f16si21253671plr.340.2019.05.21.03.16.36; Tue, 21 May 2019 03:16:51 -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=PIkr1V2Q; 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 S1727541AbfEUKOe (ORCPT + 99 others); Tue, 21 May 2019 06:14:34 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34157 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbfEUKOe (ORCPT ); Tue, 21 May 2019 06:14:34 -0400 Received: by mail-wm1-f67.google.com with SMTP id j187so1954190wma.1 for ; Tue, 21 May 2019 03:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3voex/jBEW9v9dc4oWg0TTQi5rLILcSF0U6L8KVM4UE=; b=PIkr1V2QTJYmRpwDqmjYbI060u3HF5TNMycLref/026rLmSbRIE7Ka3CfSC0T7nhMP 10OOJQR+wKMIaENtCO/He9lOoeuV1e7tS4/PJhUadKYY8cy4LqVtbdZoY3xnfvRV6exh q3WKxM1k+H5UeCAgy93LelnODqeoDVHq7C4BBV1n3d/nEsoXVFMIYX3lnI5LyY2fY9M2 ZnVmKYnuDFAxRTk+74a99dxd4+MLk6YTBY0J9yXVG3DCgKFXEOTJMhxwoRw5y781v4+l +I5uN3TJ7tbHnAo2YJx6a4UQftob+IwzxxhotKsYiuiqN3fsdtHC3aZuyGmOWNtC0Cw8 QnnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3voex/jBEW9v9dc4oWg0TTQi5rLILcSF0U6L8KVM4UE=; b=q8Pm7bVWqPk7C42i1u42Cx3t71rWjKRQixRckQym2uLBaSfIvnqHNUjkWf2OWr3xA8 CXnu9wJ9YtMLkZW/D8lLIvYENPtnyd4lJogdZid0g0/DgvE/JpbnSjtwBWt6qdaJNOSE ehICEMIa6w1/HfdiwIguIiZhNgg3hFEvbF6Wd2Dvr35hBANvgBIbAQLGxRHE3ifjREVo eUnQyuePb+jNv4J6u3chChtPZsYuGuw87frtjnTcbVZGYnGE+EVe9NWR/0A1OFKZRsKS 127cvwK3a1qJKGDtRdkTnGwKGfNJgGrueyli/eSqb06FpoEs7vylqfEQUpRLPvNlIrTB xqow== X-Gm-Message-State: APjAAAWXuLzsqO9XdRESWn7ULjbnlTzA7s3ecJ9FlP6uZqHPX+QUfHyc AYxYAZcy4D++zeAqe0F9dPXiDw== X-Received: by 2002:a7b:ca4c:: with SMTP id m12mr2717082wml.31.1558433671197; Tue, 21 May 2019 03:14:31 -0700 (PDT) Received: from [10.1.203.87] (nat-wifi.sssup.it. [193.205.81.22]) by smtp.googlemail.com with ESMTPSA id 20sm3441976wmj.36.2019.05.21.03.14.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 03:14:30 -0700 (PDT) Subject: Re: [PATCH v2 9/9] arm64: dts: msm8996: Add proper capacity scaling for the cpus To: Amit Kucheria , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, agross@kernel.org, niklas.cassel@linaro.org, marc.w.gonzalez@free.fr, sibis@codeaurora.org, Andy Gross , David Brown , Li Yang , Shawn Guo Cc: devicetree@vger.kernel.org References: <5224535a7ef5b257e3baa698991bf6deeefccc36.1558430617.git.amit.kucheria@linaro.org> From: Daniel Lezcano Message-ID: <6636af52-4f29-2869-7f9f-6d6277af6712@linaro.org> Date: Tue, 21 May 2019 12:14:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <5224535a7ef5b257e3baa698991bf6deeefccc36.1558430617.git.amit.kucheria@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/2019 11:35, Amit Kucheria wrote: > msm8996 features 4 cpus - 2 in each cluster. However, all cpus implement > the same microarchitecture and the two clusters only differ in the > maximum frequency attainable by the CPUs. > > Add capacity-dmips-mhz property to allow the topology code to determine > the actual capacity by taking into account the highest frequency for > each CPU. > > Signed-off-by: Amit Kucheria > Suggested-by: Daniel Lezcano Acked-by: Daniel Lezcano > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index 4f2fb7885f39..e0e8f30ce11a 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > @@ -96,6 +96,7 @@ > reg = <0x0 0x0>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SLEEP_0>; > + capacity-dmips-mhz = <1024>; > next-level-cache = <&L2_0>; > L2_0: l2-cache { > compatible = "cache"; > @@ -109,6 +110,7 @@ > reg = <0x0 0x1>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SLEEP_0>; > + capacity-dmips-mhz = <1024>; > next-level-cache = <&L2_0>; > }; > > @@ -118,6 +120,7 @@ > reg = <0x0 0x100>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SLEEP_0>; > + capacity-dmips-mhz = <1024>; > next-level-cache = <&L2_1>; > L2_1: l2-cache { > compatible = "cache"; > @@ -131,6 +134,7 @@ > reg = <0x0 0x101>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SLEEP_0>; > + capacity-dmips-mhz = <1024>; > next-level-cache = <&L2_1>; > }; > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog