OSDN Git Service

drm/amdgpu: Fix per-BO MTYPE selection for GFXv9.4.3
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 21 Feb 2023 22:31:32 +0000 (17:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:59:05 +0000 (09:59 -0400)
commit1e4a00334add40f609162914af7a24bc92951008
tree326e1aa7c96c7f77a2312cd18dc198d2f502524f
parent895797d9193b38e759bc01268a8e3887e521f682
drm/amdgpu: Fix per-BO MTYPE selection for GFXv9.4.3

Treat system memory on NUMA systems as remote by default. Overriding with
a more efficient MTYPE per page will be implemented in the next patch.

No need for a special case for APP APUs. System memory is handled the same
for carve-out and native mode. And VRAM doesn't exist in native mode.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-and-tested-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c