Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2000 14:49:41 -0700 (PDT)
From:      cwasser@v-wave.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/18819: miibus modules loaded for non-existant devices
Message-ID:  <20000525214941.01CBD37BA74@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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: <LC82C115 PNIC II 10/100BaseTX> port 0xe400-0xe4ff mem 0xe4001000-0xe40010ff irq 10 at device 11.0 on pci0
dc0: Ethernet address: 00:a0:cc:32:eb:7c
miibus0: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> 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: <MII bus> 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




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