From: jsg Date: Thu, 9 Nov 2023 08:10:19 +0000 (+0000) Subject: drm/amdgpu: Unset context priority is now invalid X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=84a6fc664f0b8ce045108e666757aac289a139a7;p=openbsd drm/amdgpu: Unset context priority is now invalid From Luben Tuikov cafa191b27dd3c6199529f36a6dfddb707c240c0 in linux-6.1.y/6.1.62 eab0261967aeab528db4d0a51806df8209aec179 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c index 8cf3e2451c4..252047c3ace 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c @@ -47,7 +47,6 @@ const unsigned int amdgpu_ctx_num_entities[AMDGPU_HW_IP_NUM] = { bool amdgpu_ctx_priority_is_valid(int32_t ctx_prio) { switch (ctx_prio) { - case AMDGPU_CTX_PRIORITY_UNSET: case AMDGPU_CTX_PRIORITY_VERY_LOW: case AMDGPU_CTX_PRIORITY_LOW: case AMDGPU_CTX_PRIORITY_NORMAL: @@ -55,6 +54,7 @@ bool amdgpu_ctx_priority_is_valid(int32_t ctx_prio) case AMDGPU_CTX_PRIORITY_VERY_HIGH: return true; default: + case AMDGPU_CTX_PRIORITY_UNSET: return false; } }