]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: detach ring priority from gfx priority
authorNirmoy Das <nirmoy.das@amd.com>
Wed, 25 Aug 2021 15:11:31 +0000 (17:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Sep 2021 20:55:11 +0000 (16:55 -0400)
commitab24ef0060890669c225c21b1d68938ecc98cbe3
treec3a250c6817ef7eca6f37ea5b703ccdaa638fd8d
parentf634d9b901d8016f3861e5046377062fd1495d98
drm/amdgpu: detach ring priority from gfx priority

Currently AMDGPU_RING_PRIO_MAX is redefinition of a
max gfx hwip priority, this won't work well when we will
have a hwip with different set of priorities than gfx.
Also, HW ring priorities are different from ring priorities.

Create a global enum for ring priority levels which each
HWIP can use to define its own priority levels.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h