drm/amdkfd: mark A+A VF VRAM PTEs as system memory

On the A+A VF, VRAM is accessed through the system memory path, so SVM
range PTEs that point at VRAM need AMDGPU_PTE_SYSTEM set, matching what
the graphics paths already do.

v2:
- Use (sriov_vf || passthrough) and amdgpu_virt_vram_is_spm() for
  SVM VRAM PTE_SYSTEM.

v3:
- Rely on amdgpu_virt_vram_is_spm() without redundant VF/passthrough
  checks.

Signed-off-by: Zhigang Luo <zhigang.luo@amd.com>
Signed-off-by: Fangsheng Huang <Fangsheng.Huang@amd.com>
Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Zhigang Luo 2026-08-31 15:39:03 -04:00 • committed by Alex Deucher
commit a69f4d4076