Re: A question about PCI device rescan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014/10/9 18:50, Wei, Aaron wrote:
> Hi,
> 
> Could someone help explain why writing to "rescan" under "/sys/bus/pci/devices/.../rescan" will force a rescan of the device's parent bus instead of just re-discover all the devices behind this device (if the device is type-0, then nothing happens).
> 
> Is there any user space interface that could let user just rescan devices behind one specified type-1 device?

You can use pci_bus rescan which is placed under the pci_bus, i.e.

 \-[0000:00]-+-00.0  Intel Corporation 5520/5500/X58 I/O Hub to ESI Port
             +-01.0-[0000:01-02]--+-00.0  Intel Corporation 82576 Gigabit Network Connection
             |                    \-00.1  Intel Corporation 82576 Gigabit Network Connection

If you want to rescan devices behind 00:01.0(root port),
echo 1 > /sys/bus/pci/devices/0000:00:01.0/pci_bus/0000:01/rescan

Then it will only rescan the subordinate pci bus.


> 
> Thanks,
> Aaron 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


-- 
Thanks!
Yijing

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux