firmware: enable caching of firmware for reboot optimization
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | rename: _request_firmware_load() fw_load_sysfs_fallback()Documentation/ drivers/ | +3 | 2 replies | |
| 2/7 | firmware: fix checking for return values for fw_add_devm_name()drivers/ | +8 | 2 replies | |
| 3/7 | firmware: make fw_add_devm_name() return 0 if cache presentdrivers/ | +2 | 2 replies | |
| 4/7 | firmware: add helper to check to see if fw cache is setupdrivers/ | +12 | 0 replies | |
| 5/7 | firmware: ensure the firmware cache is not used on incompatible callsdrivers/ | +11 | 0 replies | |
| 6/7 | firmware: add request_firmware_cache() to help with cache on rebootDocumentation/ drivers/ include/ | +41 | 0 replies | |
| 7/7 | mt7601u: use request_firmware_cache() to address cache on rebootdrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFT 0/7] firmware: enable caching of firmware for reboot optimization
Some devices have optimizations in place which enable devices to retain the firmware on reboot. Some drivers check for this and if present on probe they don't request the firmware. This can be an issue if the system suspends after this given the firmware is still needed on resume. Since the request firmware call was not issued no cache was done.
This series exposes a way for drivers to setup the cache, while also doing some minor sanity checks. This series only contains the delta from my last submission of patches for the firmware API for v4.17.
Cantabile, please give these patches a spin and let me know if it fixes your reported issue. They depend on other pending patches I have in line waiting to be merged so the easiest I thing I think is for you to test my 20180227-firmware-cache branch [0], based on Linus' tree. To get that tree, cd into your Linus git tree and do:
git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
git checkout -b 20180227-firmware-cache mcgrof/20180227-firmware-cache
Please let me know if this resolves your issue and thanks for your report.
Luis
[0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=20180227-firmware-cache
Luis R. Rodriguez (7):
rename: _request_firmware_load() fw_load_sysfs_fallback()
firmware: fix checking for return values for fw_add_devm_name()
firmware: make fw_add_devm_name() return 0 if cache present
firmware: add helper to check to see if fw cache is setup
firmware: ensure the firmware cache is not used on incompatible calls
firmware: add request_firmware_cache() to help with cache on reboot
mt7601u: use request_firmware_cache() to address cache on reboot
.../driver-api/firmware/fallback-mechanisms.rst | 2 +- .../driver-api/firmware/request_firmware.rst | 14 +++++ drivers/base/firmware_fallback.c | 4 +- drivers/base/firmware_loader.c | 61 ++++++++++++++++++++-- drivers/net/wireless/mediatek/mt7601u/mcu.c | 2 +- include/linux/firmware.h | 3 ++ 6 files changed, 77 insertions(+), 9 deletions(-)
Signature · 1 line
2.16.2