Ubuntu 16.10 KVM SRIOV: if enable sriov while ping flood is running ping will stop working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Tim Gardner | ||
Yakkety |
Fix Released
|
Undecided
|
Tim Gardner | ||
Zesty |
Fix Released
|
High
|
Unassigned |
Bug Description
---Problem Description---
If I enable SRIOV in a Mellanox CX4 card while a PF interface is doing something like a ping flood. The PF interface will stop pinging.
We found a small window were MMIO are bein g disabled during pci_enable_sriov is called.
---uname output---
4.4.0-30-generic
---Additional Hardware Info---
It needs a Mellanox CX4 SRIOV capable to recreate this issue
Machine Type = P8
---Steps to Reproduce---
just configure the IP address of PF interface and start like a ping flood to that interface.
then do this echo to enable SRIOV on the PF.
echo 8 > /sys/class/
Then you will notice the ping flood will stop.
A patch that will fix this issue was sent for review:
https:/
tags: | added: architecture-ppc64le bugnameltc-146479 severity-high targetmilestone-inin1610 |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
assignee: | Taco Screen team (taco-screen-team) → Canonical Kernel Team (canonical-kernel-team) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Yakkety): | |
status: | In Progress → Fix Committed |
------- Comment From <email address hidden> 2017-01-13 11:51 EDT-------
Thanks Gavin for working in this set of patches.
Here are the upstream commits for this issue: f6266c56a7f7992 de61b255ed Mon Sep 17 00:00:00 2001
From f40ec3c748c6912
From: Gavin Shan <email address hidden>
Date: Wed, 26 Oct 2016 12:15:35 +1100
Subject: PCI: Do any VF BAR updates before enabling the BARs
From 63880b230a4af50 2c56dde3d458863 4c70c66006 Mon Sep 17 00:00:00 2001
From: Bjorn Helgaas <email address hidden>
Date: Mon, 28 Nov 2016 11:19:27 -0600
Subject: PCI: Ignore BAR updates on virtual functions
From 45d004f4afefdd8 d79916ee6d97a9e cd94bb1ffe Mon Sep 17 00:00:00 2001
From: Bjorn Helgaas <email address hidden>
Date: Tue, 29 Nov 2016 08:14:47 -0600
Subject: PCI: Update BARs using property bits appropriate for type
From 6ffa2489c51da77 564a0881a73765e a2169f955d Mon Sep 17 00:00:00 2001
From: Bjorn Helgaas <email address hidden>
Date: Mon, 28 Nov 2016 09:15:52 -0600
Subject: PCI: Separate VF BAR updates from standard BAR updates
From 546ba9f8f22f71b 0202b6ba8967be5 cc6dae4e21 Mon Sep 17 00:00:00 2001
From: Bjorn Helgaas <email address hidden>
Date: Mon, 28 Nov 2016 16:43:06 -0600
Subject: PCI: Don't update VF BARs while VF memory space is enabled
From 286c2378aaccc73 43ebf17ec6cd865 67659caf70 Mon Sep 17 00:00:00 2001 resource_ bar()
From: Bjorn Helgaas <email address hidden>
Date: Mon, 28 Nov 2016 16:51:19 -0600
Subject: PCI: Remove pci_resource_bar() and pci_iov_
From 7a6d312b50e63f5 98f5b5914c4fd21 878ac2b595 Mon Sep 17 00:00:00 2001 ROM_ENABLE and PCI_ROM_ ADDRESS_ ENABLE
From: Bjorn Helgaas <email address hidden>
Date: Mon, 28 Nov 2016 17:21:02 -0600
Subject: PCI: Decouple IORESOURCE_
From 0b457dde3cf8b7c 76a60f8e960f21b bd4abdc416 Mon Sep 17 00:00:00 2001
From: Bjorn Helgaas <email address hidden>
Date: Mon, 28 Nov 2016 16:17:41 -0600
Subject: PCI: Add comments about ROM BAR updating