xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun	Intel Stratix10 Remote System Update (RSU) device attributes
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/current_image
4*4882a593SmuzhiyunDate:		August 2019
5*4882a593SmuzhiyunKernelVersion:	5.4
6*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
7*4882a593SmuzhiyunDescription:
8*4882a593Smuzhiyun		(RO) the address in flash of currently running image.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/fail_image
11*4882a593SmuzhiyunDate:		August 2019
12*4882a593SmuzhiyunKernelVersion:	5.4
13*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
14*4882a593SmuzhiyunDescription:
15*4882a593Smuzhiyun		(RO) the address in flash of failed image.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/state
18*4882a593SmuzhiyunDate:		August 2019
19*4882a593SmuzhiyunKernelVersion:	5.4
20*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
21*4882a593SmuzhiyunDescription:
22*4882a593Smuzhiyun		(RO) the state of RSU system.
23*4882a593Smuzhiyun		The state field has two parts: major error code in
24*4882a593Smuzhiyun		upper 16 bits and minor error code in lower 16 bits.
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun		b[15:0]
27*4882a593Smuzhiyun			Currently used only when major error is 0xF006
28*4882a593Smuzhiyun			(CPU watchdog timeout), in which case the minor
29*4882a593Smuzhiyun			error code is the value reported by CPU to
30*4882a593Smuzhiyun			firmware through the RSU notify command before
31*4882a593Smuzhiyun			the watchdog timeout occurs.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun		b[31:16]
34*4882a593Smuzhiyun			0xF001	bitstream error
35*4882a593Smuzhiyun			0xF002	hardware access failure
36*4882a593Smuzhiyun			0xF003	bitstream corruption
37*4882a593Smuzhiyun			0xF004	internal error
38*4882a593Smuzhiyun			0xF005	device error
39*4882a593Smuzhiyun			0xF006	CPU watchdog timeout
40*4882a593Smuzhiyun			0xF007	internal unknown error
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/version
43*4882a593SmuzhiyunDate:		August 2019
44*4882a593SmuzhiyunKernelVersion:	5.4
45*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
46*4882a593SmuzhiyunDescription:
47*4882a593Smuzhiyun		(RO) the version number of RSU firmware. 19.3 or late
48*4882a593Smuzhiyun		version includes information about the firmware which
49*4882a593Smuzhiyun		reported the error.
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun		pre 19.3:
52*4882a593Smuzhiyun			b[31:0]
53*4882a593Smuzhiyun				0x0	version number
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun		19.3 or late:
56*4882a593Smuzhiyun			b[15:0]
57*4882a593Smuzhiyun				0x1	version number
58*4882a593Smuzhiyun			b[31:16]
59*4882a593Smuzhiyun				0x0	no error
60*4882a593Smuzhiyun				0x0DCF	Decision CMF error
61*4882a593Smuzhiyun				0x0ACF	Application CMF error
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/error_location
64*4882a593SmuzhiyunDate:		August 2019
65*4882a593SmuzhiyunKernelVersion:	5.4
66*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
67*4882a593SmuzhiyunDescription:
68*4882a593Smuzhiyun		(RO) the error offset inside the image that failed.
69*4882a593Smuzhiyun
70*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/error_details
71*4882a593SmuzhiyunDate:		August 2019
72*4882a593SmuzhiyunKernelVersion:	5.4
73*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
74*4882a593SmuzhiyunDescription:
75*4882a593Smuzhiyun		(RO) error code.
76*4882a593Smuzhiyun
77*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/retry_counter
78*4882a593SmuzhiyunDate:		August 2019
79*4882a593SmuzhiyunKernelVersion:	5.4
80*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
81*4882a593SmuzhiyunDescription:
82*4882a593Smuzhiyun		(RO) the current image's retry counter, which is used by
83*4882a593Smuzhiyun		user to know how many times the images is still allowed
84*4882a593Smuzhiyun		to reload itself before giving up and starting RSU
85*4882a593Smuzhiyun		fail-over flow.
86*4882a593Smuzhiyun
87*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/reboot_image
88*4882a593SmuzhiyunDate:		August 2019
89*4882a593SmuzhiyunKernelVersion:	5.4
90*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
91*4882a593SmuzhiyunDescription:
92*4882a593Smuzhiyun		(WO) the address in flash of image to be loaded on next
93*4882a593Smuzhiyun		reboot command.
94*4882a593Smuzhiyun
95*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/notify
96*4882a593SmuzhiyunDate:		August 2019
97*4882a593SmuzhiyunKernelVersion:	5.4
98*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
99*4882a593SmuzhiyunDescription:
100*4882a593Smuzhiyun		(WO) client to notify firmware with different actions.
101*4882a593Smuzhiyun
102*4882a593Smuzhiyun		b[15:0]
103*4882a593Smuzhiyun			inform firmware the current software execution
104*4882a593Smuzhiyun			stage.
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun			==	===========================================
107*4882a593Smuzhiyun			0	the first stage bootloader didn't run or
108*4882a593Smuzhiyun				didn't reach the point of launching second
109*4882a593Smuzhiyun				stage bootloader.
110*4882a593Smuzhiyun			1	failed in second bootloader or didn't get
111*4882a593Smuzhiyun				to the point of launching the operating
112*4882a593Smuzhiyun				system.
113*4882a593Smuzhiyun			2	both first and second stage bootloader ran
114*4882a593Smuzhiyun				and the operating system launch was
115*4882a593Smuzhiyun				attempted.
116*4882a593Smuzhiyun			==	===========================================
117*4882a593Smuzhiyun
118*4882a593Smuzhiyun		b[16]
119*4882a593Smuzhiyun			==	===========================================
120*4882a593Smuzhiyun			1	firmware to reset current image retry
121*4882a593Smuzhiyun				counter.
122*4882a593Smuzhiyun			0	no action.
123*4882a593Smuzhiyun			==	===========================================
124*4882a593Smuzhiyun
125*4882a593Smuzhiyun		b[17]
126*4882a593Smuzhiyun			==	===========================================
127*4882a593Smuzhiyun			1	firmware to clear RSU log
128*4882a593Smuzhiyun			0	no action.
129*4882a593Smuzhiyun			==	===========================================
130*4882a593Smuzhiyun
131*4882a593Smuzhiyun		b[18]
132*4882a593Smuzhiyun			this is negative logic
133*4882a593Smuzhiyun
134*4882a593Smuzhiyun			==	===========================================
135*4882a593Smuzhiyun			1	no action
136*4882a593Smuzhiyun			0	firmware record the notify code defined
137*4882a593Smuzhiyun				in b[15:0].
138*4882a593Smuzhiyun			==	===========================================
139*4882a593Smuzhiyun
140*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/dcmf0
141*4882a593SmuzhiyunDate:		June 2020
142*4882a593SmuzhiyunKernelVersion:	5.8
143*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
144*4882a593SmuzhiyunDescription:
145*4882a593Smuzhiyun		(RO) Decision firmware copy 0 version information.
146*4882a593Smuzhiyun
147*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/dcmf1
148*4882a593SmuzhiyunDate:		June 2020
149*4882a593SmuzhiyunKernelVersion:	5.8
150*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
151*4882a593SmuzhiyunDescription:
152*4882a593Smuzhiyun		(RO) Decision firmware copy 1 version information.
153*4882a593Smuzhiyun
154*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/dcmf2
155*4882a593SmuzhiyunDate:		June 2020
156*4882a593SmuzhiyunKernelVersion:	5.8
157*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
158*4882a593SmuzhiyunDescription:
159*4882a593Smuzhiyun		(RO) Decision firmware copy 2 version information.
160*4882a593Smuzhiyun
161*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/dcmf3
162*4882a593SmuzhiyunDate:		June 2020
163*4882a593SmuzhiyunKernelVersion:	5.8
164*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
165*4882a593SmuzhiyunDescription:
166*4882a593Smuzhiyun		(RO) Decision firmware copy 3 version information.
167*4882a593Smuzhiyun
168*4882a593SmuzhiyunWhat:		/sys/devices/platform/stratix10-rsu.0/max_retry
169*4882a593SmuzhiyunDate:		June 2020
170*4882a593SmuzhiyunKernelVersion:	5.8
171*4882a593SmuzhiyunContact:	Richard Gong <richard.gong@linux.intel.com>
172*4882a593SmuzhiyunDescription:
173*4882a593Smuzhiyun		(RO) max retry parameter is stored in the firmware
174*4882a593Smuzhiyun		decision IO section, as a byte located at offset 0x18c.
175