]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: move sched status check inside amdgpu_ttm_set_buffer_funcs_status
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 19 Nov 2025 13:13:00 +0000 (14:13 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:16:30 +0000 (14:16 -0500)
commit79a0ff59a55fa8c2cf9a7148a04dd45e9294e13f
tree7c0b73b910a3d8380fe23283813cdaaafcd3ae9c
parente3dc7976054668a5556291f8162f050693160afb
drm/amdgpu: move sched status check inside amdgpu_ttm_set_buffer_funcs_status

It avoids duplicated code and allows to output a warning.

---
v4: move check inside the existing if (enable) test
---

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@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_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c