Skip to content

Commit 6c7dc7a

Browse files
jokim-amdgregkh
authored andcommitted
drm/amdkfd: remove gfx 12 trap handler page size cap
[ Upstream commit cd82f29 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 37d2830 commit 6c7dc7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@ static void kfd_cwsr_init(struct kfd_dev *kfd)
537537
kfd->cwsr_isa = cwsr_trap_gfx11_hex;
538538
kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx11_hex);
539539
} else {
540-
BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex) > PAGE_SIZE);
540+
BUILD_BUG_ON(sizeof(cwsr_trap_gfx12_hex)
541+
> KFD_CWSR_TMA_OFFSET);
541542
kfd->cwsr_isa = cwsr_trap_gfx12_hex;
542543
kfd->cwsr_isa_size = sizeof(cwsr_trap_gfx12_hex);
543544
}

0 commit comments

Comments
 (0)