From 09e72a64da30e3434284287af65ad45dfd7ff728 Mon Sep 17 00:00:00 2001 From: bisingha Date: Thu, 28 Nov 2024 14:56:51 +0530 Subject: [PATCH] Revert "Made aie resources 0 for hw_gen greater than 1 (#8626)" This reverts commit 715c7e79d49ebbf95126ad431151bcb9346e880c. Signed-off-by: bisingha --- src/runtime_src/core/edge/drm/zocl/edge/zocl_aie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime_src/core/edge/drm/zocl/edge/zocl_aie.c b/src/runtime_src/core/edge/drm/zocl/edge/zocl_aie.c index 86aa34c4654..9be7cc55d9f 100644 --- a/src/runtime_src/core/edge/drm/zocl/edge/zocl_aie.c +++ b/src/runtime_src/core/edge/drm/zocl/edge/zocl_aie.c @@ -524,12 +524,12 @@ zocl_create_aie(struct drm_zocl_slot *slot, struct axlf *axlf, char __user *xclb } } - /* TODO figure out the uid from xclbin or PDI */ + /* TODO figure out the partition id and uid from xclbin or PDI */ req.partition_id = partition_id; req.uid = 0; req.meta_data = 0; - if (hw_gen == 1) + if (aie_res) req.meta_data = (u64)aie_res; if (slot->aie->aie_dev) {