Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Heng-Zhou opened this issue Jul 22, 2023 · 1 comment

Comments

@Heng-Zhou
Copy link

Heng-Zhou commented Jul 22, 2023

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant