diff mbox series

ixgbevf: Link lost in VM on ixgbevf when restoring from freeze or suspend

Message ID 20190704134842.7900-1-radoslawx.tyl@intel.com
State Accepted
Delegated to: Jeff Kirsher
Headers show
Series ixgbevf: Link lost in VM on ixgbevf when restoring from freeze or suspend | expand

Commit Message

Radoslaw Tyl July 4, 2019, 1:48 p.m. UTC
This patch fixed issue in VM which shows no link when hypervisor is
restored from low-power state. The driver is responsible for reenabling
any features of the device that had been disabled during suspend calls,
such as IRQs and bus mastering.

Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Bowers, AndrewX July 12, 2019, 5:44 p.m. UTC | #1
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On
> Behalf Of Radoslaw Tyl
> Sent: Thursday, July 4, 2019 6:49 AM
> To: intel-wired-lan@lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] ixgbevf: Link lost in VM on ixgbevf when
> restoring from freeze or suspend
> 
> This patch fixed issue in VM which shows no link when hypervisor is restored
> from low-power state. The driver is responsible for reenabling any features
> of the device that had been disabled during suspend calls, such as IRQs and
> bus mastering.
> 
> Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
> ---
>  drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 +
>  1 file changed, 1 insertion(+)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
diff mbox series

Patch

diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index d189ed247665..e1b7fa9c39d6 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -2514,6 +2514,7 @@  void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter)
 		msleep(1);
 
 	ixgbevf_down(adapter);
+	pci_set_master(adapter->pdev);
 	ixgbevf_up(adapter);
 
 	clear_bit(__IXGBEVF_RESETTING, &adapter->state);