Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Feb 2021 06:43:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253287] /etc/rc.d/devmatch should REQUIRE kld
Message-ID:  <bug-253287-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253287

            Bug ID: 253287
           Summary: /etc/rc.d/devmatch should REQUIRE kld
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: freebsd@oldach.net

In some configurations it is necessary to manually load a driver to make ot=
her
devices visible, which then in turn can be detected by devmatch. For example
(amd64 stable/13-n244484-154207a59bd VM under Virtualbox, MINIMAL kernel pl=
us
kld_list=3D"virtio_pci snd_ich aesni fusefs"):

Enter full pathname of shell or RETURN for /bin/sh:
root@ / # service devmatch start
Autoloading module: intpm.ko
intsmb0: <Intel PIIX4 SMBUS Interface> irq 23 at device 7.0 on pci0
intsmb0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
root@ / # service kld start
Loading kernel modules:
virtio_pci0: <VirtIO PCI (legacy) Network adapter> port 0xd020-0xd03f irq 1=
9 at
device 3.0 on pci0
virtio_pci1: <VirtIO PCI (legacy) Network adapter> port 0xd240-0xd25f irq 1=
6 at
device 8.0 on pci0
pcm0: <Intel ICH (82801AA)> port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at devi=
ce
5.0 on pci0
pcm0: <SigmaTel STAC9700/83/84 AC97 Codec>
cryptosoft0: <software crypto>
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
root@ / # service devmatch start
Autoloading module: if_vtnet.ko
vtnet0: <VirtIO Networking Adapter> on virtio_pci0
vtnet0: Ethernet address: 08:00:27:6a:04:1c
vtnet1: <VirtIO Networking Adapter> on virtio_pci1
vtnet1: Ethernet address: 08:00:27:6a:59:37
root@ / #=20

When devmatch is run before kld, it won't detect virtio_pci and therefore no
if_vtnet devices as well. Only if we load virtio_pci through kld, if_vtnet
becomes detectable for devmatch. So we need to ensure that kld is run before
devmatch.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253287-227>