drm/amdkfd: Increase the size of the memory reserved for the TBA
authorLaurent Morichetti <laurent.morichetti@amd.com>
Thu, 22 Feb 2024 23:49:18 +0000 (15:49 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Mar 2024 20:24:49 +0000 (15:24 -0500)
commitf36e3f7260ac60ac8049e6ab1732fabeff334cf5
tree71f0c8666b8ae87a7648017edbef249a45e67051
parentbf909454fefa4a578dc5451cc5697b5fbe1bd6e4
drm/amdkfd: Increase the size of the memory reserved for the TBA

In a future commit, the cwsr trap handler code size for gfx10.1 will
increase to slightly above the one page mark. Since the TMA does not
need to be page aligned, and only 2 pointers are stored in it, push
the TMA offset by 2 KiB and keep the TBA+TMA reserved memory size
to two pages.

Signed-off-by: Laurent Morichetti <laurent.morichetti@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h