Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a way to disable PCI devices before a driver attaches to

194 views
Skip to first unread message

Eric Joyner

unread,
Jun 19, 2018, 1:41:02 PM6/19/18
to
^ See subject ^

The only method I know of atm is to load vmm via loader.conf and use the
pptdev variable to make the devices that I want to disable just "ppt"
devices.

- Eric
_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Polytropon

unread,
Jun 19, 2018, 2:04:19 PM6/19/18
to
On Tue, 19 Jun 2018 10:36:43 -0700, Eric Joyner wrote:
> ^ See subject ^
>
> The only method I know of atm is to load vmm via loader.conf and use the
> pptdev variable to make the devices that I want to disable just "ppt"
> devices.

Maybe you can use /boot/device.hints to disable the device
you don't want a driver to attach to? Example:

hint.ppt.0.disable="YES"

You should also be able to add such a statement to /boot/loader.conf
because device.hints might get replaced during updates (and it
is a system-provided file, while loader.conf usually is a
user-spplued file),

See "man device.hints", or:

https://www.freebsd.org/doc/handbook/device-hints.html

https://forums.freebsd.org/threads/disable-driver.14402/


--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Polytropon

unread,
Jun 19, 2018, 2:36:43 PM6/19/18
to
On Tue, 19 Jun 2018 20:00:54 +0200, Polytropon wrote:
> On Tue, 19 Jun 2018 10:36:43 -0700, Eric Joyner wrote:
> > ^ See subject ^
> >
> > The only method I know of atm is to load vmm via loader.conf and use the
> > pptdev variable to make the devices that I want to disable just "ppt"
> > devices.
>
> Maybe you can use /boot/device.hints to disable the device
> you don't want a driver to attach to? Example:
>
> hint.ppt.0.disable="YES"

Which is of course wrong. The correct notation is:

hint.ppt.0.disable="1"

The manpage contains a similar example. :-)
0 new messages