1 What: /sys/class/firmware/.../data 1 What: /sys/class/firmware/.../data 2 Date: July 2022 2 Date: July 2022 3 KernelVersion: 5.19 3 KernelVersion: 5.19 4 Contact: Russ Weight <russ.weight@linux. 4 Contact: Russ Weight <russ.weight@linux.dev> 5 Description: The data sysfs file is used fo 5 Description: The data sysfs file is used for firmware-fallback and for 6 firmware uploads. Cat a firmwa 6 firmware uploads. Cat a firmware image to this sysfs file 7 after you echo 1 to the loadin 7 after you echo 1 to the loading sysfs file. When the firmware 8 image write is complete, echo 8 image write is complete, echo 0 to the loading sysfs file. This 9 sequence will signal the compl 9 sequence will signal the completion of the firmware write and 10 signal the lower-level driver 10 signal the lower-level driver that the firmware data is 11 available. 11 available. 12 12 13 What: /sys/class/firmware/.../cancel 13 What: /sys/class/firmware/.../cancel 14 Date: July 2022 14 Date: July 2022 15 KernelVersion: 5.19 15 KernelVersion: 5.19 16 Contact: Russ Weight <russ.weight@linux. 16 Contact: Russ Weight <russ.weight@linux.dev> 17 Description: Write-only. For firmware uploa 17 Description: Write-only. For firmware uploads, write a "1" to this file to 18 request that the transfer of f 18 request that the transfer of firmware data to the lower-level 19 device be canceled. This reque 19 device be canceled. This request will be rejected (EBUSY) if 20 the update cannot be canceled 20 the update cannot be canceled (e.g. a FLASH write is in 21 progress) or (ENODEV) if there 21 progress) or (ENODEV) if there is no firmware update in progress. 22 22 23 What: /sys/class/firmware/.../error 23 What: /sys/class/firmware/.../error 24 Date: July 2022 24 Date: July 2022 25 KernelVersion: 5.19 25 KernelVersion: 5.19 26 Contact: Russ Weight <russ.weight@linux. 26 Contact: Russ Weight <russ.weight@linux.dev> 27 Description: Read-only. Returns a string de 27 Description: Read-only. Returns a string describing a failed firmware 28 upload. This string will be in 28 upload. This string will be in the form of <STATUS>:<ERROR>, 29 where <STATUS> will be one of 29 where <STATUS> will be one of the status strings described 30 for the status sysfs file and 30 for the status sysfs file and <ERROR> will be one of the 31 following: "hw-error", "timeou 31 following: "hw-error", "timeout", "user-abort", "device-busy", 32 "invalid-file-size", "read-wri 32 "invalid-file-size", "read-write-error", "flash-wearout". The 33 error sysfs file is only meani 33 error sysfs file is only meaningful when the current firmware 34 upload status is "idle". If th 34 upload status is "idle". If this file is read while a firmware 35 transfer is in progress, then 35 transfer is in progress, then the read will fail with EBUSY. 36 36 37 What: /sys/class/firmware/.../loadin 37 What: /sys/class/firmware/.../loading 38 Date: July 2022 38 Date: July 2022 39 KernelVersion: 5.19 39 KernelVersion: 5.19 40 Contact: Russ Weight <russ.weight@linux. 40 Contact: Russ Weight <russ.weight@linux.dev> 41 Description: The loading sysfs file is used 41 Description: The loading sysfs file is used for both firmware-fallback and 42 for firmware uploads. Echo 1 o 42 for firmware uploads. Echo 1 onto the loading file to indicate 43 you are writing a firmware fil 43 you are writing a firmware file to the data sysfs node. Echo 44 -1 onto this file to abort the 44 -1 onto this file to abort the data write or echo 0 onto this 45 file to indicate that the writ 45 file to indicate that the write is complete. For firmware 46 uploads, the zero value also t 46 uploads, the zero value also triggers the transfer of the 47 firmware data to the lower-lev 47 firmware data to the lower-level device driver. 48 48 49 What: /sys/class/firmware/.../remain 49 What: /sys/class/firmware/.../remaining_size 50 Date: July 2022 50 Date: July 2022 51 KernelVersion: 5.19 51 KernelVersion: 5.19 52 Contact: Russ Weight <russ.weight@linux. 52 Contact: Russ Weight <russ.weight@linux.dev> 53 Description: Read-only. For firmware upload 53 Description: Read-only. For firmware upload, this file contains the size 54 of the firmware data that rema 54 of the firmware data that remains to be transferred to the 55 lower-level device driver. The 55 lower-level device driver. The size value is initialized to 56 the full size of the firmware 56 the full size of the firmware image that was previously 57 written to the data sysfs file 57 written to the data sysfs file. This value is periodically 58 updated during the "transferri 58 updated during the "transferring" phase of the firmware 59 upload. 59 upload. 60 Format: "%u". 60 Format: "%u". 61 61 62 What: /sys/class/firmware/.../status 62 What: /sys/class/firmware/.../status 63 Date: July 2022 63 Date: July 2022 64 KernelVersion: 5.19 64 KernelVersion: 5.19 65 Contact: Russ Weight <russ.weight@linux. 65 Contact: Russ Weight <russ.weight@linux.dev> 66 Description: Read-only. Returns a string de 66 Description: Read-only. Returns a string describing the current status of 67 a firmware upload. The string 67 a firmware upload. The string will be one of the following: 68 idle, "receiving", "preparing" 68 idle, "receiving", "preparing", "transferring", "programming". 69 69 70 What: /sys/class/firmware/.../timeou 70 What: /sys/class/firmware/.../timeout 71 Date: July 2022 71 Date: July 2022 72 KernelVersion: 5.19 72 KernelVersion: 5.19 73 Contact: Russ Weight <russ.weight@linux. 73 Contact: Russ Weight <russ.weight@linux.dev> 74 Description: This file supports the timeout 74 Description: This file supports the timeout mechanism for firmware 75 fallback. This file has no af 75 fallback. This file has no affect on firmware uploads. For 76 more information on timeouts p 76 more information on timeouts please see the documentation 77 for firmware fallback. 77 for firmware fallback.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.