drm/amdgpu/vcn: set and use harvest config
authorJane Jian <Jane.Jian@amd.com>
Wed, 15 Feb 2023 08:48:47 +0000 (16:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Feb 2023 22:35:58 +0000 (17:35 -0500)
commit6dcb38a19efaa71c95c017652177cecb5be4191d
tree299c19ad5516dc1fceb111faeff4c7f812660013
parentca47518663973083c513cd6b2801dcda0bfaaa99
drm/amdgpu/vcn: set and use harvest config

in early init to set harvest config if the vcn0/1 is disabled
rather than hard-code the ring attributes as before did

Signed-off-by: Jane Jian <Jane.Jian@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c