[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Hawking Zhang <hawking.zh...@amd.com>

-----Original Message-----
From: Min, Frank <frank....@amd.com>
Sent: Tuesday, June 18, 2024 21:07
To: amd-gfx@lists.freedesktop.org
Cc: Zhang, Hawking <hawking.zh...@amd.com>; Gao, Likun <likun....@amd.com>; 
Deucher, Alexander <alexander.deuc...@amd.com>; Koenig, Christian 
Subject: [PATCH] drm/amdgpu: update MTYPE mapping for gfx12

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <frank....@amd.com>

gfx12 only support MTYPE UC and NC, so update it accordingly.

Signed-off-by: Frank Min <frank....@amd.com>
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c 
index 26122c8cfcc3..61db331adcc2 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -464,10 +464,6 @@ static uint64_t gmc_v12_0_map_mtype(struct amdgpu_device 
*adev, uint32_t flags)
                return AMDGPU_PTE_MTYPE_GFX12(0ULL, MTYPE_NC);
        case AMDGPU_VM_MTYPE_NC:
                return AMDGPU_PTE_MTYPE_GFX12(0ULL, MTYPE_NC);
-       case AMDGPU_VM_MTYPE_WC:
-               return AMDGPU_PTE_MTYPE_GFX12(0ULL, MTYPE_WC);
-       case AMDGPU_VM_MTYPE_CC:
-               return AMDGPU_PTE_MTYPE_GFX12(0ULL, MTYPE_CC);
        case AMDGPU_VM_MTYPE_UC:
                return AMDGPU_PTE_MTYPE_GFX12(0ULL, MTYPE_UC);

Reply via email to