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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F797C38145 for ; Thu, 8 Sep 2022 08:15:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E20848D0002; Thu, 8 Sep 2022 04:15:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DCFD96B0073; Thu, 8 Sep 2022 04:15:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CBEDA8D0002; Thu, 8 Sep 2022 04:15:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id BC03C6B0072 for ; Thu, 8 Sep 2022 04:15:08 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 82FF1A1A29 for ; Thu, 8 Sep 2022 08:15:08 +0000 (UTC) X-FDA: 79888207896.17.EDA5333 Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) by imf13.hostedemail.com (Postfix) with ESMTP id E704E20078 for ; Thu, 8 Sep 2022 08:15:07 +0000 (UTC) Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1oWCgK-0004bp-UR; 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 ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of martin.roukala@mupuf.org designates 185.226.149.38 as permitted sender) smtp.mailfrom=martin.roukala@mupuf.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662624908; a=rsa-sha256; cv=none; b=MHNtQiJ6o6ZX7iMaun1rXinAJHVvI4nlGMSWbi6mDWg551TJno1OTfjjqgze+VdK39NRfB rN+oGZzvqzqZAvBZ0lPegMZ9cSMSzUDEOzehc3YG5TGgCRD2GesjSeHYLrpT2srTEKXBIN BeEkFX3wM6nqbGF4pt9E3AmeqP1ivj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662624908; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W5PZXmavuBYslek/cAIvXsmuKu4OIb3TwpE8Z6uf/Zg=; b=0e6nYWI056xZHWbgOxVhf2yDG+/kmPxDJG0lHzuJZiJdlZ6IcW5cfaFQg+SztC2VF7r0DE YW9o/00uFNKPfkB5x7rpjDCURkrdgTle3vfp8MBjSIxXkK+rAAnoMRhW/AT/9/DxgwbiYL kaGMQ5BRwb2wHdVb92RCWyJfnu9Z6sE= X-Rspamd-Queue-Id: E704E20078 X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of martin.roukala@mupuf.org designates 185.226.149.38 as permitted sender) smtp.mailfrom=martin.roukala@mupuf.org; dmarc=none X-Rspamd-Server: rspam04 X-Stat-Signature: ws1sgtt1ui6o15zjx14osy994cng3kyg X-HE-Tag: 1662624907-103729 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 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