aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-02-01 11:23:15 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-02-10 14:17:11 -0500
commit8cce244cf67cb4c7a4ac9ee71af07d746442da3b (patch)
treea05dcee678ff0a325a748159ba8a0a44ffbb5f19 /drivers/gpu/drm/amd
parent7e471e6fbab8a50bb2f5ea5db419b9499f603206 (diff)
drm/amdgpu: always repost cards that support SR-IOV
Generally a good idea between VM sessions. We need a way to detect VM pass-through in general and always run asic_init in that case. Reviewed-by: Monk Liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 00f3a16333cc..f0fb938457d9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1505,7 +1505,8 @@ int amdgpu_device_init(struct amdgpu_device *adev,
1505 amdgpu_atombios_has_gpu_virtualization_table(adev); 1505 amdgpu_atombios_has_gpu_virtualization_table(adev);
1506 1506
1507 /* Post card if necessary */ 1507 /* Post card if necessary */
1508 if (!amdgpu_card_posted(adev)) { 1508 if (!amdgpu_card_posted(adev) ||
1509 adev->virtualization.supports_sr_iov) {
1509 if (!adev->bios) { 1510 if (!adev->bios) {
1510 dev_err(adev->dev, "Card not posted and no BIOS - ignoring\n"); 1511 dev_err(adev->dev, "Card not posted and no BIOS - ignoring\n");
1511 return -EINVAL; 1512 return -EINVAL;