XRT icon indicating copy to clipboard operation
XRT copied to clipboard

Errors when checking memory bank index using "xbutil examine --report memory" command

Open Heng-Zhou opened this issue 2 years ago • 1 comments

The XRT native API documentation says we can use xbutil examine --report memory command to check the memory bank index. But I always got errors.

First I was asked to use --device to specify device. This is easy to solve. So the command now becomes

xbutil examine --report memory -d 0000:3b:00.1

But when I run this command, the first problem I encountered is that there is no information related to memory bank index. Only platform name was returned:

-------------------------------------------------
[0000:3b:00.1] : xilinx_u280_gen3x16_xdma_base_1
-------------------------------------------------

I have no idea how to fix these errors and I want to get the memory bank index using xbutil examine --report memory command as the document suggests, especially those related to HBM. Can you please lend me a hand? Thank you.

I am using Alveo U280 accelerator card on Ubuntu 22.04. The XRT version is 2.15.228 (released on 2023-06-13).

Heng-Zhou avatar Jul 22 '23 12:07 Heng-Zhou

I managed to have xbutil list memory bank indices for me:

-------------------------------------------------
[0000:3b:00.1] : xilinx_u280_gen3x16_xdma_base_1
-------------------------------------------------

  Memory Topology
         Tag                 Type             Temp(C)  Size      Base Address
    [ 0] HBM[0]              MEM_HBM          36       256 MB    0x0
    [ 1] HBM[1]              MEM_DRAM         36       256 MB    0x10000000
    [ 2] HBM[2]              MEM_DRAM         36       256 MB    0x20000000
... ...
    [31] HBM[31]             MEM_DRAM         36       256 MB    0x1f0000000
... ...

It works after I ran the Getting Started sample code of Vitis-Tutorials. So, it seems to me that the sample code does some initialization work of the card which remains in effect after the sample code exits and which makes xbutil work. As a result, perhaps xbutil is missing some initialization code at the memory information part. Although my problem is solved, I still hope the developers of XRT can see into this possible issue and fix it if my guess is really true. As a side note, I think the type MEM_DRAM should mean DDR4 memory device on the card which should remain to be MEM_HBM after index 1. If it is a bug, I hope it can be fixed as well. Thanks.

Heng-Zhou avatar Jul 23 '23 07:07 Heng-Zhou