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 9A347C43219 for ; Tue, 3 May 2022 14:05:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236668AbiECOIi (ORCPT ); Tue, 3 May 2022 10:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236230AbiECOIg (ORCPT ); Tue, 3 May 2022 10:08:36 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36161EADD; Tue, 3 May 2022 07:05:03 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id z8so18283201oix.3; Tue, 03 May 2022 07:05:03 -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:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=nmtAO8elN+lD21aNW4PeFwV5qviuq6Y4sVLZWcQC9zZn6UqsLXYF5ciWRgl0+lA1Wo Q3rLe4Fskzg95B7RE9bBDzCWYoXQcNXwViucb5QcW8FGpQqDvUf5YZDsdBhza6rYepvt JfGvKjbu2S1tIWfgmVuDBkIJnidthNgLCkvix0KKZ/uKOs1c5s5gsxh2uVagQLRY6nw/ ziKH7/MVdkOxup3VPlggEPris50qLUCDUg9E33r7OhDbS5bq0RNLc5yT2Ouqb/LH4LOT N/oRmt4dIHZssgokdRevfTbu/juuu2xeyRBaFEeQbqQW6cVYD7R5t3xz7Vo6hhn100CX OKdg== 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 :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=yDASM6rLJbKX9+ZVLg892YHe+za9Eudw4dVMdkqwtGrE/Fsso8IYnAC6pDNj3glBci h5qmg4AzpgUPm+NZIIzKePXcxlKrKcojE25DvCs+EkMUd/g03kbK2c4e5vLQ+YBxX5Sq tedkXejWxzGvqYo8xhGeAEMyqqpHNBR+/mI4hYUCjGdroTGIY531YrdI1PBIY4Oc/RR9 FsGW8BwSprfejNnrqZ7ffZJMU4PQ75dv11xNKpn4uzx+yrsS7dZrdc2Xta1cuvblikHR u/ZB6O5zrAx5E0snvd2ULn5sdIC/gnTHCUOwHXivFgG7KcOURKqzWt+zCuOJ3JQQGRPd kX5A== X-Gm-Message-State: AOAM5334v8GF7VvLDFyoThb5yWDY715wrSL36U1B4eQNUHMlIAT44ltn /AIqRT/yMjljZjdbP3069QE= X-Google-Smtp-Source: ABdhPJzzGJEdAdih1u7jF2kiLOrOxmCv3lvE9XNEtKe9LYoSPKte95Aq4ECL/l2Oq3F4Q7XGCpzu3g== X-Received: by 2002:a05:6808:2007:b0:325:7c10:475e with SMTP id q7-20020a056808200700b003257c10475emr1861677oiw.250.1651586703247; Tue, 03 May 2022 07:05:03 -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 k6-20020a056830168600b0060603221249sm4013581otr.25.2022.05.03.07.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 07:05:00 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Tue, 3 May 2022 07:04:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support 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> <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> <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> From: Guenter Roeck 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/3/22 00:17, Arnd Bergmann wrote: > On Tue, May 3, 2022 at 4:55 AM Guenter Roeck wrote: >> 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: >> >> 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. > > Ok, thanks for confirming. If it's just the image size that changed, > then I think > we can live with it. Having the kernel image grow by 1MB seems excessive > though, I'd like to understand better where that increase comes from. > > Starting out from pxa_defconfig, I see a 40KB increase from the final patch > that moves to multiplatform support, which I think is fine. > > If you have a z2 specific config, that would probably not enable CONFIG_OF, > which is always turned on for multiplatform, but again that only adds around > 250KB in my builds (using gcc-11). This is more than I'd like it to be, but > still much less than 1MB. > Maybe it is a bit less; I only compared the size of "Image". Either case, it is enough to cause the problem. I am not sure if it is worth the time trying to track this down further. 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 A2428C433F5 for ; Tue, 3 May 2022 14:05:29 +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:From:References:Cc:To:Subject: 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=48vBeo2uZQaKTBT9kVfzDaMh9XrXjivNdxWGeRGFGCQ=; b=3DFtghRNPlBcZe lqUK7Fus9s1lPzhJ/TbyDwOwYh3QUcDa8/nL05b9v+OB+gfxA2Ewt578i4x84SfGKMvv84cwEKDiX gVHkPuyQLJDhYM9NxrUnRzrOlMPIXqIwHPhl/M14LtCcBAWuE2JlzytscZUARaYAy/mUhtWVcEh0m 2ouZV/tPpK+jDwGYfL5Gro4Vz3A3U6zXwYQBAuLX6idhv/W04lACb0JLQTT//oPzrXXO42g5ASFwx zCrNj0SdXM7Ak6ODs7tM+lNjx3jt0+RKusMZG3Bk8Yt+pFU+9ffEJrZ5JZwsIA1ktLBkrlGAGsRcw 4Q2pHXDYIX804rV8iwTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlt9S-0068fB-Hi; Tue, 03 May 2022 14:05:18 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlt9H-0068aj-6C; Tue, 03 May 2022 14:05:08 +0000 Received: by mail-oi1-x22e.google.com with SMTP id s131so18279563oie.1; Tue, 03 May 2022 07:05:03 -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:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=nmtAO8elN+lD21aNW4PeFwV5qviuq6Y4sVLZWcQC9zZn6UqsLXYF5ciWRgl0+lA1Wo Q3rLe4Fskzg95B7RE9bBDzCWYoXQcNXwViucb5QcW8FGpQqDvUf5YZDsdBhza6rYepvt JfGvKjbu2S1tIWfgmVuDBkIJnidthNgLCkvix0KKZ/uKOs1c5s5gsxh2uVagQLRY6nw/ ziKH7/MVdkOxup3VPlggEPris50qLUCDUg9E33r7OhDbS5bq0RNLc5yT2Ouqb/LH4LOT N/oRmt4dIHZssgokdRevfTbu/juuu2xeyRBaFEeQbqQW6cVYD7R5t3xz7Vo6hhn100CX OKdg== 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 :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=KeLLVttFvENUUjZN0znVOUfFNdUts+oMRS3XbDTM99CvGz7B5FddmH3r0gKUMSaEfy 8+n8CWgmn5T4B5f+hFZFBZbUNyRdyv6ykOTrIPVwKnm9XTQNZ1YMmOjbkKZqri5gPa2y Ynwimy4gKS1GTKWOOgEELb0Oialrvq3azMGZXgqjX26HC2jEh+XbVJw4cf/tfT3brr7x 7McXvico/t/5m4ARg+o6e/DCeiMDjHOinMRWOXsd/ErhkGQbflKedIPJCJKqkql7S7uP 2uM7WLUFik3f1tc9Whk0OYaYuZtkhmKmaTt2akgGtsq6Shuj0yFm1XEeRqlZWAl2Qb5k zFqQ== X-Gm-Message-State: AOAM531s3mIXY+/zhKvGojbwg0JB2Kbp2LTyWeMyOer0UAmMXyeJmI2V /vMXbyU5rZJ7n3DslnxV720= X-Google-Smtp-Source: ABdhPJzzGJEdAdih1u7jF2kiLOrOxmCv3lvE9XNEtKe9LYoSPKte95Aq4ECL/l2Oq3F4Q7XGCpzu3g== X-Received: by 2002:a05:6808:2007:b0:325:7c10:475e with SMTP id q7-20020a056808200700b003257c10475emr1861677oiw.250.1651586703247; Tue, 03 May 2022 07:05:03 -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 k6-20020a056830168600b0060603221249sm4013581otr.25.2022.05.03.07.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 07:05:00 -0700 (PDT) Message-ID: Date: Tue, 3 May 2022 07:04:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support 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> <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> <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> From: Guenter Roeck In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_070507_259305_99FD27CF X-CRM114-Status: GOOD ( 28.69 ) 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/3/22 00:17, Arnd Bergmann wrote: > On Tue, May 3, 2022 at 4:55 AM Guenter Roeck wrote: >> 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: >> >> 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. > > Ok, thanks for confirming. If it's just the image size that changed, > then I think > we can live with it. Having the kernel image grow by 1MB seems excessive > though, I'd like to understand better where that increase comes from. > > Starting out from pxa_defconfig, I see a 40KB increase from the final patch > that moves to multiplatform support, which I think is fine. > > If you have a z2 specific config, that would probably not enable CONFIG_OF, > which is always turned on for multiplatform, but again that only adds around > 250KB in my builds (using gcc-11). This is more than I'd like it to be, but > still much less than 1MB. > Maybe it is a bit less; I only compared the size of "Image". Either case, it is enough to cause the problem. I am not sure if it is worth the time trying to track this down further. 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 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 064EEC433F5 for ; Tue, 3 May 2022 14:05:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3ED8410EA5A; Tue, 3 May 2022 14:05:05 +0000 (UTC) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0FAAC10EA5A for ; Tue, 3 May 2022 14:05:04 +0000 (UTC) Received: by mail-oi1-x22b.google.com with SMTP id y63so18269178oia.7 for ; Tue, 03 May 2022 07:05:04 -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:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=nmtAO8elN+lD21aNW4PeFwV5qviuq6Y4sVLZWcQC9zZn6UqsLXYF5ciWRgl0+lA1Wo Q3rLe4Fskzg95B7RE9bBDzCWYoXQcNXwViucb5QcW8FGpQqDvUf5YZDsdBhza6rYepvt JfGvKjbu2S1tIWfgmVuDBkIJnidthNgLCkvix0KKZ/uKOs1c5s5gsxh2uVagQLRY6nw/ ziKH7/MVdkOxup3VPlggEPris50qLUCDUg9E33r7OhDbS5bq0RNLc5yT2Ouqb/LH4LOT N/oRmt4dIHZssgokdRevfTbu/juuu2xeyRBaFEeQbqQW6cVYD7R5t3xz7Vo6hhn100CX OKdg== 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 :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=rb+sNYcclKvSACo+rVgoL+3+TL6Zo+0CwFmndsDm/6pPZhOpsYATD/FMF3NHW+gx+r m14Dkhzhvl3xI7TYhG96njIj90jp5G88DEZPs8zkGiuLt8tOUpbQPb7uCNod39qhMPMv X4VWwjjue0J/8z2PIJ9EUfP9iPCwrs65vPgz/XjlG6ntOMs2X86djOsxuVtU91ysgOgT z5Gp/kq4afQvkGMv/b0OgeKo4S94tiO8/KXUIZ3H7vTScRixUkPmV4TF6S4t0sd5xikO rozwDM7aFmRZjC4kFaEWFeNKt4tsH8XYVQfz17Gd4O4IUXwFQ6KIjmnF+NV2/Uk0a4f3 ho4A== X-Gm-Message-State: AOAM5312bbCsATatJUvvu4qWhcVBFTizplO4qtpgHjm19lhMLFqKHLgW dIZZkm/58o6OpG3p9qdK0q0= X-Google-Smtp-Source: ABdhPJzzGJEdAdih1u7jF2kiLOrOxmCv3lvE9XNEtKe9LYoSPKte95Aq4ECL/l2Oq3F4Q7XGCpzu3g== X-Received: by 2002:a05:6808:2007:b0:325:7c10:475e with SMTP id q7-20020a056808200700b003257c10475emr1861677oiw.250.1651586703247; Tue, 03 May 2022 07:05:03 -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 k6-20020a056830168600b0060603221249sm4013581otr.25.2022.05.03.07.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 07:05:00 -0700 (PDT) Message-ID: Date: Tue, 3 May 2022 07:04:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support Content-Language: en-US To: Arnd Bergmann References: <20220419163810.2118169-1-arnd@kernel.org> <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> <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> From: Guenter Roeck 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/3/22 00:17, Arnd Bergmann wrote: > On Tue, May 3, 2022 at 4:55 AM Guenter Roeck wrote: >> 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: >> >> 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. > > Ok, thanks for confirming. If it's just the image size that changed, > then I think > we can live with it. Having the kernel image grow by 1MB seems excessive > though, I'd like to understand better where that increase comes from. > > Starting out from pxa_defconfig, I see a 40KB increase from the final patch > that moves to multiplatform support, which I think is fine. > > If you have a z2 specific config, that would probably not enable CONFIG_OF, > which is always turned on for multiplatform, but again that only adds around > 250KB in my builds (using gcc-11). This is more than I'd like it to be, but > still much less than 1MB. > Maybe it is a bit less; I only compared the size of "Image". Either case, it is enough to cause the problem. I am not sure if it is worth the time trying to track this down further. 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 DEC17C433F5 for ; Tue, 3 May 2022 14:06:34 +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:From:References:Cc:To:Subject: 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=NyG9tnQpEVq/9BeJb/JiD5XuxGIF/snM5I/2UJRWezk=; b=NCQVP/OrZEyjk4 6fu+I3gHrBC/jlTTGt+kwIlGIJzVZAbFHVCOJ3UVQMMANwkQZlBjJ4IKz+moAsosFsSlNIkV5aaHY sU18Ly4qRNGNMpzUoC3oBKrvv93gMfEGriVX0SgjkhK7yjUhcFa3anuEENBAkIdX6xsbxqZUV9eBv 2tlUIcuHfg2fDOFxizSzJ7CO1UOGmyew04WpWaaf2BNPG5njXxmgjvHmi1txm8z8XCHwRFoFIKNHn +PCJWe2fRCTKc1GCJQU0chsACPMpsnE/TcGoO0L3LfXvjp9Llef0OnnLVR7CeWgFX7RSFOvU/quPr CiHprnzB387czZimqRDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlt9K-0068cH-1u; Tue, 03 May 2022 14:05:10 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlt9H-0068aj-6C; Tue, 03 May 2022 14:05:08 +0000 Received: by mail-oi1-x22e.google.com with SMTP id s131so18279563oie.1; Tue, 03 May 2022 07:05:03 -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:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=nmtAO8elN+lD21aNW4PeFwV5qviuq6Y4sVLZWcQC9zZn6UqsLXYF5ciWRgl0+lA1Wo Q3rLe4Fskzg95B7RE9bBDzCWYoXQcNXwViucb5QcW8FGpQqDvUf5YZDsdBhza6rYepvt JfGvKjbu2S1tIWfgmVuDBkIJnidthNgLCkvix0KKZ/uKOs1c5s5gsxh2uVagQLRY6nw/ ziKH7/MVdkOxup3VPlggEPris50qLUCDUg9E33r7OhDbS5bq0RNLc5yT2Ouqb/LH4LOT N/oRmt4dIHZssgokdRevfTbu/juuu2xeyRBaFEeQbqQW6cVYD7R5t3xz7Vo6hhn100CX OKdg== 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 :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b5zcWYUFPO27QgFEnMVs+54HuZPkQ0FL3sPCUBagWEs=; b=KeLLVttFvENUUjZN0znVOUfFNdUts+oMRS3XbDTM99CvGz7B5FddmH3r0gKUMSaEfy 8+n8CWgmn5T4B5f+hFZFBZbUNyRdyv6ykOTrIPVwKnm9XTQNZ1YMmOjbkKZqri5gPa2y Ynwimy4gKS1GTKWOOgEELb0Oialrvq3azMGZXgqjX26HC2jEh+XbVJw4cf/tfT3brr7x 7McXvico/t/5m4ARg+o6e/DCeiMDjHOinMRWOXsd/ErhkGQbflKedIPJCJKqkql7S7uP 2uM7WLUFik3f1tc9Whk0OYaYuZtkhmKmaTt2akgGtsq6Shuj0yFm1XEeRqlZWAl2Qb5k zFqQ== X-Gm-Message-State: AOAM531s3mIXY+/zhKvGojbwg0JB2Kbp2LTyWeMyOer0UAmMXyeJmI2V /vMXbyU5rZJ7n3DslnxV720= X-Google-Smtp-Source: ABdhPJzzGJEdAdih1u7jF2kiLOrOxmCv3lvE9XNEtKe9LYoSPKte95Aq4ECL/l2Oq3F4Q7XGCpzu3g== X-Received: by 2002:a05:6808:2007:b0:325:7c10:475e with SMTP id q7-20020a056808200700b003257c10475emr1861677oiw.250.1651586703247; Tue, 03 May 2022 07:05:03 -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 k6-20020a056830168600b0060603221249sm4013581otr.25.2022.05.03.07.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 07:05:00 -0700 (PDT) Message-ID: Date: Tue, 3 May 2022 07:04:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 00/48] ARM: PXA multiplatform support 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> <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> <04840b4f-5b9d-b29a-62f7-e5148d415313@roeck-us.net> From: Guenter Roeck In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_070507_259305_99FD27CF X-CRM114-Status: GOOD ( 28.69 ) 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/3/22 00:17, Arnd Bergmann wrote: > On Tue, May 3, 2022 at 4:55 AM Guenter Roeck wrote: >> 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: >> >> 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. > > Ok, thanks for confirming. If it's just the image size that changed, > then I think > we can live with it. Having the kernel image grow by 1MB seems excessive > though, I'd like to understand better where that increase comes from. > > Starting out from pxa_defconfig, I see a 40KB increase from the final patch > that moves to multiplatform support, which I think is fine. > > If you have a z2 specific config, that would probably not enable CONFIG_OF, > which is always turned on for multiplatform, but again that only adds around > 250KB in my builds (using gcc-11). This is more than I'd like it to be, but > still much less than 1MB. > Maybe it is a bit less; I only compared the size of "Image". Either case, it is enough to cause the problem. I am not sure if it is worth the time trying to track this down further. Guenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel