aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index ddb50c48cb06..05087eda0b71 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -768,6 +768,10 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
768 u16 cmd; 768 u16 cmd;
769 int r; 769 int r;
770 770
771 /* Bypass for VF */
772 if (amdgpu_sriov_vf(adev))
773 return 0;
774
771 /* Disable memory decoding while we change the BAR addresses and size */ 775 /* Disable memory decoding while we change the BAR addresses and size */
772 pci_read_config_word(adev->pdev, PCI_COMMAND, &cmd); 776 pci_read_config_word(adev->pdev, PCI_COMMAND, &cmd);
773 pci_write_config_word(adev->pdev, PCI_COMMAND, 777 pci_write_config_word(adev->pdev, PCI_COMMAND,