Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2000 11:41:56 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        freebsd-mobile@freebsd.org
Subject:   The Dreaded ThinkPad
Message-ID:  <20000801114156.A48000@184.215.6.64.reflexcom.com>

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

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii

I have recently been issued a ThinkPad 600E from my place of
business. I hate ThinkPads. But it's what they hand out (but we have
all DELL desktops, I like DELL notebooks, go figure).

I had to shuffle IRQs quite a bit to get the 3C574B PCMCIA NIC to work
right. Like so many netobooks, the thing is loaded up with useless
devices eating IRQs. The NIC would try to use IRQ 11 or 5 if I told it
to, but the thing would kinda just give out after a few seconds. It
would transmit (I could see packets coming out from flashing link
lights or from tcpdumps on other machines), but it did not seem to
hear well. Without knowing too much about the intricacies of the ISA
bus, my guess is that a "polling mode" versus "interupt mode" was the
issue.

Anyway, I had already seen how Win98 was distributing the devices over
IRQs. It liked to bunch up about a half-dozen things on IRQ 11 and put
the NIC on IRQ 10. (Well, it ususally did, sometimes it seemed to have
the same problem.) So, I moved the PCMCIA controller to IRQ 11 and
told pccardd to use IRQ 10. Viola! It works great!

BUT... You knew there had to be a "but." I can't get this to work in a
custom kernel. I moved the PCMCIA controller to IRQ 11 in the config
file, and now I get the following on boot,

  pcic0: <Intel i82365> at port 0x3e0-0x3e1 irq 11 on isa0
  device_probe_and_attach: pcic0 attach returned 22

Whereas with GENERIC, I get,

  pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 irq 11 drq 0 on isa0
  pcic0: management irq 13
  pccard0: <PC Card bus -- kludge version> on pcic0
  pccard1: <PC Card bus -- kludge version> on pcic0

Is this a -STABLE issue? Did something get broken? Or am I messing up
my configuration somewhere?

Attached is dmesg output for a boot with both kernels, the kernel.conf
that I use to move IRQs when booting GENERIC, and the config file for
my custom kernel (I assume I don't need to send you all a GENERIC
config).

Any ideas would be great. Oh, the custom kernel added sound which gets
detected on the boot, but also gets a similar
"device_probe_and_attach" error. Wha's 'at?

