libhsakmt: Disabled allocation of CWSR with SVM for GFX11.

This is a temporary work around for GPU hang issues observed on GFX11.

Change-Id: I98fbedbbd1c51fe402c2116b35ca548931a390c9
Signed-off-by: David Belanger <david.belanger@amd.com>


[ROCm/ROCR-Runtime commit: b25867c4b8]
Cette révision appartient à :
David Belanger
2023-01-11 09:18:54 -05:00
Parent 54e3e5ab8f
révision 1ba59d64e1
2 fichiers modifiés avec 4 ajouts et 0 suppressions
+2
Voir le fichier
@@ -116,6 +116,8 @@ 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))
+2
Voir le fichier
@@ -490,6 +490,8 @@ 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;