Commit 782b9343 authored by David Belanger's avatar David Belanger Committed by Alex Deucher
Browse files

drm/amdkfd: Enable GFX12 trap handler



Updated switch statement to use GFX12 trap handler.

Signed-off-by: default avatarDavid Belanger <david.belanger@amd.com>
Reviewed-by: default avatarHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cf338b5d
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -532,10 +532,9 @@ static void kfd_cwsr_init(struct kfd_dev *kfd)
			kfd->cwsr_isa = cwsr_trap_gfx11_hex;
			kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx11_hex);
		} else {
			/* GFX12_TODO: Change to gfx12 struct when available. */
			BUILD_BUG_ON(sizeof(cwsr_trap_gfx11_hex) > PAGE_SIZE);
			kfd->cwsr_isa = cwsr_trap_gfx11_hex;
			kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx11_hex);
			BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex) > PAGE_SIZE);
			kfd->cwsr_isa = cwsr_trap_gfx12_hex;
			kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx12_hex);
		}

		kfd->cwsr_enabled = true;