drm/amdgpu/userq: add helpers to start/stop scheduling
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Apr 2025 17:26:43 +0000 (13:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:55:59 +0000 (10:55 -0400)
commit94976e7e5ede65f9dfad669b1ea7170320f08399
tree7837b8a799e782647359e0a63302678d848b5dec
parent56a0a80af043eadb4af86ab426b3c00624acb832
drm/amdgpu/userq: add helpers to start/stop scheduling

This will be used to stop/start user queue scheduling for
example when switching between kernel and user queues when
enforce isolation is enabled.

v2: use idx
v3: only stop compute/gfx queues

Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h