From nobody Tue Feb 10 16:18:46 2026 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CC97227E95 for ; Sat, 27 Dec 2025 14:22:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766845355; cv=none; b=fFPcMR2CJqwxTz2346WylPVle34Ya8q/D3UgPto44kbnoNFkzDys3g23EcQJ18MRYx9bAcQXdzIr8XkWaq9yY0qM4OQJVR5KQ1Lf2QVMgpJOH5ggB4yiD8/Li3Y7A1jFWEx7lwmByK8OW6Xu9p8hxK2Ta+HLR3w34slBrsLRhTs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766845355; c=relaxed/simple; bh=EMPPl1WC5jzc2li05ovAeRNEiHN208aqLkzCt8HS/CQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aQOGod/dBVpAv3AYsVH0Mv8fOfdzqAU6QT2uYtw9igcks4REAqnYh4ZPbYxg+vzdhcXLdCtZH5JiHCsm9482eCRaBB57smfWWZ4S9fqAgR0s7aDB1mIsBhxG1NzbvBGcgopHgwY42gzEVCXLdF4htYeURm1+DxKwMo5L3/9FSt4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=lkbKLi2W; arc=none smtp.client-ip=209.85.167.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="lkbKLi2W" Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-455749af2e1so5486872b6e.1 for ; Sat, 27 Dec 2025 06:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1766845352; x=1767450152; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ev5dZu+MNaNiCXAmHypJMGG2mZAu4GrojXqEHePJJcQ=; b=lkbKLi2WQnorOODRstfHuA9fRDQ0r0CyJpOBUIiN6IexvwS13vwevfQn9H5V74slTW 26qqiQ1+o1mDH5svrhAdi57m9oxK4UKdOQsVJwfzlIo2uxYefkiEa90DWspbRsiuXORg L+L0bWCx1oID0jmlUP9qDdrdVgprtXXEHaYhA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766845352; x=1767450152; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ev5dZu+MNaNiCXAmHypJMGG2mZAu4GrojXqEHePJJcQ=; b=I9NTzPvYV13QBb5vb4+GB3iJM8powPqUT/gXhF6oZngxYXW3asNPLKKGTZBhcrNhKG ue60AcPWBKS7/DZPZlER3XlC+7vQSuq+U79FU6NcvnxgC2u4HBxQl6gicPcwx+Vo2ap/ EYs6MVeoZbSyAfiOhP5TCtvt4dF2n/ZiNcJ2lxV9tSUB9g2jEoE8+ReCRyDgtQXT+TNf qG6J3kTB1x61Jd3vGxrBtdl8569FanJQbjlMBP4PPFenCvwtupHLRUjf+yNVU2OxuOsH KwN3FkiNU9d54FovQD5U7Nly/YUTsC7T9Wa7HzeAYSEqwF26HNV0eFr9FfzgOGwzHxvl 9OoA== X-Forwarded-Encrypted: i=1; AJvYcCWjoR4Ef4XIYFE6gdQwhktYazErWDGCCPgyawCZPMjQVcq+iU5hr3D9jauu8oJBUJ4gZPeMIo3oM47iCw0=@vger.kernel.org X-Gm-Message-State: AOJu0Yxht5UVh14c6tyhZmDV4HgPJviptRiz8MXAxVG0lY5ABZU7jKvp i4zFmFIdj6cabOum2mkG3fEPoWXcItHIYrs+HR5UMEDUw7n0PdzhtQKhdJiG8af9EydFNCAdzQX k/vU= X-Gm-Gg: AY/fxX5vvmzXVF3+YXSmhLVppnu1qacjHJWRNidfd9d6EmtN1/oYTy0cLUTvX8fenNE 1cszljokxbXuInXTylLRMQ7K2nRUYzo2oOaqg70bxk115fPb7KEhnfo6nw5F6UaLphuVYVCeNx6 G4liAT5ODVFHBKL3m5FIEy6zCOZ6sUNS6iJUoIwPJ1UMj+wCbBDKyfx61pP/oOJZ5hf1VWwBLLt V9gvZXhR0bfhanANeUCbmlAbL+/yPpiCY9qI9/UNmIqyKpYQ3zQgH5ZfVxUK7JOV5n65o/jGc1X tfj4UGIPy2e8fmcIVg8FblaVRO4T9jkvjqmfDJjJyBoMg5PyZ6Io8plWx2Vly8figcpL0aRHOl9 iLJgHh1zuIs6hrFf2f2MVKViVQmEkxnDemSF/EbSBT/CjbP3yS5Cw3htVZKjehMNEFQcrkVwV8z 5XIWzn X-Google-Smtp-Source: AGHT+IFbD2T68RWby1LSxTFnHXAreDJGvHAACCzMPzQU2qMbAT3eAIYfVlwPjWmULM1RMKcUvRYWpA== X-Received: by 2002:a05:6808:6a83:b0:450:b92c:aaa2 with SMTP id 5614622812f47-457a292c4d7mr13567904b6e.18.1766845352225; Sat, 27 Dec 2025 06:22:32 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7cc66727e11sm17352660a34.3.2025.12.27.06.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Dec 2025 06:22:29 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Chen-Yu Tsai , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Nicolas Schier , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Ahmad Fatoum , Tom Rini , Simon Glass , David Sterba , Nick Terrell , linux-kernel@vger.kernel.org Subject: [PATCH v8 5/6] scripts/make_fit: Support a few more parallel compressors Date: Sat, 27 Dec 2025 07:21:49 -0700 Message-ID: <20251227142200.2241198-6-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251227142200.2241198-1-sjg@chromium.org> References: <20251227142200.2241198-1-sjg@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for pbzip2, xz and plzip which can compress in parallel. This speeds up the ramdisk compression. Signed-off-by: Simon Glass --- (no changes since v7) Changes in v7: - Mention xz as well, in the commit message scripts/make_fit.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/make_fit.py b/scripts/make_fit.py index 7ddaf3c0d783..defb87f223d7 100755 --- a/scripts/make_fit.py +++ b/scripts/make_fit.py @@ -50,11 +50,12 @@ import libfdt CompTool =3D collections.namedtuple('CompTool', 'ext,tools') =20 COMP_TOOLS =3D { - 'bzip2': CompTool('.bz2', 'bzip2'), + 'bzip2': CompTool('.bz2', 'pbzip2,bzip2'), 'gzip': CompTool('.gz', 'pigz,gzip'), 'lz4': CompTool('.lz4', 'lz4'), - 'lzma': CompTool('.lzma', 'lzma'), + 'lzma': CompTool('.lzma', 'plzip,lzma'), 'lzo': CompTool('.lzo', 'lzop'), + 'xz': CompTool('.xz', 'xz'), 'zstd': CompTool('.zstd', 'zstd'), } =20 @@ -207,7 +208,12 @@ def compress_data(inf, compress): done =3D False for tool in comp.tools.split(','): try: - subprocess.call([tool, '-c'], stdin=3Dinf, stdout=3Dou= tf) + # Add parallel flags for tools that support them + cmd =3D [tool] + if tool in ('zstd', 'xz'): + cmd.extend(['-T0']) # Use all available cores + cmd.append('-c') + subprocess.call(cmd, stdin=3Dinf, stdout=3Doutf) done =3D True break except FileNotFoundError: --=20 2.43.0