xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-platform-dfl-fme (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/ports_num
2*4882a593SmuzhiyunDate:		June 2018
3*4882a593SmuzhiyunKernelVersion:  4.19
4*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
5*4882a593SmuzhiyunDescription:	Read-only. One DFL FPGA device may have more than 1
6*4882a593Smuzhiyun		port/Accelerator Function Unit (AFU). It returns the
7*4882a593Smuzhiyun		number of ports on the FPGA device when read it.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/bitstream_id
10*4882a593SmuzhiyunDate:		June 2018
11*4882a593SmuzhiyunKernelVersion:  4.19
12*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
13*4882a593SmuzhiyunDescription:	Read-only. It returns Bitstream (static FPGA region)
14*4882a593Smuzhiyun		identifier number, which includes the detailed version
15*4882a593Smuzhiyun		and other information of this static FPGA region.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/bitstream_metadata
18*4882a593SmuzhiyunDate:		June 2018
19*4882a593SmuzhiyunKernelVersion:  4.19
20*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
21*4882a593SmuzhiyunDescription:	Read-only. It returns Bitstream (static FPGA region) meta
22*4882a593Smuzhiyun		data, which includes the synthesis date, seed and other
23*4882a593Smuzhiyun		information of this static FPGA region.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/cache_size
26*4882a593SmuzhiyunDate:		August 2019
27*4882a593SmuzhiyunKernelVersion:  5.4
28*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
29*4882a593SmuzhiyunDescription:	Read-only. It returns cache size of this FPGA device.
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/fabric_version
32*4882a593SmuzhiyunDate:		August 2019
33*4882a593SmuzhiyunKernelVersion:  5.4
34*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
35*4882a593SmuzhiyunDescription:	Read-only. It returns fabric version of this FPGA device.
36*4882a593Smuzhiyun		Userspace applications need this information to select
37*4882a593Smuzhiyun		best data channels per different fabric design.
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/socket_id
40*4882a593SmuzhiyunDate:		August 2019
41*4882a593SmuzhiyunKernelVersion:  5.4
42*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
43*4882a593SmuzhiyunDescription:	Read-only. It returns socket_id to indicate which socket
44*4882a593Smuzhiyun		this FPGA belongs to, only valid for integrated solution.
45*4882a593Smuzhiyun		User only needs this information, in case standard numa node
46*4882a593Smuzhiyun		can't provide correct information.
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/pcie0_errors
49*4882a593SmuzhiyunDate:		August 2019
50*4882a593SmuzhiyunKernelVersion:  5.4
51*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
52*4882a593SmuzhiyunDescription:	Read-Write. Read this file for errors detected on pcie0 link.
53*4882a593Smuzhiyun		Write this file to clear errors logged in pcie0_errors. Write
54*4882a593Smuzhiyun		fails with -EINVAL if input parsing fails or input error code
55*4882a593Smuzhiyun		doesn't match.
56*4882a593Smuzhiyun
57*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/pcie1_errors
58*4882a593SmuzhiyunDate:		August 2019
59*4882a593SmuzhiyunKernelVersion:  5.4
60*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
61*4882a593SmuzhiyunDescription:	Read-Write. Read this file for errors detected on pcie1 link.
62*4882a593Smuzhiyun		Write this file to clear errors logged in pcie1_errors. Write
63*4882a593Smuzhiyun		fails with -EINVAL if input parsing fails or input error code
64*4882a593Smuzhiyun		doesn't match.
65*4882a593Smuzhiyun
66*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/nonfatal_errors
67*4882a593SmuzhiyunDate:		August 2019
68*4882a593SmuzhiyunKernelVersion:  5.4
69*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
70*4882a593SmuzhiyunDescription:	Read-only. It returns non-fatal errors detected.
71*4882a593Smuzhiyun
72*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/catfatal_errors
73*4882a593SmuzhiyunDate:		August 2019
74*4882a593SmuzhiyunKernelVersion:  5.4
75*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
76*4882a593SmuzhiyunDescription:	Read-only. It returns catastrophic and fatal errors detected.
77*4882a593Smuzhiyun
78*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/inject_errors
79*4882a593SmuzhiyunDate:		August 2019
80*4882a593SmuzhiyunKernelVersion:  5.4
81*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
82*4882a593SmuzhiyunDescription:	Read-Write. Read this file to check errors injected. Write this
83*4882a593Smuzhiyun		file to inject errors for testing purpose. Write fails with
84*4882a593Smuzhiyun		-EINVAL if input parsing fails or input inject error code isn't
85*4882a593Smuzhiyun		supported.
86*4882a593Smuzhiyun
87*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/fme_errors
88*4882a593SmuzhiyunDate:		August 2019
89*4882a593SmuzhiyunKernelVersion:  5.4
90*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
91*4882a593SmuzhiyunDescription:	Read-Write. Read this file to get errors detected on FME.
92*4882a593Smuzhiyun		Write this file to clear errors logged in fme_errors. Write
93*4882a593Smuzhiyun		fials with -EINVAL if input parsing fails or input error code
94*4882a593Smuzhiyun		doesn't match.
95*4882a593Smuzhiyun
96*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/first_error
97*4882a593SmuzhiyunDate:		August 2019
98*4882a593SmuzhiyunKernelVersion:  5.4
99*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
100*4882a593SmuzhiyunDescription:	Read-only. Read this file to get the first error detected by
101*4882a593Smuzhiyun		hardware.
102*4882a593Smuzhiyun
103*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/next_error
104*4882a593SmuzhiyunDate:		August 2019
105*4882a593SmuzhiyunKernelVersion:  5.4
106*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
107*4882a593SmuzhiyunDescription:	Read-only. Read this file to get the second error detected by
108*4882a593Smuzhiyun		hardware.
109*4882a593Smuzhiyun
110*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/name
111*4882a593SmuzhiyunDate:		October 2019
112*4882a593SmuzhiyunKernelVersion:	5.5
113*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
114*4882a593SmuzhiyunDescription:	Read-Only. Read this file to get the name of hwmon device, it
115*4882a593Smuzhiyun		supports values:
116*4882a593Smuzhiyun
117*4882a593Smuzhiyun		=================  =========================
118*4882a593Smuzhiyun		'dfl_fme_thermal'  thermal hwmon device name
119*4882a593Smuzhiyun		'dfl_fme_power'    power hwmon device name
120*4882a593Smuzhiyun		=================  =========================
121*4882a593Smuzhiyun
122*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_input
123*4882a593SmuzhiyunDate:		October 2019
124*4882a593SmuzhiyunKernelVersion:	5.5
125*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
126*4882a593SmuzhiyunDescription:	Read-Only. It returns FPGA device temperature in millidegrees
127*4882a593Smuzhiyun		Celsius.
128*4882a593Smuzhiyun
129*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max
130*4882a593SmuzhiyunDate:		October 2019
131*4882a593SmuzhiyunKernelVersion:	5.5
132*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
133*4882a593SmuzhiyunDescription:	Read-Only. It returns hardware threshold1 temperature in
134*4882a593Smuzhiyun		millidegrees Celsius. If temperature rises at or above this
135*4882a593Smuzhiyun		threshold, hardware starts 50% or 90% throttling (see
136*4882a593Smuzhiyun		'temp1_max_policy').
137*4882a593Smuzhiyun
138*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit
139*4882a593SmuzhiyunDate:		October 2019
140*4882a593SmuzhiyunKernelVersion:	5.5
141*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
142*4882a593SmuzhiyunDescription:	Read-Only. It returns hardware threshold2 temperature in
143*4882a593Smuzhiyun		millidegrees Celsius. If temperature rises at or above this
144*4882a593Smuzhiyun		threshold, hardware starts 100% throttling.
145*4882a593Smuzhiyun
146*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_emergency
147*4882a593SmuzhiyunDate:		October 2019
148*4882a593SmuzhiyunKernelVersion:	5.5
149*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
150*4882a593SmuzhiyunDescription:	Read-Only. It returns hardware trip threshold temperature in
151*4882a593Smuzhiyun		millidegrees Celsius. If temperature rises at or above this
152*4882a593Smuzhiyun		threshold, a fatal event will be triggered to board management
153*4882a593Smuzhiyun		controller (BMC) to shutdown FPGA.
154*4882a593Smuzhiyun
155*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_alarm
156*4882a593SmuzhiyunDate:		October 2019
157*4882a593SmuzhiyunKernelVersion:	5.5
158*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
159*4882a593SmuzhiyunDescription:	Read-only. It returns 1 if temperature is currently at or above
160*4882a593Smuzhiyun		hardware threshold1 (see 'temp1_max'), otherwise 0.
161*4882a593Smuzhiyun
162*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit_alarm
163*4882a593SmuzhiyunDate:		October 2019
164*4882a593SmuzhiyunKernelVersion:	5.5
165*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
166*4882a593SmuzhiyunDescription:	Read-only. It returns 1 if temperature is currently at or above
167*4882a593Smuzhiyun		hardware threshold2 (see 'temp1_crit'), otherwise 0.
168*4882a593Smuzhiyun
169*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_policy
170*4882a593SmuzhiyunDate:		October 2019
171*4882a593SmuzhiyunKernelVersion:	5.5
172*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
173*4882a593SmuzhiyunDescription:	Read-Only. Read this file to get the policy of hardware threshold1
174*4882a593Smuzhiyun		(see 'temp1_max'). It only supports two values (policies):
175*4882a593Smuzhiyun
176*4882a593Smuzhiyun		==  ==========================
177*4882a593Smuzhiyun		 0  AP2 state (90% throttling)
178*4882a593Smuzhiyun	         1  AP1 state (50% throttling)
179*4882a593Smuzhiyun		==  ==========================
180*4882a593Smuzhiyun
181*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_input
182*4882a593SmuzhiyunDate:		October 2019
183*4882a593SmuzhiyunKernelVersion:	5.5
184*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
185*4882a593SmuzhiyunDescription:	Read-Only. It returns current FPGA power consumption in uW.
186*4882a593Smuzhiyun
187*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max
188*4882a593SmuzhiyunDate:		October 2019
189*4882a593SmuzhiyunKernelVersion:	5.5
190*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
191*4882a593SmuzhiyunDescription:	Read-Write. Read this file to get current hardware power
192*4882a593Smuzhiyun		threshold1 in uW. If power consumption rises at or above
193*4882a593Smuzhiyun		this threshold, hardware starts 50% throttling.
194*4882a593Smuzhiyun		Write this file to set current hardware power threshold1 in uW.
195*4882a593Smuzhiyun		As hardware only accepts values in Watts, so input value will
196*4882a593Smuzhiyun		be round down per Watts (< 1 watts part will be discarded) and
197*4882a593Smuzhiyun		clamped within the range from 0 to 127 Watts. Write fails with
198*4882a593Smuzhiyun		-EINVAL if input parsing fails.
199*4882a593Smuzhiyun
200*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit
201*4882a593SmuzhiyunDate:		October 2019
202*4882a593SmuzhiyunKernelVersion:	5.5
203*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
204*4882a593SmuzhiyunDescription:	Read-Write. Read this file to get current hardware power
205*4882a593Smuzhiyun		threshold2 in uW. If power consumption rises at or above
206*4882a593Smuzhiyun		this threshold, hardware starts 90% throttling.
207*4882a593Smuzhiyun		Write this file to set current hardware power threshold2 in uW.
208*4882a593Smuzhiyun		As hardware only accepts values in Watts, so input value will
209*4882a593Smuzhiyun		be round down per Watts (< 1 watts part will be discarded) and
210*4882a593Smuzhiyun		clamped within the range from 0 to 127 Watts. Write fails with
211*4882a593Smuzhiyun		-EINVAL if input parsing fails.
212*4882a593Smuzhiyun
213*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max_alarm
214*4882a593SmuzhiyunDate:		October 2019
215*4882a593SmuzhiyunKernelVersion:	5.5
216*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
217*4882a593SmuzhiyunDescription:	Read-only. It returns 1 if power consumption is currently at or
218*4882a593Smuzhiyun		above hardware threshold1 (see 'power1_max'), otherwise 0.
219*4882a593Smuzhiyun
220*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit_alarm
221*4882a593SmuzhiyunDate:		October 2019
222*4882a593SmuzhiyunKernelVersion:	5.5
223*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
224*4882a593SmuzhiyunDescription:	Read-only. It returns 1 if power consumption is currently at or
225*4882a593Smuzhiyun		above hardware threshold2 (see 'power1_crit'), otherwise 0.
226*4882a593Smuzhiyun
227*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_xeon_limit
228*4882a593SmuzhiyunDate:		October 2019
229*4882a593SmuzhiyunKernelVersion:	5.5
230*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
231*4882a593SmuzhiyunDescription:	Read-Only. It returns power limit for XEON in uW.
232*4882a593Smuzhiyun
233*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_fpga_limit
234*4882a593SmuzhiyunDate:		October 2019
235*4882a593SmuzhiyunKernelVersion:	5.5
236*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
237*4882a593SmuzhiyunDescription:	Read-Only. It returns power limit for FPGA in uW.
238*4882a593Smuzhiyun
239*4882a593SmuzhiyunWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_ltr
240*4882a593SmuzhiyunDate:		October 2019
241*4882a593SmuzhiyunKernelVersion:	5.5
242*4882a593SmuzhiyunContact:	Wu Hao <hao.wu@intel.com>
243*4882a593SmuzhiyunDescription:	Read-only. Read this file to get current Latency Tolerance
244*4882a593Smuzhiyun		Reporting (ltr) value. It returns 1 if all Accelerated
245*4882a593Smuzhiyun		Function Units (AFUs) can tolerate latency >= 40us for memory
246*4882a593Smuzhiyun		access or 0 if any AFU is latency sensitive (< 40us).
247