summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorPeng Ju Zhou <PengJu.Zhou@amd.com>2021-03-29 15:47:20 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-04-09 16:50:09 -0400
commit77eabc6f5975dafeb76f7c7c2451282b91e9f5b6 (patch)
tree1d006da0d5195c764037753dee5882216947b9ee /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent8b8a162da820d48bb94261ae4684f2c839ce148c (diff)
downloadlinux-stable-77eabc6f5975dafeb76f7c7c2451282b91e9f5b6.tar.gz
linux-stable-77eabc6f5975dafeb76f7c7c2451282b91e9f5b6.tar.bz2
linux-stable-77eabc6f5975dafeb76f7c7c2451282b91e9f5b6.zip
drm/amdgpu: indirect register access for nv12 sriov
get pf2vf msg info at it's earliest time so that guest driver can use these info to decide whether register indirect access enabled. Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com> Reviewed-by: Emily.Deng <Emily.Deng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index a501d1a4d000..060d0ae99453 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2080,6 +2080,11 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
amdgpu_vf_error_put(adev, AMDGIM_ERROR_VF_ATOMBIOS_INIT_FAIL, 0, 0);
return r;
}
+
+ /*get pf2vf msg info at it's earliest time*/
+ if (amdgpu_sriov_vf(adev))
+ amdgpu_virt_init_data_exchange(adev);
+
}
}