Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces

Add documentation for the new attributes:
- Request and response for access to protetced flashes:
"global_wp_request", "global_wp_response".
Only for systems equipped with BMC - grant can be provided only by
BMC in case its security policy allows to grant access.
- Request to unlock ASICs, which has been shutdown due-to ASIC thermal
event: "shutdown_unlock".
- Data processor Units (DPU) boot progress: "boot_progress".
- DPU reset causes: "reset_aux_pwr_or_reload", "reset_dpu_thermal",
"reset_from_main_board".
- Reset control for DPU components: "perst_rst", "phy_rst", "tpm_rst",
"usbphy_rst".
- DPU Unified Fabric Manager upgrade - "ufm_upgrade".
- Hardware Id of Data Process Unit board - "dpu_id".

Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20250504165507.9003-3-vadimp@nvidia.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Vadim Pasternak and committed by
Ilpo Järvinen
4e29dd38 56b0bb7f

+98
+98
Documentation/ABI/stable/sysfs-driver-mlxreg-io
··· 715 715 switch board. 716 716 717 717 The file is read only. 718 + 719 + What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/global_wp_request 720 + Date: May 2025 721 + KernelVersion: 6.16 722 + Contact: Vadim Pasternak <vadimp@nvidia.com> 723 + Description: This file when written 1 activates request to allow access to 724 + the write protected flashes. Such request can be performed only 725 + for system equipped with BMC (Board Management Controller), 726 + which can grant access to protected flashes. In case BMC allows 727 + access - it will respond with "global_wp_response". BMC decides 728 + regarding time window of granted access. After granted window is 729 + expired, BMC will change value back to 0. 730 + Default value is 0. 731 + 732 + The file is read/write. 733 + 734 + What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/global_wp_response 735 + Date: May 2025 736 + KernelVersion: 6.16 737 + Contact: Vadim Pasternak <vadimp@nvidia.com> 738 + Description: This file, when set 1, indicates that access to protected 739 + flashes have been granted to host CPU by BMC. 740 + Default value is 0. 741 + 742 + The file is read only. 743 + 744 + What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/shutdown_unlock 745 + Date: May 2025 746 + KernelVersion: 6.16 747 + Contact: Vadim Pasternak <vadimp@nvidia.com> 748 + Description: When ASICs are getting overheated, system protection 749 + hardware mechanism enforces system reboot. After system 750 + reboot ASICs come up in locked state. To unlock ASICs, 751 + this file should be written 1 752 + Default value is 0. 753 + 754 + The file is read/write. 755 + 756 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/boot_progress 757 + Date: May 2025 758 + KernelVersion: 6.16 759 + Contact: Vadim Pasternak <vadimp@nvidia.com> 760 + Description: These files show the Data Process Unit board boot progress 761 + state. Valid states are: 762 + - 4 : OS starting. 763 + - 5 : OS running. 764 + - 6 : Low-Power Standby. 765 + 766 + The file is read only. 767 + 768 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/dpu_id 769 + Date: May 2025 770 + KernelVersion: 6.16 771 + Contact: Vadim Pasternak <vadimp@nvidia.com> 772 + Description: This file shows hardware Id of Data Process Unit board. 773 + 774 + The file is read only. 775 + 776 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/reset_aux_pwr_or_reload 777 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/reset_dpu_thermal 778 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/reset_from_main_board 779 + Date: May 2025 780 + KernelVersion: 6.16 781 + Contact: Vadim Pasternak <vadimp@nvidia.com> 782 + Description: These files expose the cause of the most recent reset of the Data 783 + Processing Unit (DPU) board. The possible causes are: 784 + - Power auxiliary outage or power reload. 785 + - Thermal shutdown. 786 + - Reset request from the main board. 787 + Value 1 in file means this is reset cause, 0 - otherwise. Only one of 788 + the above causes could be 1 at the same time, representing only last 789 + reset cause. 790 + 791 + The files are read only. 792 + 793 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/perst_rst 794 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/phy_rst 795 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/tpm_rst 796 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/usbphy_rst 797 + Date: May 2025 798 + KernelVersion: 6.16 799 + Contact: Vadim Pasternak <vadimp@nvidia.com> 800 + Description: These files allow to reset hardware components of Data Process 801 + Unit board. Respectively PCI, Ethernet PHY, TPM and USB PHY 802 + resets. 803 + Default values for all the attributes is 1. Writing 0 will 804 + cause reset of the related component. 805 + 806 + The files are read/write. 807 + 808 + What: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/*-00**/mlxreg-io.*/hwmon/hwmon*/ufm_upgrade 809 + Date: May 2025 810 + KernelVersion: 6.16 811 + Contact: Vadim Pasternak <vadimp@nvidia.com> 812 + Description: These files show status of Unified Fabric Manager upgrade. 813 + state. 0 - means upgrade is done, 1 - otherwise. 814 + 815 + The file is read only.