Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2000 14:43:07 +0100
From:      "Ron Klinkien" <ron@zappa.demon.nl>
To:        <freebsd-mobile@freebsd.org>
Subject:   3CCFE574BT and 4.0 very sluggish...Need help
Message-ID:  <000501bf65a7$c88b9d40$0501a8c0@demon.nl>

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

I hope someone can give me a pointer about how I can figure out
why my 3Com 3C574BT isn't working properly.

I have an Compaq Presario 1246 laptop with a 3CCFE574BT pccard (5V/16Bit)
fitted in the only PCCARD/CARDBUS slot this laptop has.

I run 4.0 CURRENT from 22 jan 2000

It's been getting recoqnised ok, and I can give it any irq I want with
the pccard.conf irq line, but its not working ok, only a few bytes get
through very slowly...

I have tried all irq's, they all have the same result, i'm lost...

Does a vmstat -i has to show irq on pcic or ep0 after ifconfig ?
Mine doesn't..

How can I get more debug info so I can see what's wrong?...

OUTPUT OF boot -v: ---------------------------------------------------
[first part skipped]
npx0: <math processor> on motherboard
npx0: INT 16 interface
i586_bzero() bandwidth = 236239073 bytes/sec
bzero() bandwidth = 102113754 bytes/sec
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a): mode1res=0x80000000 (0x80000000)
pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=05011106)
pcib0: <Host to PCI bridge> on motherboard
found-> vendor=0x1106, dev=0x0501, revid=0x03
 class=06-00-00, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
 map[10]: type 1, range 32, base f8000000, size 26
found-> vendor=0x1106, dev=0x8501, revid=0x00
 class=06-04-00, hdrtype=0x01, mfdev=0
 subordinatebus=1  secondarybus=1
found-> vendor=0x1106, dev=0x0686, revid=0x19
 class=06-01-00, hdrtype=0x00, mfdev=1
 subordinatebus=0  secondarybus=0
found-> vendor=0x1106, dev=0x0571, revid=0x06
 class=01-01-8a, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
 map[20]: type 1, range 32, base 00001820, size  4
found-> vendor=0x1106, dev=0x3038, revid=0x0a
 class=0c-03-00, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
 intpin=d, irq=11
 map[20]: type 1, range 32, base 00001800, size  5
found-> vendor=0x1106, dev=0x3057, revid=0x20
 class=06-01-00, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
found-> vendor=0x1106, dev=0x3058, revid=0x21
 class=04-01-00, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
 intpin=c, irq=11
 map[10]: type 1, range 32, base 00001000, size  8
 map[14]: type 1, range 32, base 00001834, size  2
 map[18]: type 1, range 32, base 00001830, size  2
found-> vendor=0x11c1, dev=0x0449, revid=0x01
 class=07-80-00, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
 intpin=a, irq=9
 map[10]: type 1, range 32, base f4000000, size  8
 map[14]: type 3, range 32, base 00001838, size  3
 map[18]: type 1, range 32, base 00001400, size  8
found-> vendor=0x104c, dev=0xac1e, revid=0x00
 class=06-07-00, hdrtype=0x02, mfdev=0
 subordinatebus=0  secondarybus=0
 intpin=a, irq=0
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=1106 device=8501)> at device 1.0 on pci0
found-> vendor=0x1023, dev=0x8420, revid=0x5c
 class=03-00-00, hdrtype=0x00, mfdev=0
 subordinatebus=0  secondarybus=0
 intpin=a, irq=9
 map[10]: type 1, range 32, base f5000000, size 23
 map[14]: type 1, range 32, base f4100000, size 17
 map[18]: type 1, range 32, base f4800000, size 23
