Skip to content

VCK190 02-gmio example hangs after first run on petalinux (version 2023.2) #466

@ipapal

Description

@ipapal

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions