drm/amdgpu: disable gpu-sched load balance for uvd
authorNirmoy Das <nirmoy.das@amd.com>
Sat, 29 Aug 2020 04:51:41 +0000 (06:51 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2020 18:46:54 +0000 (14:46 -0400)
commitbc21585f3ff050f3fc7faaefc5e5c0541cec7aae
tree10c8ea1f2772d64300db8964929fbb79cddd2a37
parent5dc1a0bcb758c343b873e8330ee986417f5a1727
drm/amdgpu: disable gpu-sched load balance for uvd

On hardware with multiple uvd instances, dependent uvd jobs
may get scheduled to different uvd instances. Because uvd_enc
jobs retain hw context, dependent jobs should always run on the
same uvd instance. This patch disables GPU scheduler's load balancer
for a context that binds jobs from the same context to a uvd
instance.

v2: Squash in uvd_enc fix

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c