diff options
author | Monk Liu <Monk.Liu@amd.com> | 2016-05-24 01:23:46 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-06-09 10:49:00 -0400 |
commit | fdff8cfa72b3e42d4d0c70684fa18b1dfee46d97 (patch) | |
tree | 8dfb9f8da9ee00a75768fb80d302bb2e23a21a83 /drivers/gpu/drm/amd/amdgpu | |
parent | 505dfe76cd3203bb2dcf13d862f46b7f0e95869a (diff) |
drm/amdgpu: vBIOS post only call when mem_size zero
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 1996670b6751..1727a4d998a4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1518,8 +1518,7 @@ int amdgpu_device_init(struct amdgpu_device *adev, | |||
1518 | amdgpu_atombios_has_gpu_virtualization_table(adev); | 1518 | amdgpu_atombios_has_gpu_virtualization_table(adev); |
1519 | 1519 | ||
1520 | /* Post card if necessary */ | 1520 | /* Post card if necessary */ |
1521 | if (!amdgpu_card_posted(adev) || | 1521 | if (!amdgpu_card_posted(adev)) { |
1522 | adev->virtualization.supports_sr_iov) { | ||
1523 | if (!adev->bios) { | 1522 | if (!adev->bios) { |
1524 | dev_err(adev->dev, "Card not posted and no BIOS - ignoring\n"); | 1523 | dev_err(adev->dev, "Card not posted and no BIOS - ignoring\n"); |
1525 | return -EINVAL; | 1524 | return -EINVAL; |