From: Takashi Iwai <tiwai@suse.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Takashi Iwai <tiwai@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Saravana Kannan <saravanak@google.com>
Subject: Re: [GIT PULL] Driver core changes for 5.19-rc1
Date: Sat, 04 Jun 2022 08:32:29 +0200 [thread overview]
Message-ID: <87leud0whu.wl-tiwai@suse.de> (raw)
In-Reply-To: <CAHk-=wjxbyfaqvS9+p9SsN34B4D=jXGdrUtCwFY+QurVKhDFyA@mail.gmail.com>
On Sat, 04 Jun 2022 00:23:18 +0200,
Linus Torvalds wrote:
>
> Augh.
>
> This was very badly done, and I'm not talking about the deferred probe
> timeout things that caused problems for people.
>
> On Fri, Jun 3, 2022 at 4:28 AM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > - firmware_loader reorganization and additions including the
> > ability to have XZ compressed firmware images and the ability
> > for userspace to initiate the firmware load when it needs to,
> > instead of being always initiated by the kernel.
>
> This is actively misleading.
>
> We *always* supported XZ compressed firmware images, and it was
> enabled by CONFIG_FW_LOADER_COMPRESS,
>
> What's new is the option to use ZSTD compression.
>
> However, the Kconfig file addition for this was done as badly as the
> above explanation was, and the FW_LOADER_COMPRESS_XZ option was added
> with a help message and a default value that both are complete
> garbage.
>
> So when you do "make oldconfig", you would be expected to say 'N', and
> in the process you lose the existing XZ compression.
>
> Only when the resulting kernel doesn't boot, and you spent half an
> hour trying to bisect things, and you start looking closer, do you
> notice that "ooh, the config changed in bad ways".
>
> Yeah, I'm a bit grumpy. This was *really* annoying.
>
> The commit that does this breakage is literally called "firmware: Add
> the support for ZSTD-compressed firmware files", and only when looking
> closer do you notice that IT REMOVES SUPPORT FOR XZ COMPRESSION BY
> DEFAULT.
>
> Because even when keeping the FW_LOADER_COMPRESS option enabled, the
> XZ compression is just gone, gone, gone, unless you realize that it
> was implicitly enabled before, and now needs that default disable of
> FW_LOADER_COMPRESS_XZ to be enabled.
>
> I've said this before, and I'll say it here again (and I bet I'll have
> to say it in the future too): the kernel config is probably the most
> annoying part of building a kernel for anybody.
>
> And it damn well does NOT HELP when people then actively break things,
> and ask actively bad and misleading questions. In this case, for
> example, it's not just that the XZ option is now misleading by
> default, it's also that the whole thing has been set up so that you
> can say "enable compressed images", but then HAVE NO ACTUAL
> COMPRESSION METHOD!
>
> Grr. This was *REALLY* badly done.
Mea culpa, I hesitated to add "default y", but it should have been
added at least for the case with the config takeover case. Now I see
that you've already added "default y" to
CONFIG_FW_LOADER_COMPRESS_XZ. Thanks for taking care of this!
Takashi
next prev parent reply other threads:[~2022-06-04 6:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-03 11:28 [GIT PULL] Driver core changes for 5.19-rc1 Greg KH
2022-06-03 11:31 ` [PATCH 1/2] driver core: Fix wait_for_device_probe() & deferred_probe_timeout interaction Greg Kroah-Hartman
2022-06-03 11:31 ` [PATCH 2/2] driver core: Set default deferred_probe_timeout back to 0 Greg Kroah-Hartman
2022-06-03 18:54 ` [PATCH 1/2] driver core: Fix wait_for_device_probe() & deferred_probe_timeout interaction Rafael J. Wysocki
2022-06-03 19:07 ` [GIT PULL] Driver core changes for 5.19-rc1 pr-tracker-bot
2022-06-03 19:11 ` Linus Torvalds
2022-06-04 9:06 ` Greg KH
2022-06-03 22:23 ` Linus Torvalds
2022-06-04 6:32 ` Takashi Iwai [this message]
2022-06-04 9:07 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87leud0whu.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=saravanak@google.com \
--cc=sfr@canb.auug.org.au \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox