]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix incorrect enum type
authorGrigory Vasilyev <h0tc0d3@gmail.com>
Fri, 8 Apr 2022 07:58:17 +0000 (10:58 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Apr 2022 17:50:35 +0000 (13:50 -0400)
commit2f18a2340b1998326b2f45c0d047acef813a91af
treee063a7baa0d8ec8ef5ce190522ac25c77e3df8f1
parent5ab5d8a417fa4837a62ed33ec086f72421723f96
drm/amdgpu: Fix incorrect enum type

Instead of the 'amdgpu_ring_priority_level' type,
the 'amdgpu_gfx_pipe_priority' type was used,
which is an error when setting ring priority.
This is a minor error, but may cause problems in the future.

Instead of AMDGPU_RING_PRIO_2 = 2, we can use AMDGPU_RING_PRIO_MAX = 3,
but AMDGPU_RING_PRIO_2 = 2 is used for compatibility with
AMDGPU_GFX_PIPE_PRIO_HIGH = 2, and not change the behavior of the
code.

Signed-off-by: Grigory Vasilyev <h0tc0d3@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c