diff options
| author | Mukul Joshi <mukul.joshi@amd.com> | 2025-08-13 22:05:37 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-01-06 00:27:22 +0300 |
| commit | 382dd7d23d1af3be58f07c9fabd571b760a3aff1 (patch) | |
| tree | a1e3de20f9a45c00d8c75aa2e0d20186a11e7512 | |
| parent | fd25254f0bdd8c604052e88a8a77e8e9af8f4c87 (diff) | |
| download | linux-382dd7d23d1af3be58f07c9fabd571b760a3aff1.tar.xz | |
drm/amdgpu: Setup MTYPE on SOC models for GFX 12.1
Fix it to apply for all models.
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c index 86c084678093..695f3cf05b6f 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c @@ -482,7 +482,6 @@ static void gmc_v12_1_get_vm_pde(struct amdgpu_device *adev, int level, } } -#if 0 static void gmc_v12_1_get_coherence_flags(struct amdgpu_device *adev, struct amdgpu_bo *bo, uint64_t *flags) @@ -536,7 +535,6 @@ static void gmc_v12_1_get_coherence_flags(struct amdgpu_device *adev, *flags |= snoop ? AMDGPU_PTE_SNOOPED : 0; } -#endif static void gmc_v12_1_get_vm_pte(struct amdgpu_device *adev, struct amdgpu_vm *vm, @@ -582,8 +580,8 @@ static void gmc_v12_1_get_vm_pte(struct amdgpu_device *adev, if (adev->have_atomics_support) *flags |= AMDGPU_PTE_BUS_ATOMICS; - if (bo && bo->flags & AMDGPU_GEM_CREATE_UNCACHED) - *flags = AMDGPU_PTE_MTYPE_GFX12(*flags, MTYPE_UC); + if ((*flags & AMDGPU_PTE_VALID) && bo) + gmc_v12_1_get_coherence_flags(adev, bo, flags); } static const struct amdgpu_gmc_funcs gmc_v12_1_gmc_funcs = { |
