]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: allocate entities on demand
authorNirmoy Das <nirmoy.das@amd.com>
Tue, 21 Jan 2020 14:53:53 +0000 (15:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jan 2020 22:15:42 +0000 (17:15 -0500)
commit16da255432db5a9611f17a3e6c2fc5a7f03473d1
tree8757fc2776958d486614e857d71e9c31b88a2e6f
parentddd198e32f190e0b5f1a44dd83a8978c81311626
drm/amdgpu: allocate entities on demand

Currently we pre-allocate entities and fences for all the HW IPs on
context creation and some of which are might never be used.

This patch tries to resolve entity/fences wastage by creating entity
only when needed.

v2: allocate memory for entity and fences together

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@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