162306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/id 262306a36Sopenharmony_ciDate: June 2018 362306a36Sopenharmony_ciKernelVersion: 4.19 462306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 562306a36Sopenharmony_ciDescription: Read-only. It returns id of this port. One DFL FPGA device 662306a36Sopenharmony_ci may have more than one port. Userspace could use this id to 762306a36Sopenharmony_ci distinguish different ports under same FPGA device. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/afu_id 1062306a36Sopenharmony_ciDate: June 2018 1162306a36Sopenharmony_ciKernelVersion: 4.19 1262306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 1362306a36Sopenharmony_ciDescription: Read-only. User can program different PR bitstreams to FPGA 1462306a36Sopenharmony_ci Accelerator Function Unit (AFU) for different functions. It 1562306a36Sopenharmony_ci returns uuid which could be used to identify which PR bitstream 1662306a36Sopenharmony_ci is programmed in this AFU. 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/power_state 1962306a36Sopenharmony_ciDate: August 2019 2062306a36Sopenharmony_ciKernelVersion: 5.4 2162306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 2262306a36Sopenharmony_ciDescription: Read-only. It reports the APx (AFU Power) state, different APx 2362306a36Sopenharmony_ci means different throttling level. When reading this file, it 2462306a36Sopenharmony_ci returns "0" - Normal / "1" - AP1 / "2" - AP2 / "6" - AP6. 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/ap1_event 2762306a36Sopenharmony_ciDate: August 2019 2862306a36Sopenharmony_ciKernelVersion: 5.4 2962306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 3062306a36Sopenharmony_ciDescription: Read-write. Read this file for AP1 (AFU Power State 1) event. 3162306a36Sopenharmony_ci It's used to indicate transient AP1 state. Write 1 to this 3262306a36Sopenharmony_ci file to clear AP1 event. 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/ap2_event 3562306a36Sopenharmony_ciDate: August 2019 3662306a36Sopenharmony_ciKernelVersion: 5.4 3762306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 3862306a36Sopenharmony_ciDescription: Read-write. Read this file for AP2 (AFU Power State 2) event. 3962306a36Sopenharmony_ci It's used to indicate transient AP2 state. Write 1 to this 4062306a36Sopenharmony_ci file to clear AP2 event. 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/ltr 4362306a36Sopenharmony_ciDate: August 2019 4462306a36Sopenharmony_ciKernelVersion: 5.4 4562306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 4662306a36Sopenharmony_ciDescription: Read-write. Read or set AFU latency tolerance reporting value. 4762306a36Sopenharmony_ci Set ltr to 1 if the AFU can tolerate latency >= 40us or set it 4862306a36Sopenharmony_ci to 0 if it is latency sensitive. 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqcmd 5162306a36Sopenharmony_ciDate: August 2019 5262306a36Sopenharmony_ciKernelVersion: 5.4 5362306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 5462306a36Sopenharmony_ciDescription: Write-only. User writes command to this interface to set 5562306a36Sopenharmony_ci userclock to AFU. 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqsts 5862306a36Sopenharmony_ciDate: August 2019 5962306a36Sopenharmony_ciKernelVersion: 5.4 6062306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 6162306a36Sopenharmony_ciDescription: Read-only. Read this file to get the status of issued command 6262306a36Sopenharmony_ci to userclck_freqcmd. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrcmd 6562306a36Sopenharmony_ciDate: August 2019 6662306a36Sopenharmony_ciKernelVersion: 5.4 6762306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 6862306a36Sopenharmony_ciDescription: Write-only. User writes command to this interface to set 6962306a36Sopenharmony_ci userclock counter. 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrsts 7262306a36Sopenharmony_ciDate: August 2019 7362306a36Sopenharmony_ciKernelVersion: 5.4 7462306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 7562306a36Sopenharmony_ciDescription: Read-only. Read this file to get the status of issued command 7662306a36Sopenharmony_ci to userclck_freqcntrcmd. 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/errors/errors 7962306a36Sopenharmony_ciDate: August 2019 8062306a36Sopenharmony_ciKernelVersion: 5.4 8162306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 8262306a36Sopenharmony_ciDescription: Read-Write. Read this file to get errors detected on port and 8362306a36Sopenharmony_ci Accelerated Function Unit (AFU). Write error code to this file 8462306a36Sopenharmony_ci to clear errors. Write fails with -EINVAL if input parsing 8562306a36Sopenharmony_ci fails or input error code doesn't match. Write fails with 8662306a36Sopenharmony_ci -EBUSY or -ETIMEDOUT if error can't be cleared as hardware 8762306a36Sopenharmony_ci in low power state (-EBUSY) or not respoding (-ETIMEDOUT). 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/errors/first_error 9062306a36Sopenharmony_ciDate: August 2019 9162306a36Sopenharmony_ciKernelVersion: 5.4 9262306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 9362306a36Sopenharmony_ciDescription: Read-only. Read this file to get the first error detected by 9462306a36Sopenharmony_ci hardware. 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ciWhat: /sys/bus/platform/devices/dfl-port.0/errors/first_malformed_req 9762306a36Sopenharmony_ciDate: August 2019 9862306a36Sopenharmony_ciKernelVersion: 5.4 9962306a36Sopenharmony_ciContact: Wu Hao <hao.wu@intel.com> 10062306a36Sopenharmony_ciDescription: Read-only. Read this file to get the first malformed request 10162306a36Sopenharmony_ci captured by hardware. 102