Public bug reported:

== Comment: #26 - Guilherme Guaglianoni Piccoli <[email protected]> - 
2016-07-15 16:26:38 ==
When performing hotplug operations in PowerPC currently, if we remove a PHB and 
re-add it later, its domain address is incremented. An example below (drmgr is 
the tool we use in PowerPC to perform this operation):


(i) $>  lspci
0000:60:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810 10 
Gigabit Ethernet
0000:60:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810 10 
Gigabit Ethernet

(ii) $>  drmgr -c phb -s "PHB 20" -r  # removing a PHB

(iii) $>  lspci #empty

(iv) $>  drmgr -c phb -s "PHB 20" -a  # re-adding the PHB

(v) $>  lspci
0001:60:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810 10 
Gigabit Ethernet
0001:60:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810 10 
Gigabit Ethernet


This behavior is harmful when kernel is using network predictable naming for 
interfaces, for example, since after the PHB re-add, the PCI address of NIC 
functions changes, and so the interfaces' naming also change. Recently, a patch 
was merged to powerpc-next to avoid this situation, by relating the PCI domain 
number with device-tree properties. With the patch, the above steps (i) and (v) 
present the same output for lspci.

We want to ask Canonical to merge the patch in Ubuntu Xenial's kernel,
since it will solve multiple bugs we've experienced by performing NIC
hotplug - the commit is present on powerpc-next under the commit-id
63a72284b15.

A link to the patch:
https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?id=63a72284b159c569ec52f380c9

Thanks in advance,


Guilherme

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Taco Screen team (taco-screen-team)
         Status: New


** Tags: architecture-ppc64le bugnameltc-136437 severity-high 
targetmilestone-inin16041

** Tags added: architecture-ppc64le bugnameltc-136437 severity-high
targetmilestone-inin16041

** Changed in: ubuntu
     Assignee: (unassigned) => Taco Screen team (taco-screen-team)

** Package changed: ubuntu => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1603574

Title:
  Hotplug remove and re-add adds PCI adapter to next PCI domain (PCI)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1603574/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to