OSDN Git Service

drm/amdgpu: rework ctx entity creation
authorChristian König <christian.koenig@amd.com>
Wed, 1 Aug 2018 14:00:52 +0000 (16:00 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:11 +0000 (11:11 -0500)
commit1b1f2fecb699bb4ccc3cb2fafe92950e9bdb39de
tree076c814bb4d51ba7bd3283a95cddbe10ac112352
parenta245daf3d7a143fb2df16485ad200aa3298eac8c
drm/amdgpu: rework ctx entity creation

Use a fixed number of entities for each hardware IP.

The number of compute entities is reduced to four, SDMA keeps it two
entities and all other engines just expose one entity.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@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_ctx.h
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c