Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2091720ybe; Sat, 14 Sep 2019 07:43:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0MgWJ53iDRbyIieK3VTp4o9qdbbwaM0bhCQATJWG0wxvNxUaEGVnoQXG2yDl8hTqpK4nw X-Received: by 2002:a50:87ca:: with SMTP id 10mr1703012edz.77.1568472193099; Sat, 14 Sep 2019 07:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568472193; cv=none; d=google.com; s=arc-20160816; b=BTq9Xz8HDjFrXVaHXyfSO7zlWkE9SVxbh2ntF5Ewapk8l4VnLYTNdFhGBINpzeFgB1 OkCehF6qFRLeh4yhgWEf8CvixBfKnWF67u8HO9LLAkqotpu4Dfw+UwzNNKCasq4iQL9l aDPhVOqutlwwu+AigeVNBkEBrmj4gYcN69eNAMXUofFo7o1ddo1ZEujclAmCPe5OuZmr 7UM9CcJ6RsbA9BaAOeyeByWd6sdBB3FlWILru0X7M1TXHU8LatMUB2xjjWLt7eBtmHZm fye9jeR+RYfEn9d9vN0IwWOaG/D2wD8ASX+jwIs4aDfcXbpc83HYiSTXMrjFQ0fysDXm mvqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=GS7w/y6KJAb3XTE0KF7ABnXR9mrrpjuRKRosNLWca4k=; b=gxNyF/gSGy07vQu+b+7Hc+306zzr7U2eqjIRbmsf5/yao/SEdt3EEiuMhpbfafLr5p +gS8rR1TWyHByGg8HAxm529Ltb6F79I0BHvenpNm1eiTzp3dcC3gvin+hgDvteuYR5oA 3O4Xb3aLqVwVmub5jqhwuZI2O/2hZK8WeEkZbfWBqctdw0CQMWcQlNnWxWmmT/ztUtNG DSSOLtzfSQHWENdaymKMk+99qF5ePsWx/ZrMi7oEjrqCMhI7gK582Le3xbTO1irFUzYr oNFjzH5hypwTMH1E+Ta/PbmZEyX5n+bxL418qSxRRGbJef1v55S9XEwCVUpYu/+JPiCP uDsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R6bdzcJT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si16193729eds.67.2019.09.14.07.42.48; Sat, 14 Sep 2019 07:43:13 -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=@gmail.com header.s=20161025 header.b=R6bdzcJT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390149AbfINCue (ORCPT + 99 others); Fri, 13 Sep 2019 22:50:34 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54711 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388221AbfINCud (ORCPT ); Fri, 13 Sep 2019 22:50:33 -0400 Received: by mail-wm1-f66.google.com with SMTP id p7so4520760wmp.4; Fri, 13 Sep 2019 19:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GS7w/y6KJAb3XTE0KF7ABnXR9mrrpjuRKRosNLWca4k=; b=R6bdzcJT8EwKY5tWap4/olAlQ7hs1E4s+GBJLbiuDt4EwM8gP7LvCkx6jEPrtlhJye DaakYeAmQT6pj9+gFqb596LidBMo+Ee6hnZEyYARU7XpnYjMco3qws+rJQ9W0DA4qgGR 08+eGs9wqW1Hl2JuQ9mA9tGvRc8ctkDkVGTFKcsokJ81rXbmqzy8xhlB14gzs0gzG9uv jfly2I6yezhVPIUGOnBJhVPUEZXiixmz5Vga/aRnXsebEN+OSgXyIhebmjvH8QssVXlQ y6e5DxPcZBirYV7sC1Azs3dvoKVCOEOlDsJDViV0SlFz7G0Uu0s7ulr8awdJ8Lu5kBPv bWiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GS7w/y6KJAb3XTE0KF7ABnXR9mrrpjuRKRosNLWca4k=; b=Gg0a/3/63ro/+AXNiO8xKplzzvWQFab6GtejVnP/irNXCV4gRJSUUDuGx711jbltwj V/OaHPhZGZlU/v1hk611BEzquf521YMxcbPCrAX7jVWcX8WVdbz+m0a/nQ9BCtKiE5p6 239W+jU2+Af9LLHIBbHhOtMHc33i/YcCxPitZ3lkbXkNqp382xlaC8kNTRjWloV+zhIJ ff55uWkkCLcuZGj1cxpaUg3taaZeIWmJ6uIHhY0sY2sw0Uvjxyen2wingpse7uzzNE+E 1p4ufMT5rUgunhiebBxfxGTPXBDQwQq1Ws7SACEKVWAsjLI4Dgrl8tkO/dwX0+sQDriZ kRXw== X-Gm-Message-State: APjAAAXYpG+aVqkeuUBCYW+S+B6B/nb+6FxwdY5YKlYoWlGWpiM/38AV ByNgNcAz7btfJxMuYv9+F/4= X-Received: by 2002:a7b:c045:: with SMTP id u5mr5588396wmc.139.1568429431295; Fri, 13 Sep 2019 19:50:31 -0700 (PDT) Received: from localhost.localdomain ([94.204.252.234]) by smtp.gmail.com with ESMTPSA id h26sm2345320wrc.13.2019.09.13.19.50.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Sep 2019 19:50:30 -0700 (PDT) From: Christian Hewitt To: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Frank Hartung , Christian Hewitt Subject: [PATCH] arm64: dts: meson: Add capacity-dmips-mhz attributes to G12B Date: Sat, 14 Sep 2019 06:49:40 +0400 Message-Id: <1568429380-3231-1-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Hartung From: Frank Hartung Meson G12B SoCs (S922X and A311D) are a big-little design where not all CPUs are equal; the A53s cores are weaker than the A72s. Include capacity-dmips-mhz properties to tell the OS there is a difference in processing capacity. The dmips values are based on similar submissions for other A53/A72 SoCs: HiSilicon 3660 [1] and Rockchip RK3399 [2]. This change is particularly beneficial for use-cases like retro gaming where emulators often run on a single core. The OS now chooses an A72 core instead of an A53 core. [1] https://lore.kernel.org/patchwork/patch/862742/ [2] https://patchwork.kernel.org/patch/10836577/ Signed-off-by: Frank Hartung Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi index 5628ccd..7f78d88 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi @@ -49,6 +49,7 @@ compatible = "arm,cortex-a53"; reg = <0x0 0x0>; enable-method = "psci"; + capacity-dmips-mhz = <592>; next-level-cache = <&l2>; }; @@ -57,6 +58,7 @@ compatible = "arm,cortex-a53"; reg = <0x0 0x1>; enable-method = "psci"; + capacity-dmips-mhz = <592>; next-level-cache = <&l2>; }; @@ -65,6 +67,7 @@ compatible = "arm,cortex-a73"; reg = <0x0 0x100>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; next-level-cache = <&l2>; }; @@ -73,6 +76,7 @@ compatible = "arm,cortex-a73"; reg = <0x0 0x101>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; next-level-cache = <&l2>; }; @@ -81,6 +85,7 @@ compatible = "arm,cortex-a73"; reg = <0x0 0x102>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; next-level-cache = <&l2>; }; @@ -89,6 +94,7 @@ compatible = "arm,cortex-a73"; reg = <0x0 0x103>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; next-level-cache = <&l2>; }; -- 2.7.4