Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: remove gfx 12 trap handler page size cap

GFX 12 does not require a page size cap for the trap handler because
it does not require a CWSR work around like GFX 11 did.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: David Belanger <david.belanger@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jonathan Kim and committed by
Alex Deucher
cd82f29e 04e91017

+2 -1
+2 -1
drivers/gpu/drm/amd/amdkfd/kfd_device.c
··· 534 534 kfd->cwsr_isa = cwsr_trap_gfx11_hex; 535 535 kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx11_hex); 536 536 } else { 537 - BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex) > PAGE_SIZE); 537 + BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex) 538 + > KFD_CWSR_TMA_OFFSET); 538 539 kfd->cwsr_isa = cwsr_trap_gfx12_hex; 539 540 kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx12_hex); 540 541 }