18c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/ports_num 28c2ecf20Sopenharmony_ciDate: June 2018 38c2ecf20Sopenharmony_ciKernelVersion: 4.19 48c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 58c2ecf20Sopenharmony_ciDescription: Read-only. One DFL FPGA device may have more than 1 68c2ecf20Sopenharmony_ci port/Accelerator Function Unit (AFU). It returns the 78c2ecf20Sopenharmony_ci number of ports on the FPGA device when read it. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/bitstream_id 108c2ecf20Sopenharmony_ciDate: June 2018 118c2ecf20Sopenharmony_ciKernelVersion: 4.19 128c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 138c2ecf20Sopenharmony_ciDescription: Read-only. It returns Bitstream (static FPGA region) 148c2ecf20Sopenharmony_ci identifier number, which includes the detailed version 158c2ecf20Sopenharmony_ci and other information of this static FPGA region. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/bitstream_metadata 188c2ecf20Sopenharmony_ciDate: June 2018 198c2ecf20Sopenharmony_ciKernelVersion: 4.19 208c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 218c2ecf20Sopenharmony_ciDescription: Read-only. It returns Bitstream (static FPGA region) meta 228c2ecf20Sopenharmony_ci data, which includes the synthesis date, seed and other 238c2ecf20Sopenharmony_ci information of this static FPGA region. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/cache_size 268c2ecf20Sopenharmony_ciDate: August 2019 278c2ecf20Sopenharmony_ciKernelVersion: 5.4 288c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 298c2ecf20Sopenharmony_ciDescription: Read-only. It returns cache size of this FPGA device. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/fabric_version 328c2ecf20Sopenharmony_ciDate: August 2019 338c2ecf20Sopenharmony_ciKernelVersion: 5.4 348c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 358c2ecf20Sopenharmony_ciDescription: Read-only. It returns fabric version of this FPGA device. 368c2ecf20Sopenharmony_ci Userspace applications need this information to select 378c2ecf20Sopenharmony_ci best data channels per different fabric design. 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/socket_id 408c2ecf20Sopenharmony_ciDate: August 2019 418c2ecf20Sopenharmony_ciKernelVersion: 5.4 428c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 438c2ecf20Sopenharmony_ciDescription: Read-only. It returns socket_id to indicate which socket 448c2ecf20Sopenharmony_ci this FPGA belongs to, only valid for integrated solution. 458c2ecf20Sopenharmony_ci User only needs this information, in case standard numa node 468c2ecf20Sopenharmony_ci can't provide correct information. 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/pcie0_errors 498c2ecf20Sopenharmony_ciDate: August 2019 508c2ecf20Sopenharmony_ciKernelVersion: 5.4 518c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 528c2ecf20Sopenharmony_ciDescription: Read-Write. Read this file for errors detected on pcie0 link. 538c2ecf20Sopenharmony_ci Write this file to clear errors logged in pcie0_errors. Write 548c2ecf20Sopenharmony_ci fails with -EINVAL if input parsing fails or input error code 558c2ecf20Sopenharmony_ci doesn't match. 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/pcie1_errors 588c2ecf20Sopenharmony_ciDate: August 2019 598c2ecf20Sopenharmony_ciKernelVersion: 5.4 608c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 618c2ecf20Sopenharmony_ciDescription: Read-Write. Read this file for errors detected on pcie1 link. 628c2ecf20Sopenharmony_ci Write this file to clear errors logged in pcie1_errors. Write 638c2ecf20Sopenharmony_ci fails with -EINVAL if input parsing fails or input error code 648c2ecf20Sopenharmony_ci doesn't match. 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/nonfatal_errors 678c2ecf20Sopenharmony_ciDate: August 2019 688c2ecf20Sopenharmony_ciKernelVersion: 5.4 698c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 708c2ecf20Sopenharmony_ciDescription: Read-only. It returns non-fatal errors detected. 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/catfatal_errors 738c2ecf20Sopenharmony_ciDate: August 2019 748c2ecf20Sopenharmony_ciKernelVersion: 5.4 758c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 768c2ecf20Sopenharmony_ciDescription: Read-only. It returns catastrophic and fatal errors detected. 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/inject_errors 798c2ecf20Sopenharmony_ciDate: August 2019 808c2ecf20Sopenharmony_ciKernelVersion: 5.4 818c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 828c2ecf20Sopenharmony_ciDescription: Read-Write. Read this file to check errors injected. Write this 838c2ecf20Sopenharmony_ci file to inject errors for testing purpose. Write fails with 848c2ecf20Sopenharmony_ci -EINVAL if input parsing fails or input inject error code isn't 858c2ecf20Sopenharmony_ci supported. 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/fme_errors 888c2ecf20Sopenharmony_ciDate: August 2019 898c2ecf20Sopenharmony_ciKernelVersion: 5.4 908c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 918c2ecf20Sopenharmony_ciDescription: Read-Write. Read this file to get errors detected on FME. 928c2ecf20Sopenharmony_ci Write this file to clear errors logged in fme_errors. Write 938c2ecf20Sopenharmony_ci fials with -EINVAL if input parsing fails or input error code 948c2ecf20Sopenharmony_ci doesn't match. 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/first_error 978c2ecf20Sopenharmony_ciDate: August 2019 988c2ecf20Sopenharmony_ciKernelVersion: 5.4 998c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1008c2ecf20Sopenharmony_ciDescription: Read-only. Read this file to get the first error detected by 1018c2ecf20Sopenharmony_ci hardware. 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/errors/next_error 1048c2ecf20Sopenharmony_ciDate: August 2019 1058c2ecf20Sopenharmony_ciKernelVersion: 5.4 1068c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1078c2ecf20Sopenharmony_ciDescription: Read-only. Read this file to get the second error detected by 1088c2ecf20Sopenharmony_ci hardware. 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/name 1118c2ecf20Sopenharmony_ciDate: October 2019 1128c2ecf20Sopenharmony_ciKernelVersion: 5.5 1138c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1148c2ecf20Sopenharmony_ciDescription: Read-Only. Read this file to get the name of hwmon device, it 1158c2ecf20Sopenharmony_ci supports values: 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ci ================= ========================= 1188c2ecf20Sopenharmony_ci 'dfl_fme_thermal' thermal hwmon device name 1198c2ecf20Sopenharmony_ci 'dfl_fme_power' power hwmon device name 1208c2ecf20Sopenharmony_ci ================= ========================= 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_input 1238c2ecf20Sopenharmony_ciDate: October 2019 1248c2ecf20Sopenharmony_ciKernelVersion: 5.5 1258c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1268c2ecf20Sopenharmony_ciDescription: Read-Only. It returns FPGA device temperature in millidegrees 1278c2ecf20Sopenharmony_ci Celsius. 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max 1308c2ecf20Sopenharmony_ciDate: October 2019 1318c2ecf20Sopenharmony_ciKernelVersion: 5.5 1328c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1338c2ecf20Sopenharmony_ciDescription: Read-Only. It returns hardware threshold1 temperature in 1348c2ecf20Sopenharmony_ci millidegrees Celsius. If temperature rises at or above this 1358c2ecf20Sopenharmony_ci threshold, hardware starts 50% or 90% throttling (see 1368c2ecf20Sopenharmony_ci 'temp1_max_policy'). 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit 1398c2ecf20Sopenharmony_ciDate: October 2019 1408c2ecf20Sopenharmony_ciKernelVersion: 5.5 1418c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1428c2ecf20Sopenharmony_ciDescription: Read-Only. It returns hardware threshold2 temperature in 1438c2ecf20Sopenharmony_ci millidegrees Celsius. If temperature rises at or above this 1448c2ecf20Sopenharmony_ci threshold, hardware starts 100% throttling. 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_emergency 1478c2ecf20Sopenharmony_ciDate: October 2019 1488c2ecf20Sopenharmony_ciKernelVersion: 5.5 1498c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1508c2ecf20Sopenharmony_ciDescription: Read-Only. It returns hardware trip threshold temperature in 1518c2ecf20Sopenharmony_ci millidegrees Celsius. If temperature rises at or above this 1528c2ecf20Sopenharmony_ci threshold, a fatal event will be triggered to board management 1538c2ecf20Sopenharmony_ci controller (BMC) to shutdown FPGA. 1548c2ecf20Sopenharmony_ci 1558c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_alarm 1568c2ecf20Sopenharmony_ciDate: October 2019 1578c2ecf20Sopenharmony_ciKernelVersion: 5.5 1588c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1598c2ecf20Sopenharmony_ciDescription: Read-only. It returns 1 if temperature is currently at or above 1608c2ecf20Sopenharmony_ci hardware threshold1 (see 'temp1_max'), otherwise 0. 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit_alarm 1638c2ecf20Sopenharmony_ciDate: October 2019 1648c2ecf20Sopenharmony_ciKernelVersion: 5.5 1658c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1668c2ecf20Sopenharmony_ciDescription: Read-only. It returns 1 if temperature is currently at or above 1678c2ecf20Sopenharmony_ci hardware threshold2 (see 'temp1_crit'), otherwise 0. 1688c2ecf20Sopenharmony_ci 1698c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_policy 1708c2ecf20Sopenharmony_ciDate: October 2019 1718c2ecf20Sopenharmony_ciKernelVersion: 5.5 1728c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1738c2ecf20Sopenharmony_ciDescription: Read-Only. Read this file to get the policy of hardware threshold1 1748c2ecf20Sopenharmony_ci (see 'temp1_max'). It only supports two values (policies): 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci == ========================== 1778c2ecf20Sopenharmony_ci 0 AP2 state (90% throttling) 1788c2ecf20Sopenharmony_ci 1 AP1 state (50% throttling) 1798c2ecf20Sopenharmony_ci == ========================== 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_input 1828c2ecf20Sopenharmony_ciDate: October 2019 1838c2ecf20Sopenharmony_ciKernelVersion: 5.5 1848c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1858c2ecf20Sopenharmony_ciDescription: Read-Only. It returns current FPGA power consumption in uW. 1868c2ecf20Sopenharmony_ci 1878c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max 1888c2ecf20Sopenharmony_ciDate: October 2019 1898c2ecf20Sopenharmony_ciKernelVersion: 5.5 1908c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1918c2ecf20Sopenharmony_ciDescription: Read-Write. Read this file to get current hardware power 1928c2ecf20Sopenharmony_ci threshold1 in uW. If power consumption rises at or above 1938c2ecf20Sopenharmony_ci this threshold, hardware starts 50% throttling. 1948c2ecf20Sopenharmony_ci Write this file to set current hardware power threshold1 in uW. 1958c2ecf20Sopenharmony_ci As hardware only accepts values in Watts, so input value will 1968c2ecf20Sopenharmony_ci be round down per Watts (< 1 watts part will be discarded) and 1978c2ecf20Sopenharmony_ci clamped within the range from 0 to 127 Watts. Write fails with 1988c2ecf20Sopenharmony_ci -EINVAL if input parsing fails. 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit 2018c2ecf20Sopenharmony_ciDate: October 2019 2028c2ecf20Sopenharmony_ciKernelVersion: 5.5 2038c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2048c2ecf20Sopenharmony_ciDescription: Read-Write. Read this file to get current hardware power 2058c2ecf20Sopenharmony_ci threshold2 in uW. If power consumption rises at or above 2068c2ecf20Sopenharmony_ci this threshold, hardware starts 90% throttling. 2078c2ecf20Sopenharmony_ci Write this file to set current hardware power threshold2 in uW. 2088c2ecf20Sopenharmony_ci As hardware only accepts values in Watts, so input value will 2098c2ecf20Sopenharmony_ci be round down per Watts (< 1 watts part will be discarded) and 2108c2ecf20Sopenharmony_ci clamped within the range from 0 to 127 Watts. Write fails with 2118c2ecf20Sopenharmony_ci -EINVAL if input parsing fails. 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max_alarm 2148c2ecf20Sopenharmony_ciDate: October 2019 2158c2ecf20Sopenharmony_ciKernelVersion: 5.5 2168c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2178c2ecf20Sopenharmony_ciDescription: Read-only. It returns 1 if power consumption is currently at or 2188c2ecf20Sopenharmony_ci above hardware threshold1 (see 'power1_max'), otherwise 0. 2198c2ecf20Sopenharmony_ci 2208c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit_alarm 2218c2ecf20Sopenharmony_ciDate: October 2019 2228c2ecf20Sopenharmony_ciKernelVersion: 5.5 2238c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2248c2ecf20Sopenharmony_ciDescription: Read-only. It returns 1 if power consumption is currently at or 2258c2ecf20Sopenharmony_ci above hardware threshold2 (see 'power1_crit'), otherwise 0. 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_xeon_limit 2288c2ecf20Sopenharmony_ciDate: October 2019 2298c2ecf20Sopenharmony_ciKernelVersion: 5.5 2308c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2318c2ecf20Sopenharmony_ciDescription: Read-Only. It returns power limit for XEON in uW. 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_fpga_limit 2348c2ecf20Sopenharmony_ciDate: October 2019 2358c2ecf20Sopenharmony_ciKernelVersion: 5.5 2368c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2378c2ecf20Sopenharmony_ciDescription: Read-Only. It returns power limit for FPGA in uW. 2388c2ecf20Sopenharmony_ci 2398c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_ltr 2408c2ecf20Sopenharmony_ciDate: October 2019 2418c2ecf20Sopenharmony_ciKernelVersion: 5.5 2428c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2438c2ecf20Sopenharmony_ciDescription: Read-only. Read this file to get current Latency Tolerance 2448c2ecf20Sopenharmony_ci Reporting (ltr) value. It returns 1 if all Accelerated 2458c2ecf20Sopenharmony_ci Function Units (AFUs) can tolerate latency >= 40us for memory 2468c2ecf20Sopenharmony_ci access or 0 if any AFU is latency sensitive (< 40us). 247