drm/amdgpu: Override MTYPE per page on GFXv9.4.3 APUs
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 21 Feb 2023 22:44:18 +0000 (17:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:59:08 +0000 (09:59 -0400)
commit352b919c1e5ff50c71d665395b27acbd1bf23a05
tree4dab98644c26da05be0101927c5edce1bc9581fe
parent1e4a00334add40f609162914af7a24bc92951008
drm/amdgpu: Override MTYPE per page on GFXv9.4.3 APUs

On GFXv9.4.3 NUMA APUs, system memory locality must be determined per
page to choose the correct MTYPE. This patch adds a GMC callback that
can provide this per-page override and implements it for native mode.

Carve-out mode is not yet supported and will use the safe default
(remote) MTYPE for system memory.

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/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c