Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mukul Joshi and committed by
Alex Deucher
382dd7d2 fd25254f

+2 -4
+2 -4
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
··· 482 482 } 483 483 } 484 484 485 - #if 0 486 485 static void gmc_v12_1_get_coherence_flags(struct amdgpu_device *adev, 487 486 struct amdgpu_bo *bo, 488 487 uint64_t *flags) ··· 535 536 536 537 *flags |= snoop ? AMDGPU_PTE_SNOOPED : 0; 537 538 } 538 - #endif 539 539 540 540 static void gmc_v12_1_get_vm_pte(struct amdgpu_device *adev, 541 541 struct amdgpu_vm *vm, ··· 580 582 if (adev->have_atomics_support) 581 583 *flags |= AMDGPU_PTE_BUS_ATOMICS; 582 584 583 - if (bo && bo->flags & AMDGPU_GEM_CREATE_UNCACHED) 584 - *flags = AMDGPU_PTE_MTYPE_GFX12(*flags, MTYPE_UC); 585 + if ((*flags & AMDGPU_PTE_VALID) && bo) 586 + gmc_v12_1_get_coherence_flags(adev, bo, flags); 585 587 } 586 588 587 589 static const struct amdgpu_gmc_funcs gmc_v12_1_gmc_funcs = {