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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55E1FECAAD5 for ; Thu, 8 Sep 2022 09:54:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231448AbiIHJyy (ORCPT ); Thu, 8 Sep 2022 05:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbiIHJyd (ORCPT ); Thu, 8 Sep 2022 05:54:33 -0400 X-Greylist: delayed 2404 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 08 Sep 2022 02:53:54 PDT Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F067E4DCE; Thu, 8 Sep 2022 02:53:54 -0700 (PDT) Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1oWCgK-0001r3-TX; Thu, 08 Sep 2022 10:14:40 +0200 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1oWCgH-00085i-L9; Thu, 08 Sep 2022 10:14:37 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (1057822)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1oWCg9-0000HB-VA; Thu, 08 Sep 2022 10:14:30 +0200 Message-ID: Date: Thu, 8 Sep 2022 11:14:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: RaspberryPi4 Panic in net_ns_init() To: Maxime Ripard , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Arnd Bergmann , Olof Johansson , Catalin Marinas , Will Deacon , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220831144205.iirdun6bf3j5v6q4@houat> <20220905111832.73nqtlzpiuwpj7lx@houat> Content-Language: en-US From: Martin Roukala In-Reply-To: <20220905111832.73nqtlzpiuwpj7lx@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 9/5/22 14:18, Maxime Ripard wrote: > On Wed, Aug 31, 2022 at 04:42:05PM +0200, Maxime Ripard wrote: >> Sorry for the fairly broad list of recipients, I'm not entirely sure >> where the issue lies exactly, and it seems like multiple areas are >> involved. >> >> Martin reported me an issue discovered with the VC4 DRM driver that >> would prevent the RaspberryPi4 from booting entirely. At boot, and >> apparently before the console initialization, the board would just die. >> >> It first appeared when both DYNAMIC_DEBUG and DRM_VC4 were built-in. We >> started to look into what configuration would trigger it. >> >> It looks like a good reproducer is: >> >> ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j18 defconfig mod2yesconfig >> ./scripts/config -e CONFIG_DYNAMIC_DEBUG >> ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j18 olddefconfig > > Interestingly, this was making the kernel Image cross the 64MB boundary. > I've compiled the same configuration but with -Os, and then tried to > boot the failing configuration with U-Boot instead of the RaspberryPi > firmware, and both of them worked. I guess that leaves us with a > bootloader bug, and nothing related to Linux after all. > > Sorry for the noise, > Maxime Thanks a lot for figuring this out, Maxime! The idea to use -Os is much nicer than what I was going for: padding a working kernel with 0s at the end! I unfortunately did not try to reproduce your success with u-boot, but I'll get to it in the near future. Thanks again to everyone involved for all the help and support! Martin