diff options
author | Andi Shyti <andi.shyti@linux.intel.com> | 2024-06-14 00:24:02 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@linux.intel.com> | 2024-06-15 13:58:18 +0200 |
commit | ae45f07cade1a5853ff6fd745bbd86a64cc82643 (patch) | |
tree | c527274de3faf3a667e0e6f53e2b8b6cde6366e3 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 45ebbbbeaa33da4a6dbc532ebc57d20de4b60a82 (diff) |
drm/i915/gt/uc: Evaluate GuC priority within locks
The ce->guc_state.lock was made to protect guc_prio, which
indicates the GuC priority level.
But at the begnning of the function we perform some sanity check
of guc_prio outside its protected section. Move them within the
locked region.
Use this occasion to expand the if statement to make it clearer.
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240613222402.551625-2-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions