]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdkfd: remove gfx 12 trap handler page size cap
authorJonathan Kim <jonathan.kim@amd.com>
Tue, 5 Nov 2024 17:38:30 +0000 (12:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Nov 2024 16:07:43 +0000 (11:07 -0500)
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>
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index 348925254bff9c9c18b6fc217136a858f6ec7674..956198da7859eff638a09474bdacc5e5ee6492ce 100644 (file)
@@ -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);
                }