drm/amdkfd: set precise mem ops caps to disabled for gfx 11 and 12
Subsystems (3)
PATCH 1/1 drm/amdkfd: set precise mem ops caps to disabled for gfx 11 and 12
Clause instructions with precise memory enabled currently hang the shader so set capabilities flag to disabled since it's unsafe to use for debugging.
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_topology.c +0 -4
@@ -2006,10 +2006,6 @@ static void kfd_topology_set_capabilities(struct kfd_topology_device *dev) dev->node_props.debug_prop |=HSA_DBG_WATCH_ADDR_MASK_LO_BIT_GFX10 |HSA_DBG_WATCH_ADDR_MASK_HI_BIT ; -if (KFD_GC_VERSION (dev->gpu) >=IP_VERSION (11 ,0 ,0 )) - dev->node_props.capability |= -HSA_CAP_TRAP_DEBUG_PRECISE_MEMORY_OPERATIONS_SUPPORTED ; -if (KFD_GC_VERSION (dev->gpu) >=IP_VERSION (12 ,0 ,0 )) dev->node_props.capability |=HSA_CAP_TRAP_DEBUG_PRECISE_ALU_OPERATIONS_SUPPORTED ;
Signature · 1 line
2.34.1
Quoted 5 lines · Jonathan Kim
Clause instructions with precise memory enabled currently hang the shader so set capabilities flag to disabled since it's unsafe to use for debugging.
Signed-off-by Jonathan Kim <[email protected]>
Hi,
I have tested this for gfx11.
For what it is worth, this patch looks to me.
Best,
Lancelot.
Quoted 19 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_topology.c +0
-4@@ -2006,10 +2006,6 @@ static void kfd_topology_set_capabilities(struct kfd_topology_device *dev) dev->node_props.debug_prop |=HSA_DBG_WATCH_ADDR_MASK_LO_BIT_GFX10 |HSA_DBG_WATCH_ADDR_MASK_HI_BIT ; -if (KFD_GC_VERSION (dev->gpu) >=IP_VERSION (11 ,0 ,0 )) - dev->node_props.capability |= -HSA_CAP_TRAP_DEBUG_PRECISE_MEMORY_OPERATIONS_SUPPORTED ; -if (KFD_GC_VERSION (dev->gpu) >=IP_VERSION (12 ,0 ,0 )) dev->node_props.capability |=HSA_CAP_TRAP_DEBUG_PRECISE_ALU_OPERATIONS_SUPPORTED ;
[Public]
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Lancelot SIX
Sent: Monday, March 17, 2025 7:02 AM
To: Kim, Jonathan <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdkfd: set precise mem ops caps to disabled for gfx 11 and 12
Quoted 5 lines · Jonathan Kim
Clause instructions with precise memory enabled currently hang the shader so set capabilities flag to disabled since it's unsafe to use for debugging.
Signed-off-by Jonathan Kim <[email protected]>
Hi,
I have tested this for gfx11.
For what it is worth, this patch looks to me.
Best,
Lancelot.
Quoted 19 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_topology.c +0
-4@@ -2006,10 +2006,6 @@ static void kfd_topology_set_capabilities(struct kfd_topology_device *dev) dev->node_props.debug_prop |=HSA_DBG_WATCH_ADDR_MASK_LO_BIT_GFX10 |HSA_DBG_WATCH_ADDR_MASK_HI_BIT ; -if (KFD_GC_VERSION (dev->gpu) >=IP_VERSION (11 ,0 ,0 )) - dev->node_props.capability |= -HSA_CAP_TRAP_DEBUG_PRECISE_MEMORY_OPERATIONS_SUPPORTED ; -if (KFD_GC_VERSION (dev->gpu) >=IP_VERSION (12 ,0 ,0 )) dev->node_props.capability |=HSA_CAP_TRAP_DEBUG_PRECISE_ALU_OPERATIONS_SUPPORTED ;