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

2019-03-25 Thread John Baldwin
On 3/25/19 7:05 AM, Ian Lepore wrote: > On Mon, 2019-03-25 at 08:49 +, 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

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

2019-03-25 Thread Ian Lepore
On Mon, 2019-03-25 at 08:49 +, 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,

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

2019-03-25 Thread Hongxiong Xian (Wicresoft North America Ltd)
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