From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37521C433FE for ; Tue, 19 Oct 2021 15:53:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EE9AC61175 for ; Tue, 19 Oct 2021 15:53:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EE9AC61175 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 4DA626B009C; Tue, 19 Oct 2021 11:53:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 48A5C6B009E; Tue, 19 Oct 2021 11:53:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 378A0900004; Tue, 19 Oct 2021 11:53:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0164.hostedemail.com [216.40.44.164]) by kanga.kvack.org (Postfix) with ESMTP id 246E76B009C for ; Tue, 19 Oct 2021 11:53:07 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D4B101802DDE3 for ; Tue, 19 Oct 2021 15:53:06 +0000 (UTC) X-FDA: 78713630772.11.62C843D Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP id 7EC36400208B for ; Tue, 19 Oct 2021 15:53:03 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F498610E7; Tue, 19 Oct 2021 15:53:03 +0000 (UTC) Date: Tue, 19 Oct 2021 16:53:00 +0100 From: Catalin Marinas To: Qian Cai Cc: Mike Rapoport , linux-mm@kvack.org, Andrew Morton , Mike Rapoport , Vladimir Zapolskiy , linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: [PATCH] memblock: exclude NOMAP regions from kmemleak Message-ID: References: <20211013054756.12177-1-rppt@kernel.org> <089478ad-3755-b085-d9aa-c68e9792895c@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <089478ad-3755-b085-d9aa-c68e9792895c@quicinc.com> Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf18.hostedemail.com: domain of cmarinas@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=cmarinas@kernel.org X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 7EC36400208B X-Stat-Signature: 8zntjr6zho6u4y9n5tg6z3qs68mzrgzk X-HE-Tag: 1634658783-43108 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Oct 19, 2021 at 11:06:11AM -0400, Qian Cai wrote: > On 10/19/2021 7:37 AM, Catalin Marinas wrote: > >>> I could help to confirm if it hangs right in the early boot somewhere if needed. > >> > >> The kernel config and a log of working kernel would help to start with. > > http://lsbug.org/tmp/ Thanks. I guess the log here is with the Mike's patch reverted. > > I don't think there's much in the log other than the EFI stub above. > > > >>> start_kernel() > >>> setup_arch() > >>> paging_init() > >>> map_mem() > >>> memblock_mark_nomap( > > > > Is this actual trace? It would be good to know where exactly it got > > stuck. > > No, I did not confirm anything yet. There is going to take a while to > figure out the exactly location that hang since even the early console > was not initialized yet. Any suggestion on how to debug in this case? Try "earlycon=pl011,mmio32,0x12600000" on the kernel command line and hopefully we get some early log. -- Catalin