Kconfig (0aea30a07ec6b50de0fc5f5b2ec34a68ead86b61) Kconfig (23cfbc6ec44e5e80d5522976ff45ffcdcddfb230)
1# SPDX-License-Identifier: GPL-2.0
2menu "Firmware loader"
3
4config FW_LOADER
5 tristate "Firmware loading facility" if EXPERT
6 default y
7 help
8 This enables the firmware loading facility in the kernel. The kernel

--- 145 unchanged lines hidden (view full) ---

154 be enabled by setting the proc sysctl value to true:
155
156 /proc/sys/kernel/firmware_config/force_sysfs_fallback
157
158 If you are unsure about this, say N here.
159
160config FW_LOADER_COMPRESS
161 bool "Enable compressed firmware support"
1# SPDX-License-Identifier: GPL-2.0
2menu "Firmware loader"
3
4config FW_LOADER
5 tristate "Firmware loading facility" if EXPERT
6 default y
7 help
8 This enables the firmware loading facility in the kernel. The kernel

--- 145 unchanged lines hidden (view full) ---

154 be enabled by setting the proc sysctl value to true:
155
156 /proc/sys/kernel/firmware_config/force_sysfs_fallback
157
158 If you are unsure about this, say N here.
159
160config FW_LOADER_COMPRESS
161 bool "Enable compressed firmware support"
162 select FW_LOADER_PAGED_BUF
163 select XZ_DEC
164 help
165 This option enables the support for loading compressed firmware
166 files. The caller of firmware API receives the decompressed file
167 content. The compressed file is loaded as a fallback, only after
168 loading the raw file failed at first.
169
162 help
163 This option enables the support for loading compressed firmware
164 files. The caller of firmware API receives the decompressed file
165 content. The compressed file is loaded as a fallback, only after
166 loading the raw file failed at first.
167
170 Currently only XZ-compressed files are supported, and they have to
171 be compressed with either none or crc32 integrity check type (pass
172 "-C crc32" option to xz command).
173
174 Compressed firmware support does not apply to firmware images
175 that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).
176
168 Compressed firmware support does not apply to firmware images
169 that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).
170
171if FW_LOADER_COMPRESS
172config FW_LOADER_COMPRESS_XZ
173 bool "Enable XZ-compressed firmware support"
174 select FW_LOADER_PAGED_BUF
175 select XZ_DEC
176 help
177 This option adds the support for XZ-compressed files.
178 The files have to be compressed with either none or crc32
179 integrity check type (pass "-C crc32" option to xz command).
180
181config FW_LOADER_COMPRESS_ZSTD
182 bool "Enable ZSTD-compressed firmware support"
183 select ZSTD_DECOMPRESS
184 help
185 This option adds the support for ZSTD-compressed files.
186
187endif # FW_LOADER_COMPRESS
188
177config FW_CACHE
178 bool "Enable firmware caching during suspend"
179 depends on PM_SLEEP
180 default y if PM_SLEEP
181 help
182 Because firmware caching generates uevent messages that are sent
183 over a netlink socket, it can prevent suspend on many platforms.
184 It is also not always useful, so on such platforms we have the
185 option.
186
187 If unsure, say Y.
188
189endif # FW_LOADER
190endmenu
189config FW_CACHE
190 bool "Enable firmware caching during suspend"
191 depends on PM_SLEEP
192 default y if PM_SLEEP
193 help
194 Because firmware caching generates uevent messages that are sent
195 over a netlink socket, it can prevent suspend on many platforms.
196 It is also not always useful, so on such platforms we have the
197 option.
198
199 If unsure, say Y.
200
201endif # FW_LOADER
202endmenu