LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-17-2010, 04:00 PM   #1
blavo
LQ Newbie
 
Registered: Jun 2004
Distribution: Suse 10
Posts: 22

Rep: Reputation: 0
PCIe re-enumation in linux driver question (pcie hotplug doesn't work)


I'm working on a system where a PCIe endpoint comes on-line after my Linux OS is up and running. I'm finding that the device is not recognized even though I have PCIe hotplug enabled in the "make menuconfig" option.

I'm trying to figure out how to re-enumerate the PCIe bus to get it find and initialize the endpoint.

I've been doing some websearching, but I haven't found anything useful.

Any help is greatly appreciated.

Thanks
 
Old 03-17-2010, 04:05 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by blavo View Post
I'm working on a system where a PCIe endpoint comes on-line after my Linux OS is up and running. I'm finding that the device is not recognized even though I have PCIe hotplug enabled in the "make menuconfig" option.

I'm trying to figure out how to re-enumerate the PCIe bus to get it find and initialize the endpoint.

I've been doing some websearching, but I haven't found anything useful.

Any help is greatly appreciated.

Thanks
Well, any modern Linux distro (say, "my" SUSE) has a way to rescan hardware - in SUSE it can be done from control center. So, had I faced this problem, I would have started from looking into the code of this HW rescan feature.

...

Have you tried starting from here: http://wiki.linuxquestions.org/wiki/Discover ?
 
Old 03-17-2010, 08:05 PM   #3
blavo
LQ Newbie
 
Registered: Jun 2004
Distribution: Suse 10
Posts: 22

Original Poster
Rep: Reputation: 0
I'll look into this feature to see if I can locate the code that drives it.

Thanks
 
Old 03-17-2010, 08:22 PM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by blavo View Post
I'll look into this feature to see if I can locate the code that drives it.

Thanks
By the way, the latest PCIE standard is about 700 pages long .
 
Old 11-22-2011, 06:00 AM   #5
anand_dk1
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Solution ?

Quote:
Originally Posted by blavo View Post
I'll look into this feature to see if I can locate the code that drives it.

Thanks
Hi Guys,
Did you work out, how to get the driver to know about availability of new endpoint on the PCIe slots ?

Thanks
Anand
 
Old 08-02-2012, 02:12 PM   #6
physkael
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
PCI / PCIe bus rescan in Linux

I'm developing a PCIe card and just recently stumbled on this problem. I looked in the kernel documentation on the /sys filesystem and discovered that typing
echo 1 > /sys/bus/pci/rescan
will force a PCI bus rescan. By the way one can also enable a PCI / PCIe device from userspace by typing
echo 1 > /sys/bus/pci/devices/xxxx:yy.zz/enable
which appears to have the same effect as the pci_enable function you might use in a PCI device driver.
 
  


Reply

Tags
driver, hotplug, linux, pcie


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dell PowerEdge T100 support pcie hotplug? dbrazeau Linux - Hardware 2 01-13-2010 08:02 PM
Designing a PCIe driver... slkjas Linux - Embedded & Single-board computer 1 11-05-2008 09:38 PM
What is the Linux difference between PCIE and PCI device driver? jbreaka4lyfe Linux - General 0 06-04-2008 02:54 PM
Looking for ABIT Radeon XT600 PCIe Driver for Linux 9.3 or 10.0 haeusermannanna Linux - Newbie 4 01-01-2006 06:09 PM
Will nVidia 6600 128mb PCIE work with Linux? eBopBob Linux - Hardware 2 12-11-2004 11:28 AM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration