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.
226*527cd54dSVadim Pasternak
227*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/bios_active_image
228*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/bios_auth_fail
229*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/bios_upgrade_fail
230*527cd54dSVadim PasternakDate:		October 2021
231*527cd54dSVadim PasternakKernelVersion:	5.16
232*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
233*527cd54dSVadim PasternakDescription:	The files represent BIOS statuses:
234*527cd54dSVadim Pasternak		- bios_active_image: location of current active BIOS image:
235*527cd54dSVadim Pasternak		  0: Top, 1: Bottom.
236*527cd54dSVadim Pasternak		  The reported value should correspond to value expected by OS
237*527cd54dSVadim Pasternak		  in case of BIOS safe mode is 0. This bit is related to Intel
238*527cd54dSVadim Pasternak		  top-swap feature of DualBios on the same flash.
239*527cd54dSVadim Pasternak		- bios_auth_fail: BIOS upgrade is failed because provided BIOS
240*527cd54dSVadim Pasternak		  image is not signed correctly.
241*527cd54dSVadim Pasternak		- bios_upgrade_fail: BIOS upgrade is failed by some other
242*527cd54dSVadim Pasternak		  reason not because authentication. For example due to
243*527cd54dSVadim Pasternak		  physical SPI flash problem.
244*527cd54dSVadim Pasternak
245*527cd54dSVadim Pasternak		The files are read only.
246*527cd54dSVadim Pasternak
247*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc1_enable
248*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc2_enable
249*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc3_enable
250*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc4_enable
251*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc5_enable
252*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc6_enable
253*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc7_enable
254*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc8_enable
255*527cd54dSVadim PasternakDate:		October 2021
256*527cd54dSVadim PasternakKernelVersion:	5.16
257*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
258*527cd54dSVadim PasternakDescription:	These files allow line cards enable state control.
259*527cd54dSVadim Pasternak		Expected behavior:
260*527cd54dSVadim Pasternak		When  lc{n}_enable is written 1, related line card is released
261*527cd54dSVadim Pasternak		from the reset state, when 0 - is hold in reset state.
262*527cd54dSVadim Pasternak
263*527cd54dSVadim Pasternak		The files are read/write.
264*527cd54dSVadim Pasternak
265*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc1_pwr
266*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc2_pwr
267*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc3_pwr
268*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc4_pwr
269*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc5_pwr
270*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc6_pwr
271*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc7_pwr
272*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc8_pwr
273*527cd54dSVadim PasternakDate:		October 2021
274*527cd54dSVadim PasternakKernelVersion:	5.16
275*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
276*527cd54dSVadim PasternakDescription:	These files switching line cards power on and off.
277*527cd54dSVadim Pasternak		Expected behavior:
278*527cd54dSVadim Pasternak		When  lc{n}_pwr is written 1, related line card is powered
279*527cd54dSVadim Pasternak		on, when written 0 - powered off.
280*527cd54dSVadim Pasternak
281*527cd54dSVadim Pasternak		The files are read/write.
282*527cd54dSVadim Pasternak
283*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc1_rst_mask
284*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc2_rst_mask
285*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc3_rst_mask
286*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc4_rst_mask
287*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc5_rst_mask
288*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc6_rst_mask
289*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc7_rst_mask
290*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lc8_rst_mask
291*527cd54dSVadim PasternakDate:		October 2021
292*527cd54dSVadim PasternakKernelVersion:	5.16
293*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
294*527cd54dSVadim PasternakDescription:	These files clear line card reset bit enforced by ASIC, when it
295*527cd54dSVadim Pasternak		sets it due to some abnormal ASIC behavior.
296*527cd54dSVadim Pasternak		Expected behavior:
297*527cd54dSVadim Pasternak		When lc{n}_rst_mask is written 1, related line card reset bit
298*527cd54dSVadim Pasternak		is cleared, when written 0 - no effect.
299*527cd54dSVadim Pasternak
300*527cd54dSVadim Pasternak		The files are write only.
301*527cd54dSVadim Pasternak
302*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/os_started
303*527cd54dSVadim PasternakDate:		October 2021
304*527cd54dSVadim PasternakKernelVersion:	5.16
305*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
306*527cd54dSVadim PasternakDescription:	This file, when written 1, indicates to programmable devices
307*527cd54dSVadim Pasternak		that OS is taking control over it.
308*527cd54dSVadim Pasternak
309*527cd54dSVadim Pasternak		The file is read/write.
310*527cd54dSVadim Pasternak
311*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pm_mgmt_en
312*527cd54dSVadim PasternakDate:		October 2021
313*527cd54dSVadim PasternakKernelVersion:	5.16
314*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
315*527cd54dSVadim PasternakDescription:	This file assigns power management control ownership.
316*527cd54dSVadim Pasternak		When power management control is provided by hardware, hardware
317*527cd54dSVadim Pasternak		will automatically power off one or more line previously
318*527cd54dSVadim Pasternak		powered line cards in case system power budget is getting
319*527cd54dSVadim Pasternak		insufficient. It could be in case when some of power units lost
320*527cd54dSVadim Pasternak		power good state.
321*527cd54dSVadim Pasternak		When pm_mgmt_en is written 1, power management control by
322*527cd54dSVadim Pasternak		software is enabled, 0 - power management control by hardware.
323*527cd54dSVadim Pasternak		Note that for any setting of pm_mgmt_en attribute hardware will
324*527cd54dSVadim Pasternak		not allow to power on any new line card in case system power
325*527cd54dSVadim Pasternak		budget is insufficient.
326*527cd54dSVadim Pasternak		Same in case software will try to power on several line cards
327*527cd54dSVadim Pasternak		at once - hardware will power line cards while system has
328*527cd54dSVadim Pasternak		enough power budget.
329*527cd54dSVadim Pasternak		Default is 0.
330*527cd54dSVadim Pasternak
331*527cd54dSVadim Pasternak		The file is read/write.
332*527cd54dSVadim Pasternak
333*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu3_on
334*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu4_on
335*527cd54dSVadim PasternakDate:		October 2021
336*527cd54dSVadim PasternakKernelVersion:	5.16
337*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
338*527cd54dSVadim PasternakDescription:	These files switching power supply units on and off.
339*527cd54dSVadim Pasternak		Expected behavior:
340*527cd54dSVadim Pasternak		When  psu3_on or psu4_on is written 1, related unit will be
341*527cd54dSVadim Pasternak		disconnected from the power source, when written 0 - connected.
342*527cd54dSVadim Pasternak
343*527cd54dSVadim Pasternak		The files are write only.
344*527cd54dSVadim Pasternak
345*527cd54dSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/shutdown_unlock
346*527cd54dSVadim PasternakDate:		October 2021
347*527cd54dSVadim PasternakKernelVersion:	5.16
348*527cd54dSVadim PasternakContact:	Vadim Pasternak <vadimp@nvidia.com>
349*527cd54dSVadim PasternakDescription:	This file allows to unlock ASIC after thermal shutdown event.
350*527cd54dSVadim Pasternak		When system thermal shutdown is enforced by ASIC, ASIC is
351*527cd54dSVadim Pasternak		getting locked and after system boot it will not be available.
352*527cd54dSVadim Pasternak		Software can decide to unlock it by setting this attribute to
353*527cd54dSVadim Pasternak		1 and then perform system power cycle by setting pwr_cycle
354*527cd54dSVadim Pasternak		attribute to 1 (power cycle of main power domain).
355*527cd54dSVadim Pasternak		Before setting shutdown_unlock to 1 it is recommended to
356*527cd54dSVadim Pasternak		validate that system reboot cause is reset_asic_thermal or
357*527cd54dSVadim Pasternak		reset_thermal_spc_or_pciesw.
358*527cd54dSVadim Pasternak		In case shutdown_unlock is not set 1, the only way to release
359*527cd54dSVadim Pasternak		ASIC from locking - is full system power cycle through the
360*527cd54dSVadim Pasternak		external power distribution unit.
361*527cd54dSVadim Pasternak		Default is 1.
362*527cd54dSVadim Pasternak
363*527cd54dSVadim Pasternak		The file is read/write.
364