From owner-freebsd-bugs Thu May 25 14:50:13 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A92C37BD13 for ; Thu, 25 May 2000 14:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA28973; Thu, 25 May 2000 14:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 01CBD37BA74; Thu, 25 May 2000 14:49:41 -0700 (PDT) Message-Id: <20000525214941.01CBD37BA74@hub.freebsd.org> Date: Thu, 25 May 2000 14:49:41 -0700 (PDT) From: cwasser@v-wave.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/18819: miibus modules loaded for non-existant devices Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18819 >Category: kern >Synopsis: miibus modules loaded for non-existant devices >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 25 14:50:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Chris Wasser >Release: FreeBSD 4.0-STABLE #0: Mon Apr 17 15:18:15 MDT 2000 >Organization: N/A >Environment: FreeBSD cmdmicro.com 4.0-STABLE FreeBSD 4.0-STABLE #0: Mon Apr 17 15:18:15 MDT 2000 root@cmdmicro.com:/usr/src/sys/compile/DEEPTHOUGHT i386 >Description: Kernel loads miibus modules for non-existant interfaces. Not sure if this is a design implementation or an oversight. Current kernel uses if_xl and if_dc, kldstat -v reports (relevant sections): 30 xl/miibus 31 pci/if_xl 32 dc/miibus 33 pci/if_dc miibus section: 36 miibus/rlphy 37 miibus/tlphy 38 miibus/pnphy 39 miibus/nsphy 40 miibus/mlphy 41 miibus/xlphy 42 miibus/dcphy 43 miibus/amphy 44 miibus/ukphy Not sure if this is the way it's supposed to be, but seeing as how I don't use any of those other interfaces, I don't see why those miibus modules are loaded in the first place for interfaces not compiled into the kernel. Relevant kernel config sections: device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes device xl # 3Com 3c90x PCI 10/100 relevant dmesg output: dc0: port 0xe400-0xe4ff mem 0xe4001000-0xe40010ff irq 10 at device 11.0 on pci0 dc0: Ethernet address: 00:a0:cc:32:eb:7c miibus0: on dc0 dcphy0: on miibus0 dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe800-0xe87f mem 0xe4000000-0xe400007f irq 11 at device 15.0 on pci0 xl0: Ethernet address: 00:50:da:cc:f3:e0 miibus1: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >How-To-Repeat: Compile a 4.0 kernel and enable miibus and specific network interfaces which use the miibus driver. >Fix: Again, unsure if this is intentional or not, so I dunno. Haven't tried unloading those modules either. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message