drm/amdkfd: simplify APU VRAM handling
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 22 May 2024 19:26:50 +0000 (15:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 18:48:30 +0000 (14:48 -0400)
commit7978c4d41496becda1c1cbd5b783c60e9b64d618
tree43c31744bb4e2517d35d34d8cb88dce865a7d02d
parentd4ab6c409b16954d977959e1b9848910f58f32bc
drm/amdkfd: simplify APU VRAM handling

With commit 89773b85599a
("drm/amdkfd: Let VRAM allocations go to GTT domain on small APUs")
big and small APU "VRAM" handling in KFD was unified.  Since AMD_IS_APU
is set for both big and small APUs, we can simplify the checks in
the code.

v2: clean up a few more places (Lang)

Acked-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Lang Yu <Lang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h