[PATCH v2 2/5] drm/xe: s/ENGINE_STATE_SUSPENDED/EXEC_QUEUE_STATE_SUSPENDED
Ghimiray, Himal Prasad
himal.prasad.ghimiray at intel.com
Thu Apr 25 06:58:11 UTC 2024
> -----Original Message-----
> From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of
> Matthew Brost
> Sent: 25 April 2024 11:25
> To: intel-xe at lists.freedesktop.org
> Cc: Brost, Matthew <matthew.brost at intel.com>
> Subject: [PATCH v2 2/5] drm/xe:
> s/ENGINE_STATE_SUSPENDED/EXEC_QUEUE_STATE_SUSPENDED
>
> Exec queue has replaced engine nomenclature.
>
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_submit.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c
> b/drivers/gpu/drm/xe/xe_guc_submit.c
> index 689093259302..b26f374ca20b 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -56,7 +56,7 @@ exec_queue_to_guc(struct xe_exec_queue *q)
> #define EXEC_QUEUE_STATE_PENDING_ENABLE (1 << 2)
> #define EXEC_QUEUE_STATE_PENDING_DISABLE (1 << 3)
> #define EXEC_QUEUE_STATE_DESTROYED (1 << 4)
> -#define ENGINE_STATE_SUSPENDED (1 << 5)
> +#define EXEC_QUEUE_STATE_SUSPENDED (1 << 5)
> #define EXEC_QUEUE_STATE_RESET (1 << 6)
> #define ENGINE_STATE_KILLED (1 << 7)
>
> @@ -142,17 +142,17 @@ static void set_exec_queue_banned(struct
> xe_exec_queue *q)
>
> static bool exec_queue_suspended(struct xe_exec_queue *q) {
> - return atomic_read(&q->guc->state) & ENGINE_STATE_SUSPENDED;
> + return atomic_read(&q->guc->state) &
> EXEC_QUEUE_STATE_SUSPENDED;
> }
>
> static void set_exec_queue_suspended(struct xe_exec_queue *q) {
> - atomic_or(ENGINE_STATE_SUSPENDED, &q->guc->state);
> + atomic_or(EXEC_QUEUE_STATE_SUSPENDED, &q->guc->state);
> }
>
> static void clear_exec_queue_suspended(struct xe_exec_queue *q) {
> - atomic_and(~ENGINE_STATE_SUSPENDED, &q->guc->state);
> + atomic_and(~EXEC_QUEUE_STATE_SUSPENDED, &q->guc->state);
> }
>
> static bool exec_queue_reset(struct xe_exec_queue *q) @@ -1406,7
> +1406,7 @@ static void guc_exec_queue_stop(struct xe_guc *guc, struct
> xe_exec_queue *q)
> set_exec_queue_suspended(q);
> suspend_fence_signal(q);
> }
> - atomic_and(EXEC_QUEUE_STATE_DESTROYED |
> ENGINE_STATE_SUSPENDED,
> + atomic_and(EXEC_QUEUE_STATE_DESTROYED |
> EXEC_QUEUE_STATE_SUSPENDED,
LGTM
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
> &q->guc->state);
> q->guc->resume_time = 0;
> trace_xe_exec_queue_stop(q);
> --
> 2.34.1
More information about the Intel-xe
mailing list