From 06a90612e9646e958e8d1ecb75d79f24de07ada6 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 25 Aug 2022 10:33:54 +0800 Subject: [PATCH] libhsakmt: expand control stack size limit for all gfx103x GFX1036(ISA version) is not included in the previous range. This patch can really include all gfx10 series ASICs. Signed-off-by: Aaron Liu Change-Id: I0e28dbfc031c216166b306b9fb39f644f75a330f --- src/queues.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/queues.c b/src/queues.c index 6ea17b4a7d..9a9c528351 100644 --- a/src/queues.c +++ b/src/queues.c @@ -279,8 +279,7 @@ static bool update_ctx_save_restore_size(uint32_t nodeid, struct queue *q) wg_data_size = cu_num * WG_CONTEXT_DATA_SIZE_PER_CU(q->gfxv); q->ctl_stack_size = PAGE_ALIGN_UP(sizeof(HsaUserContextSaveAreaHeader) + ctl_stack_size); - if (q->gfxv >= GFX_VERSION_NAVI10 && - q->gfxv <= GFX_VERSION_YELLOW_CARP) { + if ((q->gfxv & 0x3f0000) == 0xA0000) { /* HW design limits control stack size to 0x7000. * This is insufficient for theoretical PM4 cases * but sufficient for AQL, limited by SPI events.