From patchwork Fri Apr 11 18:01:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 3971741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A676FBFF02 for ; Fri, 11 Apr 2014 18:05:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92C7D201B4 for ; Fri, 11 Apr 2014 18:05:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5CB02018A for ; Fri, 11 Apr 2014 18:05:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYfmb-0003Q8-9q; Fri, 11 Apr 2014 18:02:33 +0000 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYfmY-000387-Dj for linux-arm-kernel@lists.infradead.org; Fri, 11 Apr 2014 18:02:31 +0000 Received: by mail-pb0-f47.google.com with SMTP id up15so5661788pbc.6 for ; Fri, 11 Apr 2014 11:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=i3C2CVqr1Ut/CgNI3re8p84MHcXXbCSyb9+Oo1eyp+4=; b=BKaxo3AqkDqJYdg4nmlt0UKMr982XI0nZTjl4YOGOifJRPMA/B7rLcW61rw5w6Vyst 3l3LtD8s22k6Mo4Yh+BAhkftiLwkubEXGGeQEzURzQtoWYceUq0Al64I2rLZQTr/PEFK Xenhs0mfpAE7EHJnGxGTkPJU0qKr4VThH0IJn5sqoKDRn3mgKBAMTrtRstlMRfrX3rsM XOR/iXKE6HpGHErdridNQFh7SLFCc1UapJw4oeK/SGOKNs9HhYsdfmE4IBweMNVqQOY9 k/uk9nmqeRcjkw1fESTMYOYv8p3Kz04VasoAW3GTophKint5KUPGeNHSsrvCeetB/Q9f j/4w== X-Received: by 10.67.1.39 with SMTP id bd7mr29254219pad.15.1397239327526; Fri, 11 Apr 2014 11:02:07 -0700 (PDT) Received: from localhost.localdomain ([122.171.66.111]) by mx.google.com with ESMTPSA id h6sm16993556pbl.75.2014.04.11.11.02.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 11:02:06 -0700 (PDT) From: Abhilash Kesavan To: abrestic@chromium.org, thomas.ab@samsung.com, inderpal.s@samsung.com, lorenzo.pieralisi@arm.com, linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, nicolas.pitre@linaro.org, Dave.Martin@arm.com, t.figa@samsung.com Subject: [PATCH 1/5] ARM: bL_switcher: Don't enable bL switcher on systems without CCI Date: Fri, 11 Apr 2014 23:31:47 +0530 Message-Id: <1397239311-27717-2-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397239311-27717-1-git-send-email-a.kesavan@samsung.com> References: <1397239311-27717-1-git-send-email-a.kesavan@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140411_110230_480117_482F71BE X-CRM114-Status: GOOD ( 14.08 ) X-Spam-Score: 0.0 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, arnd@arndb.de, will.deacon@arm.com, robh+dt@kernel.org, grant.likely@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrew Bresticker Do not enable the big.LITTLE switcher on systems that do not have an ARM CCI (cache-coherent interconnect) present. Since the CCI is used to maintain cache coherency between multiple clusters and peripherals, it is unlikely that a system without CCI would support big.LITTLE. Signed-off-by: Andrew Bresticker Signed-off-by: Abhilash Kesavan --- arch/arm/common/bL_switcher.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/common/bL_switcher.c b/arch/arm/common/bL_switcher.c index 5774b6e..c4fec1f 100644 --- a/arch/arm/common/bL_switcher.c +++ b/arch/arm/common/bL_switcher.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -796,6 +797,17 @@ core_param(no_bL_switcher, no_bL_switcher, bool, 0644); static int __init bL_switcher_init(void) { int ret; + struct device_node *dn; + + /* + * We don't want to set up the bL switcher if the machine doesn't + * support bL, so use the presence of a CCI to indicate whether or + * not bL is supported on this device. + */ + dn = of_find_compatible_node(NULL, NULL, "arm,cci-400"); + if (!dn) + return 0; + of_node_put(dn); if (MAX_NR_CLUSTERS != 2) { pr_err("%s: only dual cluster systems are supported\n", __func__);