]> Git Repo - linux.git/commitdiff
drm/amdgpu: bypass FB resizing for SRIOV VF
authorpding <[email protected]>
Tue, 7 Nov 2017 03:02:00 +0000 (11:02 +0800)
committerAlex Deucher <[email protected]>
Mon, 4 Dec 2017 21:41:45 +0000 (16:41 -0500)
It introduces 900ms latency in exclusive mode which causes failure
of driver loading. Host can resize the BAR before guest staring,
so the resizing is not necessary here.

Signed-off-by: Pixel Ding <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index ddb50c48cb063b23a2d156a627f2100ca7c2e51e..05087eda0b712198faf84fc4e6e03f5e2ebed7b8 100644 (file)
@@ -768,6 +768,10 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
        u16 cmd;
        int r;
 
+       /* Bypass for VF */
+       if (amdgpu_sriov_vf(adev))
+               return 0;
+
        /* Disable memory decoding while we change the BAR addresses and size */
        pci_read_config_word(adev->pdev, PCI_COMMAND, &cmd);
        pci_write_config_word(adev->pdev, PCI_COMMAND,
This page took 0.061938 seconds and 4 git commands to generate.