On Tue, Jun 18, 2024 at 9:07 AM Min, Frank <Frank.Min@xxxxxxx> wrote: > > [AMD Official Use Only - AMD Internal Distribution Only] > > From: Frank Min <Frank.Min@xxxxxxx> > > gfx12 only support MTYPE UC and NC, so update it accordingly. > > Signed-off-by: Frank Min <Frank.Min@xxxxxxx> Acked-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > 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 b/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); > default: > -- > 2.34.1 >