SDx Debug Command Options

KCU1500 Board User Guide (UG1260)

Document ID
UG1260
Release Date
2023-07-27
Revision
1.5 English

The xbsak scan scans for devices and associated drivers for the host machine. A normal output is as follows:

$ xbsak scan

Linux:4.4.0-116-generic:#140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018:x86_64

Distribution: Ubuntu 16.04.3 LTS

GLIBC: 2.23

---

AMD_OPENCL="/opt/dsa/<board_name>/xbinst"

LD_LIBRARY_PATH="/opt/dsa/<board_name>/xbinst/runtime/lib/x86_64:"

---

[0]mgmt:0x6a8f:0x4351:[xclmgmt:2017.4.4:0]

[0]user:0x6a90:0x4351:[xocl:2017.4.5:129]

Determining if Output is Showing an Error

When the xbsak scan command is used, results are as follows:

[0]mgmt:0x6a8f:0x4351:[???:???:???]

[0]user:0x6a90:0x4351:[xocl:2017.4.5:129]

Such output indicates that the management driver, xclmgmt is not loaded; it could either have been unloaded using the Linux command, $ sudo rmmod xclmgmt, or there was an error at the OS level.

To fix an unloaded management driver, use this command:

$ sudo modprobe xclmgmt

Otherwise, if the xbsak scan command is used, the results are as follows:

[0]mgmt:0x6a8f:0x4351:[xclmgmt:2017.4.4:0]

[0]user:0x6a90:0x4351:[???:???:???]

This indicates that the user function driver xocl is not loaded; it could have either have been unloaded with the xbsak list $ sudo rmmod xocl command or there was an error at the OS level.

To fix this issue, use this command:

$ sudo modprobe xocl