LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-22-2015, 06:17 PM   #1
nskogler
LQ Newbie
 
Registered: Oct 2014
Posts: 4

Rep: Reputation: Disabled
Question Hotplug of PCIe switch devices.


Does anyone know now to hotplug PCIe devices with PCIe switches. By this I mean a PCIe card with a PCIe switch. Having a single upstream port for the host PC, and and multiple downstream ports for Multiple PCIe devices. Here is an example of such a card in the consumer PC space:

https://www.google.com/search?q=asus...ed=0CAcQ_AUoAg

I have tried to hotplug such PCIe devices with kernels from 2.6.34 to 3.19. The earlier kernels panic, the more recent kernels only give one downstream PCIe bus and device. I would like to be able to hotplug and get all of the downstream
buses and devices.

Thanks
 
Old 03-24-2015, 07:34 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Typically it is up to the manufacturer to provide driver support of special devices that do things like port multiplying. That is the case with my SATA port multiplier. It is worth looking up the latest Linux device drivers for your hardware with the vendor. In many cases the vendor provided drivers are binary blobs.
 
Old 03-24-2015, 07:53 PM   #3
nskogler
LQ Newbie
 
Registered: Oct 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
This is fixed, the trick was to renumber the PCIe buses such that when the switch is hot-pluged, there is sufficient bus-number space for the insert. The function pci_scan_bridge() should be updated to allocate bus-numbers is a tunable sparce space when in pcibios_assign_all_busses mode. So there is a kernel incomplete feature here.
 
1 members found this post helpful.
Old 03-24-2015, 08:10 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
You may want to file a bug report with the kernel maintainer that manages that subsystem. This way they can have it on a backlog todo or a contributor could pipe up with a patch.
 
  


Reply

Tags
hotplug, pcie



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lspci enumeration failed through PCIe switch giasis Linux - Hardware 0 02-19-2015 12:44 AM
PCIe Hotplug without BIOS ACPI support, BAR 14: can't assign mem nskogler Linux - Hardware 2 10-03-2014 05:11 PM
PCIe re-enumation in linux driver question (pcie hotplug doesn't work) blavo Programming 5 08-02-2012 02:12 PM
Dell PowerEdge T100 support pcie hotplug? dbrazeau Linux - Hardware 2 01-13-2010 08:02 PM
Are there any PCIe compatable devices apart from graphics cards yet? APB_4 Linux - Hardware 1 03-31-2005 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration