14056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/asic_health 2f193f798SVadim PasternakDate: June 2018 3f193f798SVadim PasternakKernelVersion: 4.19 4f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 5f193f798SVadim PasternakDescription: This file shows ASIC health status. The possible values are: 6f193f798SVadim Pasternak 0 - health failed, 2 - health OK, 3 - ASIC in booting state. 7f193f798SVadim Pasternak 8f193f798SVadim Pasternak The files are read only. 9f193f798SVadim Pasternak 104056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version 114056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version 12f193f798SVadim PasternakDate: June 2018 13f193f798SVadim PasternakKernelVersion: 4.19 14f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 15f193f798SVadim PasternakDescription: These files show with which CPLD versions have been burned 16f193f798SVadim Pasternak on carrier and switch boards. 17f193f798SVadim Pasternak 18f193f798SVadim Pasternak The files are read only. 19f193f798SVadim Pasternak 204056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/fan_dir 212752e344SVadim PasternakDate: December 2018 222752e344SVadim PasternakKernelVersion: 5.0 232752e344SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 242752e344SVadim PasternakDescription: This file shows the system fans direction: 252752e344SVadim Pasternak forward direction - relevant bit is set 0; 262752e344SVadim Pasternak reversed direction - relevant bit is set 1. 272752e344SVadim Pasternak 282752e344SVadim Pasternak The files are read only. 292752e344SVadim Pasternak 30eea97b25SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version 3152675da1SVadim PasternakDate: November 2018 32522e4ee6SDarren Hart (VMware)KernelVersion: 5.0 3352675da1SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 3452675da1SVadim PasternakDescription: These files show with which CPLD versions have been burned 35eea97b25SVadim Pasternak on LED or Gearbox board. 3652675da1SVadim Pasternak 3752675da1SVadim Pasternak The files are read only. 3852675da1SVadim Pasternak 394056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable 4052675da1SVadim PasternakDate: November 2018 41522e4ee6SDarren Hart (VMware)KernelVersion: 5.0 4252675da1SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 4352675da1SVadim PasternakDescription: These files enable and disable the access to the JTAG domain. 4452675da1SVadim Pasternak By default access to the JTAG domain is disabled. 4552675da1SVadim Pasternak 4652675da1SVadim Pasternak The file is read/write. 4752675da1SVadim Pasternak 48f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio 49f193f798SVadim PasternakDate: June 2018 50f193f798SVadim PasternakKernelVersion: 4.19 51f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 52f193f798SVadim PasternakDescription: This file allows iio devices selection. 53f193f798SVadim Pasternak 54f193f798SVadim Pasternak Attribute select_iio can be written with 0 or with 1. It 55f193f798SVadim Pasternak selects which one of iio devices can be accessed. 56f193f798SVadim Pasternak 57f193f798SVadim Pasternak The file is read/write. 58f193f798SVadim Pasternak 59f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on 60f193f798SVadim Pasternak /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on 61f193f798SVadim Pasternak /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle 62f193f798SVadim Pasternak /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_down 63f193f798SVadim PasternakDate: June 2018 64f193f798SVadim PasternakKernelVersion: 4.19 65f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 66f193f798SVadim PasternakDescription: These files allow asserting system power cycling, switching 67f193f798SVadim Pasternak power supply units on and off and system's main power domain 68f193f798SVadim Pasternak shutdown. 69f193f798SVadim Pasternak Expected behavior: 70f193f798SVadim Pasternak When pwr_cycle is written 1: auxiliary power domain will go 71f193f798SVadim Pasternak down and after short period (about 1 second) up. 72f193f798SVadim Pasternak When psu1_on or psu2_on is written 1, related unit will be 73f193f798SVadim Pasternak disconnected from the power source, when written 0 - connected. 74f193f798SVadim Pasternak If both are written 1 - power supplies main power domain will 75f193f798SVadim Pasternak go down. 76f193f798SVadim Pasternak When pwr_down is written 1, system's main power domain will go 77f193f798SVadim Pasternak down. 78f193f798SVadim Pasternak 79f193f798SVadim Pasternak The files are write only. 80f193f798SVadim Pasternak 814056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_aux_pwr_or_ref 824056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_asic_thermal 834056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_halt 844056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_wd 854056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_fw_reset 864056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_long_pb 874056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_main_pwr_fail 884056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_short_pb 894056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_reset 90f193f798SVadim PasternakDate: June 2018 91f193f798SVadim PasternakKernelVersion: 4.19 92f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 93f193f798SVadim PasternakDescription: These files show the system reset cause, as following: power 94a34e1343SVadim Pasternak auxiliary outage or power refresh, ASIC thermal shutdown, halt, 95a34e1343SVadim Pasternak hotswap, watchdog, firmware reset, long press power button, 96f193f798SVadim Pasternak short press power button, software reset. Value 1 in file means 97f193f798SVadim Pasternak this is reset cause, 0 - otherwise. Only one of the above 98f193f798SVadim Pasternak causes could be 1 at the same time, representing only last 99f193f798SVadim Pasternak reset cause. 100f193f798SVadim Pasternak 101f193f798SVadim Pasternak The files are read only. 10252675da1SVadim Pasternak 1034056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_pwr_fail 1044056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_comex 1054056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_system 1064056e79fSMauro Carvalho ChehabWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_voltmon_upgrade_fail 10752675da1SVadim PasternakDate: November 2018 108522e4ee6SDarren Hart (VMware)KernelVersion: 5.0 10952675da1SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 11052675da1SVadim PasternakDescription: These files show the system reset cause, as following: ComEx 11152675da1SVadim Pasternak power fail, reset from ComEx, system platform reset, reset 11252675da1SVadim Pasternak due to voltage monitor devices upgrade failure, 11352675da1SVadim Pasternak Value 1 in file means this is reset cause, 0 - otherwise. 11452675da1SVadim Pasternak Only one bit could be 1 at the same time, representing only 11552675da1SVadim Pasternak the last reset cause. 11652675da1SVadim Pasternak 11752675da1SVadim Pasternak The files are read only. 118ba07e3aaSVadim Pasternak 11974e56f5fSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_version 12074e56f5fSVadim PasternakDate: November 2018 12174e56f5fSVadim PasternakKernelVersion: 5.0 12274e56f5fSVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 12374e56f5fSVadim PasternakDescription: These files show with which CPLD versions have been burned 12474e56f5fSVadim Pasternak on LED board. 12574e56f5fSVadim Pasternak 12674e56f5fSVadim Pasternak The files are read only. 12774e56f5fSVadim Pasternak 1285358c111SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_thermal 1295358c111SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_wd 1305358c111SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_asic 1315358c111SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_reload_bios 1325358c111SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sff_wd 1335358c111SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_swb_wd 134ba07e3aaSVadim PasternakDate: June 2019 135ba07e3aaSVadim PasternakKernelVersion: 5.3 136ba07e3aaSVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 137ba07e3aaSVadim PasternakDescription: These files show the system reset cause, as following: 138ba07e3aaSVadim Pasternak COMEX thermal shutdown; wathchdog power off or reset was derived 139ba07e3aaSVadim Pasternak by one of the next components: COMEX, switch board or by Small Form 1403e42d1deSCarlos Bilbao Factor mezzanine, reset requested from ASIC, reset caused by BIOS 141ba07e3aaSVadim Pasternak reload. Value 1 in file means this is reset cause, 0 - otherwise. 142ba07e3aaSVadim Pasternak Only one of the above causes could be 1 at the same time, representing 143ba07e3aaSVadim Pasternak only last reset cause. 144ba07e3aaSVadim Pasternak 145ba07e3aaSVadim Pasternak The files are read only. 146435d7e10SVadim Pasternak 147435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config1 148435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config2 149435d7e10SVadim PasternakDate: January 2020 150435d7e10SVadim PasternakKernelVersion: 5.6 151435d7e10SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 152435d7e10SVadim PasternakDescription: These files show system static topology identification 153435d7e10SVadim Pasternak like system's static I2C topology, number and type of FPGA 154435d7e10SVadim Pasternak devices within the system and so on. 155435d7e10SVadim Pasternak 156435d7e10SVadim Pasternak The files are read only. 157435d7e10SVadim Pasternak 158435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_ac_pwr_fail 159435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_platform 160435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_soc 161435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_pwr_off 162435d7e10SVadim PasternakDate: January 2020 163435d7e10SVadim PasternakKernelVersion: 5.6 164435d7e10SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 165435d7e10SVadim PasternakDescription: These files show the system reset causes, as following: reset 166435d7e10SVadim Pasternak due to AC power failure, reset invoked from software by 167435d7e10SVadim Pasternak assertion reset signal through CPLD. reset caused by signal 168435d7e10SVadim Pasternak asserted by SOC through ACPI register, reset invoked from 169435d7e10SVadim Pasternak software by assertion power off signal through CPLD. 170435d7e10SVadim Pasternak 171435d7e10SVadim Pasternak The files are read only. 172435d7e10SVadim Pasternak 173435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pcie_asic_reset_dis 174435d7e10SVadim PasternakDate: January 2020 175435d7e10SVadim PasternakKernelVersion: 5.6 176435d7e10SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 177435d7e10SVadim PasternakDescription: This file allows to retain ASIC up during PCIe root complex 178435d7e10SVadim Pasternak reset, when attribute is set 1. 179435d7e10SVadim Pasternak 180435d7e10SVadim Pasternak The file is read/write. 181435d7e10SVadim Pasternak 182435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/vpd_wp 183435d7e10SVadim PasternakDate: January 2020 184435d7e10SVadim PasternakKernelVersion: 5.6 185435d7e10SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 1863e42d1deSCarlos BilbaoDescription: This file allows to overwrite system VPD hardware write 187435d7e10SVadim Pasternak protection when attribute is set 1. 188435d7e10SVadim Pasternak 189435d7e10SVadim Pasternak The file is read/write. 190435d7e10SVadim Pasternak 191435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/voltreg_update_status 192435d7e10SVadim PasternakDate: January 2020 193435d7e10SVadim PasternakKernelVersion: 5.6 194435d7e10SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 195435d7e10SVadim PasternakDescription: This file exposes the configuration update status of burnable 196435d7e10SVadim Pasternak voltage regulator devices. The status values are as following: 197435d7e10SVadim Pasternak 0 - OK; 1 - CRC failure; 2 = I2C failure; 3 - in progress. 198435d7e10SVadim Pasternak 199435d7e10SVadim Pasternak The file is read only. 200435d7e10SVadim Pasternak 201435d7e10SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ufm_version 202435d7e10SVadim PasternakDate: January 2020 203435d7e10SVadim PasternakKernelVersion: 5.6 204435d7e10SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 205435d7e10SVadim PasternakDescription: This file exposes the firmware version of burnable voltage 206435d7e10SVadim Pasternak regulator devices. 207435d7e10SVadim Pasternak 208435d7e10SVadim Pasternak The file is read only. 209f6fae31eSVadim Pasternak 210f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_pn 211f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_pn 212f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_pn 213f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_pn 214f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version_min 215f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version_min 216f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version_min 217f6fae31eSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_version_min 218f6fae31eSVadim PasternakDate: July 2020 219f6fae31eSVadim PasternakKernelVersion: 5.9 220f6fae31eSVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 221f6fae31eSVadim PasternakDescription: These files show with which CPLD part numbers and minor 222f6fae31eSVadim Pasternak versions have been burned CPLD devices equipped on a 223f6fae31eSVadim Pasternak system. 224f6fae31eSVadim Pasternak 225f6fae31eSVadim Pasternak The files are read only. 226527cd54dSVadim Pasternak 227527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/bios_active_image 228527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/bios_auth_fail 229527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/bios_upgrade_fail 230527cd54dSVadim PasternakDate: October 2021 231527cd54dSVadim PasternakKernelVersion: 5.16 232527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 233527cd54dSVadim PasternakDescription: The files represent BIOS statuses: 234164e3271SJonathan Corbet 235164e3271SJonathan Corbet bios_active_image: location of current active BIOS image: 236527cd54dSVadim Pasternak 0: Top, 1: Bottom. 237527cd54dSVadim Pasternak The reported value should correspond to value expected by OS 238527cd54dSVadim Pasternak in case of BIOS safe mode is 0. This bit is related to Intel 239527cd54dSVadim Pasternak top-swap feature of DualBios on the same flash. 240164e3271SJonathan Corbet 241164e3271SJonathan Corbet bios_auth_fail: BIOS upgrade is failed because provided BIOS 242527cd54dSVadim Pasternak image is not signed correctly. 243164e3271SJonathan Corbet 244164e3271SJonathan Corbet bios_upgrade_fail: BIOS upgrade is failed by some other 245527cd54dSVadim Pasternak reason not because authentication. For example due to 246527cd54dSVadim Pasternak physical SPI flash problem. 247527cd54dSVadim Pasternak 248527cd54dSVadim Pasternak The files are read only. 249527cd54dSVadim Pasternak 250527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc1_enable 251527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc2_enable 252527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc3_enable 253527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc4_enable 254527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc5_enable 255527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc6_enable 256527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc7_enable 257527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc8_enable 258527cd54dSVadim PasternakDate: October 2021 259527cd54dSVadim PasternakKernelVersion: 5.16 260527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 261527cd54dSVadim PasternakDescription: These files allow line cards enable state control. 262527cd54dSVadim Pasternak Expected behavior: 263527cd54dSVadim Pasternak When lc{n}_enable is written 1, related line card is released 264527cd54dSVadim Pasternak from the reset state, when 0 - is hold in reset state. 265527cd54dSVadim Pasternak 266527cd54dSVadim Pasternak The files are read/write. 267527cd54dSVadim Pasternak 268527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc1_pwr 269527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc2_pwr 270527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc3_pwr 271527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc4_pwr 272527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc5_pwr 273527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc6_pwr 274527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc7_pwr 275527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc8_pwr 276527cd54dSVadim PasternakDate: October 2021 277527cd54dSVadim PasternakKernelVersion: 5.16 278527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 279527cd54dSVadim PasternakDescription: These files switching line cards power on and off. 280527cd54dSVadim Pasternak Expected behavior: 281527cd54dSVadim Pasternak When lc{n}_pwr is written 1, related line card is powered 282527cd54dSVadim Pasternak on, when written 0 - powered off. 283527cd54dSVadim Pasternak 284527cd54dSVadim Pasternak The files are read/write. 285527cd54dSVadim Pasternak 286527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc1_rst_mask 287527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc2_rst_mask 288527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc3_rst_mask 289527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc4_rst_mask 290527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc5_rst_mask 291527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc6_rst_mask 292527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc7_rst_mask 293527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc8_rst_mask 294527cd54dSVadim PasternakDate: October 2021 295527cd54dSVadim PasternakKernelVersion: 5.16 296527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 297527cd54dSVadim PasternakDescription: These files clear line card reset bit enforced by ASIC, when it 298527cd54dSVadim Pasternak sets it due to some abnormal ASIC behavior. 299527cd54dSVadim Pasternak Expected behavior: 300527cd54dSVadim Pasternak When lc{n}_rst_mask is written 1, related line card reset bit 301527cd54dSVadim Pasternak is cleared, when written 0 - no effect. 302527cd54dSVadim Pasternak 303527cd54dSVadim Pasternak The files are write only. 304527cd54dSVadim Pasternak 305527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/os_started 306527cd54dSVadim PasternakDate: October 2021 307527cd54dSVadim PasternakKernelVersion: 5.16 308527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 309527cd54dSVadim PasternakDescription: This file, when written 1, indicates to programmable devices 310527cd54dSVadim Pasternak that OS is taking control over it. 311527cd54dSVadim Pasternak 312527cd54dSVadim Pasternak The file is read/write. 313527cd54dSVadim Pasternak 314527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pm_mgmt_en 315527cd54dSVadim PasternakDate: October 2021 316527cd54dSVadim PasternakKernelVersion: 5.16 317527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 318527cd54dSVadim PasternakDescription: This file assigns power management control ownership. 319527cd54dSVadim Pasternak When power management control is provided by hardware, hardware 320527cd54dSVadim Pasternak will automatically power off one or more line previously 321527cd54dSVadim Pasternak powered line cards in case system power budget is getting 322527cd54dSVadim Pasternak insufficient. It could be in case when some of power units lost 323527cd54dSVadim Pasternak power good state. 324527cd54dSVadim Pasternak When pm_mgmt_en is written 1, power management control by 325527cd54dSVadim Pasternak software is enabled, 0 - power management control by hardware. 326527cd54dSVadim Pasternak Note that for any setting of pm_mgmt_en attribute hardware will 327527cd54dSVadim Pasternak not allow to power on any new line card in case system power 328527cd54dSVadim Pasternak budget is insufficient. 329527cd54dSVadim Pasternak Same in case software will try to power on several line cards 330527cd54dSVadim Pasternak at once - hardware will power line cards while system has 331527cd54dSVadim Pasternak enough power budget. 332527cd54dSVadim Pasternak Default is 0. 333527cd54dSVadim Pasternak 334527cd54dSVadim Pasternak The file is read/write. 335527cd54dSVadim Pasternak 336527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu3_on 337527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu4_on 338527cd54dSVadim PasternakDate: October 2021 339527cd54dSVadim PasternakKernelVersion: 5.16 340527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 341527cd54dSVadim PasternakDescription: These files switching power supply units on and off. 342527cd54dSVadim Pasternak Expected behavior: 343527cd54dSVadim Pasternak When psu3_on or psu4_on is written 1, related unit will be 344527cd54dSVadim Pasternak disconnected from the power source, when written 0 - connected. 345527cd54dSVadim Pasternak 346527cd54dSVadim Pasternak The files are write only. 347527cd54dSVadim Pasternak 348527cd54dSVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/shutdown_unlock 349527cd54dSVadim PasternakDate: October 2021 350527cd54dSVadim PasternakKernelVersion: 5.16 351527cd54dSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 352527cd54dSVadim PasternakDescription: This file allows to unlock ASIC after thermal shutdown event. 353527cd54dSVadim Pasternak When system thermal shutdown is enforced by ASIC, ASIC is 354527cd54dSVadim Pasternak getting locked and after system boot it will not be available. 355527cd54dSVadim Pasternak Software can decide to unlock it by setting this attribute to 356527cd54dSVadim Pasternak 1 and then perform system power cycle by setting pwr_cycle 357527cd54dSVadim Pasternak attribute to 1 (power cycle of main power domain). 358527cd54dSVadim Pasternak Before setting shutdown_unlock to 1 it is recommended to 359527cd54dSVadim Pasternak validate that system reboot cause is reset_asic_thermal or 360527cd54dSVadim Pasternak reset_thermal_spc_or_pciesw. 361527cd54dSVadim Pasternak In case shutdown_unlock is not set 1, the only way to release 362527cd54dSVadim Pasternak ASIC from locking - is full system power cycle through the 363527cd54dSVadim Pasternak external power distribution unit. 364527cd54dSVadim Pasternak Default is 1. 365527cd54dSVadim Pasternak 366527cd54dSVadim Pasternak The file is read/write. 3675b0a315cSVadim Pasternak 3685b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/cpld1_pn 3695b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/cpld1_version 3705b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/cpld1_version_min 3715b0a315cSVadim PasternakDate: October 2021 3725b0a315cSVadim PasternakKernelVersion: 5.16 3735b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 3745b0a315cSVadim PasternakDescription: These files show with which CPLD major and minor versions 3755b0a315cSVadim Pasternak and part number has been burned CPLD device on line card. 3765b0a315cSVadim Pasternak 3775b0a315cSVadim Pasternak The files are read only. 3785b0a315cSVadim Pasternak 3795b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/fpga1_pn 3805b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/fpga1_version 3815b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/fpga1_version_min 3825b0a315cSVadim PasternakDate: October 2021 3835b0a315cSVadim PasternakKernelVersion: 5.16 3845b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 3855b0a315cSVadim PasternakDescription: These files show with which FPGA major and minor versions 3865b0a315cSVadim Pasternak and part number has been burned FPGA device on line card. 3875b0a315cSVadim Pasternak 3885b0a315cSVadim Pasternak The files are read only. 3895b0a315cSVadim Pasternak 3905b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/vpd_wp 3915b0a315cSVadim PasternakDate: October 2021 3925b0a315cSVadim PasternakKernelVersion: 5.16 3935b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 3945b0a315cSVadim PasternakDescription: This file allow to overwrite line card VPD hardware write 3955b0a315cSVadim Pasternak protection mode. When attribute is set 1 - write protection is 3965b0a315cSVadim Pasternak disabled, when 0 - enabled. 3975b0a315cSVadim Pasternak Default is 0. 3985b0a315cSVadim Pasternak If the system is in locked-down mode writing this file will not 3995b0a315cSVadim Pasternak be allowed. 4005b0a315cSVadim Pasternak The purpose if this file is to allow line card VPD burning 4015b0a315cSVadim Pasternak during production flow. 4025b0a315cSVadim Pasternak 4035b0a315cSVadim Pasternak The file is read/write. 4045b0a315cSVadim Pasternak 4055b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/reset_aux_pwr_or_ref 4065b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/reset_dc_dc_pwr_fail 4075b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/reset_fpga_not_done 4085b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/reset_from_chassis 4095b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/reset_line_card 4105b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/reset_pwr_off_from_chassis 4115b0a315cSVadim PasternakDate: October 2021 4125b0a315cSVadim PasternakKernelVersion: 5.16 4135b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 4145b0a315cSVadim PasternakDescription: These files show the line reset cause, as following: power 4155b0a315cSVadim Pasternak auxiliary outage or power refresh, DC-to-DC power failure, FPGA reset 4165b0a315cSVadim Pasternak failed, line card reset failed, power off from chassis. 4175b0a315cSVadim Pasternak Value 1 in file means this is reset cause, 0 - otherwise. Only one of 4185b0a315cSVadim Pasternak the above causes could be 1 at the same time, representing only last 4195b0a315cSVadim Pasternak reset cause. 4205b0a315cSVadim Pasternak 4215b0a315cSVadim Pasternak The files are read only. 4225b0a315cSVadim Pasternak 4235b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/cpld_upgrade_en 4245b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/fpga_upgrade_en 4255b0a315cSVadim PasternakDate: October 2021 4265b0a315cSVadim PasternakKernelVersion: 5.16 4275b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 4285b0a315cSVadim PasternakDescription: These files allow CPLD and FPGA burning. Value 1 in file means burning 4295b0a315cSVadim Pasternak is enabled, 0 - otherwise. 4305b0a315cSVadim Pasternak If the system is in locked-down mode writing these files will 4315b0a315cSVadim Pasternak not be allowed. 4325b0a315cSVadim Pasternak The purpose of these files to allow line card CPLD and FPGA 4335b0a315cSVadim Pasternak upgrade through the JTAG daisy-chain. 4345b0a315cSVadim Pasternak 4355b0a315cSVadim Pasternak The files are read/write. 4365b0a315cSVadim Pasternak 4375b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/qsfp_pwr_en 4385b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/pwr_en 4395b0a315cSVadim PasternakDate: October 2021 4405b0a315cSVadim PasternakKernelVersion: 5.16 4415b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 4425b0a315cSVadim PasternakDescription: These files allow to power on/off all QSFP ports and whole line card. 4435b0a315cSVadim Pasternak The attributes are set 1 for power on, 0 - for power off. 4445b0a315cSVadim Pasternak 4455b0a315cSVadim Pasternak The files are read/write. 4465b0a315cSVadim Pasternak 4475b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/agb_spi_burn_en 4485b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/fpga_spi_burn_en 4495b0a315cSVadim PasternakDate: October 2021 4505b0a315cSVadim PasternakKernelVersion: 5.16 4515b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 4525b0a315cSVadim PasternakDescription: These files allow gearboxes and FPGA SPI flash burning. 4535b0a315cSVadim Pasternak The attributes are set 1 to enable burning, 0 - to disable. 4545b0a315cSVadim Pasternak If the system is in locked-down mode writing these files will 4555b0a315cSVadim Pasternak not be allowed. 4565b0a315cSVadim Pasternak The purpose of these files to allow line card Gearboxes and FPGA 4575b0a315cSVadim Pasternak burning during production flow. 4585b0a315cSVadim Pasternak 4595b0a315cSVadim Pasternak The file is read/write. 4605b0a315cSVadim Pasternak 4615b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/max_power 4625b0a315cSVadim PasternakWhat: /sys/devices/platform/mlxplat/i2c_mlxcpld.*/i2c-*/i2c-*/i2c-*/*-0032/mlxreg-io.*/hwmon/hwmon*/config 4635b0a315cSVadim PasternakDate: October 2021 4645b0a315cSVadim PasternakKernelVersion: 5.16 4655b0a315cSVadim PasternakContact: Vadim Pasternak <vadimp@nvidia.com> 4665b0a315cSVadim PasternakDescription: These files provide the maximum powered required for line card 4675b0a315cSVadim Pasternak feeding and line card configuration Id. 4685b0a315cSVadim Pasternak 4695b0a315cSVadim Pasternak The files are read only. 470*b1a9c697SMichael Shych 471*b1a9c697SMichael ShychWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/phy_reset 472*b1a9c697SMichael ShychDate: May 2022 473*b1a9c697SMichael ShychKernelVersion: 5.19 474*b1a9c697SMichael ShychContact: Vadim Pasternak <vadimpmellanox.com> 475*b1a9c697SMichael ShychDescription: This file allows to reset PHY 88E1548 when attribute is set 0 476*b1a9c697SMichael Shych due to some abnormal PHY behavior. 477*b1a9c697SMichael Shych Expected behavior: 478*b1a9c697SMichael Shych When phy_reset is written 1, all PHY 88E1548 are released 479*b1a9c697SMichael Shych from the reset state, when 0 - are hold in reset state. 480*b1a9c697SMichael Shych 481*b1a9c697SMichael Shych The files are read/write. 482*b1a9c697SMichael Shych 483*b1a9c697SMichael ShychWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/mac_reset 484*b1a9c697SMichael ShychDate: May 2022 485*b1a9c697SMichael ShychKernelVersion: 5.19 486*b1a9c697SMichael ShychContact: Vadim Pasternak <vadimpmellanox.com> 487*b1a9c697SMichael ShychDescription: This file allows to reset ASIC MT52132 when attribute is set 0 488*b1a9c697SMichael Shych due to some abnormal ASIC behavior. 489*b1a9c697SMichael Shych Expected behavior: 490*b1a9c697SMichael Shych When mac_reset is written 1, the ASIC MT52132 is released 491*b1a9c697SMichael Shych from the reset state, when 0 - is hold in reset state. 492*b1a9c697SMichael Shych 493*b1a9c697SMichael Shych The files are read/write. 494*b1a9c697SMichael Shych 495*b1a9c697SMichael ShychWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/qsfp_pwr_good 496*b1a9c697SMichael ShychDate: May 2022 497*b1a9c697SMichael ShychKernelVersion: 5.19 498*b1a9c697SMichael ShychContact: Vadim Pasternak <vadimpmellanox.com> 499*b1a9c697SMichael ShychDescription: This file shows QSFP ports power status. The value is set to 0 500*b1a9c697SMichael Shych when one of any QSFP ports is plugged. The value is set to 1 when 501*b1a9c697SMichael Shych there are no any QSFP ports are plugged. 502*b1a9c697SMichael Shych The possible values are: 503*b1a9c697SMichael Shych 0 - Power good, 1 - Not power good. 504*b1a9c697SMichael Shych 505*b1a9c697SMichael Shych The files are read only. 506