Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp590988pxb; Wed, 27 Jan 2021 16:04:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm2rA2uljCSVRFpuqycq3lTWVCRvNejmP5mk4+eqmibweCHlondzPjMLin+ny3sJaJv2rD X-Received: by 2002:a05:6402:3552:: with SMTP id f18mr11146466edd.111.1611792262496; Wed, 27 Jan 2021 16:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792262; cv=none; d=google.com; s=arc-20160816; b=Xjts1GU/YNWVgqy8/Yh5gXxjwWpyMIQcnacPE6kK2idufjODEMBx/0xYeHu5rNCSyG 41G0mnJtvRIg+g4jgOJQ3zEx3y1y4qGvFDxWRVO5Ymc/zuHZHTn+LEysBsOalewihJwn Zwg4DdgYG0PNM1QqeKpZedl6xy0NPnDzlQv8t9M0ooG3Ov5eF8BldIObYvjSMAuF/vE8 T/3si6MI1xKAAmbdQktxnEeWiKOR/0ArrlBHBl26YzOJa3vCRswIsok7ipOHHdyCVAVA lQJ4gHrhLiG/1Na9ZaekZQb6z8+yDN/6Q9gQrKTBrgnoglkZ/OO6XfFPv22C59BdkskC g0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5BxRu2Np7mjvFssr7aCEBtnRylFERavON2w73TitZY4=; b=IVQfdAS7Gbnko7bjZwXdHZPNS+jg0f6OTn37E99egCX7zyfna65GbURfY3dDLeLeZf hUi+v6Q3dBS/rZzJ6YFN3QK+9bNIqquIk5ofyRz75RhKXmdxGPlK6p74v+IyroVyaUki H2hsp0uQbrldTbsfuDySmyNaBg79XXTAWTfUTgv9l4jETPkSHxZcqFopo7AMqsXZoHNi r8NQfMV56GtSHfT7YeMGomcu9lwbLk6RqdS2Q+0FAzRPJHLagwY55fb//iY1NqmCdq4f iUTAxomNgs3X71+txNjx3exHcFlDhYPHndGKsp1e9hZzubSe6g1J7Tm2j853D15MQ3/C 6Rkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si1492439ejd.230.2021.01.27.16.03.57; Wed, 27 Jan 2021 16:04:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235646AbhA0Pv0 (ORCPT + 99 others); Wed, 27 Jan 2021 10:51:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:50340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235991AbhA0PuW (ORCPT ); Wed, 27 Jan 2021 10:50:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id BD44EADE0; Wed, 27 Jan 2021 15:49:40 +0000 (UTC) From: Takashi Iwai To: Luis Chamberlain Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH RFC 0/4] firmware: Add ZSTD-compressed file support Date: Wed, 27 Jan 2021 16:49:35 +0100 Message-Id: <20210127154939.13288-1-tiwai@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, it seems that ZSTD format is getting popular, and I've been asked about the firmware loader support. So I took a quick glance, and it turned out that it's fairly easy thanks to the existing ZSTD API. Now high time to submit something. The first patch adds a new Kconfig CONFIG_FW_LOADER_COMPRESS_ZSTD and the corresponding decompression function to the firmware loader code. For the already supported XZ-compression, CONFIG_FW_LOADER_COMPRESS_XZ is added to make it selectable explicitly, too. The rest three patches are for selftest: a cleanup, a fix and the additional support of ZSTD format. Currently, I have no idea whether any distro would use ZSTD files for firmware files in near future, though. That's the reason of this patch set being an RFC for now. thanks, Takashi === Takashi Iwai (4): firmware: Add the support for ZSTD-compressed firmware files selftests: firmware: Simplify test patterns selftest: firmware: Fix the request_firmware_into_buf() test for XZ format selftest: firmware: Add ZSTD compressed file tests drivers/base/firmware_loader/Kconfig | 21 ++- drivers/base/firmware_loader/main.c | 74 +++++++- .../selftests/firmware/fw_filesystem.sh | 167 +++++++++--------- tools/testing/selftests/firmware/fw_lib.sh | 12 +- 4 files changed, 175 insertions(+), 99 deletions(-) -- 2.26.2