From patchwork Thu Apr 10 09:28:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3960771 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 66B59BFF02 for ; Thu, 10 Apr 2014 09:33:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A260820127 for ; Thu, 10 Apr 2014 09:33:01 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 B313A20123 for ; Thu, 10 Apr 2014 09:33:00 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBKH-0000EI-UO; Thu, 10 Apr 2014 09:31:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBK1-0008VC-EF; Thu, 10 Apr 2014 09:31:01 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBIL-0008Nk-Qo for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 09:29:18 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T000M26C1FT90@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 94.9E.10092.15466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-d5-534664514773 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6A.14.29263.15466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3T00F1Z6C0I110@mmp2.samsung.com>; Thu, 10 Apr 2014 18:28:48 +0900 (KST) From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com, linux-samsung-soc@vger.kernel.org Subject: [PATCH 06/27] ARM: EXYNOS:: Enter a15 lowpower mode for Exynos3250 based on Cortex-a7 Date: Thu, 10 Apr 2014 18:28:23 +0900 Message-id: <1397122124-15690-7-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397122124-15690-1-git-send-email-cw00.choi@samsung.com> References: <1397122124-15690-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgkeLIzCtJLcpLzFFi42JZI2JSqBuY4hZssHaamMX1L89ZLT5/aGG3 mHR/AotF74KrbBZnm96wW2x6fI3V4vKuOWwWM87vY7KYMfklm8X6Ga9ZLPbunMzowO2xeUm9 R9+WVYwenzfJBTBHcdmkpOZklqUW6dslcGW0/TvBXvCaq+LV7juMDYxXOboYOTkkBEwkmo4t ZYewxSQu3FvP1sXIxSEksJRRYtuz72wwRa+/v2CESExnlGjeuJYdwmlikmj+dZgRpIpNQEti /4sbYB0iAgESP46/A7OZBW4yShx7HwZiCwskSDybPgUsziKgKjHl/kIWEJtXwFXi5On3UNvk JD7seQR2EqeAm8Sn762sILYQUE3Th31g50kIrG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hNLUrNTUwtSi2C2MHFwSjUwst60swkRyDtx4e7uL8Fhd6zeRxrf+3771oOgKHYBmfTwoM23 rI6kb2868CU3V/BOZ7HkkVslbc5vWkQ8JV4K5eh0rNJ23pA393KlZMTV54+i6lzbdqyw3Cle +S3e+I5moqdtueuWXWnyMefWiu+a/pz/yB3Wbw8uy6S+VnGqrDB5un5SKUudEktxRqKhFnNR cSIAjsp1v/ACAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140410_052918_131930_8A4732BF X-CRM114-Status: GOOD ( 10.21 ) X-Spam-Score: -7.5 (-------) Cc: hyunhee.kim@samsung.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, yj44.cho@samsung.com, inki.dae@samsung.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, linux-arm-kernel@lists.infradead.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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch decide proper lowpower mode of either a15 or a9 according to own ID from Main ID register. Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/hotplug.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c index 5eead53..36d3db6 100644 --- a/arch/arm/mach-exynos/hotplug.c +++ b/arch/arm/mach-exynos/hotplug.c @@ -135,13 +135,20 @@ void __ref exynos_cpu_die(unsigned int cpu) int primary_part = 0; /* - * we're ready for shutdown now, so do it. - * Exynos4 is A9 based while Exynos5 is A15; check the CPU part + * we're ready for shutdown now, so do it. Exynos4 is A9 based + * while Exynos5 is A15/Exynos7 is A7; check the CPU part * number by reading the Main ID register and then perform the * appropriate sequence for entering low power. */ asm("mrc p15, 0, %0, c0, c0, 0" : "=r"(primary_part) : : "cc"); - if ((primary_part & 0xfff0) == 0xc0f0) + + /* + * Main ID register of Cortex series + * - Cortex-a7 : 0x410F_C07x + * - Cortex-a15 : 0x410F_C0Fx + */ + primary_part = primary_part & 0xfff0; + if (primary_part == 0xc0f0 || primary_part == 0xc070) cpu_enter_lowpower_a15(); else cpu_enter_lowpower_a9();