drm/amdgpu: invoke req full access early enough
authorWenhui Sheng <Wenhui.Sheng@amd.com>
Tue, 23 Jun 2020 05:43:49 +0000 (13:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:51 +0000 (12:02 -0400)
commit00a979f3d69e0c275e88c741b854dbe0d5238ae0
tree39385bf1404970a91e3fa5d12ce927fda10538c9
parentd95f09acad3f69f968b26fc973f224e2a66872ca
drm/amdgpu: invoke req full access early enough

From SIENNA_CICHLID, HW introduce a new protection
feature which can control the FB, doorbell and MMIO
write access for VF, so guest driver should request
full access before ip discovery, or we couldn't access
ip discovery data in FB.

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/amdgpu_device.c