drm/amdkfd: Update MTYPE for far memory partition
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 2 Feb 2023 16:07:53 +0000 (11:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:36:30 +0000 (10:36 -0400)
commitdc12f9eddedb8b41f4dc948e5e636e5221fb4d43
tree704d7b42d7ca0dcb42bb35e806fdb0c3fa8c0c9d
parent7f6db89418f9d26eb68e050ff16de8e9827011ca
drm/amdkfd: Update MTYPE for far memory partition

Use MTYPE RW/MTYPE_CC for mapping system memory or VRAM to KFD node
within the same memory partition, use MTYPE_NC for mapping on KFD node
from the far memory partition of the same socket or from another socket
on same XGMI hive.

On NPS4 or 4P system, MTYPE will be overridden per page depending on
the memory NUMA node id and vm->mem_id.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@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