Commit cd82f29e authored by Jonathan Kim's avatar Jonathan Kim Committed by Alex Deucher
Browse files

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: default avatarJonathan Kim <jonathan.kim@amd.com>
Reviewed-by: default avatarDavid Belanger <david.belanger@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 04e91017
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -534,7 +534,8 @@ 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 {
			BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex) > PAGE_SIZE);
			BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex)
					     > KFD_CWSR_TMA_OFFSET);
			kfd->cwsr_isa = cwsr_trap_gfx12_hex;
			kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx12_hex);
		}