]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: Update the impelmentation of AMDGPU_PTE_MTYPE_GFX12
authorShane Xiao <shane.xiao@amd.com>
Wed, 29 May 2024 09:53:11 +0000 (17:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 14:57:24 +0000 (10:57 -0400)
commiteba791dc17547c78727778426962f855b52b266b
treefb697d8e657998fb3bd2ac8b66c9609ab9a59915
parentf8718c482572181ca364ffca3c27365cc83cfe9e
drm/amdgpu: Update the impelmentation of AMDGPU_PTE_MTYPE_GFX12

This patch changes the implementation of AMDGPU_PTE_MTYPE_GFX12,
clear the bits before setting the new one.
This fixed the potential issue that GFX12 setting memory to NC.

v2: Clear mtype field before setting the new one (Alex)
v3: Fix typo (Felix)

Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: longlyao <Longlong.Yao@amd.com>
Signed-off-by: Shane Xiao <shane.xiao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c