xref: /linux/Documentation/ABI/testing/sysfs-platform-dfl-fme (revision fddc9fcbe69a502d84adf0bad5e2c6c80823838c)
10a27ff24SKang LuweiWhat:		/sys/bus/platform/devices/dfl-fme.0/ports_num
20a27ff24SKang LuweiDate:		June 2018
30a27ff24SKang LuweiKernelVersion:  4.19
40a27ff24SKang LuweiContact:	Wu Hao <hao.wu@intel.com>
50a27ff24SKang LuweiDescription:	Read-only. One DFL FPGA device may have more than 1
60a27ff24SKang Luwei		port/Accelerator Function Unit (AFU). It returns the
70a27ff24SKang Luwei		number of ports on the FPGA device when read it.
80a27ff24SKang Luwei
90a27ff24SKang LuweiWhat:		/sys/bus/platform/devices/dfl-fme.0/bitstream_id
100a27ff24SKang LuweiDate:		June 2018
110a27ff24SKang LuweiKernelVersion:  4.19
120a27ff24SKang LuweiContact:	Wu Hao <hao.wu@intel.com>
130a27ff24SKang LuweiDescription:	Read-only. It returns Bitstream (static FPGA region)
140a27ff24SKang Luwei		identifier number, which includes the detailed version
150a27ff24SKang Luwei		and other information of this static FPGA region.
160a27ff24SKang Luwei
170a27ff24SKang LuweiWhat:		/sys/bus/platform/devices/dfl-fme.0/bitstream_metadata
180a27ff24SKang LuweiDate:		June 2018
190a27ff24SKang LuweiKernelVersion:  4.19
200a27ff24SKang LuweiContact:	Wu Hao <hao.wu@intel.com>
210a27ff24SKang LuweiDescription:	Read-only. It returns Bitstream (static FPGA region) meta
220a27ff24SKang Luwei		data, which includes the synthesis date, seed and other
230a27ff24SKang Luwei		information of this static FPGA region.
2452eb6d31SWu Hao
2552eb6d31SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/cache_size
2652eb6d31SWu HaoDate:		August 2019
2752eb6d31SWu HaoKernelVersion:  5.4
2852eb6d31SWu HaoContact:	Wu Hao <hao.wu@intel.com>
2952eb6d31SWu HaoDescription:	Read-only. It returns cache size of this FPGA device.
3052eb6d31SWu Hao
3152eb6d31SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/fabric_version
3252eb6d31SWu HaoDate:		August 2019
3352eb6d31SWu HaoKernelVersion:  5.4
3452eb6d31SWu HaoContact:	Wu Hao <hao.wu@intel.com>
3552eb6d31SWu HaoDescription:	Read-only. It returns fabric version of this FPGA device.
3652eb6d31SWu Hao		Userspace applications need this information to select
3752eb6d31SWu Hao		best data channels per different fabric design.
3852eb6d31SWu Hao
3952eb6d31SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/socket_id
4052eb6d31SWu HaoDate:		August 2019
4152eb6d31SWu HaoKernelVersion:  5.4
4252eb6d31SWu HaoContact:	Wu Hao <hao.wu@intel.com>
4352eb6d31SWu HaoDescription:	Read-only. It returns socket_id to indicate which socket
4452eb6d31SWu Hao		this FPGA belongs to, only valid for integrated solution.
4552eb6d31SWu Hao		User only needs this information, in case standard numa node
4652eb6d31SWu Hao		can't provide correct information.
47cb3c2c47SWu Hao
48cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/pcie0_errors
49cb3c2c47SWu HaoDate:		August 2019
50cb3c2c47SWu HaoKernelVersion:  5.4
51cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
52cb3c2c47SWu HaoDescription:	Read-Write. Read this file for errors detected on pcie0 link.
53cb3c2c47SWu Hao		Write this file to clear errors logged in pcie0_errors. Write
54cb3c2c47SWu Hao		fails with -EINVAL if input parsing fails or input error code
55cb3c2c47SWu Hao		doesn't match.
56cb3c2c47SWu Hao
57cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/pcie1_errors
58cb3c2c47SWu HaoDate:		August 2019
59cb3c2c47SWu HaoKernelVersion:  5.4
60cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
61cb3c2c47SWu HaoDescription:	Read-Write. Read this file for errors detected on pcie1 link.
62cb3c2c47SWu Hao		Write this file to clear errors logged in pcie1_errors. Write
63cb3c2c47SWu Hao		fails with -EINVAL if input parsing fails or input error code
64cb3c2c47SWu Hao		doesn't match.
65cb3c2c47SWu Hao
66cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/nonfatal_errors
67cb3c2c47SWu HaoDate:		August 2019
68cb3c2c47SWu HaoKernelVersion:  5.4
69cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
70cb3c2c47SWu HaoDescription:	Read-only. It returns non-fatal errors detected.
71cb3c2c47SWu Hao
72cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/catfatal_errors
73cb3c2c47SWu HaoDate:		August 2019
74cb3c2c47SWu HaoKernelVersion:  5.4
75cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
76cb3c2c47SWu HaoDescription:	Read-only. It returns catastrophic and fatal errors detected.
77cb3c2c47SWu Hao
78cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/inject_errors
79cb3c2c47SWu HaoDate:		August 2019
80cb3c2c47SWu HaoKernelVersion:  5.4
81cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
82cb3c2c47SWu HaoDescription:	Read-Write. Read this file to check errors injected. Write this
83cb3c2c47SWu Hao		file to inject errors for testing purpose. Write fails with
84cb3c2c47SWu Hao		-EINVAL if input parsing fails or input inject error code isn't
85cb3c2c47SWu Hao		supported.
86cb3c2c47SWu Hao
87cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/fme_errors
88cb3c2c47SWu HaoDate:		August 2019
89cb3c2c47SWu HaoKernelVersion:  5.4
90cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
91cb3c2c47SWu HaoDescription:	Read-Write. Read this file to get errors detected on FME.
92cb3c2c47SWu Hao		Write this file to clear errors logged in fme_errors. Write
93cb3c2c47SWu Hao		fials with -EINVAL if input parsing fails or input error code
94cb3c2c47SWu Hao		doesn't match.
95cb3c2c47SWu Hao
96cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/first_error
97cb3c2c47SWu HaoDate:		August 2019
98cb3c2c47SWu HaoKernelVersion:  5.4
99cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
100cb3c2c47SWu HaoDescription:	Read-only. Read this file to get the first error detected by
101cb3c2c47SWu Hao		hardware.
102cb3c2c47SWu Hao
103cb3c2c47SWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/errors/next_error
104cb3c2c47SWu HaoDate:		August 2019
105cb3c2c47SWu HaoKernelVersion:  5.4
106cb3c2c47SWu HaoContact:	Wu Hao <hao.wu@intel.com>
107cb3c2c47SWu HaoDescription:	Read-only. Read this file to get the second error detected by
108cb3c2c47SWu Hao		hardware.
1094284c65aSWu Hao
1104284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/name
1114284c65aSWu HaoDate:		October 2019
1124284c65aSWu HaoKernelVersion:	5.5
1134284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1144284c65aSWu HaoDescription:	Read-Only. Read this file to get the name of hwmon device, it
1154284c65aSWu Hao		supports values:
1164284c65aSWu Hao		    'dfl_fme_thermal' - thermal hwmon device name
117*fddc9fcbSWu Hao		    'dfl_fme_power'   - power hwmon device name
1184284c65aSWu Hao
1194284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_input
1204284c65aSWu HaoDate:		October 2019
1214284c65aSWu HaoKernelVersion:	5.5
1224284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1234284c65aSWu HaoDescription:	Read-Only. It returns FPGA device temperature in millidegrees
1244284c65aSWu Hao		Celsius.
1254284c65aSWu Hao
1264284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max
1274284c65aSWu HaoDate:		October 2019
1284284c65aSWu HaoKernelVersion:	5.5
1294284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1304284c65aSWu HaoDescription:	Read-Only. It returns hardware threshold1 temperature in
1314284c65aSWu Hao		millidegrees Celsius. If temperature rises at or above this
1324284c65aSWu Hao		threshold, hardware starts 50% or 90% throttling (see
1334284c65aSWu Hao		'temp1_max_policy').
1344284c65aSWu Hao
1354284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit
1364284c65aSWu HaoDate:		October 2019
1374284c65aSWu HaoKernelVersion:	5.5
1384284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1394284c65aSWu HaoDescription:	Read-Only. It returns hardware threshold2 temperature in
1404284c65aSWu Hao		millidegrees Celsius. If temperature rises at or above this
1414284c65aSWu Hao		threshold, hardware starts 100% throttling.
1424284c65aSWu Hao
1434284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_emergency
1444284c65aSWu HaoDate:		October 2019
1454284c65aSWu HaoKernelVersion:	5.5
1464284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1474284c65aSWu HaoDescription:	Read-Only. It returns hardware trip threshold temperature in
1484284c65aSWu Hao		millidegrees Celsius. If temperature rises at or above this
1494284c65aSWu Hao		threshold, a fatal event will be triggered to board management
1504284c65aSWu Hao		controller (BMC) to shutdown FPGA.
1514284c65aSWu Hao
1524284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_alarm
1534284c65aSWu HaoDate:		October 2019
1544284c65aSWu HaoKernelVersion:	5.5
1554284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1564284c65aSWu HaoDescription:	Read-only. It returns 1 if temperature is currently at or above
1574284c65aSWu Hao		hardware threshold1 (see 'temp1_max'), otherwise 0.
1584284c65aSWu Hao
1594284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit_alarm
1604284c65aSWu HaoDate:		October 2019
1614284c65aSWu HaoKernelVersion:	5.5
1624284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1634284c65aSWu HaoDescription:	Read-only. It returns 1 if temperature is currently at or above
1644284c65aSWu Hao		hardware threshold2 (see 'temp1_crit'), otherwise 0.
1654284c65aSWu Hao
1664284c65aSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_policy
1674284c65aSWu HaoDate:		October 2019
1684284c65aSWu HaoKernelVersion:	5.5
1694284c65aSWu HaoContact:	Wu Hao <hao.wu@intel.com>
1704284c65aSWu HaoDescription:	Read-Only. Read this file to get the policy of hardware threshold1
1714284c65aSWu Hao		(see 'temp1_max'). It only supports two values (policies):
1724284c65aSWu Hao		    0 - AP2 state (90% throttling)
1734284c65aSWu Hao		    1 - AP1 state (50% throttling)
174*fddc9fcbSWu Hao
175*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_input
176*fddc9fcbSWu HaoDate:		October 2019
177*fddc9fcbSWu HaoKernelVersion:	5.5
178*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
179*fddc9fcbSWu HaoDescription:	Read-Only. It returns current FPGA power consumption in uW.
180*fddc9fcbSWu Hao
181*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max
182*fddc9fcbSWu HaoDate:		October 2019
183*fddc9fcbSWu HaoKernelVersion:	5.5
184*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
185*fddc9fcbSWu HaoDescription:	Read-Write. Read this file to get current hardware power
186*fddc9fcbSWu Hao		threshold1 in uW. If power consumption rises at or above
187*fddc9fcbSWu Hao		this threshold, hardware starts 50% throttling.
188*fddc9fcbSWu Hao		Write this file to set current hardware power threshold1 in uW.
189*fddc9fcbSWu Hao		As hardware only accepts values in Watts, so input value will
190*fddc9fcbSWu Hao		be round down per Watts (< 1 watts part will be discarded) and
191*fddc9fcbSWu Hao		clamped within the range from 0 to 127 Watts. Write fails with
192*fddc9fcbSWu Hao		-EINVAL if input parsing fails.
193*fddc9fcbSWu Hao
194*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit
195*fddc9fcbSWu HaoDate:		October 2019
196*fddc9fcbSWu HaoKernelVersion:	5.5
197*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
198*fddc9fcbSWu HaoDescription:	Read-Write. Read this file to get current hardware power
199*fddc9fcbSWu Hao		threshold2 in uW. If power consumption rises at or above
200*fddc9fcbSWu Hao		this threshold, hardware starts 90% throttling.
201*fddc9fcbSWu Hao		Write this file to set current hardware power threshold2 in uW.
202*fddc9fcbSWu Hao		As hardware only accepts values in Watts, so input value will
203*fddc9fcbSWu Hao		be round down per Watts (< 1 watts part will be discarded) and
204*fddc9fcbSWu Hao		clamped within the range from 0 to 127 Watts. Write fails with
205*fddc9fcbSWu Hao		-EINVAL if input parsing fails.
206*fddc9fcbSWu Hao
207*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max_alarm
208*fddc9fcbSWu HaoDate:		October 2019
209*fddc9fcbSWu HaoKernelVersion:	5.5
210*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
211*fddc9fcbSWu HaoDescription:	Read-only. It returns 1 if power consumption is currently at or
212*fddc9fcbSWu Hao		above hardware threshold1 (see 'power1_max'), otherwise 0.
213*fddc9fcbSWu Hao
214*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit_alarm
215*fddc9fcbSWu HaoDate:		October 2019
216*fddc9fcbSWu HaoKernelVersion:	5.5
217*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
218*fddc9fcbSWu HaoDescription:	Read-only. It returns 1 if power consumption is currently at or
219*fddc9fcbSWu Hao		above hardware threshold2 (see 'power1_crit'), otherwise 0.
220*fddc9fcbSWu Hao
221*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_xeon_limit
222*fddc9fcbSWu HaoDate:		October 2019
223*fddc9fcbSWu HaoKernelVersion:	5.5
224*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
225*fddc9fcbSWu HaoDescription:	Read-Only. It returns power limit for XEON in uW.
226*fddc9fcbSWu Hao
227*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_fpga_limit
228*fddc9fcbSWu HaoDate:		October 2019
229*fddc9fcbSWu HaoKernelVersion:	5.5
230*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
231*fddc9fcbSWu HaoDescription:	Read-Only. It returns power limit for FPGA in uW.
232*fddc9fcbSWu Hao
233*fddc9fcbSWu HaoWhat:		/sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_ltr
234*fddc9fcbSWu HaoDate:		October 2019
235*fddc9fcbSWu HaoKernelVersion:	5.5
236*fddc9fcbSWu HaoContact:	Wu Hao <hao.wu@intel.com>
237*fddc9fcbSWu HaoDescription:	Read-only. Read this file to get current Latency Tolerance
238*fddc9fcbSWu Hao		Reporting (ltr) value. It returns 1 if all Accelerated
239*fddc9fcbSWu Hao		Function Units (AFUs) can tolerate latency >= 40us for memory
240*fddc9fcbSWu Hao		access or 0 if any AFU is latency sensitive (< 40us).
241