Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdff8cfa authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher
Browse files

drm/amdgpu: vBIOS post only call when mem_size zero

parent 505dfe76
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1518,8 +1518,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,
		amdgpu_atombios_has_gpu_virtualization_table(adev);

	/* Post card if necessary */
	if (!amdgpu_card_posted(adev) ||
	    adev->virtualization.supports_sr_iov) {
	if (!amdgpu_card_posted(adev)) {
		if (!adev->bios) {
			dev_err(adev->dev, "Card not posted and no BIOS - ignoring\n");
			return -EINVAL;