Skip to contentSkip to conversation

ixgbe: fix vfio ioctl SET_IRQS error

PATCH In review Cunming Liang 4 participants 6 messages Nov 13, 2015 – Nov 24, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ixgbe: fix vfio ioctl SET_IRQS error

The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.

Fixes 7ab8500037f6 ("ixgbe: fix VF start with PF stopped")
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +3 -0
index 19ddb52..c2be264 100644
@@ -1976,6 +1976,9 @@ ixgbe_dev_start(struct rte_eth_dev *dev)
 		return -EINVAL;
 	}
 
+	/* disable uio/vfio intr/eventfd mapping */
+	rte_intr_disable(intr_handle);
+
 	/* stop adapter */
 	hw->adapter_stopped = 0;
 	ixgbe_stop_adapter(hw);
Signature · 1 line
2.4.3
#1 lore raw

PATCH 2/2 igb: fix vfio ioctl SET_IRQS error

The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.

Fixes fe685de2b1b6 ("igb: fix VF start with PF stopped")
---
 drivers/net/e1000/igb_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/e1000/igb_ethdev.c +3 -0
index 4bf4e52..c61ceab 100644
@@ -1092,6 +1092,9 @@ eth_igb_start(struct rte_eth_dev *dev)
 
 	PMD_INIT_FUNC_TRACE();
 
+	/* disable uio/vfio intr/eventfd mapping */
+	rte_intr_disable(intr_handle);
+
 	/* Power up the phy. Needed to make the link go Up */
 	e1000_power_up_phy(hw);
 
Signature · 1 line
2.4.3
Tested-by on v1 1/2
#4 lore raw
In reply to Cunming Liang
Quoted 36 lines

-----Original Message-----
From: Liang, Cunming
Sent: Friday, November 13, 2015 10:50 AM
To: [email protected]
Cc: Liu, Yong; Liang, Cunming
Subject: [PATCH 1/2] ixgbe: fix vfio ioctl SET_IRQS error

The vector number may change during 'dev_start'. Before enabling a new vector mapping,
it's necessary to disable/unmap the previous setting.

Fixes 7ab8500037f6 ("ixgbe: fix VF start with PF stopped")
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +3 -1
index 19ddb52..c2be264 100644
@@ -1976,6 +1976,9 @@ ixgbe_dev_start(struct rte_eth_dev *dev)
 		return -EINVAL;
 	}
 
+	/* disable uio/vfio intr/eventfd mapping */
+	rte_intr_disable(intr_handle);
+
 	/* stop adapter */
 	hw->adapter_stopped = 0;
 	ixgbe_stop_adapter(hw);
--

2.4.3

Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error

In reply to Cunming Liang

Hi,

Quoted 6 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Cunming Liang
Sent: Friday, November 13, 2015 10:50 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error

Quoted 7 lines

The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.

Fixes fe685de2b1b6 ("igb: fix VF start with PF stopped")
Acked-by
#5 lore raw
In reply to Liu, Yong

Hi,

Quoted 6 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Liu, Yong
Sent: Friday, November 13, 2015 2:08 PM
To: Liang, Cunming <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH 1/2] ixgbe: fix vfio ioctl SET_IRQS error

Quoted 16 lines
Quoted 14 lines

-----Original Message-----
From: Liang, Cunming
Sent: Friday, November 13, 2015 10:50 AM
To: [email protected]
Cc: Liu, Yong; Liang, Cunming
Subject: [PATCH 1/2] ixgbe: fix vfio ioctl SET_IRQS error

The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.

Fixes 7ab8500037f6 ("ixgbe: fix VF start with PF stopped")
#3 lore raw

Re: [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error

In reply to Lu, Wenzhuo
Quoted 8 lines
Quoted 7 lines

The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.

Fixes fe685de2b1b6 ("igb: fix VF start with PF stopped")

Series applied, thanks