Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751275AbdIPRx5 (ORCPT ); Sat, 16 Sep 2017 13:53:57 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59145 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbdIPRx4 (ORCPT ); Sat, 16 Sep 2017 13:53:56 -0400 X-ME-Sender: X-Sasl-enc: 4sPnHOn158MtyORv6q0DNpF8FJVGbc2MaTxve8V96PEs 1505584435 Date: Sat, 16 Sep 2017 10:53:52 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20170916172051.GB1846@x4> References: <20170915185652.GA18602@kroah.com> <20170916045106.GA286@x4> <20170916062503.GA278@x4> <20170916165535.GA4577@kroah.com> <20170916172051.GB1846@x4> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Subject: Re: [GIT PULL] Firmware files removal for 4.14-rc1 To: Markus Trippelsdorf CC: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org From: Greg K-H Message-ID: <0F296E69-5784-43AF-9970-7C1E5B44C6AC@linuxfoundation.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v8GHs2EK004575 Content-Length: 4007 Lines: 108 On September 16, 2017 10:20:51 AM PDT, Markus Trippelsdorf wrote: >On 2017.09.16 at 09:55 -0700, Greg KH wrote: >> On Sat, Sep 16, 2017 at 08:25:03AM +0200, Markus Trippelsdorf wrote: >> > On 2017.09.16 at 06:51 +0200, Markus Trippelsdorf wrote: >> > > On 2017.09.15 at 11:56 -0700, Greg KH wrote: >> > > > The following changes since commit >569dbb88e80deb68974ef6fdd6a13edb9d686261: >> > > > >> > > > Linux 4.13 (2017-09-03 13:56:17 -0700) >> > > > >> > > > are available in the git repository at: >> > > > >> > > > >git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ >tags/firmware_removal-4.14-rc1 >> > > > >> > > > for you to fetch changes up to >5620a0d1aacd554ebebcff373e31107bb1ef7769: >> > > > >> > > > firmware: delete in-kernel firmware (2017-09-14 14:49:41 >-0700) >> > > > >> > > > >---------------------------------------------------------------- >> > > > Firmware removal patch for 4.14-rc1 >> > > > >> > > > Many many years ago (at the kernel summit in Boston), we all >came to the >> > > > agreement that the firmware/ tree should be dropped from the >kernel, and >> > > > everyone use the linux-firmware package instead. For some >minor reason, >> > > > David Woodhouse didn't send the pull request at that point in >time, and >> > > > everyone forgot about this. >> > > > >> > > > The topic came up in the hallway track at the Plumbers >conference this >> > > > week, so here's a single patch that drops the whole firmware >tree. The >> > > > last firmware update was back in 2013, and all distros have >been using >> > > > linux-firmware instead since at least that year, if not before. > The >> > > > only commits to that directory since 2013 was some kbuild >fixups for >> > > > various build tool issues. >> > > > >> > > > So lets finally drop this, we don't need to lug them around in >the >> > > > kernel source tree anymore, especially as no one wants or uses >them. >> > > >> > > Well, it is one thing to drop the redundant binary blobs. But is >another >> > > to break perfectly fine setups that worked for years, e.g.: >> > > >> > > CONFIG_FW_LOADER=y >> > > CONFIG_FIRMWARE_IN_KERNEL=y >> > > CONFIG_EXTRA_FIRMWARE="amd-ucode/microcode_amd.bin >radeon/R600_rlc.bin" >> > > CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" >> > > >> > > Please restore the support for built-in firmware. >> >> How did that break anything? You are still using external firmware, >> right? >> >> That just adds an empty Makefile that doesn't actually build anything >> into the kernel. What error is this fixing? I did a bunch of build >> tests with the patch that I submitted, and nothing failed. > >The external firmware has to be packaged before it can be included into >the kernel. And this is what the Makefile in firmware/ does. It >generates a *.gen.S for every firmware file in the >CONFIG_EXTRA_FIRMWARE >list. For example: > >markus@x4 linux % cat firmware/amd-ucode/microcode_amd.bin.gen.S >/* Generated by firmware/Makefile */ > .section .rodata > .p2align 3 >_fw_amd_ucode_microcode_amd_bin_bin: > .incbin "/lib/firmware/amd-ucode/microcode_amd.bin" >_fw_end: > .section .rodata.str,"aMS",@progbits,1 > .p2align 3 >_fw_amd_ucode_microcode_amd_bin_name: > .string "amd-ucode/microcode_amd.bin" > .section .builtin_fw,"a",@progbits > .p2align 3 > .quad _fw_amd_ucode_microcode_amd_bin_name > .quad _fw_amd_ucode_microcode_amd_bin_bin > .quad _fw_end - _fw_amd_ucode_microcode_amd_bin_bin > >This is then used to assemble *.bin.gen.o object files and finally >firmware/built-in.o, that includes all firmware blobs. > >Without the firmware/Makefile nothing gets build and therefore no >firmware gets included into the kernel. This may lead for example to a >failure to start X11, because the firmware for the graphic card doesn't >get loaded. Ah doh, you are so right, sorry about that. I'm getting onto a flight right now but will send this on to Linus when I land in the morning. thanks, greg k-h