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 E6A1BC433F5 for ; Sun, 1 May 2022 06:37:51 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jJXS/SmaHYLIS0GmxyAakjcbvVeKs5oxvBbURtwRA4U=; b=ut1SEsPZdXdayy cgPHVRfkIt14jL5Ik5VhALx6u3mkQ92oW5N5yMgQzjgA2p23VvkBew2d95li+ctqQ9JesyKQ3kth4 fHnRZB7BneCnAK9LxY1Dgcj1SVBvnd3UCvCla9D8iLE/Ui+21S1xNV4ohbIVMbwENZiBpeYD9Vg3z 8nELovJ0RFgn5hujKiWQDVeCIGzw07FPbv7OYrMDmmkLvl8S2PqY9volxA2euHKbx4pKJ0h+4AHGS ugftdMlCwYkJxTMOPp9NTOgAdQJd/3miHT94IqacfdLCh2dTxG7MICYn/WxbPCxEZI2cOYHQMyco6 RpF0pNT0XOEp4ZQXQr8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nl3Bn-00Fffn-6d; Sun, 01 May 2022 06:36:15 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nl3Bk-00Ffev-52; Sun, 01 May 2022 06:36:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zMD4l/5Yp5noATOxsomtn9uqwj1ijFkZXxY4PadNJEc=; b=DiBgExZ2aFk1+wh8QtkKwZo18+ RILXrbmHMSW20x90e8CQKMMcK950wv7VWUDausJJR3sIyNzeuYfaT6NBhDS6NeduoWG6F+AzvDicO R1GD5P5bEe2zf4x0paq0m4WyzGB+efA6zUIx3WXoKQXj50r5svCBeNq1Sctg3PDzQF9HYS7QRc8x3 3RcbAeFOOOybNT5og/ZfN2hDEghLVDRryTrjdPhn9UXDJipkaSa9TxQ8Xj/7L6ertd1a3Wao1xd3x PnnhEDUs07YOwTmQKOgql7SpyA/BNv2ObJs58rDZnghi59En/6A29x/linm2u4pcrU1GhQhRLbAjg edmDqv2g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58470) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nl3BG-0005zM-7z; Sun, 01 May 2022 07:35:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nl3B6-0003fQ-IU; Sun, 01 May 2022 07:35:32 +0100 Date: Sun, 1 May 2022 07:35:32 +0100 From: "Russell King (Oracle)" To: Huacai Chen Cc: Arnd Bergmann , Huacai Chen , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Guo Ren , Xuerui Wang , Jiaxun Yang , Linux ARM , Catalin Marinas , Will Deacon , linux-riscv , Paul Walmsley , Palmer Dabbelt , Albert Ou , Ard Biesheuvel , linux-efi Subject: Re: [PATCH V9 21/24] LoongArch: Add zboot (compressed kernel) support Message-ID: References: <20220430090518.3127980-1-chenhuacai@loongson.cn> <20220430090518.3127980-22-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220430_233612_217499_E8F89772 X-CRM114-Status: GOOD ( 22.33 ) 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, May 01, 2022 at 01:22:25PM +0800, Huacai Chen wrote: > Hi, Arnd, > > On Sat, Apr 30, 2022 at 7:02 PM Arnd Bergmann wrote: > > > > On Sat, Apr 30, 2022 at 11:05 AM Huacai Chen wrote: > > > > > > This patch adds zboot (self-extracting compressed kernel) support, all > > > existing in-kernel compressing algorithm and efistub are supported. > > > > > > Signed-off-by: Huacai Chen > > > > I have no objections to adding a decompressor in principle, and > > the implementation seems reasonable. However, I think we should try to > > be consistent between architectures. On both arm64 and riscv, the > > maintainers decided to not include a decompressor and instead leave > > it up to the boot loader to decompress the kernel and enter it from there. > X86, ARM32 and MIPS already support self-extracting kernel, and in > 5.17 we even support self-extracting modules. So I think a > self-extracting kernel is better than a pure compressed kernel. FYI, kernel modules are not self-extracting. They don't contain the code to do the decompression - that is contained within the kernel, and it is the kernel that does the decompression. The userspace tooling tells the kernel that the module is compressed. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel