]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: Add WARN_ON to the resource clear function
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Wed, 16 Jul 2025 07:51:23 +0000 (13:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Jul 2025 16:36:12 +0000 (12:36 -0400)
commit81df6bfad6a479530cef4b8ecbf848132d0fc0ab
tree7d1d62078ba462df2046f6d0024f360f036550d5
parente678e75d68ca28fbc03d22f078e641f123698779
drm/amdgpu: Add WARN_ON to the resource clear function

Set the dirty bit when the memory resource is not cleared
during BO release.

v2(Christian):
  - Drop the cleared flag set to false.
  - Improve the amdgpu_vram_mgr_set_clear_state() function.

v3:
  - Add back the resource clear flag set function call after
    being cleared during eviction (Christian).
  - Modified the patch subject name.

Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h