|
@@ -768,6 +768,10 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
|
|
u16 cmd;
|
|
u16 cmd;
|
|
int r;
|
|
int r;
|
|
|
|
|
|
|
|
+ /* Bypass for VF */
|
|
|
|
+ if (amdgpu_sriov_vf(adev))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
/* Disable memory decoding while we change the BAR addresses and size */
|
|
/* Disable memory decoding while we change the BAR addresses and size */
|
|
pci_read_config_word(adev->pdev, PCI_COMMAND, &cmd);
|
|
pci_read_config_word(adev->pdev, PCI_COMMAND, &cmd);
|
|
pci_write_config_word(adev->pdev, PCI_COMMAND,
|
|
pci_write_config_word(adev->pdev, PCI_COMMAND,
|