pci1: <PCI bus> on pcib1
vga-pci0: <Trident model 8420 VGA-compatible display device> mem
0xf4800000-0xf4ffffff,0xf4100000-0xf411ffff,0xf5000000-0xf57fffff irq 9 at
device 0.0 on pci1
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
ata-pci0: <VIA 82C686 ATA-66 controller> port 0x1820-0x182f at device 7.1 on
pci0
ata-pci0: Busmastering DMA supported
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x1820
ata0: mask=03 status0=50 status1=00
ata0: mask=03 status0=50 status1=00
ata0: devices = 0x1
ata0 at 0x01f0 irq 14 on ata-pci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x1828
ata1: mask=03 status0=50 status1=00
ata1: mask=03 status0=00 status1=00
ata1: devices = 0x4
ata1 at 0x0170 irq 15 on ata-pci0
pci0: VIA 83C572 USB controller (vendor=0x1106, dev=0x3038) at 7.2 irq 11
isab1: <PCI to ISA bridge (vendor=1106 device=3057)> at device 7.4 on pci0
chip1: <VIA 82C686 AC97 Audio> port
0x1830-0x1833,0x1834-0x1837,0x1000-0x10ff irq 11 at device 7.5 on pci0
pci0: unknown card (vendor=0x11c1, dev=0x0449) at 9.0 irq 9
chip2: <PCI to CardBus bridge (vendor=104c device=ac1e)> irq 0 at device
10.0 on pci0
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata-isa0: already registered as ata0
ata-isa1: already registered as ata1
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000
psm0: current command byte:0047
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
psm: status 00 02 64
psm: status 00 00 64
psm: status 00 03 64
psm: status 00 03 64
psm: status 10 00 64
psm: data 08 00 00
psm: status 00 02 64
psm: data 08 00 00
psm: status 00 02 64
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x700ff
fb0: port:0x3b0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 6b 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 07 30 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
EGA/VGA parameters to be used for mode 24
50 18 10 00 00 00 03 00 02 6b 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 07 30 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
pcic: management irq 10
pcic0: <VLSI 82C146> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: not probed (disabled)
sio2: not probed (disabled)
sio3: not probed (disabled)
ppc0: parallel port found at 0x378
ppc0: EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:022def3f 0..557=558 cylinders, 0..239=240 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: ppp0 attached
new masks: bio 4008c040, tty 40031092, net 40071092
bpf: lo0 attached
ata0-master: success setting up UDMA2 mode on VIA chip
ad0: piomode=4 dmamode=2 udmamode=2 cblid=0
ad0: <TOSHIBA MK4313MAT/J2.10 A> ATA-4 disk at ata0 as master
ad0: 4126MB (8452080 sectors), 8944 cyls, 15 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, UDMA33
Creating DISK ad0
Creating DISK wd0
ata1-master: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata1-master: success setting up UDMA2 mode on VIA chip
acd0: <TOSHIBA CD-ROM XM-7002B/1005> CDROM drive at ata1 as master
acd0: read 4134KB/s (4134KB/s), 128KB buffer, UDMA33
acd0: Reads: CD-R, CD-RW, CD-DA stream
acd0: Audio: play, 16 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
Mounting root from ufs:/dev/ad0s3a
pccard: card inserted, slot 0
pccard: card inserted, slot 1
ad0s1: type 0xb, start 63, end = 2676239, size 2676177 : OK
ad0s2: type 0x5, start 2676240, end = 5352479, size 2676240 : OK
ad0s3: type 0xa5, start 5352480, end = 8452079, size 3099600 : OK
ad0s5: type 0xb, start 2676303, end = 5352479, size 2676177 : OK
start_init: trying /sbin/init
ep0: Pass 1 of 2 detection failed (nonfatal)
ep0: <3Com 3C574B, Megahertz 3CCFE574BT or Fast Etherlink 3C574-TX>
 at port 0x300-0x31f irq 11 slot 0 on pccard0
ep0: Ethernet address 00:50:04:f2:fd:59
bpf: ep0 attached

OUTPUT OF pccardc dumpcis:-------------------------------------------

