This commit adds sysfs interface to be used to write into the boot log which is 1KB HW buffer on BlueField SoC. The same log buffer is also used by firmware code like ATF/UEFI, and can be displayed by userspace tools or from external host via USB/PCIe. Signed-off-by: Liming Sun <limings@nvidia.com> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com> Link: https://lore.kernel.org/r/20230511144924.171585-1-limings@nvidia.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
87 lines
3.1 KiB
Plaintext
87 lines
3.1 KiB
Plaintext
What: /sys/bus/platform/devices/MLNXBF04:00/lifecycle_state
|
|
Date: Oct 2019
|
|
KernelVersion: 5.5
|
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
|
Description:
|
|
The Life-cycle state of the SoC, which could be one of the
|
|
following values.
|
|
|
|
============== =============================================
|
|
Production Production state and can be updated to secure
|
|
GA Secured Secure chip and not able to change state
|
|
GA Non-Secured Non-Secure chip and not able to change state
|
|
RMA Return Merchandise Authorization
|
|
============== =============================================
|
|
|
|
What: /sys/bus/platform/devices/MLNXBF04:00/post_reset_wdog
|
|
Date: Oct 2019
|
|
KernelVersion: 5.5
|
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
|
Description:
|
|
The watchdog setting in seconds for the next booting. It's used
|
|
to reboot the chip and recover it to the old state if the new
|
|
boot partition fails.
|
|
|
|
What: /sys/bus/platform/devices/MLNXBF04:00/reset_action
|
|
Date: Oct 2019
|
|
KernelVersion: 5.5
|
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
|
Description:
|
|
The source of the boot stream for the next reset. It could be
|
|
one of the following values:
|
|
|
|
=========== ===============================================
|
|
external boot from external source (USB or PCIe)
|
|
emmc boot from the onchip eMMC
|
|
emmc_legacy boot from the onchip eMMC in legacy (slow) mode
|
|
=========== ===============================================
|
|
|
|
What: /sys/bus/platform/devices/MLNXBF04:00/second_reset_action
|
|
Date: Oct 2019
|
|
KernelVersion: 5.5
|
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
|
Description:
|
|
Update the source of the boot stream after next reset. It could
|
|
be one of the following values and will be applied after next
|
|
reset.
|
|
|
|
=========== ===============================================
|
|
external boot from external source (USB or PCIe)
|
|
emmc boot from the onchip eMMC
|
|
emmc_legacy boot from the onchip eMMC in legacy (slow) mode
|
|
swap_emmc swap the primary / secondary boot partition
|
|
none cancel the action
|
|
=========== ===============================================
|
|
|
|
What: /sys/bus/platform/devices/MLNXBF04:00/secure_boot_fuse_state
|
|
Date: Oct 2019
|
|
KernelVersion: 5.5
|
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
|
Description:
|
|
The state of eFuse versions with the following values.
|
|
|
|
======= ===============================================
|
|
InUse burnt, valid and currently in use
|
|
Used burnt and valid
|
|
Free not burnt and free to use
|
|
Skipped not burnt but not free (skipped)
|
|
Wasted burnt and invalid
|
|
Invalid not burnt but marked as valid (error state).
|
|
======= ===============================================
|
|
|
|
What: /sys/bus/platform/devices/MLNXBF04:00/bootfifo
|
|
Date: Apr 2023
|
|
KernelVersion: 6.4
|
|
Contact: "Liming Sun <limings@nvidia.com>"
|
|
Description:
|
|
The file used to access the BlueField boot fifo.
|
|
|
|
What: /sys/bus/platform/devices/MLNXBF04:00/rsh_log
|
|
Date: May 2023
|
|
KernelVersion: 6.4
|
|
Contact: "Liming Sun <limings@nvidia.com>"
|
|
Description:
|
|
The file used to write BlueField boot log with the format
|
|
"[INFO|WARN|ERR|ASSERT ]<msg>". Log level 'INFO' is used by
|
|
default if not specified.
|