From owner-freebsd-bugs@freebsd.org Sat Feb 6 06:43:01 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0FAF453DCAF for ; Sat, 6 Feb 2021 06:43:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DXjQr6szwz3h5x for ; Sat, 6 Feb 2021 06:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EBDD153DB41; Sat, 6 Feb 2021 06:43:00 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EBA7453D9DF for ; Sat, 6 Feb 2021 06:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DXjQr6Fgbz3hGl for ; Sat, 6 Feb 2021 06:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BF70D4FB2 for ; Sat, 6 Feb 2021 06:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1166h0Ef017833 for ; Sat, 6 Feb 2021 06:43:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1166h0KI017832 for bugs@FreeBSD.org; Sat, 6 Feb 2021 06:43:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253287] /etc/rc.d/devmatch should REQUIRE kld Date: Sat, 06 Feb 2021 06:43:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@oldach.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2021 06:43:01 -0000 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: irq 23 at device 7.0 on pci0 intsmb0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 root@ / # service kld start Loading kernel modules: virtio_pci0: port 0xd020-0xd03f irq 1= 9 at device 3.0 on pci0 virtio_pci1: port 0xd240-0xd25f irq 1= 6 at device 8.0 on pci0 pcm0: port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at devi= ce 5.0 on pci0 pcm0: cryptosoft0: aesni0: root@ / # service devmatch start Autoloading module: if_vtnet.ko vtnet0: on virtio_pci0 vtnet0: Ethernet address: 08:00:27:6a:04:1c vtnet1: 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.=