drm/amdgpu: load balance VCN3 decode as well v8
authorChristian König <christian.koenig@amd.com>
Wed, 10 Feb 2021 12:55:13 +0000 (13:55 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:45:07 +0000 (16:45 -0400)
commit87cc7f9ebf7ce10f82250002d667ef3e93a79d44
tree7c9dc5de584ee980b3691d5d49e653bf27e704ef
parentc62dfdbbf7109592d6aa6fc59fb954dba12743d7
drm/amdgpu: load balance VCN3 decode as well v8

Add VCN3 IB parsing to figure out to which instance we can send the
stream for decode.

v2: remove VCN instance limit as well, fix amdgpu_cs_find_mapping,
    check supported formats instead of unsupported.
v3: fix typo and error handling
v4: make sure the message BO is CPU accessible
v5: fix addr calculation once more
v6: only check message buffers
v7: fix constant and use defines
v8: fix create msg calculation

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c