Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6505182pxb; Wed, 17 Feb 2021 06:25:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzK8q9nf+HSYnc81O1lZ3rcE+9wahfrRGmlMZ5HPu/NMyLrKq8Gu378+iw4OPi48rVQn0ZS X-Received: by 2002:a05:6402:5107:: with SMTP id m7mr26525725edd.52.1613571929707; Wed, 17 Feb 2021 06:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613571929; cv=none; d=google.com; s=arc-20160816; b=jINP7UAx1PtGPkh8z+0T8Vsj1G+xi6SAuO5WjPDJohObu+DNgbu8k3YmimJ5CrukMn r+TFoiDlZRaKDF8rBtXfOlVL6M7PB+YEOdqt1NxK9+XalAv4R0LCa8HulmBPOzpx6kwW 5e3/H4+EN9YAQfVQORTUWH4WQCkYeHuzTXbjFT0JdjMTz5tFg0tL4pESOqoxYO8Qdeih wf0ajIouA7uSxxIVph0/hVygJqz0QX8/3hZTRPW2mg3ldVGqJ4Q3HEduYgbRxb6GC8sN MIi9kbLfGOmoMkTnkGfSD9RUqyVeBED2BVSRVUQ84OauWRwBcCWF5rOMwx3TXg8xmZHT dxXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=BLHzdrD/rEzG23ZHBL4zgK1qBg/fsS2I1RkaGnE10Vo=; b=XY1wJLFq9eOXzagHZOJBrTmKzQ7fAFudOIReDuhzwFWUAMgRbuQpe8zgl450UNbvSg C5wflo9ldCCAeWYIXJA5lXtpC1rKwY+dh1NTkgNLd6iXWdqIL6OozmXnsOsd9p8IopXo aNisqDOWnxsdETRXKFNq6i8m7xiIpKB0mL9RM22LeXP1XQ0eXei7kIVF2MS6HUyz9k8W gW2vo2jWmtJ9Hla/gRqJvoeu6BPOvI4nM1bK8DrFF+Cl+YU+pC+YiLrFJFTibhBHf04k y9Mg5bczCImE603ddBGMhv/Hftff73AcPPdske3smVVLMmy8FXztdAjPi+z20eRfdb1a bJDA== 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 u14si1070684ejr.363.2021.02.17.06.25.05; Wed, 17 Feb 2021 06:25:29 -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 S233368AbhBQOW1 (ORCPT + 99 others); Wed, 17 Feb 2021 09:22:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:45350 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233314AbhBQOWU (ORCPT ); Wed, 17 Feb 2021 09:22:20 -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 182F3B768; Wed, 17 Feb 2021 14:21:39 +0000 (UTC) Date: Wed, 17 Feb 2021 15:21:39 +0100 Message-ID: From: Takashi Iwai To: Greg Kroah-Hartman Cc: Luis Chamberlain , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 1/4] firmware: Add the support for ZSTD-compressed firmware files In-Reply-To: References: <20210127154939.13288-1-tiwai@suse.de> <20210127154939.13288-2-tiwai@suse.de> <20210217132419.GN4332@42.do-not-panic.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Feb 2021 15:17:52 +0100, Greg Kroah-Hartman wrote: > > On Wed, Feb 17, 2021 at 02:34:34PM +0100, Takashi Iwai wrote: > > On Wed, 17 Feb 2021 14:24:19 +0100, > > Luis Chamberlain wrote: > > > > > > On Wed, Jan 27, 2021 at 04:49:36PM +0100, Takashi Iwai wrote: > > > > Due to the popular demands on ZSTD, here is a patch to add a support > > > > of ZSTD-compressed firmware files via the direct firmware loader. > > > > It's just like XZ-compressed file support, providing a decompressor > > > > with ZSTD. Since ZSTD API can give the decompression size beforehand, > > > > the code is even simpler than XZ. > > > > > > > > Signed-off-by: Takashi Iwai > > > > > > It also occurs to me that having a simple like #define HAVE_FIRMWARE_COMPRESS_ZSTD > > > on include/linux/firmware.h would enable userspace to be aware (if they > > > have kernel sources) to determine if the kernels supports this format. > > > > Extending that idea, we might want to have a sysfs entry showing the > > supported formats instead? This will allow to judge dynamically. > > What could userspace do with that information? Decide whether to store the firmware files on the system in the supported compression format or not. But admittedly it can be little help, as that's rather information you want not for the running kernel but for the system to be installed... Takashi