Skip to content

Commit eab0261

Browse files
author
Luben Tuikov
committed
drm/amdgpu: Unset context priority is now invalid
A context priority value of AMD_CTX_PRIORITY_UNSET is now invalid--instead of carrying it around and passing it to the Direct Rendering Manager--and it becomes AMD_CTX_PRIORITY_NORMAL in amdgpu_ctx_ioctl(), the gateway to context creation. Cc: Alex Deucher <[email protected]> Cc: Christian König <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Acked-by: Alex Deucher <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 88630e9 commit eab0261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ const unsigned int amdgpu_ctx_num_entities[AMDGPU_HW_IP_NUM] = {
4747
bool amdgpu_ctx_priority_is_valid(int32_t ctx_prio)
4848
{
4949
switch (ctx_prio) {
50-
case AMDGPU_CTX_PRIORITY_UNSET:
5150
case AMDGPU_CTX_PRIORITY_VERY_LOW:
5251
case AMDGPU_CTX_PRIORITY_LOW:
5352
case AMDGPU_CTX_PRIORITY_NORMAL:
5453
case AMDGPU_CTX_PRIORITY_HIGH:
5554
case AMDGPU_CTX_PRIORITY_VERY_HIGH:
5655
return true;
5756
default:
57+
case AMDGPU_CTX_PRIORITY_UNSET:
5858
return false;
5959
}
6060
}

0 commit comments

Comments
 (0)