Intel Acceleration Stack Quick Start Guide for Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA

ID 683633
Date 12/04/2020
Document Table of Contents

6. Running FPGA Diagnostics

This section presents instructions on how to run the FPGA diagnostics by using the fpgabist utility. The current AFUs accepted are nlb_mode_3 and dma_afu, running fpgadiag and fpga_dma_test tests, respectively.
Note: If a flash is programmed with a root entry hash, you must ensure that the AFUs are signed with an appropriate root key and code signing key before running the FPGA diagnostics. For more information on signing, refer to Security User Guide: Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA .
  1. Configure the number of system hugepages the FPGA fpgadiag utility requires:
    sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-\ 
  2. Configure and run diagnostics with the NLB_3 AFU image.
    sudo fpgabist $OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_3/bin/\
    Sample partial output:
    Cachelines Read_Count Write_Count Cache_Rd_Hit Cache_Wr_Hit Cache_Rd_Miss Cache_Wr_Miss   Eviction 'Clocks(@400 MHz)'   Rd_Bandwidth   Wr_Bandwidth
    1024  480797340   488815296             0            0             0             0          0       1000021563      6.234 GB/s    6.256 GB/s
    VH0_Rd_Count VH0_Wr_Count VH1_Rd_Count VH1_Wr_Count VL0_Rd_Count VL0_Wr_Count480797340        488815297                        0            0            0            0
    Built-in Self-Test Completed.
  3. Configure and run diagnostics with the DMA AFU image.
    sudo fpgabist $OPAE_PLATFORM_ROOT/hw/samples/dma_afu/bin/dma_afu_unsigned.gbs
    Sample partial output:
    Running test in HW mode
    Buffer Verification Success!
    Buffer Verification Success!
    Running DDR sweep test
    Allocated test buffer
    Fill test buffer
    DDR Sweep Host to FPGA
    Measured bandwidth = 6616.881910 Megabytes/sec
    Clear buffer
    DDR Sweep FPGA to Host
    Measured bandwidth = 6932.201347 Megabytes/sec
    Verifying buffer.
    Buffer Verification Success!
    Finished Executing DMA Tests