From patchwork Thu Dec 25 10:32:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 5541521 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 6C106BEEA8 for ; Thu, 25 Dec 2014 10:32:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7899E2012D for ; Thu, 25 Dec 2014 10:32:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E4B0201BB for ; Thu, 25 Dec 2014 10:32:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751904AbaLYKcZ (ORCPT ); Thu, 25 Dec 2014 05:32:25 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:36215 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbaLYKcX (ORCPT ); Thu, 25 Dec 2014 05:32:23 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NH400CT4VXWFO90@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 25 Dec 2014 19:32:21 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id EB.0B.19034.4B7EB945; Thu, 25 Dec 2014 19:32:20 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-dc-549be7b44093 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 08.60.09430.4B7EB945; Thu, 25 Dec 2014 19:32:20 +0900 (KST) Received: from pankaj.dubey-ubuntu ([107.108.83.158]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NH400IU5VXVC3A0@mmp2.samsung.com>; Thu, 25 Dec 2014 19:32:20 +0900 (KST) Message-id: <549BE7CC.1000005@samsung.com> Date: Thu, 25 Dec 2014 16:02:44 +0530 From: Pankaj Dubey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-version: 1.0 To: Ming Lei , Russell King , Kukjin Kim , linux-arm-kernel , linux-samsung-soc@vger.kernel.org Cc: Thomas Abraham Subject: Re: kernel panic when booting on exynos 5440 References: In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLIsWRmVeSWpSXmKPExsWyRsSkRnfL89khBl93WFn0P37NbLHp8TVW ixnn9zFZ3L7Ma9GxjNHi/Y/r7A5sHi3NPWweO2fdZffYtKqTzWPzknqPvi2rGD0+b5ILYIvi sklJzcksSy3St0vgyri67BxbwVXBiubLX9kaGFv4uhg5OCQETCRWXq/rYuQEMsUkLtxbzwZi CwksZZRYuckMIm4i0fDiAVMXIxdQfDqjxIXzD1ghnFYmiXdLN7ODDOIV0JK4cSYZxGQRUJVY PDcJpJdNQFfiyfu5zCC2qECExJU1cxhBbF4BQYkfk++xgIwRETjDKPFj9V2wxcxAYyY/3cUK MkdYwFTiyj1niHsCJF59+88EYnMKBEtsfLyPBaLcTOLLy8OsELa8xOY1b5lBZkoInGOXOHjo BNgyFgEBiW+TD7FA/CsrsekAM8RfkhIHV9xgmcAoNgvJSbOQjJ2FZOwCRuZVjKKpBckFxUnp RaZ6xYm5xaV56XrJ+bmbGIGxdvrfs4k7GO8fsD7EKMDBqMTD+yBmdogQa2JZc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xrKvmtUKpnZ/gXt2CP6eZvDSzj +gs7RcVUvP/oyK2+WGMo33l829mzW341WOVYvxOe1dhlwsbqOfmxnnFVsmWTxAenNd+zWY9O N+/+KHru2EnFpUf/qXe1pCuxFGckGmoxFxUnAgDnhrFH/AIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 +CC: Thomas Abraham Hi Ming, On Thursday 25 December 2014 02:18 PM, Ming Lei wrote: > Hi Pankaj, > > In your commit fce9e5bb2(ARM: EXYNOS: Add support for > mapping PMU base address via DT), 'pmu_base_addr' is > only parsed for very limited machines from the table of > 'exynos_dt_pmu_match'. For other boards, 'pmu_base_addr' > will keep its default value of null, then panic() is triggered. > Yes, it will. As exynos5440 DT does not have PMU device node, neither above mentioned patch added corresponding matching device_id. If I remember correctly, I might have missed this because exynos5440 DT was not having PMU node. > What do you think about the problem? I missed this part, and I should have taken care of this in original patch itself. Well as of now I can think of only one solution that if we really want to keep support for exynos5440 in mainline kernel, to avoid above issue we should skip pmu mapping for exynos5440. In this case following patch will do this work. Also I will like to know from Kukjin that what best can be done now. If he is OK with below solution I can post the same. --------------------------------------------------------------- Subject: [PATCH] ARM: EXYNOS: do not try to map PMU for exynos5440 Commit id: 2e94ac42898f84d76e3c21dd91bc is not taking care of mapping of exynos5440 PMU register which will result in kernel panic. As of now let's avoid mapping of exynos5440 PMU. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ------------------------------------------------------ > > Thanks, > Ming Lei > Thanks, Pankaj Dubey -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index c13d083..1891b8c 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -208,7 +208,8 @@ static void __init exynos_init_irq(void) * DT is not unflatten so we can't use DT APIs before * init_irq */ - exynos_map_pmu(); + if (!of_machine_is_compatible("samsung,exynos5440")) + exynos_map_pmu(); } static void __init exynos_dt_machine_init(void)