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 1C38AC43217 for ; Tue, 3 May 2022 02:55:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbiECC7L (ORCPT ); Mon, 2 May 2022 22:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbiECC7K (ORCPT ); Mon, 2 May 2022 22:59:10 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AA2BCB; Mon, 2 May 2022 19:55:39 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id e189so17022318oia.8; Mon, 02 May 2022 19:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=i7O9COFXjCPh9mubsfg4ugisxlHT5wiyH0MXCmkS/E9xJKUh9gtudd7mJOdt/lRU5s XviWqp4uUxdnstDiOc3faSUjpvZagNsoavB45X1ONbSZGvYwKqCS3Q4EtrJCw38BFSTy GfNBd7eRD5cCXw35f/BALZfCm/WuBWvrvy8CHiiL2yrOPGPoRYnxiuE92NR59Xn+HZB5 KmWN9JXFhIw1dIK45cEVSlCPHBcxANoVGaomRAUVkCZ8j7FysnRmKK/nqDi0QqiAU5qN jRYD07RpfwKLRhTaIOHoyPVauNdPj2DaFQwX8xWbJUP/uVrx5krbwy8PAtKyqKnZh5Fk 0gYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=AScAAAfQBs5jsGUnRtMO/HXUdbYQCM4L4yz1STlLCOHqWzq8GhLjJj0QEtr+mHwZzC UR1hGujcZmtfqB50KWZgDd3N8rcbx+rhLdM1Nsax+a7HdWyOaVsSYEmxKSW4ZyIGJlBE 1XoW7E5Q+/Ft6MK2sdqL96H0vQTLq9QuhiX4g7Pgh3cx1FPTowE47zfEf8Hh7ycIxROO D9eL5Cs63VjeA/iZfkGd0nMYrMkshj2LXcuI5XeGbWjxVREGgkFBNyafTbeSze4rVa0d qy8Wzda0Yby76G5FfylPPaP2eq00jPzZIMzKC6/DQcZdk5a+Zd0BFk+cEUKojzPgqBLy 2Nww== X-Gm-Message-State: AOAM5317zaNYQN8hD2cFd2BVU8Nmj/xVpO+LojrlUdYdHny8dK/KzJh9 g/g1lqIKcw5nP91qVU3wmT8= X-Google-Smtp-Source: ABdhPJznbXpW7jRNt5UM7xwEtyewbcsNlzza6ofH1kXi3NQqMh/99I9VMArk+DRpxcBP+PFc4iZ78A== X-Received: by 2002:a05:6808:1115:b0:2ec:e78e:3fc0 with SMTP id e21-20020a056808111500b002ece78e3fc0mr978131oih.207.1651546539238; Mon, 02 May 2022 19:55:39 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m17-20020a9d7e91000000b006060322126csm1564658otp.60.2022.05.02.19.55.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 19:55:38 -0700 (PDT) Sender: Guenter Roeck Message-ID: <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> Date: Mon, 2 May 2022 19:55:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Arnd Bergmann Cc: Robert Jarzmik , Linux ARM , Daniel Mack , Haojian Zhuang , Marek Vasut , Philipp Zabel , Lubomir Rintel , Paul Parsons , Sergey Lapin , Thomas Bogendoerfer , Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Helge Deller , Mark Brown , Linus Walleij , Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , IDE-ML , linux-clk , Linux PM list , "open list:HID CORE LAYER" , patches@opensource.cirrus.com, linux-leds@vger.kernel.org, linux-mmc , linux-mtd , linux-rtc@vger.kernel.org, USB list , Linux Fbdev development list , dri-devel , ALSA Development Mailing List References: <20220419163810.2118169-1-arnd@kernel.org> <3df135a2-17f5-d6c6-b4a8-e1a60e254297@roeck-us.net> <6f1b27fa-96d1-4be7-ac6a-762610314f2a@roeck-us.net> <8d6d453a-e6fc-439b-2f34-e60c22fc9e98@roeck-us.net> <149509dd-f43d-1b27-4395-81eab4ff3455@roeck-us.net> <4dcdbfe2-9edf-320b-d123-3b62c8b5e28e@roeck-us.net> From: Guenter Roeck Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org On 5/2/22 14:03, Arnd Bergmann wrote: > On Mon, May 2, 2022 at 10:35 PM Guenter Roeck wrote: >> On 5/2/22 12:21, Arnd Bergmann wrote: >>> >> >> To boot from initrd: >> >> qemu-system-arm -M z2 -kernel \ >> arch/arm/boot/zImage -no-reboot -initrd \ >> rootfs-armv5.cpio --append \ >> "panic=-1 slub_debug=FZPUA rdinit=/sbin/init console=ttyS0" -nographic \ >> -monitor null -serial stdio >> >> where rootfs-armv5.cpio is from my repository at github.com. >> >> https://github.com/groeck/linux-build-test/blob/master/rootfs/arm/rootfs-armv5.cpio.gz >> > > Ok, that works here with any configuration, I don't see a regression. > Could this be a problem with the size increase? The machine only has > 32MB of RAM, so it's possible that the multiplatform-enabled kernel > with DT support etc pushes it over the edge, especially with an initramfs. > qemu puts initrd in the middle of available memory. With the image size being ~1MB larger than with v5.18-rc, this is too much, and the kernel overwrites part of initrd. This causes it to be corrupted. It looks like that would have happened eventually, your patch series just made it happen now. The kernel is just getting too large to run on such small systems. I worked around the problem in my version of qemu by loading initrd at the end of the (small) RAM. With that, I no longer see the boot failure. Guenter 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8F15C433F5 for ; Tue, 3 May 2022 02:55:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D806210F668; Tue, 3 May 2022 02:55:41 +0000 (UTC) Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id E8B3210F663 for ; Tue, 3 May 2022 02:55:39 +0000 (UTC) Received: by mail-oi1-x229.google.com with SMTP id l16so9784343oil.6 for ; Mon, 02 May 2022 19:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=i7O9COFXjCPh9mubsfg4ugisxlHT5wiyH0MXCmkS/E9xJKUh9gtudd7mJOdt/lRU5s XviWqp4uUxdnstDiOc3faSUjpvZagNsoavB45X1ONbSZGvYwKqCS3Q4EtrJCw38BFSTy GfNBd7eRD5cCXw35f/BALZfCm/WuBWvrvy8CHiiL2yrOPGPoRYnxiuE92NR59Xn+HZB5 KmWN9JXFhIw1dIK45cEVSlCPHBcxANoVGaomRAUVkCZ8j7FysnRmKK/nqDi0QqiAU5qN jRYD07RpfwKLRhTaIOHoyPVauNdPj2DaFQwX8xWbJUP/uVrx5krbwy8PAtKyqKnZh5Fk 0gYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=2ys+qnJKIuB28d3Lq6FoPAGNlNgs0+hpf6KDhJV+qj1++ZrEydaD/eZMsk6ey7Q0x3 5U+3HklDsnUnshSG6j545RzJn52QvSI5lwM9ane490DKjkcwCsDMGTXtrSOickQV0RJN 2p1wiosXGGkArYMTasn9wbM6kYwSA3hjJEX0uC1UCzwqfg6DjcuDnOt0lgrApsHo9Oxa mlnc+3ZSgK2W4R48Fbo7vpX1PC+r6bmBwNTg/W+vzACOBZeKgP3kW/KF9zo/EUemPUmg jOLrtuZpySwIx10nMV4qRotIhcejqYY9lNEMiy+Ba/417m8Ygyyx3+nDz9ZvD+vSiPic aoyw== X-Gm-Message-State: AOAM533sYQ8Zyl3JdjVSq2Iq8KWlD/8R2u8H/2vds1YJ4n17O9QrVDIu Sba6ZGKMyTN5j8xEIK/y/6k= X-Google-Smtp-Source: ABdhPJznbXpW7jRNt5UM7xwEtyewbcsNlzza6ofH1kXi3NQqMh/99I9VMArk+DRpxcBP+PFc4iZ78A== X-Received: by 2002:a05:6808:1115:b0:2ec:e78e:3fc0 with SMTP id e21-20020a056808111500b002ece78e3fc0mr978131oih.207.1651546539238; Mon, 02 May 2022 19:55:39 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m17-20020a9d7e91000000b006060322126csm1564658otp.60.2022.05.02.19.55.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 19:55:38 -0700 (PDT) Message-ID: <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> Date: Mon, 2 May 2022 19:55:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Arnd Bergmann References: <20220419163810.2118169-1-arnd@kernel.org> <3df135a2-17f5-d6c6-b4a8-e1a60e254297@roeck-us.net> <6f1b27fa-96d1-4be7-ac6a-762610314f2a@roeck-us.net> <8d6d453a-e6fc-439b-2f34-e60c22fc9e98@roeck-us.net> <149509dd-f43d-1b27-4395-81eab4ff3455@roeck-us.net> <4dcdbfe2-9edf-320b-d123-3b62c8b5e28e@roeck-us.net> From: Guenter Roeck Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , USB list , "Rafael J. Wysocki" , Viresh Kumar , Linux Fbdev development list , Dominik Brodowski , "open list:BROADCOM NVRAM DRIVER" , IDE-ML , linux-mtd , Robert Jarzmik , linux-clk , linux-leds@vger.kernel.org, linux-rtc@vger.kernel.org, Helge Deller , Marek Vasut , Paul Parsons , Sergey Lapin , ALSA Development Mailing List , Linux PM list , "open list:HID CORE LAYER" , Haojian Zhuang , Lubomir Rintel , Mark Brown , dri-devel , Linux ARM , Thomas Bogendoerfer , Stephen Boyd , patches@opensource.cirrus.com, Dmitry Torokhov , linux-mmc , Linux Kernel Mailing List , Michael Turquette , Daniel Mack Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 5/2/22 14:03, Arnd Bergmann wrote: > On Mon, May 2, 2022 at 10:35 PM Guenter Roeck wrote: >> On 5/2/22 12:21, Arnd Bergmann wrote: >>> >> >> To boot from initrd: >> >> qemu-system-arm -M z2 -kernel \ >> arch/arm/boot/zImage -no-reboot -initrd \ >> rootfs-armv5.cpio --append \ >> "panic=-1 slub_debug=FZPUA rdinit=/sbin/init console=ttyS0" -nographic \ >> -monitor null -serial stdio >> >> where rootfs-armv5.cpio is from my repository at github.com. >> >> https://github.com/groeck/linux-build-test/blob/master/rootfs/arm/rootfs-armv5.cpio.gz >> > > Ok, that works here with any configuration, I don't see a regression. > Could this be a problem with the size increase? The machine only has > 32MB of RAM, so it's possible that the multiplatform-enabled kernel > with DT support etc pushes it over the edge, especially with an initramfs. > qemu puts initrd in the middle of available memory. With the image size being ~1MB larger than with v5.18-rc, this is too much, and the kernel overwrites part of initrd. This causes it to be corrupted. It looks like that would have happened eventually, your patch series just made it happen now. The kernel is just getting too large to run on such small systems. I worked around the problem in my version of qemu by loading initrd at the end of the (small) RAM. With that, I no longer see the boot failure. Guenter 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8CEAC433EF for ; Tue, 3 May 2022 02:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:Subject:From:References:Cc:To: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zRQXHzQHPJeLL6waaKFQdh5E+hG2XaO30kgQyalyZU4=; b=PED3CjyNQnbOUg RMVS8lZzz7aSWLo6skdREmQy3ffztHHV+f+ejWAZMmzJrymp5yJhpEVQkoqEb2OrZVMo5IwKDO3S5 sM2Wr/lVQJy36uP2d3j/QniJwlVVK1r1pvfVe0TCSrpNuQ7UAWHqbx2A0dEyTyvMlEqpaNY4pIZBX F3dzxkYo0ihI8qQTZ1W7YAL7Hzfi9Xbu9DdhQ5CnpwiwQ+5PXov3YcE9hg1pKBwOWGmC8meHVM7rT A4TIwl8/LmL4o8vv1MKfxldhzO+5I3Y7VEkP9aODIAU00NGU8OElDNM8XT0XraLRVBYqHoskfHbf8 PAW96aqkrAZ76DjA4jKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlihe-003Uvy-Fq; Tue, 03 May 2022 02:55:54 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlihR-003UrL-U4; Tue, 03 May 2022 02:55:43 +0000 Received: by mail-oi1-x231.google.com with SMTP id y63so17043327oia.7; Mon, 02 May 2022 19:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=i7O9COFXjCPh9mubsfg4ugisxlHT5wiyH0MXCmkS/E9xJKUh9gtudd7mJOdt/lRU5s XviWqp4uUxdnstDiOc3faSUjpvZagNsoavB45X1ONbSZGvYwKqCS3Q4EtrJCw38BFSTy GfNBd7eRD5cCXw35f/BALZfCm/WuBWvrvy8CHiiL2yrOPGPoRYnxiuE92NR59Xn+HZB5 KmWN9JXFhIw1dIK45cEVSlCPHBcxANoVGaomRAUVkCZ8j7FysnRmKK/nqDi0QqiAU5qN jRYD07RpfwKLRhTaIOHoyPVauNdPj2DaFQwX8xWbJUP/uVrx5krbwy8PAtKyqKnZh5Fk 0gYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=bhrPqX0tbeOe1FJkJr7MjE4g0lYqnb1IAaKu+mudEQ2MqV8PRTbeL3LZmEMiC5ToWp 0PhIFgrY3uJNnCE7EtfeFVaIY5YIdhNTx8bAUvUXeMG0fsK2KHn0fu04VkC3aCcHa/5g lNwOFZp6tavhtiNQvowAF/X55CNIZ19nTmYcQg+Lg8XQs8Qfk/SmNDq1MarwddzXnjr2 gikoaH0T1fYhQv2AQAqHVMxeI/hjmC4IpkzOkpZJlMoLdgzbz/lZVaj6dq7URC60DpGo VjCGV2uFcwgZs6xZYLiDuhVCvPli/bSylXpTpCqllUZ5LJU00efsfzogL7Xf5xVdrNCK +9lg== X-Gm-Message-State: AOAM5304DWu46jkhTsmcbqRFdN0HzxuZTvWMEqBpBN+8UzrizorEu1N3 3bDjRlUn0MyboSEOi3gsQDs= X-Google-Smtp-Source: ABdhPJznbXpW7jRNt5UM7xwEtyewbcsNlzza6ofH1kXi3NQqMh/99I9VMArk+DRpxcBP+PFc4iZ78A== X-Received: by 2002:a05:6808:1115:b0:2ec:e78e:3fc0 with SMTP id e21-20020a056808111500b002ece78e3fc0mr978131oih.207.1651546539238; Mon, 02 May 2022 19:55:39 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m17-20020a9d7e91000000b006060322126csm1564658otp.60.2022.05.02.19.55.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 19:55:38 -0700 (PDT) Message-ID: <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> Date: Mon, 2 May 2022 19:55:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Arnd Bergmann Cc: Robert Jarzmik , Linux ARM , Daniel Mack , Haojian Zhuang , Marek Vasut , Philipp Zabel , Lubomir Rintel , Paul Parsons , Sergey Lapin , Thomas Bogendoerfer , Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Helge Deller , Mark Brown , Linus Walleij , Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , IDE-ML , linux-clk , Linux PM list , "open list:HID CORE LAYER" , patches@opensource.cirrus.com, linux-leds@vger.kernel.org, linux-mmc , linux-mtd , linux-rtc@vger.kernel.org, USB list , Linux Fbdev development list , dri-devel , ALSA Development Mailing List References: <20220419163810.2118169-1-arnd@kernel.org> <3df135a2-17f5-d6c6-b4a8-e1a60e254297@roeck-us.net> <6f1b27fa-96d1-4be7-ac6a-762610314f2a@roeck-us.net> <8d6d453a-e6fc-439b-2f34-e60c22fc9e98@roeck-us.net> <149509dd-f43d-1b27-4395-81eab4ff3455@roeck-us.net> <4dcdbfe2-9edf-320b-d123-3b62c8b5e28e@roeck-us.net> From: Guenter Roeck Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_195542_090792_CEAD3DC4 X-CRM114-Status: GOOD ( 20.78 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On 5/2/22 14:03, Arnd Bergmann wrote: > On Mon, May 2, 2022 at 10:35 PM Guenter Roeck wrote: >> On 5/2/22 12:21, Arnd Bergmann wrote: >>> >> >> To boot from initrd: >> >> qemu-system-arm -M z2 -kernel \ >> arch/arm/boot/zImage -no-reboot -initrd \ >> rootfs-armv5.cpio --append \ >> "panic=-1 slub_debug=FZPUA rdinit=/sbin/init console=ttyS0" -nographic \ >> -monitor null -serial stdio >> >> where rootfs-armv5.cpio is from my repository at github.com. >> >> https://github.com/groeck/linux-build-test/blob/master/rootfs/arm/rootfs-armv5.cpio.gz >> > > Ok, that works here with any configuration, I don't see a regression. > Could this be a problem with the size increase? The machine only has > 32MB of RAM, so it's possible that the multiplatform-enabled kernel > with DT support etc pushes it over the edge, especially with an initramfs. > qemu puts initrd in the middle of available memory. With the image size being ~1MB larger than with v5.18-rc, this is too much, and the kernel overwrites part of initrd. This causes it to be corrupted. It looks like that would have happened eventually, your patch series just made it happen now. The kernel is just getting too large to run on such small systems. I worked around the problem in my version of qemu by loading initrd at the end of the (small) RAM. With that, I no longer see the boot failure. Guenter ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C990AC433EF for ; Tue, 3 May 2022 02:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:Subject:From:References:Cc:To: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sMEmV4LcxK0cPpo60bVaboJ7dMWiQAcCifEPWPm9CP8=; b=VPbDbJLyJq2nNA QXSsFUzU7ZtwwmsPE7+a0pJxRsTanP3opyCnN/ueIif72F+V/Meer++13fCZe0+JWZKKLXxBc2GYF oATL4eWWd96A45H51Ez8/RMLibfP9C0GfHQspD2xlHAZutVhNoqfAL+mc6rCKuZx6lJ8TVIUnexIV S4GUtVgzLBmk8k0cM3XDR8IyHYHLRnvSnHHGN7uxBVO6lVVXg8HcDyOpkBJs4BUNmVEn0QYCHHsoW YYDsabRldfx85fjWDEszIViYVq8t2bO/uKVrnMm8N49WOyKyHm+Rr0sLDPFXwCyYK8HeaFz9G7WwY XdtYLnM0xkvpmimM5eDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlihV-003UsH-PT; Tue, 03 May 2022 02:55:45 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlihR-003UrL-U4; Tue, 03 May 2022 02:55:43 +0000 Received: by mail-oi1-x231.google.com with SMTP id y63so17043327oia.7; Mon, 02 May 2022 19:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=i7O9COFXjCPh9mubsfg4ugisxlHT5wiyH0MXCmkS/E9xJKUh9gtudd7mJOdt/lRU5s XviWqp4uUxdnstDiOc3faSUjpvZagNsoavB45X1ONbSZGvYwKqCS3Q4EtrJCw38BFSTy GfNBd7eRD5cCXw35f/BALZfCm/WuBWvrvy8CHiiL2yrOPGPoRYnxiuE92NR59Xn+HZB5 KmWN9JXFhIw1dIK45cEVSlCPHBcxANoVGaomRAUVkCZ8j7FysnRmKK/nqDi0QqiAU5qN jRYD07RpfwKLRhTaIOHoyPVauNdPj2DaFQwX8xWbJUP/uVrx5krbwy8PAtKyqKnZh5Fk 0gYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=ML+ALf4muC9UINFB1D+jUSUaT6Yc1q590//LqncXPBg=; b=bhrPqX0tbeOe1FJkJr7MjE4g0lYqnb1IAaKu+mudEQ2MqV8PRTbeL3LZmEMiC5ToWp 0PhIFgrY3uJNnCE7EtfeFVaIY5YIdhNTx8bAUvUXeMG0fsK2KHn0fu04VkC3aCcHa/5g lNwOFZp6tavhtiNQvowAF/X55CNIZ19nTmYcQg+Lg8XQs8Qfk/SmNDq1MarwddzXnjr2 gikoaH0T1fYhQv2AQAqHVMxeI/hjmC4IpkzOkpZJlMoLdgzbz/lZVaj6dq7URC60DpGo VjCGV2uFcwgZs6xZYLiDuhVCvPli/bSylXpTpCqllUZ5LJU00efsfzogL7Xf5xVdrNCK +9lg== X-Gm-Message-State: AOAM5304DWu46jkhTsmcbqRFdN0HzxuZTvWMEqBpBN+8UzrizorEu1N3 3bDjRlUn0MyboSEOi3gsQDs= X-Google-Smtp-Source: ABdhPJznbXpW7jRNt5UM7xwEtyewbcsNlzza6ofH1kXi3NQqMh/99I9VMArk+DRpxcBP+PFc4iZ78A== X-Received: by 2002:a05:6808:1115:b0:2ec:e78e:3fc0 with SMTP id e21-20020a056808111500b002ece78e3fc0mr978131oih.207.1651546539238; Mon, 02 May 2022 19:55:39 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m17-20020a9d7e91000000b006060322126csm1564658otp.60.2022.05.02.19.55.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 19:55:38 -0700 (PDT) Message-ID: <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> Date: Mon, 2 May 2022 19:55:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Arnd Bergmann Cc: Robert Jarzmik , Linux ARM , Daniel Mack , Haojian Zhuang , Marek Vasut , Philipp Zabel , Lubomir Rintel , Paul Parsons , Sergey Lapin , Thomas Bogendoerfer , Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Helge Deller , Mark Brown , Linus Walleij , Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , IDE-ML , linux-clk , Linux PM list , "open list:HID CORE LAYER" , patches@opensource.cirrus.com, linux-leds@vger.kernel.org, linux-mmc , linux-mtd , linux-rtc@vger.kernel.org, USB list , Linux Fbdev development list , dri-devel , ALSA Development Mailing List References: <20220419163810.2118169-1-arnd@kernel.org> <3df135a2-17f5-d6c6-b4a8-e1a60e254297@roeck-us.net> <6f1b27fa-96d1-4be7-ac6a-762610314f2a@roeck-us.net> <8d6d453a-e6fc-439b-2f34-e60c22fc9e98@roeck-us.net> <149509dd-f43d-1b27-4395-81eab4ff3455@roeck-us.net> <4dcdbfe2-9edf-320b-d123-3b62c8b5e28e@roeck-us.net> From: Guenter Roeck Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_195542_090792_CEAD3DC4 X-CRM114-Status: GOOD ( 20.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/2/22 14:03, Arnd Bergmann wrote: > On Mon, May 2, 2022 at 10:35 PM Guenter Roeck wrote: >> On 5/2/22 12:21, Arnd Bergmann wrote: >>> >> >> To boot from initrd: >> >> qemu-system-arm -M z2 -kernel \ >> arch/arm/boot/zImage -no-reboot -initrd \ >> rootfs-armv5.cpio --append \ >> "panic=-1 slub_debug=FZPUA rdinit=/sbin/init console=ttyS0" -nographic \ >> -monitor null -serial stdio >> >> where rootfs-armv5.cpio is from my repository at github.com. >> >> https://github.com/groeck/linux-build-test/blob/master/rootfs/arm/rootfs-armv5.cpio.gz >> > > Ok, that works here with any configuration, I don't see a regression. > Could this be a problem with the size increase? The machine only has > 32MB of RAM, so it's possible that the multiplatform-enabled kernel > with DT support etc pushes it over the edge, especially with an initramfs. > qemu puts initrd in the middle of available memory. With the image size being ~1MB larger than with v5.18-rc, this is too much, and the kernel overwrites part of initrd. This causes it to be corrupted. It looks like that would have happened eventually, your patch series just made it happen now. The kernel is just getting too large to run on such small systems. I worked around the problem in my version of qemu by loading initrd at the end of the (small) RAM. With that, I no longer see the boot failure. Guenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel