drm/amdgpu: switch from queue_active to queue state
authorAlex Deucher <alexander.deucher@amd.com>
Sat, 12 Apr 2025 16:59:38 +0000 (12:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Apr 2025 12:51:45 +0000 (08:51 -0400)
commite67b95f0cd5e8dd57a9df5d5d15da6ba7847808a
treefc2508f74b1f3ce0f042195cd4ef877915dee733
parentba324ffb25999e14b8488d085ae9916d6f4a6bcf
drm/amdgpu: switch from queue_active to queue state

Track the state of the queue rather than simple active vs
not.  This is needed for other states (hung, preempted, etc.).
While we are at it, move the state tracking into the user
queue front end code.

Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c