mlxbf-bootctl: Add sysfs file for BlueField boot log
authorLiming Sun <limings@nvidia.com>
Thu, 11 May 2023 14:49:24 +0000 (10:49 -0400)
committerHans de Goede <hdegoede@redhat.com>
Tue, 16 May 2023 08:36:55 +0000 (10:36 +0200)
commite9d1b2d0f7d02f75127b3bc243c0f69f8bd05f04
tree762f6c15a5b404e48c19f458c1dc2a1c77b43c1a
parent506ed33d0767edbada4c8fc7c268b1730c14791e
mlxbf-bootctl: Add sysfs file for BlueField boot log

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>
Documentation/ABI/testing/sysfs-platform-mellanox-bootctl
drivers/platform/mellanox/mlxbf-bootctl.c