]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Replace 'amdgpu_job_submit_direct' with 'drm_sched_entity' in cleaner...
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 4 Sep 2024 07:00:16 +0000 (12:30 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2024 21:42:33 +0000 (17:42 -0400)
commit559a285816af5b72284a6ed65eb82a68ee497d60
tree57b8ded82c3a3b716f14971bc6795f6655c7f498
parent2578487ebe6ca34fe9cd950bf68e8158639ddb1b
drm/amdgpu: Replace 'amdgpu_job_submit_direct' with 'drm_sched_entity' in cleaner shader

This commit replaces the use of amdgpu_job_submit_direct which submits
the job to the ring directly, with drm_sched_entity in the cleaner
shader job submission process. The change allows the GPU scheduler to
manage the cleaner shader job.

- The job is then submitted to the GPU using the
  drm_sched_entity_push_job function, which allows the GPU scheduler to
  manage the job.

This change improves the reliability of the cleaner shader job
submission process by leveraging the capabilities of the GPU scheduler.

Fixes: d361ad5d2fc0 ("drm/amdgpu: Add sysfs interface for running cleaner shader")
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@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_gfx.c