Xilinx / Xilinx/Vitis-Tutorials
VCK190 02-gmio example hangs after first run on petalinux (version 2023.2)
@AnusheelXilinx is already working on this.
Since Mar 6, 2025.
- Dominant language
- C
- Stars
- 1.6k
- Forks
- 627
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm trying the AIE Feature Tutorial 02-using-gmio targeting the Versal VCK190 board, with version 2023.2 (both Vitis toolchain and Petalinux). In the first run of the application on petalinux it runs correctly (the execution finishes, the profiling happens and AIE GMIO PASSED! message is printed as expected. However, when I try to run again the same application, the execution hangs in the step GMIO::malloc completed. The specific message is the following:
versal-rootfs-common-20232:/run/media/mmcblk0p1# sudo ./host.exe a.xclbin 1024
Initializing ADF API...
[12067.380489] zocl-drm axi:zyxclmm_drm: zocl_create_client: created KDS client for pid(742), ret: 0
[12067.389657] zocl-drm axi:zyxclmm_drm: zocl_destroy_client: client exits pid(742)
[12067.397384] zocl-drm axi:zyxclmm_drm: zocl_create_client: created KDS client for pid(742), ret: 0
XAIEFAL: INFO: Resource group Avail is created.
XAIEFAL: INFO: Resource group Static is created.
XAIEFAL: INFO: Resource group Generic is created.
[12067.414420] [drm] Exists xclbin 8b42e040-dd65-2bdd-e88d-4f33d02ec05a to slot 0
[12067.460307] [drm] bitstream 8b42e040-dd65-2bdd-e88d-4f33d02ec05a locked, ref=1
[12067.467600] zocl-drm axi:zyxclmm_drm: ffff000001bf4810 kds_add_context: Client pid(742) add context Domain(65535) CU(0xffff) shared(true)
[12067.487293] zocl-drm axi:zyxclmm_drm: ffff000001bf4810 kds_del_context: Client pid(742) del context Domain(65535) CU(0xffff)
ITERATION:1024
GMIO::malloc completed
The only way to exit this is with Ctrl+C, where it simply exists the application. The only way to re-run the application is through rebooting the device. Note that this behavior is observed in both the perf_gmio and the single_gmio examples provided. Is there any solution available, in order to be able to rerun the same application without reseting? I have also tried "reseting" the board, through xbutil reset ...., but this also didn't solve my problem.
PS: What I have also observed, is that petalinux reads the available RAM capacity equal to ~1.6GB, which is far less than the 8GB expected capacity (with older petalinux version - 2021.1 I'm correctly seeing 8GB available. Perhaps this is correlated with the above problem?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.