Re: How to hotplug a PCI device (such as VF) on FreeBSD

From: Ian Lepore <ian_at_freebsd.org>
Date: Mon, 25 Mar 2019 08:05:56 -0600
On Mon, 2019-03-25 at 08:49 +0000, Hongxiong Xian (Wicresoft North
America Ltd) wrote:
> Hi,
> 
> I'm looking for a way to refresh the pci device list.
> In Linux, we can remove a particular pci device, and then after
> preforming a "rescan" the device will appear again.
> For example, disable/rescind PCI (such as VF) :
> echo 1 >  /sys/bus/pci/devices/0001\:00\:02.0/remove
> # Get the device back
> echo 1 > /sys/bus/pci/rescan
> 
> I'm looking for a similar way in FreeBSD. Does the FreeBSD support
> the hotplug of a PCI device?  Thanks in advance!
> 
> 

I think 'devctl rescan' will do that, 'man devctl' for details.

-- Ian
Received on Mon Mar 25 2019 - 13:06:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC