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 21:06:15 +0000 (17:06 -0400)
commit1f327dfc846ae82e16e52ed9c559d566826486d2
tree9a0f796c86bc0854f95fadf645233ceb55d79bdc
parentdd2b75fd9a79bf418e088656822af06fc253dbe3
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