]> 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>
Thu, 29 Aug 2024 18:56:37 +0000 (14:56 -0400)
commit6c0a7c3c693ac84f8b50269a9088af8f37446863
tree58dcdf5bd3ce19494125982e3b6b07e189db35aa
parent52491d97aadcde543986d596ed55f70bf2142851
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c