drm/amd/sriov porting sriov cap to vcn3.0
authorJack Zhang <Jack.Zhang1@amd.com>
Mon, 29 Jun 2020 02:01:21 +0000 (10:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2020 16:45:11 +0000 (12:45 -0400)
commit1f61a43fcec1dceac2ec537a63aba6846dd0e80a
treec435716345d02eb74fb2e8a76b66e40373b3300f
parent7ddb4d6c438894d1ed9bf3e4528889cdd0cdc22d
drm/amd/sriov porting sriov cap to vcn3.0

1.In early_init and for sriov, hardcode
  harvest_config=0, enc_num=1

2.sw_init/fini
  alloc & free mm_table for sriov
  doorbell setting for sriov

3.hw_init/fini
  Under sriov, add start_sriov to config mmsch
  Skip ring_test to avoid mmio in VF, but need to initialize wptr for vcn rings.

4.Implementation for vcn_v3_0_start_sriov

V2:Clean-up some uneccessary funciton declaration.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c