Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Monk Liu and committed by
Alex Deucher
fdff8cfa 505dfe76

+1 -2
+1 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 1518 1518 amdgpu_atombios_has_gpu_virtualization_table(adev); 1519 1519 1520 1520 /* Post card if necessary */ 1521 - if (!amdgpu_card_posted(adev) || 1522 - adev->virtualization.supports_sr_iov) { 1521 + if (!amdgpu_card_posted(adev)) { 1523 1522 if (!adev->bios) { 1524 1523 dev_err(adev->dev, "Card not posted and no BIOS - ignoring\n"); 1525 1524 return -EINVAL;