]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: Adjust CWSR trap handler for gfx950
authorLancelot SIX <lancelot.six@amd.com>
Mon, 17 Jun 2024 11:10:56 +0000 (12:10 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:51 +0000 (10:26 -0500)
commit549120edfda954b31ad2f0bc8e1829334d042c0c
tree152b580c9accccb614f20386a77622b7926e7b75
parentccca9964303a64fbae015dfc2876dce0abde8afa
drm/amdkfd: Adjust CWSR trap handler for gfx950

In gfx950, the SQ_WAVE_LDS_ALLOC.LDS_SIZE field is extended to bits 12
to 22.  The LDS_SIZE granularity remains unchanged (units of 64 dwords,
or 256 bytes).  This patch adjusts the CWSR trap handler to read the
full extent of LDS_SIZE.

Signed-off-by: Lancelot SIX <lancelot.six@amd.com>
Reviewed-by: Jay Cornwall <jay.cornwall@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx9.asm
drivers/gpu/drm/amd/amdkfd/kfd_device.c