[{"id":1760469,"web_url":"http://patchwork.ozlabs.org/comment/1760469/","msgid":"<20170830202650.mdlxy2c3uwuq5vde@kozik-lap>","list_archive_url":null,"date":"2017-08-30T20:26:50","subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","submitter":{"id":68952,"url":"http://patchwork.ozlabs.org/api/people/68952/","name":"Krzysztof Kozlowski","email":"krzk@kernel.org"},"content":"On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote:\n> The following 'capacity-dmips-mhz' dt property values are used:\n> \n> Cortex-A15: 1024, Cortex-A7: 539\n> \n> They have been derived from the cpu_efficiency values:\n> \n> Cortex-A15: 3891, Cortex-A7: 2048\n> \n> by scaling them so that the Cortex-A15s (big cores) use 1024.\n> \n> The cpu_efficiency values were originally derived from the \"Big.LITTLE\n> Processing with ARM Cortex™-A15 & Cortex-A7\" white paper\n> (http://www.cl.cam.ac.uk/~rdm34/big.LITTLE.pdf). Table 1 lists 1.9x\n> (3891/2048) as the Cortex-A15 vs Cortex-A7 performance ratio for the\n> Dhrystone benchmark.\n> \n> The following platforms are affected once cpu-invariant accounting\n> support is re-connected to the task scheduler:\n> \n> arndale-octa, peach-pi, peach-pit, smdk5420\n> \n> The patch has been tested on Samsung Chromebook 2 13\" (peach-pi, Exynos\n> 5800).\n> \n> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n> 1024\n> 1024\n> 1024\n> 1024\n> 389\n> 389\n> 389\n> 389\n\nI am missing something... shouldn't this be 539? Or is it scaled with\nthe clock-frequency (1 GHz) value?\n\n\nBest regards,\nKrzysztof\n\n\n> \n> The Cortex-A15 vs Cortex-A7 performance ratio is 1024/389 = 2.63.\n> \n> The values derived with the 'cpu_efficiency/clock-frequency dt property'\n> solution are:\n> \n> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n> 1535\n> 1535\n> 1535\n> 1535\n> 448\n> 448\n> 448\n> 448\n> \n> The Cortex-A15 vs Cortex-A7 performance ratio is 1535/448 = 3.43.\n> \n> The discrepancy between 2.63 and 3.43 is due to the false assumption\n> when using the 'cpu_efficiency/clock-frequency dt property' solution\n> that the max cpu frequency of the little cpus is 1 GHZ and not 1.3 GHz.\n> The Cortex-A7 cluster runs with a max cpu frequency of 1.3 GHZ whereas\n> the 'clock-frequency' property value is set to 1 GHz.\n> \n> 3.43/1.3 = 2.64\n> \n> $ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq\n> 1800000\n> 1800000\n> 1800000\n> 1800000\n> 1300000 <-- max cpu frequency of the Cortex-A7s (little cores)\n> 1300000\n> 1300000\n> 1300000\n> \n> Running another benchmark (single-threaded sysbench affine to the\n> individual cpus) with performance cpufreq governor on the Samsung\n> Chromebook 2 13\" showed the following numbers:\n> \n> $ for i in `seq 0 7`; do taskset -c $i sysbench --test=cpu\n>   --num-threads=1 --max-time=10 run | grep \"total number of events:\";\n>   done\n> \n> total number of events: 1083\n> total number of events: 1085\n> total number of events: 1085\n> total number of events: 1085\n> total number of events: 454\n> total number of events: 454\n> total number of events: 454\n> total number of events: 454\n> \n> The Cortex-A15 vs Cortex-A7 performance ratio is 2.39, i.e. very close\n> to the one derived from the Dhrystone based one of the \"Big.LITTLE\n> Processing with ARM Cortex™-A15 & Cortex-A7\" white paper (2.63).\n> \n> We don't aim for exact values for the cpu capacity values. Besides the\n> CPI (Cycles Per Instruction), the instruction mix and whether the system\n> runs cpu-bound or memory-bound has an impact on the cpu capacity values\n> derived from these benchmark results.\n> \n> Cc: Rob Herring <robh+dt@kernel.org>\n> Cc: Mark Rutland <mark.rutland@arm.com>\n> Cc: Russell King <linux@armlinux.org.uk>\n> Cc: Kukjin Kim <kgene@kernel.org>\n> Cc: Krzysztof Kozlowski <krzk@kernel.org>\n> Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>\n> ---\n>  arch/arm/boot/dts/exynos5420-cpus.dtsi | 8 ++++++++\n>  1 file changed, 8 insertions(+)\n> \n> diff --git a/arch/arm/boot/dts/exynos5420-cpus.dtsi b/arch/arm/boot/dts/exynos5420-cpus.dtsi\n> index 5c052d7ff554..d7d703aa1699 100644\n> --- a/arch/arm/boot/dts/exynos5420-cpus.dtsi\n> +++ b/arch/arm/boot/dts/exynos5420-cpus.dtsi\n> @@ -36,6 +36,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <11>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <1024>;\n>  \t\t};\n>  \n>  \t\tcpu1: cpu@1 {\n> @@ -48,6 +49,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <11>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <1024>;\n>  \t\t};\n>  \n>  \t\tcpu2: cpu@2 {\n> @@ -60,6 +62,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <11>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <1024>;\n>  \t\t};\n>  \n>  \t\tcpu3: cpu@3 {\n> @@ -72,6 +75,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <11>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <1024>;\n>  \t\t};\n>  \n>  \t\tcpu4: cpu@100 {\n> @@ -85,6 +89,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <7>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <539>;\n>  \t\t};\n>  \n>  \t\tcpu5: cpu@101 {\n> @@ -97,6 +102,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <7>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <539>;\n>  \t\t};\n>  \n>  \t\tcpu6: cpu@102 {\n> @@ -109,6 +115,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <7>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <539>;\n>  \t\t};\n>  \n>  \t\tcpu7: cpu@103 {\n> @@ -121,6 +128,7 @@\n>  \t\t\tcooling-min-level = <0>;\n>  \t\t\tcooling-max-level = <7>;\n>  \t\t\t#cooling-cells = <2>; /* min followed by max */\n> +\t\t\tcapacity-dmips-mhz = <539>;\n>  \t\t};\n>  \t};\n>  };\n> -- \n> 2.11.0\n>","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"JoUPwTnK\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjH9v525Qz9sNw\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 06:27:31 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn9aC-00029N-FK; Wed, 30 Aug 2017 20:27:28 +0000","from mail-pg0-f43.google.com ([74.125.83.43])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn9a8-00026R-Su for linux-arm-kernel@lists.infradead.org;\n\tWed, 30 Aug 2017 20:27:27 +0000","by mail-pg0-f43.google.com with SMTP id t3so22965260pgt.0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 30 Aug 2017 13:27:04 -0700 (PDT)","from kozik-lap ([185.13.106.193])\n\tby smtp.googlemail.com with ESMTPSA id\n\ts1sm4492312pfk.21.2017.08.30.13.26.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 30 Aug 2017 13:27:02 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=CpJeJE1GqA709/s9Y6BGzAzZBoAXkUQijQaXwi2lIN8=;\n\tb=JoUPwTnKgcKgrC\n\tmgNSXiPVt5CV0iwdEy+8FPFGEKkAV0N6sSsbLz+GFeFORtHx2QZVXo4upCSH4jy1aETXUsHocXjAi\n\tr88LmK23YlTQlkF6FY9Svy4nRIL16jVjUURPcyPBspNbAlFKEJKr4jDneS1oAIYhR5NvE0uw5YSHo\n\tNhJEMZ5OijzUAyUaVQ2CILIAlUKGeh9lwqOzrbQw2kFKef5yw1ypsRtkxTAtaNoXkUw5Mxk3Ubgqj\n\tThi7K3AXfZ+MwTkMSkREAwn62cX708c2PeTm50dRIGwlZQTw8aYqTwCsCQ6ol/hr3G5FRtb4gnKXP\n\tDgWcHamBs/IVCUxtKA3A==;","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:content-transfer-encoding\n\t:in-reply-to:user-agent;\n\tbh=FHNePBSxmNGza2y+fODRwMhIGHqZyyPRqCygy7ARlQs=;\n\tb=CFJ1JLiLaEmdUgd7tvuc+rMhcmvbLNQQJyt0rS5j5bTiYnGi5Xnh+KtjyfyFjaahqT\n\toraiPxWsxh9VgKI0evW2YtgbMsETmXRMBdc0d3EYOafMB0H8TRD75Wy7YuDjNwPFRjDV\n\tekmS0Wb9c4SCDZT8PpdWk6MN8c6inpm/ibW80lDiPeYpnEMfFiBo7qfs96nBoqYPTiEZ\n\t5gHegdck8BcyQV2aTK1aysrTFMOAlVAPRijamf2rkPUDAEpnMZNI4ax7V/bCr7p3LdYi\n\ti9z+x9YgnsaHRmIiIerIJ/RZtu+z06ao4MuinDShqmyZ9A57dkDzOqse2n/S8i8qsypa\n\t3AFg==","X-Gm-Message-State":"AHYfb5iX4TKY9UTiOYmbyp0VLHLhIzAxv+HFy7ix0W8pMff/SbkMvN9z\n\tFfptZwyDdwYL01tgoJ4=","X-Received":"by 10.84.224.10 with SMTP id r10mr3424058plj.149.1504124823402; \n\tWed, 30 Aug 2017 13:27:03 -0700 (PDT)","Date":"Wed, 30 Aug 2017 22:26:50 +0200","From":"Krzysztof Kozlowski <krzk@kernel.org>","To":"Dietmar Eggemann <dietmar.eggemann@arm.com>","Subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","Message-ID":"<20170830202650.mdlxy2c3uwuq5vde@kozik-lap>","References":"<20170830144120.9312-1-dietmar.eggemann@arm.com>\n\t<20170830144120.9312-3-dietmar.eggemann@arm.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170830144120.9312-3-dietmar.eggemann@arm.com>","User-Agent":"NeoMutt/20170113 (1.7.2)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_132724_976169_DC8EAD43 ","X-CRM114-Status":"GOOD (  18.34  )","X-Spam-Score":"-4.0 (----)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-4.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t0.5 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source\n\t[74.125.83.43 listed in dnsbl.sorbs.net]\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [74.125.83.43 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (k.kozlowski.k[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-2.8 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)\n\t[74.125.83.43 listed in wl.mailspike.net]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org,\n\tlinux-samsung-soc@vger.kernel.org,\n\tVincent Guittot <vincent.guittot@linaro.org>,\n\tJuri Lelli <juri.lelli@arm.com>, \n\tlinux-kernel@vger.kernel.org, Russell King <linux@armlinux.org.uk>,\n\tlinux-renesas-soc@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, \n\tKukjin Kim <kgene@kernel.org>, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1760821,"web_url":"http://patchwork.ozlabs.org/comment/1760821/","msgid":"<94c1d6c6-655a-2a63-1f01-06ac45990388@arm.com>","list_archive_url":null,"date":"2017-08-31T10:36:07","subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","submitter":{"id":64545,"url":"http://patchwork.ozlabs.org/api/people/64545/","name":"Dietmar Eggemann","email":"dietmar.eggemann@arm.com"},"content":"On 30/08/17 21:26, Krzysztof Kozlowski wrote:\n> On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote:\n>> The following 'capacity-dmips-mhz' dt property values are used:\n>>\n>> Cortex-A15: 1024, Cortex-A7: 539\n>>\n>> They have been derived from the cpu_efficiency values:\n>>\n>> Cortex-A15: 3891, Cortex-A7: 2048\n>>\n>> by scaling them so that the Cortex-A15s (big cores) use 1024.\n>>\n>> The cpu_efficiency values were originally derived from the \"Big.LITTLE\n>> Processing with ARM Cortex™-A15 & Cortex-A7\" white paper\n>> (http://www.cl.cam.ac.uk/~rdm34/big.LITTLE.pdf). Table 1 lists 1.9x\n>> (3891/2048) as the Cortex-A15 vs Cortex-A7 performance ratio for the\n>> Dhrystone benchmark.\n>>\n>> The following platforms are affected once cpu-invariant accounting\n>> support is re-connected to the task scheduler:\n>>\n>> arndale-octa, peach-pi, peach-pit, smdk5420\n>>\n>> The patch has been tested on Samsung Chromebook 2 13\" (peach-pi, Exynos\n>> 5800).\n>>\n>> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n>> 1024\n>> 1024\n>> 1024\n>> 1024\n>> 389\n>> 389\n>> 389\n>> 389\n> \n> I am missing something... shouldn't this be 539? Or is it scaled with\n> the clock-frequency (1 GHz) value?\n\nYeah, the capacity-dmips-mhz dt value of 539 for the little cpus is\nscaled by 1.3/1.8 (max cpu capacity/ system wide max cpu capacity):\n\n539 * 1.3/1.8 = 389\n\nThis max cpu capacity scaling is part of both solutions, the 'cpu\ncapacity-dmips-mhz' and the 'cpu_efficiency/clock-frequency dt property'\none.\n\nThe (original*) cpu capacity on a heterogeneous platform expresses uArch\nand max cpu frequency differences between the (logical) cpus of the\nsystem.\n\n* not further reduced by rt and/or irq pressure.\n\n[...]","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"PmD0QiBf\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjf1f2TG4z9s2G\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 20:36:38 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnMpu-0004O5-B9; Thu, 31 Aug 2017 10:36:34 +0000","from foss.arm.com ([217.140.101.70])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnMpr-0004MD-1g for linux-arm-kernel@lists.infradead.org;\n\tThu, 31 Aug 2017 10:36:32 +0000","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D970880D;\n\tThu, 31 Aug 2017 03:36:10 -0700 (PDT)","from [10.1.210.41] (e107985-lin.cambridge.arm.com [10.1.210.41])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\tCA43B3F58F; Thu, 31 Aug 2017 03:36:08 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:\n\tMessage-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description\n\t:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=3Sr2/i+3ppZto2m3ywD1eGsHLhkmCUKCWDWtadTPzLw=;\n\tb=PmD0QiBfYJqtOd\n\thz/+TnVvfTv7gPcb55cEaL+rx+Lltd+cVlyL9VZz/m4CbxEIww20Vg71Z3+agO3oX2pVt6k+W1sGR\n\tlsjbLCAUq6JI2b8/S7tgwuCUG6zOVVWrDNTtdtylLPyjxgyVX0m/KzZDo0l+SBeuzkRskDOhoajl2\n\tjuE46BRmtEGDY2aoFIqbmXociFfvvG+sxiT9zMWGi9B7FJbtWym4hyj7wS/UVQ7EEDc3MSftMQl4g\n\tdg/nnyldyqVRaotUWiGHyBKSpzRCvdktfWW1VrKan743tnQol2rURsBB/QhBP76M+VHvTN1T1yGAt\n\t7cClAjctIK+en47+1Syw==;","Subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","To":"Krzysztof Kozlowski <krzk@kernel.org>","References":"<20170830144120.9312-1-dietmar.eggemann@arm.com>\n\t<20170830144120.9312-3-dietmar.eggemann@arm.com>\n\t<20170830202650.mdlxy2c3uwuq5vde@kozik-lap>","From":"Dietmar Eggemann <dietmar.eggemann@arm.com>","Message-ID":"<94c1d6c6-655a-2a63-1f01-06ac45990388@arm.com>","Date":"Thu, 31 Aug 2017 11:36:07 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<20170830202650.mdlxy2c3uwuq5vde@kozik-lap>","Content-Language":"en-GB","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170831_033631_110394_2671793E ","X-CRM114-Status":"GOOD (  10.09  )","X-Spam-Score":"-6.9 (------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org,\n\tlinux-samsung-soc@vger.kernel.org,\n\tVincent Guittot <vincent.guittot@linaro.org>,\n\tJuri Lelli <juri.lelli@arm.com>, \n\tlinux-kernel@vger.kernel.org, Russell King <linux@armlinux.org.uk>,\n\tlinux-renesas-soc@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, \n\tKukjin Kim <kgene@kernel.org>, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1762328,"web_url":"http://patchwork.ozlabs.org/comment/1762328/","msgid":"<20170903195614.iwe7v6g3xsg7p6nf@kozik-lap>","list_archive_url":null,"date":"2017-09-03T19:56:14","subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","submitter":{"id":68952,"url":"http://patchwork.ozlabs.org/api/people/68952/","name":"Krzysztof Kozlowski","email":"krzk@kernel.org"},"content":"On Thu, Aug 31, 2017 at 11:36:07AM +0100, Dietmar Eggemann wrote:\n> On 30/08/17 21:26, Krzysztof Kozlowski wrote:\n> > On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote:\n> >> The following 'capacity-dmips-mhz' dt property values are used:\n> >>\n> >> Cortex-A15: 1024, Cortex-A7: 539\n> >>\n> >> They have been derived from the cpu_efficiency values:\n> >>\n> >> Cortex-A15: 3891, Cortex-A7: 2048\n> >>\n> >> by scaling them so that the Cortex-A15s (big cores) use 1024.\n> >>\n> >> The cpu_efficiency values were originally derived from the \"Big.LITTLE\n> >> Processing with ARM Cortex™-A15 & Cortex-A7\" white paper\n> >> (http://www.cl.cam.ac.uk/~rdm34/big.LITTLE.pdf). Table 1 lists 1.9x\n> >> (3891/2048) as the Cortex-A15 vs Cortex-A7 performance ratio for the\n> >> Dhrystone benchmark.\n> >>\n> >> The following platforms are affected once cpu-invariant accounting\n> >> support is re-connected to the task scheduler:\n> >>\n> >> arndale-octa, peach-pi, peach-pit, smdk5420\n> >>\n> >> The patch has been tested on Samsung Chromebook 2 13\" (peach-pi, Exynos\n> >> 5800).\n> >>\n> >> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n> >> 1024\n> >> 1024\n> >> 1024\n> >> 1024\n> >> 389\n> >> 389\n> >> 389\n> >> 389\n> > \n> > I am missing something... shouldn't this be 539? Or is it scaled with\n> > the clock-frequency (1 GHz) value?\n> \n> Yeah, the capacity-dmips-mhz dt value of 539 for the little cpus is\n> scaled by 1.3/1.8 (max cpu capacity/ system wide max cpu capacity):\n> \n> 539 * 1.3/1.8 = 389\n> \n> This max cpu capacity scaling is part of both solutions, the 'cpu\n> capacity-dmips-mhz' and the 'cpu_efficiency/clock-frequency dt property'\n> one.\n> \n> The (original*) cpu capacity on a heterogeneous platform expresses uArch\n> and max cpu frequency differences between the (logical) cpus of the\n> system.\n> \n> * not further reduced by rt and/or irq pressure.\n> \n> [...]\n\nThanks for explanation, looks fine for me. I'll take it after merge\nwindow.\n\nBest regards,\nKrzysztof","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"UqzZZ/rG\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xlkJk1bM5z9sPs\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tMon,  4 Sep 2017 05:56:52 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dob0h-0005yS-T9; Sun, 03 Sep 2017 19:56:47 +0000","from mail-pg0-f54.google.com ([74.125.83.54])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dob0d-0005wV-Rd for linux-arm-kernel@lists.infradead.org;\n\tSun, 03 Sep 2017 19:56:45 +0000","by mail-pg0-f54.google.com with SMTP id b8so13347377pgn.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tSun, 03 Sep 2017 12:56:22 -0700 (PDT)","from kozik-lap ([185.13.106.193])\n\tby smtp.googlemail.com with ESMTPSA id\n\ti187sm8390388pfe.67.2017.09.03.12.56.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSun, 03 Sep 2017 12:56:20 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=YYBG53G+qjkzqu2dx9T0qzqjPgt1Dr31NOojm3OipVQ=;\n\tb=UqzZZ/rGKxtLGJ\n\tkA5WpoQ2AX8y3uHiO73ETw4P6zQWWU37E9HJxjzQ6RC77e6ODnG8yaIT5jWjHf5frLaV6P7IdPpbg\n\tod8IQOK0aFCbyjN+fQt5MPvhg2z+MhiNmUd/qeNRjmu+D0ypKWKgcLlu6yQZZaeMJxcvHj96Zv4jq\n\tyXbVC02+p1sNThP6prHOfX+dKb1EbOQ0X1gMzGNdoWXhGFfCV2c2QTEZp6Iw8ExCnRAIqU8WvYFi1\n\t71RYixoXNRqsQPj8dxBEAgBYhhZZ3VGHz3GRkgO/DdEKGEm1uSWZV4NIF4OwVA9fSMsSBGu8s58uc\n\txCbxZNAiRhIvUBvpr1XQ==;","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:content-transfer-encoding\n\t:in-reply-to:user-agent;\n\tbh=rS/eq7RFBHCZ6yzjwaVP4OWq3t5A9EQz8a0kKyondmY=;\n\tb=EDVUsYOwa88s7zWSSlgyXOLT7eZMPTLB728Akcx0z7hqcddA8A6GfiNHdXFBw4hKgE\n\t32atEdZzQU0++ltJbZPtsCoh80bA7AvLTBj4U/BTk2uloZz17K4p+1LdmjxEswPjnnUn\n\t+IGUs9gKnK3nJg+B/qjjNQ5dAnhg0hPxo2qK1c1z+xuT5751cL8IbtTJiXn2y6UhrN12\n\tk+LpNbgeml/1yqPyyBQcSr1pw9goaqgmzTIgXVT0qJNNgPwseOePmk3O25o6F6xF/zXI\n\tKEdCAf1/NnmsRRfFLFJ7Pu7d/7eoXvS/PxapCJS7R/F98MyTRVNUSNtXSCGcvMfw2/p0\n\tUFWg==","X-Gm-Message-State":"AHPjjUhs8oLq9t8ohJlNA+Yp3eSH8Mvgyd++Wc+jCoM9t6JZIQyfLsro\n\tibiYpRM5jSItNw==","X-Google-Smtp-Source":"ADKCNb6jQDm0CBhut0rc5z6wGgCXou3mP+D/Ptc7ErdCXObRSOn3bM67U2YUOBg0dyxpRZDa/YKcKg==","X-Received":"by 10.98.102.77 with SMTP id a74mr9163355pfc.293.1504468581564; \n\tSun, 03 Sep 2017 12:56:21 -0700 (PDT)","Date":"Sun, 3 Sep 2017 21:56:14 +0200","From":"Krzysztof Kozlowski <krzk@kernel.org>","To":"Dietmar Eggemann <dietmar.eggemann@arm.com>","Subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","Message-ID":"<20170903195614.iwe7v6g3xsg7p6nf@kozik-lap>","References":"<20170830144120.9312-1-dietmar.eggemann@arm.com>\n\t<20170830144120.9312-3-dietmar.eggemann@arm.com>\n\t<20170830202650.mdlxy2c3uwuq5vde@kozik-lap>\n\t<94c1d6c6-655a-2a63-1f01-06ac45990388@arm.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<94c1d6c6-655a-2a63-1f01-06ac45990388@arm.com>","User-Agent":"NeoMutt/20170113 (1.7.2)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170903_125643_925752_F4A5D3F1 ","X-CRM114-Status":"GOOD (  16.40  )","X-Spam-Score":"-1.7 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [74.125.83.54 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (k.kozlowski.k[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)\n\t[74.125.83.54 listed in wl.mailspike.net]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org,\n\tlinux-samsung-soc@vger.kernel.org,\n\tVincent Guittot <vincent.guittot@linaro.org>,\n\tJuri Lelli <juri.lelli@arm.com>, \n\tlinux-kernel@vger.kernel.org, Russell King <linux@armlinux.org.uk>,\n\tlinux-renesas-soc@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, \n\tKukjin Kim <kgene@kernel.org>, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1764050,"web_url":"http://patchwork.ozlabs.org/comment/1764050/","msgid":"<247b2b4a-c57a-eed9-c16f-fc7f1ef9f64f@arm.com>","list_archive_url":null,"date":"2017-09-06T11:47:21","subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","submitter":{"id":64545,"url":"http://patchwork.ozlabs.org/api/people/64545/","name":"Dietmar Eggemann","email":"dietmar.eggemann@arm.com"},"content":"On 03/09/17 20:56, Krzysztof Kozlowski wrote:\n> On Thu, Aug 31, 2017 at 11:36:07AM +0100, Dietmar Eggemann wrote:\n>> On 30/08/17 21:26, Krzysztof Kozlowski wrote:\n>>> On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote:\n\n[...]\n\n>>>> The patch has been tested on Samsung Chromebook 2 13\" (peach-pi, Exynos\n>>>> 5800).\n>>>>\n>>>> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n>>>> 1024\n>>>> 1024\n>>>> 1024\n>>>> 1024\n>>>> 389\n>>>> 389\n>>>> 389\n>>>> 389\n>>>\n>>> I am missing something... shouldn't this be 539? Or is it scaled with\n>>> the clock-frequency (1 GHz) value?\n>>\n>> Yeah, the capacity-dmips-mhz dt value of 539 for the little cpus is\n>> scaled by 1.3/1.8 (max cpu capacity/ system wide max cpu capacity):\n>>\n>> 539 * 1.3/1.8 = 389\n>>\n>> This max cpu capacity scaling is part of both solutions, the 'cpu\n>> capacity-dmips-mhz' and the 'cpu_efficiency/clock-frequency dt property'\n>> one.\n>>\n>> The (original*) cpu capacity on a heterogeneous platform expresses uArch\n>> and max cpu frequency differences between the (logical) cpus of the\n>> system.\n>>\n>> * not further reduced by rt and/or irq pressure.\n>>\n>> [...]\n> \n> Thanks for explanation, looks fine for me. I'll take it after merge\n> window.\n\nNice, since the 'cpu capacity-dmips-mhz' is already supported for arm\n(and used by TC2 (vexpress-v2p-ca15_a7.dts)) this can be done\nindependently of the actual removal of the\n'cpu_efficiency/clock-frequency dt property' solution in patch 1/4.\n\n[..]","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"hPHfq8BL\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnMP132vVz9sBZ\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 21:51:17 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dpYrQ-0000zT-P7; Wed, 06 Sep 2017 11:51:12 +0000","from foss.arm.com ([217.140.101.70])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dpYo4-0006XP-Vu for linux-arm-kernel@lists.infradead.org;\n\tWed, 06 Sep 2017 11:47:49 +0000","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3C2C680D;\n\tWed,  6 Sep 2017 04:47:24 -0700 (PDT)","from [10.1.210.41] (e107985-lin.cambridge.arm.com [10.1.210.41])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\t455153F540; Wed,  6 Sep 2017 04:47:22 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:\n\tMessage-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description\n\t:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=8TJ6nq1UzMHLYmUW8U+tm8f+WxcWdGqSGzltWvlRAcw=;\n\tb=hPHfq8BLwvzErz\n\tcqS4nx30Q1TexT7y5vk1/YKS27s63OkwU9w7y07czooNFAt7gRtVd+XHKsfDKh7tYT59Pb5QoQRSG\n\t7a+f8vIhqXqOgE6fcDEEzW/Qg0fRJ5juQhzTH7CyrLBdXLIziY6XqlM+I33jEwGQmD6pyGlJPeasJ\n\tS+m7hb37Gp6Q2Y/g8hV0uWQkTs+Hq6m8V2P7xL7E4H25u3tZnL0AB5JxUkfBZWXXLbB+3udVpTxwO\n\tj0KM6s6GUgsyPiotQDezZS7g2hRlCEGTXj7/+1r6LzeTT3CTsnsR2Tfpij1I5/I556sGWotgTStY9\n\tIgWE6IJHDO+jojTDfgAQ==;","Subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","To":"Krzysztof Kozlowski <krzk@kernel.org>","References":"<20170830144120.9312-1-dietmar.eggemann@arm.com>\n\t<20170830144120.9312-3-dietmar.eggemann@arm.com>\n\t<20170830202650.mdlxy2c3uwuq5vde@kozik-lap>\n\t<94c1d6c6-655a-2a63-1f01-06ac45990388@arm.com>\n\t<20170903195614.iwe7v6g3xsg7p6nf@kozik-lap>","From":"Dietmar Eggemann <dietmar.eggemann@arm.com>","Message-ID":"<247b2b4a-c57a-eed9-c16f-fc7f1ef9f64f@arm.com>","Date":"Wed, 6 Sep 2017 12:47:21 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<20170903195614.iwe7v6g3xsg7p6nf@kozik-lap>","Content-Language":"en-GB","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170906_044745_612028_F98C1BC7 ","X-CRM114-Status":"GOOD (  10.81  )","X-Spam-Score":"-6.9 (------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org,\n\tlinux-samsung-soc@vger.kernel.org,\n\tVincent Guittot <vincent.guittot@linaro.org>,\n\tJuri Lelli <juri.lelli@arm.com>, \n\tlinux-kernel@vger.kernel.org, Russell King <linux@armlinux.org.uk>,\n\tlinux-renesas-soc@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, \n\tKukjin Kim <kgene@kernel.org>, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1769674,"web_url":"http://patchwork.ozlabs.org/comment/1769674/","msgid":"<20170917073705.GC19716@kozik-book>","list_archive_url":null,"date":"2017-09-17T07:37:05","subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","submitter":{"id":68952,"url":"http://patchwork.ozlabs.org/api/people/68952/","name":"Krzysztof Kozlowski","email":"krzk@kernel.org"},"content":"On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote:\n> The following 'capacity-dmips-mhz' dt property values are used:\n> \n> Cortex-A15: 1024, Cortex-A7: 539\n> \n> They have been derived from the cpu_efficiency values:\n> \n> Cortex-A15: 3891, Cortex-A7: 2048\n> \n> by scaling them so that the Cortex-A15s (big cores) use 1024.\n> \n> The cpu_efficiency values were originally derived from the \"Big.LITTLE\n> Processing with ARM Cortex™-A15 & Cortex-A7\" white paper\n> (http://www.cl.cam.ac.uk/~rdm34/big.LITTLE.pdf). Table 1 lists 1.9x\n> (3891/2048) as the Cortex-A15 vs Cortex-A7 performance ratio for the\n> Dhrystone benchmark.\n> \n> The following platforms are affected once cpu-invariant accounting\n> support is re-connected to the task scheduler:\n> \n> arndale-octa, peach-pi, peach-pit, smdk5420\n> \n> The patch has been tested on Samsung Chromebook 2 13\" (peach-pi, Exynos\n> 5800).\n> \n> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n> 1024\n> 1024\n> 1024\n> 1024\n> 389\n> 389\n> 389\n> 389\n> \n> The Cortex-A15 vs Cortex-A7 performance ratio is 1024/389 = 2.63.\n> \n> The values derived with the 'cpu_efficiency/clock-frequency dt property'\n> solution are:\n> \n> $ cat /sys/devices/system/cpu/cpu*/cpu_capacity\n> 1535\n> 1535\n> 1535\n> 1535\n> 448\n> 448\n> 448\n> 448\n> \n> The Cortex-A15 vs Cortex-A7 performance ratio is 1535/448 = 3.43.\n> \n> The discrepancy between 2.63 and 3.43 is due to the false assumption\n> when using the 'cpu_efficiency/clock-frequency dt property' solution\n> that the max cpu frequency of the little cpus is 1 GHZ and not 1.3 GHz.\n> The Cortex-A7 cluster runs with a max cpu frequency of 1.3 GHZ whereas\n> the 'clock-frequency' property value is set to 1 GHz.\n> \n> 3.43/1.3 = 2.64\n> \n> $ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq\n> 1800000\n> 1800000\n> 1800000\n> 1800000\n> 1300000 <-- max cpu frequency of the Cortex-A7s (little cores)\n> 1300000\n> 1300000\n> 1300000\n> \n> Running another benchmark (single-threaded sysbench affine to the\n> individual cpus) with performance cpufreq governor on the Samsung\n> Chromebook 2 13\" showed the following numbers:\n> \n> $ for i in `seq 0 7`; do taskset -c $i sysbench --test=cpu\n>   --num-threads=1 --max-time=10 run | grep \"total number of events:\";\n>   done\n> \n> total number of events: 1083\n> total number of events: 1085\n> total number of events: 1085\n> total number of events: 1085\n> total number of events: 454\n> total number of events: 454\n> total number of events: 454\n> total number of events: 454\n> \n> The Cortex-A15 vs Cortex-A7 performance ratio is 2.39, i.e. very close\n> to the one derived from the Dhrystone based one of the \"Big.LITTLE\n> Processing with ARM Cortex™-A15 & Cortex-A7\" white paper (2.63).\n> \n> We don't aim for exact values for the cpu capacity values. Besides the\n> CPI (Cycles Per Instruction), the instruction mix and whether the system\n> runs cpu-bound or memory-bound has an impact on the cpu capacity values\n> derived from these benchmark results.\n> \n> Cc: Rob Herring <robh+dt@kernel.org>\n> Cc: Mark Rutland <mark.rutland@arm.com>\n> Cc: Russell King <linux@armlinux.org.uk>\n> Cc: Kukjin Kim <kgene@kernel.org>\n> Cc: Krzysztof Kozlowski <krzk@kernel.org>\n> Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>\n> ---\n>  arch/arm/boot/dts/exynos5420-cpus.dtsi | 8 ++++++++\n>  1 file changed, 8 insertions(+)\n> \n\nThanks, applied (with s/arm/ARM/ change in subject).\n\nBest regards,\nKrzysztof","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"alafMR3B\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xw1FR0Gp2z9s7M\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 17:37:47 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dtU98-0007Gb-LB; Sun, 17 Sep 2017 07:37:42 +0000","from mail-wm0-f48.google.com ([74.125.82.48])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dtU8w-00078L-5i for linux-arm-kernel@lists.infradead.org;\n\tSun, 17 Sep 2017 07:37:39 +0000","by mail-wm0-f48.google.com with SMTP id a137so8470626wma.0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tSun, 17 Sep 2017 00:37:09 -0700 (PDT)","from kozik-book (pub158181124008.dh-hfc.datazug.ch.\n\t[158.181.124.8]) by smtp.googlemail.com with ESMTPSA id\n\te24sm2851211edc.9.2017.09.17.00.37.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 17 Sep 2017 00:37:07 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=P4zf5iEEXu8R4KaPSPImps4VsnT7k+XWkxz7f5827/Q=;\n\tb=alafMR3B5eVpCB\n\t4ThPM4gbbiNPQp3Dg3TPBdUZIBkgtWrEmcJCWTJ4IYpWnrQYTDnQurH1TSJGBvjATrgYADnwgLsLW\n\tG9CXZBAXpWlwL9XpqbpNJPJzer1P+OBlw70kEhVdPMwyDpWG7S0fYPyPb8p4v+0fOAOhSy2F9/nRX\n\tcmiGRemgE14s6aUsYy814Xi+QmCo05Hk3eI5MLpSFcLYSiIRnOKvsWP0qxLIZWx1BIw+Zifhp49+D\n\tPKn7UnQB+8nPxaPURdFZ8IrXE3hiZzaeImKZ85oO8bzaeh0SgP/yYDns7fcs/OGoegpE5VAVJRVax\n\t73cbV8Fqg+q4b2gIUeIg==;","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:content-transfer-encoding\n\t:in-reply-to:user-agent;\n\tbh=/S/Qg39vZNXy2u6O0Y4AgnK0U4N46xTzcIlwDNzIV4g=;\n\tb=E/SlcIekp6zj2mI2W7XjzED95SYq9DFDvTE1/8QNB1ohi1y/JFrPx97/SKhmubR5cL\n\tLKYFAAcxYcG6DVllIrE+1ai8Es8p+w6yCBOrlkHmzXf72+/23PJx4Usx9lYf00uXr4uE\n\t4wdxtDWvghr3g7pxJIo5yp9qVbpTkrpsTDW+5TBsz+cTGwUVpungO/PPvlzHz8JzJVrq\n\tXMh5Pctux+BVzy+Djc4sHIuAonQk2Z9rm1gX4EBKxmsiWcCOSo1TRtlmOYcirg7Vdu96\n\t6fb2YHTHicblVLx1ARZq/U+gQY90R9pLXVdMiCkBlZnEDo1KkDUEpVaiUJApRwSKXlJX\n\th+Pg==","X-Gm-Message-State":"AHPjjUic48FOLKSruHBdFDqBI1z4lqTIXG2pIJ0n5Bj4eYIpchG9eNAI\n\tnzCzwHoOkCeiWg==","X-Google-Smtp-Source":"ADKCNb4JXhZvy4vM7ukJZRDZpMfbJweDLza4yNX6MjZXOiuG1eys9sr6orQp9591xeWhIeFKn+vEPw==","X-Received":"by 10.80.167.131 with SMTP id i3mr26056523edc.173.1505633828227; \n\tSun, 17 Sep 2017 00:37:08 -0700 (PDT)","Date":"Sun, 17 Sep 2017 09:37:05 +0200","From":"Krzysztof Kozlowski <krzk@kernel.org>","To":"Dietmar Eggemann <dietmar.eggemann@arm.com>","Subject":"Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu\n\tcapacity-dmips-mhz information","Message-ID":"<20170917073705.GC19716@kozik-book>","References":"<20170830144120.9312-1-dietmar.eggemann@arm.com>\n\t<20170830144120.9312-3-dietmar.eggemann@arm.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170830144120.9312-3-dietmar.eggemann@arm.com>","User-Agent":"Mutt/1.5.24 (2015-08-30)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170917_003730_514300_B32A765F ","X-CRM114-Status":"GOOD (  16.30  )","X-Spam-Score":"-1.2 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t0.5 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source\n\t[74.125.82.48 listed in dnsbl.sorbs.net]\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [74.125.82.48 listed in list.dnswl.org]\n\t-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)\n\t[74.125.82.48 listed in wl.mailspike.net]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (k.kozlowski.k[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org,\n\tlinux-samsung-soc@vger.kernel.org,\n\tVincent Guittot <vincent.guittot@linaro.org>,\n\tJuri Lelli <juri.lelli@arm.com>, \n\tlinux-kernel@vger.kernel.org, Russell King <linux@armlinux.org.uk>,\n\tlinux-renesas-soc@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, \n\tKukjin Kim <kgene@kernel.org>, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]