]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Add preempt and restore callbacks to userq funcs
authorJesse.Zhang <Jesse.Zhang@amd.com>
Tue, 5 Aug 2025 03:26:15 +0000 (11:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:37:50 +0000 (17:37 -0400)
commit2318336573c51748bd2089a835242c70be6850cf
tree01513c0ebc58c3594c947af0e5cdd3f9544979bd
parent878f33f3907ae2e5751c1a3c4397f37b86e53494
drm/amdgpu: Add preempt and restore callbacks to userq funcs

Add two new function pointers to struct amdgpu_userq_funcs:
- preempt: To handle preemption of user mode queues
- restore: To restore preempted user mode queues

These callbacks will allow the driver to properly manage queue
preemption and restoration when needed, such as during context
switching or priority changes.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h