]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: Restore uncached behaviour on GFX12
authorDavid Belanger <david.belanger@amd.com>
Tue, 2 Jul 2024 21:56:41 +0000 (17:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Mar 2025 03:18:02 +0000 (23:18 -0400)
commiteb6cdfb807d038d9b9986b5c87188f28a4071eae
treeebd7455143552b3921f42eea0a6dc493fa387e0b
parentebdc52607a46cda08972888178c6aa9cd6965141
drm/amdgpu: Restore uncached behaviour on GFX12

Always use MTYPE_UC if UNCACHED flag is specified.

This makes kernarg region uncached and it restores
usermode cache disable debug flag functionality.

Do not set MTYPE_UC for COHERENT flag, on GFX12 coherence is handled by
shader code.

Signed-off-by: David Belanger <david.belanger@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c