From 0eb0bae38b535c6fd048b9e82cdfbac39a3a3d44 Mon Sep 17 00:00:00 2001 From: David Belanger Date: Tue, 24 Jan 2023 11:35:31 -0500 Subject: [PATCH] Revert "libhsakmt: Disabled allocation of CWSR with SVM for GFX11." This reverts commit b25867c4b8dea987f9bfc12c00373151526929eb. Change-Id: I05bf82266f563c63c0b794a24b0926e7652ce42d Signed-off-by: David Belanger --- src/libhsakmt.h | 2 -- src/queues.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/libhsakmt.h b/src/libhsakmt.h index 0f80e5eb3b..55fc5a465d 100644 --- a/src/libhsakmt.h +++ b/src/libhsakmt.h @@ -116,8 +116,6 @@ extern int hsakmt_debug_level; #define HSA_GET_GFX_VERSION_MINOR(gfxv) (((gfxv) / 100) % 100) #define HSA_GET_GFX_VERSION_STEP(gfxv) ((gfxv) % 100) -#define HSA_GET_GFX_VERSION_MAJOR_HEX(gfxv) (((gfxv) >> 16) & 0xff) - /* Expects HSA_ENGINE_ID.ui32, returns gfxv (full) in hex */ #define HSA_GET_GFX_VERSION_FULL(ui32) \ (((ui32.Major) << 16) | ((ui32.Minor) << 8) | (ui32.Stepping)) diff --git a/src/queues.c b/src/queues.c index c53d219c75..f59c3da7bf 100644 --- a/src/queues.c +++ b/src/queues.c @@ -512,8 +512,6 @@ static int handle_concrete_asic(struct queue *q, if (hsaKmtGetNodeProperties(NodeId, &node)) svm_api = false; - else if (HSA_GET_GFX_VERSION_MAJOR_HEX(q->gfxv) == 11) - svm_api = false; else svm_api = node.Capability.ui32.SVMAPISupported;