drm/amdgpu: move reg base init forward for soc15
authorWenhui Sheng <Wenhui.Sheng@amd.com>
Tue, 23 Jun 2020 05:42:58 +0000 (13:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:50 +0000 (12:02 -0400)
commitd95f09acad3f69f968b26fc973f224e2a66872ca
treea8f4922d068eb4b2e3009f6fe504006616fca031
parentc1299461b7d68eed457478ddf3e93bbd89e5c3ca
drm/amdgpu: move reg base init forward for soc15

Init soc15 reg base early enough so we can touch
mailbox related registers in request full access
for sriov before set_ip_blocks, vi&nv arch doesn't
use reg base in virt ops.

v2: fix reg_base_init missed in bare metal case.

Signed-off-by: Wenhui Sheng <Wenhui.Sheng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c