drm/amdkfd: remove gfx 12 trap handler page size cap
[ Upstream commit cd82f29ec51b2e616289db7b258a936127c16efa ] 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
37d28309ee
commit
6c7dc7ad86
@@ -537,7 +537,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user