Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the GPU Driver

You need to install the GPU driver each time the server is restarted.

  1. Obtain VAGPU-KP-24.01.02.09-DC.tgz from Software Environment, upload it to the ~/dependency/ directory, and decompress it to obtain the kernel-mode GPU driver.
    cd ~/dependency/
    tar -zxvf VAGPU-KP-24.01.02.09-DC.tgz
  2. Install the ION driver.
    cd ~/dependency/VAGPU-KP-24.01.02.09-DC/5.10.0_kmd_fw/
    insmod ion_linux.ko
  3. Install the PCIe driver for the GPU.
    insmod va_pci.ko
  4. Copy the firmware in the driver package to the /lib/firmware/ directory of the OS.
    cp rgx* /lib/firmware/
  5. Install the GPU driver.
    The GPU driver starts a kworker process for each GPU node. A single DC1000 card has four nodes. To improve the performance of kworker processes, you are advised to use the kworkerCores parameter to bind kworker processes to CPU cores. Each value of the kworkerCores parameter indicates a core bound to the kworker process of the corresponding GPU node. The following is a command example when the Kunpeng 920 7260 processor and four GPUs are used.
    insmod va_gfx.ko kworkerCores=0,0,1,1,32,32,33,33,64,64,65,65,96,96,97,97
  6. Wait until the script execution is complete and check the kernel logs.
    dmesg

    In the command output, if the kernel-mode driver version and GPU firmware version are the same (content in bold), the GPU driver is successfully installed.

    gfx[3] heap: cpu base:0x8007e100000, gpu base:0x10be100000, size:0xf1f00000 disp heap: cpu base:0x80170000000, gpu base:0x11b0000000, size:0x80000000
    PVR_K:  5070: Read BVNC 35.4.1632.23 from HW device registers
    PVR_K:  5070: RGX Device registered BVNC 35.4.1632.23 with 4 cores in the system
    PVR_K:  5070: va KMD build 1.18@6276027 branch release/VAGPU-KP-24.01.02 commit id 38c28ce tag
    pvr_sync_file: pvr_sync_init: is_signal_foreign_fences: 0
    PVR_K:  5070: AXI fabric coherency (RGX_CR_SOC_AXI): 0xd
    PVR_K:  5070: RGX Firmware image 'rgx.fw.35.4.1632.23' loaded
    PVR_K:  5070: Meta firmware version: 1.18@6276027 build: release branch:  commit: f6b4a7c tag:
    PVR_K:  5070: Shader binary image 'rgx.sh.35.4.1632.23' loaded
    [drm] Initialized va 1.18.6276027 20170530 for va_card_hw.3 on minor 4

To change the driver version, you need to uninstall the drivers and install the drivers of another version.

  1. Delete all containers to release the drivers.
  2. Uninstall the drivers in sequence.
    rmmod va_gfx
    rmmod ion_linux
    rmmod va_pci