Configuration data for card in slot 0
Tuple #1, code = 0x1 (Common memory descriptor), length = 2
    000:  00 ff
 Common memory device information:
  Device number 1, type No device, WPS = OFF
  Speed = No speed, Memory block size = reserved, 32 units
Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3
    000:  43 02 ff
 Attribute memory device information:
  Device number 1, type EEPROM, WPS = OFF
  Speed = 150nS, Memory block size = 8Kb, 1 units
Tuple #3, code = 0x20 (Manufacturer ID), length = 4
    000:  01 01 74 05
 PCMCIA ID = 0x101, OEM ID = 0x574
Tuple #4, code = 0x21 (Functional ID), length = 2
    000:  06 00
 Network/LAN adapter
Tuple #5, code = 0x15 (Version 1 info), length = 29
    000:  04 01 33 43 6f 6d 00 4d 65 67 61 68 65 72 74 7a
    010:  20 35 37 34 42 00 42 00 30 30 31 00 ff
 Version = 4.1, Manuf = [3Com],card vers = [Megahertz 574B]
 Addit. info = [B],[001]
Tuple #6, code = 0x1a (Configuration map), length = 6
    000:  02 03 00 00 01 03
 Reg len = 3, config register addr = 0x10000, last config = 0x3
 Registers: XX------
Tuple #7, code = 0x1b (Configuration entry), length = 15
    000:  c1 01 1d 71 55 35 55 54 e0 72 5d 65 30 ff ff
 Config index = 0x1(default)
 Interface byte = 0x1 (I/O)
 Vcc pwr:
  Nominal operating supply voltage: 5 x 1V
  Max current average over 1 second: 3 x 10mA
  Max current average over 10 ms: 5 x 10mA
  Power down supply current: 5 x 1mA
 Wait scale Speed = 7.0 x 100 ns
 RDY/BSY scale Speed = 7.0 x 100 ns
 Card decodes 18 address lines, full 8/16 Bit I/O
  IRQ modes: Level, Pulse
  IRQs:  IOCK 1 4 5 6 8 10 11 12 14
Tuple #8, code = 0x19 (JEDEC descr for attribute memory), length = 3
    000:  00 00 ff
Tuple #9, code = 0x14 (No link), length = 0
Tuple #10, code = 0x10 (Checksum), length = 5
    000:  ae ff 5b 00 00
 Checksum from offset -82, length 91, value is 0x0
Tuple #11, code = 0xff (Terminator), length = 113
    000:  5b 19 03 00 00 ff 14 00 10 05 9d ff 6c 00 00 ff
    010:  7a ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    020:  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    030:  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    040:  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    050:  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    060:  ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00
    070:  00
Configuration data for card in slot 1
Tuple #1, code = 0xff (Terminator), length = 0
2 slots found

MY rc.conf: -------------------------------------------------------
# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

hostname="chaos.demon.nl"
moused_enable="NO"
apm_enable="YES"
pccard_enable="YES"
pccard_conf="/etc/pccard.conf"
pccard_ifconfig="inet 192.168.1.3 netmask 255.255.255.224"

MY pccard.conf (relevant part) -----------------------------------
# Generally available IO ports
io 0x240-0x360
# Generally available IRQs (Built-in sound-card owners remove 5)
irq 11 13 15
# Available memory slots
memory 0xd4000  96k


# 3Com Megahertz 574B
card "3Com" "Megahertz 574B"
 config  0x1 "ep0" ? 0x1
 insert  logger -t pccard:$device -s 3Com Megahertz 574B inserted
 insert  /etc/pccard_ether $device
 remove  logger -t pccard:$device -s 3Com Megahertz 574B removed
 remove  /sbin/ifconfig $device delete

ifconfig -a: -----------------------------------------------------------

ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
 inet 127.0.0.1 netmask 0xff000000
ep0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.1.3 netmask 0xffffffe0 broadcast 192.168.1.31
 ether 00:50:04:f2:fd:59

vmstat -i : ------------------------------------------------------------

interrupt      total      rate
ata-pci0 irq14     1330        3
ata-pci0 irq15        4        0
fdc0 irq6           1        0
atkbd0 irq1       696        1
clk irq0        41774       99
Total           43805      104


