| .. | .. |
|---|
| 1 | +# SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | menu "Firmware loader" |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | config FW_LOADER |
|---|
| .. | .. |
|---|
| 24 | 25 | enable built-in firmware (CONFIG_EXTRA_FIRMWARE). |
|---|
| 25 | 26 | |
|---|
| 26 | 27 | if FW_LOADER |
|---|
| 28 | + |
|---|
| 29 | +config FW_LOADER_PAGED_BUF |
|---|
| 30 | + bool |
|---|
| 27 | 31 | |
|---|
| 28 | 32 | config EXTRA_FIRMWARE |
|---|
| 29 | 33 | string "Build named firmware blobs into the kernel binary" |
|---|
| .. | .. |
|---|
| 66 | 70 | |
|---|
| 67 | 71 | config FW_LOADER_USER_HELPER |
|---|
| 68 | 72 | bool "Enable the firmware sysfs fallback mechanism" |
|---|
| 73 | + select FW_LOADER_PAGED_BUF |
|---|
| 69 | 74 | help |
|---|
| 70 | 75 | This option enables a sysfs loading facility to enable firmware |
|---|
| 71 | 76 | loading to the kernel through userspace as a fallback mechanism |
|---|
| .. | .. |
|---|
| 143 | 148 | to be used for all firmware requests which explicitly do not disable a |
|---|
| 144 | 149 | a fallback mechanism. Firmware calls which do prohibit a fallback |
|---|
| 145 | 150 | mechanism is request_firmware_direct(). This option is kept for |
|---|
| 146 | | - backward compatibility purposes given this precise mechanism can also |
|---|
| 151 | + backward compatibility purposes given this precise mechanism can also |
|---|
| 147 | 152 | be enabled by setting the proc sysctl value to true: |
|---|
| 148 | 153 | |
|---|
| 149 | 154 | /proc/sys/kernel/firmware_config/force_sysfs_fallback |
|---|
| 150 | 155 | |
|---|
| 151 | 156 | If you are unsure about this, say N here. |
|---|
| 152 | 157 | |
|---|
| 158 | +config FW_LOADER_COMPRESS |
|---|
| 159 | + bool "Enable compressed firmware support" |
|---|
| 160 | + select FW_LOADER_PAGED_BUF |
|---|
| 161 | + select XZ_DEC |
|---|
| 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 | + |
|---|
| 168 | + Currently only XZ-compressed files are supported, and they have to |
|---|
| 169 | + be compressed with either none or crc32 integrity check type (pass |
|---|
| 170 | + "-C crc32" option to xz command). |
|---|
| 171 | + |
|---|
| 153 | 172 | config FW_CACHE |
|---|
| 154 | 173 | bool "Enable firmware caching during suspend" |
|---|
| 155 | 174 | depends on PM_SLEEP |
|---|