xref: /openbmc/linux/Documentation/ABI/testing/sysfs-platform-mellanox-bootctl (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
177dcc95eSLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/lifecycle_state
279e29cb8SLiming SunDate:		Oct 2019
379e29cb8SLiming SunKernelVersion:	5.5
479e29cb8SLiming SunContact:	"Liming Sun <lsun@mellanox.com>"
579e29cb8SLiming SunDescription:
679e29cb8SLiming Sun		The Life-cycle state of the SoC, which could be one of the
779e29cb8SLiming Sun		following values.
8002a9c2fSMauro Carvalho Chehab
9002a9c2fSMauro Carvalho Chehab		==============  =============================================
10002a9c2fSMauro Carvalho Chehab		Production      Production state and can be updated to secure
11002a9c2fSMauro Carvalho Chehab		GA Secured      Secure chip and not able to change state
12002a9c2fSMauro Carvalho Chehab		GA Non-Secured  Non-Secure chip and not able to change state
13002a9c2fSMauro Carvalho Chehab		RMA             Return Merchandise Authorization
14002a9c2fSMauro Carvalho Chehab		==============  =============================================
1579e29cb8SLiming Sun
1677dcc95eSLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/post_reset_wdog
1779e29cb8SLiming SunDate:		Oct 2019
1879e29cb8SLiming SunKernelVersion:	5.5
1979e29cb8SLiming SunContact:	"Liming Sun <lsun@mellanox.com>"
2079e29cb8SLiming SunDescription:
2179e29cb8SLiming Sun		The watchdog setting in seconds for the next booting. It's used
2279e29cb8SLiming Sun		to reboot the chip and recover it to the old state if the new
2379e29cb8SLiming Sun		boot partition fails.
2479e29cb8SLiming Sun
2577dcc95eSLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/reset_action
2679e29cb8SLiming SunDate:		Oct 2019
2779e29cb8SLiming SunKernelVersion:	5.5
2879e29cb8SLiming SunContact:	"Liming Sun <lsun@mellanox.com>"
2979e29cb8SLiming SunDescription:
3079e29cb8SLiming Sun		The source of the boot stream for the next reset. It could be
31002a9c2fSMauro Carvalho Chehab		one of the following values:
32002a9c2fSMauro Carvalho Chehab
33002a9c2fSMauro Carvalho Chehab		===========  ===============================================
34002a9c2fSMauro Carvalho Chehab		external     boot from external source (USB or PCIe)
35002a9c2fSMauro Carvalho Chehab		emmc         boot from the onchip eMMC
36002a9c2fSMauro Carvalho Chehab		emmc_legacy  boot from the onchip eMMC in legacy (slow) mode
37002a9c2fSMauro Carvalho Chehab		===========  ===============================================
3879e29cb8SLiming Sun
3977dcc95eSLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/second_reset_action
4079e29cb8SLiming SunDate:		Oct 2019
4179e29cb8SLiming SunKernelVersion:	5.5
4279e29cb8SLiming SunContact:	"Liming Sun <lsun@mellanox.com>"
4379e29cb8SLiming SunDescription:
4479e29cb8SLiming Sun		Update the source of the boot stream after next reset. It could
4579e29cb8SLiming Sun		be one of the following values and will be applied after next
4679e29cb8SLiming Sun		reset.
47002a9c2fSMauro Carvalho Chehab
48002a9c2fSMauro Carvalho Chehab		===========  ===============================================
49002a9c2fSMauro Carvalho Chehab		external     boot from external source (USB or PCIe)
50002a9c2fSMauro Carvalho Chehab		emmc         boot from the onchip eMMC
51002a9c2fSMauro Carvalho Chehab		emmc_legacy  boot from the onchip eMMC in legacy (slow) mode
52002a9c2fSMauro Carvalho Chehab		swap_emmc    swap the primary / secondary boot partition
53002a9c2fSMauro Carvalho Chehab		none         cancel the action
54002a9c2fSMauro Carvalho Chehab		===========  ===============================================
5579e29cb8SLiming Sun
5677dcc95eSLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/secure_boot_fuse_state
5779e29cb8SLiming SunDate:		Oct 2019
5879e29cb8SLiming SunKernelVersion:	5.5
5979e29cb8SLiming SunContact:	"Liming Sun <lsun@mellanox.com>"
6079e29cb8SLiming SunDescription:
6179e29cb8SLiming Sun		The state of eFuse versions with the following values.
62002a9c2fSMauro Carvalho Chehab
63002a9c2fSMauro Carvalho Chehab		=======  ===============================================
64002a9c2fSMauro Carvalho Chehab		InUse    burnt, valid and currently in use
65002a9c2fSMauro Carvalho Chehab		Used     burnt and valid
66002a9c2fSMauro Carvalho Chehab		Free     not burnt and free to use
67002a9c2fSMauro Carvalho Chehab		Skipped  not burnt but not free (skipped)
68002a9c2fSMauro Carvalho Chehab		Wasted   burnt and invalid
69002a9c2fSMauro Carvalho Chehab		Invalid  not burnt but marked as valid (error state).
70002a9c2fSMauro Carvalho Chehab		=======  ===============================================
7182c3a0b7SLiming Sun
7282c3a0b7SLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/bootfifo
7382c3a0b7SLiming SunDate:		Apr 2023
7482c3a0b7SLiming SunKernelVersion:	6.4
7582c3a0b7SLiming SunContact:	"Liming Sun <limings@nvidia.com>"
7682c3a0b7SLiming SunDescription:
7782c3a0b7SLiming Sun		The file used to access the BlueField boot fifo.
78e9d1b2d0SLiming Sun
79e9d1b2d0SLiming SunWhat:		/sys/bus/platform/devices/MLNXBF04:00/rsh_log
80e9d1b2d0SLiming SunDate:		May 2023
81e9d1b2d0SLiming SunKernelVersion:	6.4
82e9d1b2d0SLiming SunContact:	"Liming Sun <limings@nvidia.com>"
83e9d1b2d0SLiming SunDescription:
84e9d1b2d0SLiming Sun		The file used to write BlueField boot log with the format
85e9d1b2d0SLiming Sun                "[INFO|WARN|ERR|ASSERT ]<msg>". Log level 'INFO' is used by
86e9d1b2d0SLiming Sun                default if not specified.
87*7e38a742SDavid Thompson
88*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/oob_mac
89*7e38a742SDavid ThompsonDate:		August 2023
90*7e38a742SDavid ThompsonKernelVersion:	6.5
91*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
92*7e38a742SDavid ThompsonDescription:
93*7e38a742SDavid Thompson		The "oob_mac" sysfs attribute holds the MAC address for
94*7e38a742SDavid Thompson                the out-of-band 1Gbps Ethernet port.  This MAC address is
95*7e38a742SDavid Thompson                provided on a board-level label.
96*7e38a742SDavid Thompson
97*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/opn
98*7e38a742SDavid ThompsonDate:		August 2023
99*7e38a742SDavid ThompsonKernelVersion:	6.5
100*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
101*7e38a742SDavid ThompsonDescription:
102*7e38a742SDavid Thompson		The "opn" sysfs attribute holds the board's part number.
103*7e38a742SDavid Thompson                This value is provided on a board-level label.
104*7e38a742SDavid Thompson
105*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/sku
106*7e38a742SDavid ThompsonDate:		August 2023
107*7e38a742SDavid ThompsonKernelVersion:	6.5
108*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
109*7e38a742SDavid ThompsonDescription:
110*7e38a742SDavid Thompson		The "sku" sysfs attribute holds the board's SKU number.
111*7e38a742SDavid Thompson                This value is provided on a board-level label.
112*7e38a742SDavid Thompson
113*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/modl
114*7e38a742SDavid ThompsonDate:		August 2023
115*7e38a742SDavid ThompsonKernelVersion:	6.5
116*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
117*7e38a742SDavid ThompsonDescription:
118*7e38a742SDavid Thompson		The "modl" sysfs attribute holds the board's model number.
119*7e38a742SDavid Thompson                This value is provided on a board-level label.
120*7e38a742SDavid Thompson
121*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/sn
122*7e38a742SDavid ThompsonDate:		August 2023
123*7e38a742SDavid ThompsonKernelVersion:	6.5
124*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
125*7e38a742SDavid ThompsonDescription:
126*7e38a742SDavid Thompson		The "sn" sysfs attribute holds the board's serial number.
127*7e38a742SDavid Thompson                This value is provided on a board-level label.
128*7e38a742SDavid Thompson
129*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/uuid
130*7e38a742SDavid ThompsonDate:		August 2023
131*7e38a742SDavid ThompsonKernelVersion:	6.5
132*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
133*7e38a742SDavid ThompsonDescription:
134*7e38a742SDavid Thompson		The "uuid" sysfs attribute holds the board's UUID.
135*7e38a742SDavid Thompson                This value is provided by the manufacturing team.
136*7e38a742SDavid Thompson
137*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/rev
138*7e38a742SDavid ThompsonDate:		August 2023
139*7e38a742SDavid ThompsonKernelVersion:	6.5
140*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
141*7e38a742SDavid ThompsonDescription:
142*7e38a742SDavid Thompson		The "rev" sysfs attribute holds the board's revision.
143*7e38a742SDavid Thompson                This value is provided on a board-level label.
144*7e38a742SDavid Thompson
145*7e38a742SDavid ThompsonWhat:		/sys/bus/platform/devices/MLNXBF04:00/mfg_lock
146*7e38a742SDavid ThompsonDate:		August 2023
147*7e38a742SDavid ThompsonKernelVersion:	6.5
148*7e38a742SDavid ThompsonContact:	"David Thompson <davthompson@nvidia.com>"
149*7e38a742SDavid ThompsonDescription:
150*7e38a742SDavid Thompson		The "mfg_lock" sysfs attribute is write-only.
151*7e38a742SDavid Thompson                A successful write to this attribute will latch the
152*7e38a742SDavid Thompson                board-level attributes into EEPROM, making them read-only.
153