PING to my router connected 10Mb/UTP : ------------------------------------
PING 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
11 packets transmitted, 0 packets received, 100% packet loss
PING 192.168.1.1 (192.168.1.1): 56 data bytes

TCPDUMP local ------------------------------------------------------------
64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=65647.386 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=64646.904 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=63636.911 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=62626.905 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=61616.900 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=255 time=60606.890 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=255 time=59596.888 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=255 time=58586.883 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=255 time=57576.879 ms
etc...


MY KERNEL CONFIG : ------------------------------------------------------
#
# CHAOS -- Compaq Presario 1246 Laptop
#
# $FreeBSD: src/sys/i386/conf/PLUTO,v 1.000 2000/01/21 20:40:58 ronk Exp $

machine  i386
cpu  I586_CPU
ident  CHAOS
maxusers 16

options  INET   #InterNETworking
options  FFS   #Berkeley Fast Filesystem
options  FFS_ROOT  #FFS usable as root device [keep this!]
options  MFS   #Memory Filesystem
options  MD_ROOT   #MD is a potential root device
options  PROCFS   #Process filesystem
options  COMPAT_43  #Compatible with BSD 4.3 [KEEP THIS!]
options  UCONSOLE  #Allow users to grab the console
options  USERCONFIG  #boot -c editor
options  VISUAL_USERCONFIG #visual boot -c editor
options  SYSVSHM   #SYSV-style shared memory
options  SYSVMSG   #SYSV-style message queues
options  SYSVSEM   #SYSV-style semaphores

device  isa0
device  pci0

# Floppy drives
device  fdc0 at isa? port IO_FD1 irq 6 drq 2
device  fd0 at fdc0 drive 0

# ATA and ATAPI devices
device  ata0 at isa? port IO_WD1 irq 14
device  ata1 at isa? port IO_WD2 irq 15
device  ata2
device  atadisk0 # ATA disk drives
device  atapicd0 # ATAPI CDROM drives
options  ATA_STATIC_ID  #Static device numbering
options  ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices

# atkbdc0 controls both the keyboard and the PS/2 mouse
device  atkbdc0 at isa? port IO_KBD
device  atkbd0 at atkbdc? irq 1
device  psm0 at atkbdc? irq 12

device  vga0 at isa? port ? conflicts

# splash screen/screen saver
pseudo-device splash
options  VESA

# syscons is the default console driver, resembling an SCO console
device  sc0 at isa?

# Floating point support - do not disable.
device  npx0 at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device  apm0    at nexus? flags 0x20 # Advanced Power Management

# PCCARD (PCMCIA) support
device  card0
device  pcic0 at isa? irq 10 port 0x3e0 iomem 0xd0000
device  pcic1 at isa? irq 11 port 0x3e2 iomem 0xd4000 disable

# Serial (COM) ports
device  sio0 at isa? port IO_COM1 flags 0x10 irq 4
device  sio1 at isa? disable port IO_COM2 irq 3
device  sio2 at isa? disable port IO_COM3 irq 5
device  sio3 at isa? disable port IO_COM4 irq 9

# Parallel port
device  ppc0 at isa? port? irq 7
device  ppbus0   # Parallel port bus (required)
device  lpt0 at ppbus? # Printer

device  ep0

pseudo-device loop  # Network loopback
pseudo-device ether  # Ethernet support
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun  # Packet tunnel.
pseudo-device pty  # Pseudo-ttys (telnet etc)
pseudo-device md  # Memory "disks"

pseudo-device bpf  #Berkeley packet filter

TRACEROUTE: -----------------------------------------------------
 1  LANmodem (192.168.1.1)  1062.919 ms  1999.537 ms  2000.017 ms


Ping doens't return anything within 8 seconds, telnet responce is
quicker, but still slow...


Please help...


Regards,
Ron.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501bf65a7$c88b9d40$0501a8c0>