]> www.infradead.org Git - users/willy/xarray.git/commit
drm/amdgpu: always allocate cleared VRAM for GEM allocations
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Mar 2024 15:28:29 +0000 (11:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Sep 2024 17:08:51 +0000 (13:08 -0400)
commit4de34b04783628f14614badb0a1aa67ce3fcef5d
tree135cd4c58f28daa66a3ba969560fcbaef8a33fc4
parent34c36a77f431b67803c68786fe41a05d007a9306
drm/amdgpu: always allocate cleared VRAM for GEM allocations

This adds allocation latency, but aligns better with user
expectations.  The latency should improve with the drm buddy
clearing patches that Arun has been working on.

In addition this fixes the high CPU spikes seen when doing
wipe on release.

v2: always set AMDGPU_GEM_CREATE_VRAM_CLEARED (Christian)

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3528
Fixes: a68c7eaa7a8f ("drm/amdgpu: Enable clear page functionality")
Acked-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
(cherry picked from commit 6c0a7c3c693ac84f8b50269a9088af8f37446863)
Cc: stable@vger.kernel.org # 6.10.x
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c