From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932691AbbJNMz1 (ORCPT ); Wed, 14 Oct 2015 08:55:27 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:52414 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753430AbbJNMzV (ORCPT ); Wed, 14 Oct 2015 08:55:21 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Huan Wang , 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 Date: Wed, 14 Oct 2015 14:54:48 +0200 Message-ID: <5232654.e6dagm53H4@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1442480614-32345-1-git-send-email-b18965@freescale.com> <16038044.0DCMVgq8H3@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:5TixXgPj3BPFyLlH06fZ+HDK85+1o7ak97XEXqxTNKwzefvcGUI gJxE78FFYkTZPv8LANEeg47Dob8/KA/88uUSvpyh9myMhU5vpJ4/GEoH/hlBwAhczMEDhhn MEBJNGbdYSrtrS1jxUWPasBGqbS8EKZqZsCmlvtim+ak1u9zT4mQE1wWmnpJNs0XYguBteI i7GBAUBHv+VijLXDc1Oog== X-UI-Out-Filterresults: notjunk:1;V01:K0:7VEH8RpcdI8=:W7HO28tu6xiyB87uyDaZkx 1FudzW0uIpLvBvIE3ZV3lnUIA7D+Q8F7nsR3PVE6Pa2Ynqa/fZqXO39GQeZUeVaelQBj37h1D S6EqWYKa94W/bkyPR/oUkAG7Bc43NBjZLvGTqT9MiNzfibEVBT2bKYu6ku+B6KczwqY70zjjj OeOQ54y8q+cVHknxhzZmuOdQzZC+F9v5PgEToyT5bA0CTs776lcM2kG7wOpU/vXAmeEdVrgO1 6w6inx1x7/2bz3UJr++28/qGdTCw0IcD3tFD+MRtjSydx5LKBfiO65BVPDMLfdulsWbWTeFvf xk4/zLAs8QIalQxP3I0wnOC1ZfPK8tXEkzMTXbRx7yX2S1s4/jEnR8gn8Wsr2p3+HLkfrdoHV UomvJFHSEtjIJhXJPS/Cce2CFZjQrnVzEweJQW1LRxsSzkCdJH+Gi9wM/BGk/YldxBYYaFEro RqiWK7Czs8y7kqnKQRfG97OFRw9o6c4k3O0sOEsthlO2jhHlRW+EJR9kPCgK3iqG8Cemqs3cK GstBvKIUXFc+JHoJV4zgHSRSU/LQn8Fv9Fa2PTRrcWAdEbIhFtjzI6qW5PZc9y3hNzewHb0IE n9OBpu1kz1shvXZGA/heYTF1PJRO8LyKPjVAtkqd+pR+xm/Fmv0Y/YnWysmHojhSUl1pA8QNU GhvnUI7+gurbAkVbbzJ1qrg88+aQDdGwgZwr328LEVxSD3MzkHtsTcsK1Z0UAGGAR1A7zGfiF tNCmvhqfTA9YbtUv Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 14 October 2015 10:18:47 Huan Wang wrote: > > On Thursday 24 September 2015 07:27:10 Huan Wang wrote: > > > > On Fri, Sep 18, 2015 at 4:38 AM, Huan Wang > > > > > > > > wrote: > > > > > > > > > [Alison Wang] Thanks for your reply. I agreed with you about > > > > > creating a new multi_v7_lpae_defconfig. In > > > > > multi_v7_lpae_defconfig, I need to add the following CONFIG_XX to > > > > > support LS1021A based on > > > > multi_v7_defconfig. > > > > > > > > > > CONFIG_ARM_LPAE=y > > > > > CONFIG_VMSPLIT_2G=y > > > > > > > > Is CONFIG_VMSPLIT_2G=y really needed? > > > [Alison Wang] I tried to remove CONFIG_VMSPLIT_2G and used the default > > > CONFIG_VMSPLIT_3G, but kernel could not boot up. It hangs at " Starting > > kernel ... ". > > > > > > Any suggestion? Thanks. > > > > Try enabling DEBUG_LL for your platform to get some debug output, if you > > still don't get any helpful messages, try also inserting > > > > printascii(__func__); > > > > statements in the early boot process to see how far you get before the hang. > > > [Alison Wang] I can get to __turn_mmu_on or later, but I could not get the print > message "Booting Linux on physical CPU 0xf00" in smp_setup_processor_id(). > > I guess something wrong with the initial page tables in __create_page_tables, > as for CONFIG_VMSPLIT_3G, only PAGE_OFFSET is changed from 0x80000000 to 0xC0000000. > BTW, on our platform, TEXT_OFFSET is 0x00008000, PHYS_OFFSET is 0x80000000. > > Any suggestion? Thanks. My first guess is that there is something wrong with your debug_ll implementation, as that would explain why you can't get anything to the console after turning on page tables. It looks like ls1021a uses lpuart, but I can't even see an implementation for that in arch/arm/include/debug/. What code do you use for printing? Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Wed, 14 Oct 2015 14:54:48 +0200 Subject: [PATCH v4] ARM: configs: Add Freescale LS1021A defconfig In-Reply-To: References: <1442480614-32345-1-git-send-email-b18965@freescale.com> <16038044.0DCMVgq8H3@wuerfel> Message-ID: <5232654.e6dagm53H4@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wednesday 14 October 2015 10:18:47 Huan Wang wrote: > > On Thursday 24 September 2015 07:27:10 Huan Wang wrote: > > > > On Fri, Sep 18, 2015 at 4:38 AM, Huan Wang > > > > > > > > wrote: > > > > > > > > > [Alison Wang] Thanks for your reply. I agreed with you about > > > > > creating a new multi_v7_lpae_defconfig. In > > > > > multi_v7_lpae_defconfig, I need to add the following CONFIG_XX to > > > > > support LS1021A based on > > > > multi_v7_defconfig. > > > > > > > > > > CONFIG_ARM_LPAE=y > > > > > CONFIG_VMSPLIT_2G=y > > > > > > > > Is CONFIG_VMSPLIT_2G=y really needed? > > > [Alison Wang] I tried to remove CONFIG_VMSPLIT_2G and used the default > > > CONFIG_VMSPLIT_3G, but kernel could not boot up. It hangs at " Starting > > kernel ... ". > > > > > > Any suggestion? Thanks. > > > > Try enabling DEBUG_LL for your platform to get some debug output, if you > > still don't get any helpful messages, try also inserting > > > > printascii(__func__); > > > > statements in the early boot process to see how far you get before the hang. > > > [Alison Wang] I can get to __turn_mmu_on or later, but I could not get the print > message "Booting Linux on physical CPU 0xf00" in smp_setup_processor_id(). > > I guess something wrong with the initial page tables in __create_page_tables, > as for CONFIG_VMSPLIT_3G, only PAGE_OFFSET is changed from 0x80000000 to 0xC0000000. > BTW, on our platform, TEXT_OFFSET is 0x00008000, PHYS_OFFSET is 0x80000000. > > Any suggestion? Thanks. My first guess is that there is something wrong with your debug_ll implementation, as that would explain why you can't get anything to the console after turning on page tables. It looks like ls1021a uses lpuart, but I can't even see an implementation for that in arch/arm/include/debug/. What code do you use for printing? Arnd