Skip to content

Commit 673d0f2

Browse files
bisingha-xilinxBikash Singha
andauthored
updating the PL xclbin check to align with latest Vitis TA (#9688)
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com> Co-authored-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
1 parent 7c0f8e0 commit 673d0f2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/runtime_src/core/edge/drm/zocl/common/zocl_ioctl.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ static int
8585
get_free_slot(struct drm_zocl_dev *zdev, struct axlf *axlf, int* slot_id)
8686
{
8787
int s_id = -1;
88-
/* xclbin contains PL section use fixed slot */
89-
if (xrt_xclbin_get_section_num(axlf, IP_LAYOUT)) {
88+
/* PL or merged xclbins use fixed slot 0.
89+
* AIE-only xclbins (AM_LOAD_AIE or AM_LOAD_PDI) get a dynamic slot.
90+
*/
91+
if (xrt_xclbin_get_section_num(axlf, IP_LAYOUT) &&
92+
!(axlf->m_header.m_actionMask & (AM_LOAD_AIE | AM_LOAD_PDI))) {
9093
DRM_WARN("Xclbin contains PL section Using Slot-0");
9194
*slot_id = ZOCL_DEFAULT_XCLBIN_SLOT;
9295
return 0;

0 commit comments

Comments
 (0)