We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c0f8e0 commit 673d0f2Copy full SHA for 673d0f2
1 file changed
src/runtime_src/core/edge/drm/zocl/common/zocl_ioctl.c
@@ -85,8 +85,11 @@ static int
85
get_free_slot(struct drm_zocl_dev *zdev, struct axlf *axlf, int* slot_id)
86
{
87
int s_id = -1;
88
- /* xclbin contains PL section use fixed slot */
89
- if (xrt_xclbin_get_section_num(axlf, IP_LAYOUT)) {
+ /* PL or merged xclbins use fixed slot 0.
+ * 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))) {
93
DRM_WARN("Xclbin contains PL section Using Slot-0");
94
*slot_id = ZOCL_DEFAULT_XCLBIN_SLOT;
95
return 0;
0 commit comments