18c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/id 28c2ecf20Sopenharmony_ciDate: June 2018 38c2ecf20Sopenharmony_ciKernelVersion: 4.19 48c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 58c2ecf20Sopenharmony_ciDescription: Read-only. It returns id of this port. One DFL FPGA device 68c2ecf20Sopenharmony_ci may have more than one port. Userspace could use this id to 78c2ecf20Sopenharmony_ci distinguish different ports under same FPGA device. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/afu_id 108c2ecf20Sopenharmony_ciDate: June 2018 118c2ecf20Sopenharmony_ciKernelVersion: 4.19 128c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 138c2ecf20Sopenharmony_ciDescription: Read-only. User can program different PR bitstreams to FPGA 148c2ecf20Sopenharmony_ci Accelerator Function Unit (AFU) for different functions. It 158c2ecf20Sopenharmony_ci returns uuid which could be used to identify which PR bitstream 168c2ecf20Sopenharmony_ci is programmed in this AFU. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/power_state 198c2ecf20Sopenharmony_ciDate: August 2019 208c2ecf20Sopenharmony_ciKernelVersion: 5.4 218c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 228c2ecf20Sopenharmony_ciDescription: Read-only. It reports the APx (AFU Power) state, different APx 238c2ecf20Sopenharmony_ci means different throttling level. When reading this file, it 248c2ecf20Sopenharmony_ci returns "0" - Normal / "1" - AP1 / "2" - AP2 / "6" - AP6. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/ap1_event 278c2ecf20Sopenharmony_ciDate: August 2019 288c2ecf20Sopenharmony_ciKernelVersion: 5.4 298c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 308c2ecf20Sopenharmony_ciDescription: Read-write. Read this file for AP1 (AFU Power State 1) event. 318c2ecf20Sopenharmony_ci It's used to indicate transient AP1 state. Write 1 to this 328c2ecf20Sopenharmony_ci file to clear AP1 event. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/ap2_event 358c2ecf20Sopenharmony_ciDate: August 2019 368c2ecf20Sopenharmony_ciKernelVersion: 5.4 378c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 388c2ecf20Sopenharmony_ciDescription: Read-write. Read this file for AP2 (AFU Power State 2) event. 398c2ecf20Sopenharmony_ci It's used to indicate transient AP2 state. Write 1 to this 408c2ecf20Sopenharmony_ci file to clear AP2 event. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/ltr 438c2ecf20Sopenharmony_ciDate: August 2019 448c2ecf20Sopenharmony_ciKernelVersion: 5.4 458c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 468c2ecf20Sopenharmony_ciDescription: Read-write. Read or set AFU latency tolerance reporting value. 478c2ecf20Sopenharmony_ci Set ltr to 1 if the AFU can tolerate latency >= 40us or set it 488c2ecf20Sopenharmony_ci to 0 if it is latency sensitive. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqcmd 518c2ecf20Sopenharmony_ciDate: August 2019 528c2ecf20Sopenharmony_ciKernelVersion: 5.4 538c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 548c2ecf20Sopenharmony_ciDescription: Write-only. User writes command to this interface to set 558c2ecf20Sopenharmony_ci userclock to AFU. 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqsts 588c2ecf20Sopenharmony_ciDate: August 2019 598c2ecf20Sopenharmony_ciKernelVersion: 5.4 608c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 618c2ecf20Sopenharmony_ciDescription: Read-only. Read this file to get the status of issued command 628c2ecf20Sopenharmony_ci to userclck_freqcmd. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrcmd 658c2ecf20Sopenharmony_ciDate: August 2019 668c2ecf20Sopenharmony_ciKernelVersion: 5.4 678c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 688c2ecf20Sopenharmony_ciDescription: Write-only. User writes command to this interface to set 698c2ecf20Sopenharmony_ci userclock counter. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrsts 728c2ecf20Sopenharmony_ciDate: August 2019 738c2ecf20Sopenharmony_ciKernelVersion: 5.4 748c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 758c2ecf20Sopenharmony_ciDescription: Read-only. Read this file to get the status of issued command 768c2ecf20Sopenharmony_ci to userclck_freqcntrcmd. 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/errors/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 get errors detected on port and 838c2ecf20Sopenharmony_ci Accelerated Function Unit (AFU). Write error code to this file 848c2ecf20Sopenharmony_ci to clear errors. Write fails with -EINVAL if input parsing 858c2ecf20Sopenharmony_ci fails or input error code doesn't match. Write fails with 868c2ecf20Sopenharmony_ci -EBUSY or -ETIMEDOUT if error can't be cleared as hardware 878c2ecf20Sopenharmony_ci in low power state (-EBUSY) or not respoding (-ETIMEDOUT). 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/errors/first_error 908c2ecf20Sopenharmony_ciDate: August 2019 918c2ecf20Sopenharmony_ciKernelVersion: 5.4 928c2ecf20Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 938c2ecf20Sopenharmony_ciDescription: Read-only. Read this file to get the first error detected by 948c2ecf20Sopenharmony_ci hardware. 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/errors/first_malformed_req 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 malformed request 1018c2ecf20Sopenharmony_ci captured by hardware. 102