From patchwork Wed Apr 12 21:21:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 13209532 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 29DF2C7619A for ; Wed, 12 Apr 2023 21:23:35 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=evuDgN15bL2IJbp9lIGmHqiSYsGsk8+EU7sbnHBu/I0=; b=3XPkLV3O9zWpLV gIxzb4PXBED57Sn7iWZ6A/bvB3jaKfi2fLCYkMh2xlIUaI9hgNQ7arYmYWAlf7Z8YdDoFccYrmmoE n8J1pq0xRbOKr/BxUqNcd0D5IDScP+5Bmwg/NwK1d2Cj0N4BOXma+oOOzVM+yXJYyfop53qBGv6Sc CLTy/XjWCecYpA3FyEOQoCTKTLC4do1sA+tBehFp/4hFMCAefGW9p1+7MAwJN+aIzb8uk+XvTRLg7 K4HUDw5RaTOiQhh8C8HlWcqopnJstlicT0S0/FGCdHglsjgpyGqp9wK1/R+5DEXItRGPz58RvjsG0 Y0t59eC6v/fL6V7fov3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmhvH-004NbY-2g; Wed, 12 Apr 2023 21:22:35 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmhvE-004NZL-1H for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2023 21:22:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1681334509; i=j.neuschaefer@gmx.net; bh=n1k64mXjIm6Bb6yrRLPzFJ9UN7psdplPSMfpPAU7vVs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=pF5aYGk2FmuuFWcsXp4WPd+tfUgOVQ3AzccOuY80f3iiwSKhA0a1EG+xo7fiUeo/Z yA2scWfdRklOrvH5AeJWcTasa0AjjgPsZioY+dw36yzq1UUa+apwL5SX90hzUBUFHf f6QJslrXOPg69e+PefmDdvzwwF+lgx2wcpaXHB47kjj2SdZM+sQ9e2t0oIrobr16sD agUqR/dpJYPdaQxyovj5k9AqoQC5gp3KCxcCka5TLm2kHq0Gt784nKFD+723EZmYSt sqpoI/naprIhbnVDCao3XD/zOaSSrQyuSnz0cWDmjNX1IiFeZiEhUi/VHNkBFdAd2b ka6+iiyX/VGow== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([185.66.193.41]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M7b2T-1pjACu0M3B-0080Cf; Wed, 12 Apr 2023 23:21:49 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Cc: Russell King , Nick Terrell , Arnd Bergmann , Tony Lindgren , Geert Uytterhoeven , Linus Walleij , Sebastian Reichel , Nick Hawkins , Christophe Leroy , =?utf-8?q?Jonathan_Neusch?= =?utf-8?q?=C3=A4fer?= , Florian Fainelli , Nick Desaulniers , Xin Li , Seung-Woo Kim , Paul Bolle , Bart Van Assche , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] ARM ZSTD boot compression Date: Wed, 12 Apr 2023 23:21:23 +0200 Message-Id: <20230412212126.3966502-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:0BpC4tU9DiS2KiZbIwSstRQbwo4nJqCU/g1hdQwYi8UZAHtLCcj 0fdMFvaeTE1yLtEYkqq8KRBQdCJQq8ScLZ629MwHCVehY+FM0F2C29Y3DEMBVH9auEmW4bO IfTVUBaXncOvgy15N8irV/lKw+ezIrqM2Feoy1HH2bqhhDjwgSvmK0FqDh0Abyt1wv6/G5y 3zAw3wqt9WenUbmp1YrQQ== UI-OutboundReport: notjunk:1;M01:P0:UwrKKqhLQGA=;euOqLfHvy4QvTsfZ5FCaxrDzOB1 It83uznIjC2xTQ4eW0Y28lfM+yTzxUgxmD5rNV0N3bz0JeskMJLnu6jKJM/JeYopxJJG6JiXV 13IV2+xg3N2nysxq8hqtCsLD5ESVs1Ydt3q3DiYHzYRMCJwCJm0oeMB244EFcH+7VsMLisafo KoulktUQCgt6L91ZYUSqYH4TMtUie3ib+twA8I1qwgnPusMm5LMG8XiinV/W0ucgM8ZfR9dXS GZnUl7KSo2bdGfGD64VdqxLd44XUvlxtyL6XnyWpKRwpaUEoyuNKv+nAvOdG51vtbfNRwXsKE XL1/r3EtJeYwHjaWkG9aMN5DX8NRCw93NMRF9g0eyefiOsXuQrMgiaBeAJ1dg3skV9C3WYRv7 ZI13yOclARm8xcS7PK1AFBUDzNNuGh08AzCrYdiyB28OtcpKxoHAwXeP94k6PAaSfuvSmbBfd 6s/+O+HrGvwDN0v2SxSk1m1RNC48WJ/uENhDrZrHkbyFXy43aaWfSc7IdQ8WdorqM4E4SgFmd kr2sDrfm/kiTKc9QjFV/N5eGeZfIo/gfe7t7hNzJSEDo3lBquv5/1xXzplW/k/MPvIE+y5a+c ybzJ7jQHVJHVRn0YB/1ZJ0KGtQCJ6bdopZLKxzC1yGP8/Un5OO0VJrFRa7VphnwMl0HmrJ9cP xqxyLR91KNVJf5SabkIlRR4bUn1hMBjmSscwRObbiM+0VljR9qHdumQGSPs8Y+e3M3UPCYA45 Q+JbJGR4JxfIqa9bkcetJd5J2Vt0gGi/C2hQPyyj1a5I+k0tcFqouQa9csDFv2xr2yx7dtsWl XIF5APXYzdXOjcFCjCmAFSi6KiAzuVQQrxlYupr7jOeE3o2oX2j5jmqjxSYLuqKYIJ7bdFU3U l1jSkCQW/TWi2Qyat4anpM3EF5qnqhY/lPS2perfkIHoIy+Vt7eiOZv1jOupA/HPV0xKKQOGL saDXVLIAa5QhxYQ3pCFYNii0zgc= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230412_142232_722239_BA7A661C X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset enables ZSTD kernel (de)compression on 32-bit ARM. Unfortunately, it is much slower than I hoped (tested on ARM926EJ-S): - LZO: 7.2 MiB, 6 seconds - ZSTD: 5.6 MiB, 60 seconds Jonathan Neuschäfer (3): ARM: compressed: Pass the actual output length to the decompressor ARM: compressed: Bump MALLOC_SIZE to 128 KiB ARM: compressed: Enable ZSTD compression arch/arm/Kconfig | 1 + arch/arm/boot/compressed/Makefile | 5 +++-- arch/arm/boot/compressed/decompress.c | 8 ++++++-- arch/arm/boot/compressed/head.S | 4 ++-- arch/arm/boot/compressed/misc.c | 12 ++++++++++-- 5 files changed, 22 insertions(+), 8 deletions(-) --- 2.39.2