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 93*ebab9426SBjorn Helgaas fails 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: 116002a9c2fSMauro Carvalho Chehab 117002a9c2fSMauro Carvalho Chehab ================= ========================= 118002a9c2fSMauro Carvalho Chehab 'dfl_fme_thermal' thermal hwmon device name 119002a9c2fSMauro Carvalho Chehab 'dfl_fme_power' power hwmon device name 120002a9c2fSMauro Carvalho Chehab ================= ========================= 1214284c65aSWu Hao 1224284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_input 1234284c65aSWu HaoDate: October 2019 1244284c65aSWu HaoKernelVersion: 5.5 1254284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1264284c65aSWu HaoDescription: Read-Only. It returns FPGA device temperature in millidegrees 1274284c65aSWu Hao Celsius. 1284284c65aSWu Hao 1294284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max 1304284c65aSWu HaoDate: October 2019 1314284c65aSWu HaoKernelVersion: 5.5 1324284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1334284c65aSWu HaoDescription: Read-Only. It returns hardware threshold1 temperature in 1344284c65aSWu Hao millidegrees Celsius. If temperature rises at or above this 1354284c65aSWu Hao threshold, hardware starts 50% or 90% throttling (see 1364284c65aSWu Hao 'temp1_max_policy'). 1374284c65aSWu Hao 1384284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit 1394284c65aSWu HaoDate: October 2019 1404284c65aSWu HaoKernelVersion: 5.5 1414284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1424284c65aSWu HaoDescription: Read-Only. It returns hardware threshold2 temperature in 1434284c65aSWu Hao millidegrees Celsius. If temperature rises at or above this 1444284c65aSWu Hao threshold, hardware starts 100% throttling. 1454284c65aSWu Hao 1464284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_emergency 1474284c65aSWu HaoDate: October 2019 1484284c65aSWu HaoKernelVersion: 5.5 1494284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1504284c65aSWu HaoDescription: Read-Only. It returns hardware trip threshold temperature in 1514284c65aSWu Hao millidegrees Celsius. If temperature rises at or above this 1524284c65aSWu Hao threshold, a fatal event will be triggered to board management 1534284c65aSWu Hao controller (BMC) to shutdown FPGA. 1544284c65aSWu Hao 1554284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_alarm 1564284c65aSWu HaoDate: October 2019 1574284c65aSWu HaoKernelVersion: 5.5 1584284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1594284c65aSWu HaoDescription: Read-only. It returns 1 if temperature is currently at or above 1604284c65aSWu Hao hardware threshold1 (see 'temp1_max'), otherwise 0. 1614284c65aSWu Hao 1624284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit_alarm 1634284c65aSWu HaoDate: October 2019 1644284c65aSWu HaoKernelVersion: 5.5 1654284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1664284c65aSWu HaoDescription: Read-only. It returns 1 if temperature is currently at or above 1674284c65aSWu Hao hardware threshold2 (see 'temp1_crit'), otherwise 0. 1684284c65aSWu Hao 1694284c65aSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_policy 1704284c65aSWu HaoDate: October 2019 1714284c65aSWu HaoKernelVersion: 5.5 1724284c65aSWu HaoContact: Wu Hao <hao.wu@intel.com> 1734284c65aSWu HaoDescription: Read-Only. Read this file to get the policy of hardware threshold1 1744284c65aSWu Hao (see 'temp1_max'). It only supports two values (policies): 175002a9c2fSMauro Carvalho Chehab 176002a9c2fSMauro Carvalho Chehab == ========================== 177002a9c2fSMauro Carvalho Chehab 0 AP2 state (90% throttling) 178002a9c2fSMauro Carvalho Chehab 1 AP1 state (50% throttling) 179002a9c2fSMauro Carvalho Chehab == ========================== 180fddc9fcbSWu Hao 181fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_input 182fddc9fcbSWu HaoDate: October 2019 183fddc9fcbSWu HaoKernelVersion: 5.5 184fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 185fddc9fcbSWu HaoDescription: Read-Only. It returns current FPGA power consumption in uW. 186fddc9fcbSWu Hao 187fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max 188fddc9fcbSWu HaoDate: October 2019 189fddc9fcbSWu HaoKernelVersion: 5.5 190fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 191fddc9fcbSWu HaoDescription: Read-Write. Read this file to get current hardware power 192fddc9fcbSWu Hao threshold1 in uW. If power consumption rises at or above 193fddc9fcbSWu Hao this threshold, hardware starts 50% throttling. 194fddc9fcbSWu Hao Write this file to set current hardware power threshold1 in uW. 195fddc9fcbSWu Hao As hardware only accepts values in Watts, so input value will 196fddc9fcbSWu Hao be round down per Watts (< 1 watts part will be discarded) and 197fddc9fcbSWu Hao clamped within the range from 0 to 127 Watts. Write fails with 198fddc9fcbSWu Hao -EINVAL if input parsing fails. 199fddc9fcbSWu Hao 200fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit 201fddc9fcbSWu HaoDate: October 2019 202fddc9fcbSWu HaoKernelVersion: 5.5 203fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 204fddc9fcbSWu HaoDescription: Read-Write. Read this file to get current hardware power 205fddc9fcbSWu Hao threshold2 in uW. If power consumption rises at or above 206fddc9fcbSWu Hao this threshold, hardware starts 90% throttling. 207fddc9fcbSWu Hao Write this file to set current hardware power threshold2 in uW. 208fddc9fcbSWu Hao As hardware only accepts values in Watts, so input value will 209fddc9fcbSWu Hao be round down per Watts (< 1 watts part will be discarded) and 210fddc9fcbSWu Hao clamped within the range from 0 to 127 Watts. Write fails with 211fddc9fcbSWu Hao -EINVAL if input parsing fails. 212fddc9fcbSWu Hao 213fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max_alarm 214fddc9fcbSWu HaoDate: October 2019 215fddc9fcbSWu HaoKernelVersion: 5.5 216fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 217fddc9fcbSWu HaoDescription: Read-only. It returns 1 if power consumption is currently at or 218fddc9fcbSWu Hao above hardware threshold1 (see 'power1_max'), otherwise 0. 219fddc9fcbSWu Hao 220fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit_alarm 221fddc9fcbSWu HaoDate: October 2019 222fddc9fcbSWu HaoKernelVersion: 5.5 223fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 224fddc9fcbSWu HaoDescription: Read-only. It returns 1 if power consumption is currently at or 225fddc9fcbSWu Hao above hardware threshold2 (see 'power1_crit'), otherwise 0. 226fddc9fcbSWu Hao 227fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_xeon_limit 228fddc9fcbSWu HaoDate: October 2019 229fddc9fcbSWu HaoKernelVersion: 5.5 230fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 231fddc9fcbSWu HaoDescription: Read-Only. It returns power limit for XEON in uW. 232fddc9fcbSWu Hao 233fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_fpga_limit 234fddc9fcbSWu HaoDate: October 2019 235fddc9fcbSWu HaoKernelVersion: 5.5 236fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 237fddc9fcbSWu HaoDescription: Read-Only. It returns power limit for FPGA in uW. 238fddc9fcbSWu Hao 239fddc9fcbSWu HaoWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_ltr 240fddc9fcbSWu HaoDate: October 2019 241fddc9fcbSWu HaoKernelVersion: 5.5 242fddc9fcbSWu HaoContact: Wu Hao <hao.wu@intel.com> 243fddc9fcbSWu HaoDescription: Read-only. Read this file to get current Latency Tolerance 244fddc9fcbSWu Hao Reporting (ltr) value. It returns 1 if all Accelerated 245fddc9fcbSWu Hao Function Units (AFUs) can tolerate latency >= 40us for memory 246fddc9fcbSWu Hao access or 0 if any AFU is latency sensitive (< 40us). 247