mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
drm/amdkfd: Enable GFX12 trap handler
Updated switch statement to use GFX12 trap handler. Signed-off-by: David Belanger <david.belanger@amd.com> Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
cf338b5dfe
commit
782b93436a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user