Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751887AbbKBDTt (ORCPT ); Sun, 1 Nov 2015 22:19:49 -0500 Received: from mail-by2on0110.outbound.protection.outlook.com ([207.46.100.110]:43584 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750935AbbKBDTp convert rfc822-to-8bit (ORCPT ); Sun, 1 Nov 2015 22:19:45 -0500 From: Huan Wang To: Arnd Bergmann CC: "linux-arm-kernel@lists.infradead.org" , Jin Jason , Russell King - ARM Linux , Fabio Estevam , "linux-kernel@vger.kernel.org" , "shawnguo@kernel.org" Subject: RE: [PATCH v4] ARM: configs: Add Freescale LS1021A defconfig Thread-Topic: [PATCH v4] ARM: configs: Add Freescale LS1021A defconfig Thread-Index: AQHQ8SjkL5VPm4WkUE22VnJn+5lonZ5AhnkAgAFdj6CAAIuhAIAI4e9QgAAC8gCAH5incIAAL4AAgADYhcCAAK4fgIARF6wggAaVf4CABAZtcA== Date: Mon, 2 Nov 2015 03:19:42 +0000 Message-ID: References: <1442480614-32345-1-git-send-email-b18965@freescale.com> <5073362.oArWDzYkxD@wuerfel> <3938714.zt8Y4X5ull@wuerfel> In-Reply-To: <3938714.zt8Y4X5ull@wuerfel> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=alison.wang@freescale.com; x-originating-ip: [192.158.241.86] x-microsoft-exchange-diagnostics: 1;BN3PR0301MB1283;5:RYpN3xRW9N36+f8vFNGTpbLNnDfS5IeWUrG865fsEJgD2GZGbGrZgqdUyOCq2ti1UbRcCP2fgPbpGl0q0uOEQReBr7M3CHiP3rq1VFwZZWQUip9EKF9vm9vQDjaY6hQMgpY3PlMkXA2IJFiQ7/dMcQ==;24:LCQD/p3b5EUFxaev6zJvYlOa9yQKH2PPCwknYIQfF5eprXf1vMWD+fJJX87pnkf8cFi/xhwtgoDWIamIhqlWbp9Qo1IJiJ2HMe6AoONOOe0=;20:JNS8CVvpWbAIlaEB7/CBZdmsggFTqy3b+WV7x4m05FKQsygZJJu8JHEuYuaF75clD1wldlKxuklHVdBG/jIpyw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1283; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001);SRVR:BN3PR0301MB1283;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1283; x-forefront-prvs: 0748FF9A04 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(45984002)(24454002)(199003)(189002)(50986999)(2950100001)(66066001)(101416001)(5007970100001)(5004730100002)(54356999)(76176999)(110136002)(5001960100002)(92566002)(5002640100001)(189998001)(76576001)(87936001)(33656002)(5008740100001)(74316001)(105586002)(99286002)(86362001)(40100003)(106116001)(93886004)(106356001)(97736004)(102836002)(11100500001)(2900100001)(5003600100002)(77096005)(81156007)(10400500002)(122556002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR0301MB1283;H:BN3PR0301MB0867.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2015 03:19:42.7696 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1283 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1678 Lines: 35 > On Tuesday 27 October 2015 14:40:21 Huan Wang wrote: > > > > > > Ok. What I was suggesting above though was to try to pinpoint > > > exactly where it goes wrong. You have verified that it does not > > > crash before the page tables are enabled, but that is very early. > > > You have also shown that the kernel crashes before the point at > > > which the 'Booting Linux on physical CPU 0xf00' message is printed > > > to the kernel, but that is *much* > > > later: setup_arch() calls parse_early_param(), which in turn sets up > > > early_console_write(). This means the 'Booting Linux on physical CPU > > > 0xf00' > > > is still stuck in the log buffer and you may have crashed someone > > > inbetween. > > > > > > If you can call printascii(), you can try to do that just after > > > enabling the page tables to see if that was the problem like you > > > suspect, or otherwise add more printascii() statements between > > > __turn_mmu_on and > > > parse_early_param() to pinpoint the exact code that breaks. > > [Alison Wang] Thank you very much for your help. The issue is fixed. > > > > Ah, very good. I'm curious what caused the problem in the end. [Alison Wang] The problem is caused by the wrong fdt_high setting (0xcfffffff). When 3G/1G user/kernel memory split is used, U-Boot relocates the device tree blob into high memory when booting the kernel and the kernel is unable to access the blob. Best Regards, Alison Wang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/