Thanks.
-- 
Crist J. Clark                           cjclark@alum.mit.com

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.GENERIC"

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.1-RELEASE #0: Thu Jul 27 04:44:16 GMT 2000
    root@usw4.freebsd.org:/usr/src/sys/compile/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (297.79-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134021120 (130880K bytes)
config> irq pcic0 11
config> di pcic1
avail memory = 126201856 (123244K bytes)
Preloaded elf kernel "kernel.GENERIC" at 0xc040d000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc040d0a4.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NeoMagic MagicMedia 256AV SVGA controller> at 0.0 irq 11
pcic-pci0: <TI PCI-1251 PCI-CardBus Bridge> mem 0x50102000-0x50102fff irq 11 at device 2.0 on pci0
pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC parallel isa irq]
pcic-pci1: <TI PCI-1251 PCI-CardBus Bridge> mem 0x50101000-0x50101fff irq 11 at device 2.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC parallel isa irq]
pci0: <unknown card> (vendor=0x1013, dev=0x6001) at 6.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfcf0-0xfcff at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x8400-0x841f irq 11 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port 1 power on failed, IOERROR
uhub0: port 2 power on failed, IOERROR
chip1: <Intel 82371AB Power management controller> port 0xefa0-0xefaf at device 7.3 on pci0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 irq 11 drq 0 on isa0
pcic0: management irq 13
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: cannot reserve I/O port range
ad0: 3909MB <IBM-DBCA-204860> [7944/16/63] at ata0-master using UDMA33
acd0: CDROM <TOSHIBA CD-ROM XM-1902B> at ata1-master using PIO4
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
ep0: <3Com 3C574B, Megahertz 3CCFE574BT or Fast Etherlink 3C574-TX> at port 0x240-0x25f irq 10 slot 0 on pccard0
ep0: Ethernet address 00:50:da:e4:d8:32

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.SEC-MOBILE"

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.1-STABLE #0: Tue Aug  1 10:19:09 PDT 2000
    root@sec-mobile.corp.none-of-your.com:/usr/obj/usr/src/sys/SEC-MOBILE
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (297.79-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134021120 (130880K bytes)
avail memory = 127463424 (124476K bytes)
Preloaded elf kernel "kernel" at 0xc02db000.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NeoMagic MagicMedia 256AV SVGA controller> at 0.0 irq 11
pcic-pci0: <TI PCI-1251 PCI-CardBus Bridge> mem 0x50102000-0x50102fff irq 11 at device 2.0 on pci0
pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC parallel isa irq]
pcic-pci1: <TI PCI-1251 PCI-CardBus Bridge> mem 0x50101000-0x50101fff irq 11 at device 2.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC parallel isa irq]
csa0: <Crystal Semiconductor CS4610/4611 Audio accelerator> mem 0x50000000-0x500fffff,0x50100000-0x50100fff irq 11 at device 6.0 on pci0
device_probe_and_attach: csa0 attach returned 6
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfcf0-0xfcff at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
chip1: <Intel 82371AB Power management controller> port 0xefa0-0xefaf at device 7.3 on pci0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
pcic0: <Intel i82365> at port 0x3e0-0x3e1 irq 11 on isa0
device_probe_and_attach: pcic0 attach returned 22
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
ppc0: cannot reserve I/O port range
unknown: <PNP0000> can't assign resources
unknown0: <PNP0200> at port 0-0xf,0x80-0x8f,0xc0-0xdf drq 4 on isa0
unknown1: <PNP0100> at port 0x40-0x43 irq 0 on isa0
unknown2: <PNP0b00> at port 0x70-0x73 irq 8 on isa0
unknown3: <PNP0800> at port 0x61 on isa0
unknown: <PNP0303> can't assign resources
unknown: <IBM3780> can't assign resources
unknown4: <PNP0c04> at port 0xf0-0xff irq 13 on isa0
unknown: <PNP0700> can't assign resources
unknown5: <PNP0a03> at port 0xcf8-0xcff on isa0
unknown6: <PNP0c02> at port 0x22,0x2e-0x2f,0x92,0xb2-0xb3,0x4d0-0x4d1,0x15e0-0x15ef,0xef00-0xefaf iomem 0-0x9ffff,0xf0000-0xfffff,0x100000-0x7ffffff,0xffff0000-0xffffffff on isa0
ppc1: <Standard parallel printer port> at port 0x3bc-0x3bf irq 7 on isa0
ppc1: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
plip0: <PLIP network interface> on ppbus0
unknown: <PNP0501> can't assign resources
pcm0: <CS423x-PCI> at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5 drq 1,0 on isa0
unknown7: <CSC0110> at port 0x538-0x53f on isa0
unknown8: <CSC0101> at port 0x200-0x207 on isa0
unknown: <CSC0103> can't assign resources
unknown9: <IBM3765> at port 0x130-0x13f,0x2f8-0x2ff irq 3,10 drq 7 on isa0
unknown: <IBM0071> can't assign resources
unknown: <PNP0e03> can't assign resources
unknown: <PNP0680> can't assign resources
unknown: <PNP0680> can't assign resources
unknown10: <PNP0c02> on isa0
ad0: 3909MB <IBM-DBCA-204860> [7944/16/63] at ata0-master using UDMA33
acd0: CDROM <TOSHIBA CD-ROM XM-1902B> at ata1-master using WDMA2
Mounting root from ufs:/dev/ad0s2a

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kernel.conf"

irq pcic0 11
di pcic1

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=SEC-MOBILE

#
# SEC-MOBILE - 2000/07/31, cclark
#
# Configuration for IBM ThinkPad 600E, PII.
#

machine		i386
cpu		I686_CPU
ident		SEC-MOBILE
maxusers	32

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
#options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
#options		ICMP_BANDLIM		#Rate limit bad replies
#options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev

options		PNPBIOS			# Might be required for sound

device		isa
device		pci

# 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		ata
device		atadisk			# ATA disk drives
device		atapicd			# 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 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

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

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa?
#options 	XSERVER			# support for X server on a vt console
#options 	FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options 	PCVT_SCANSET=2		# IBM keyboards are non-std

# 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		card
# Moved from the distributed IRQ 10
device		pcic0	at isa? irq 11 
#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? port IO_COM2 irq 3

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# ISA Ethernet NICs
device		ep
# Xircom Ethernet
device		xe

# Pseudo devices - the number indicates how many units to be allocated 
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	gif	4	# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

# The PC has this, but disable for now
# USB support
#device		uhci		# UHCI PCI->USB interface
#device		ohci		# OHCI PCI->USB interface
#device		usb		# USB Bus (required)
#device		ugen		# Generic
#device		uhid		# "Human Interface Devices"
#device		ukbd		# Keyboard
#device		ulpt		# Printer
#device		umass		# Disks/Mass storage - Requires scbus and da
#device		ums		# Mouse
# USB Ethernet, requires mii
#device		aue		# ADMtek USB ethernet
#device		cue		# CATC USB ethernet
#device		kue		# Kawasaki LSI USB ethernet

# Sound support
device		pcm

#End

--0F1p//8PRICkK4MW--


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?20000801114156.A48000>