drm/amdgpu: implement VCE two instances support
authorLeo Liu <leo.liu@amd.com>
Wed, 6 May 2015 19:20:41 +0000 (15:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:48 +0000 (21:03 -0400)
commit5bbc553a1acce5d1792ba778273ffbea5af1695d
tree2c323fd79a49fe9ad2dfdb304b7b22ddccfd5120
parente982262214674ce4d4a24ec6088134f4c641930a
drm/amdgpu: implement VCE two instances support

VCE 3.0 has two indentical instances in the engine, they share
the same registers name in differrent memory block distinguished
by the grbm_gfx_index, we set to master instance after init, it
will dispatch task to slave instance. These two instances will
share the same firmware, but have their own stacks and heaps.

v2: add mutex for using grbm_gfx_index

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c