Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Aug 2001 13:42:11 +0200
From:      Eric Masson <e-masson@kisoft-services.com>
To:        Warner Losh <imp@harmony.village.org>
Cc:        mobile@FreeBSD.ORG
Subject:   Re: pcic-stable.diff.15
Message-ID:  <86elqt5q0c.fsf@notbsdems.nantes.kisoft-services.com>
In-Reply-To: <200108012119.f71LJBH07762@harmony.village.org> (Warner Losh's message of "Wed, 01 Aug 2001 15:19:11 -0600")
References:  <200108012119.f71LJBH07762@harmony.village.org>

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

>>>>> "Warner" == Warner Losh <imp@harmony.village.org> writes:

 Warner> If you have any problems with this, please let me know. I
 Warner> suspect that we may have some old laptops that may have issues
 Warner> with the pci routing code and I need to find those out ASAP.

Hello Warner,

The following is based on Aug 2 1600 +0200 cvsup + pcic-stable.diff.15*

kernel config file

--=-=-=
Content-Disposition: attachment; filename=THINKPAD

#
# THINKPAD -- kernel configuration file for FreeBSD/i386
#

machine		i386
cpu		I686_CPU
ident		THINKPAD
maxusers	64

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

# Network
options 	INET			#InterNETworking
options		ICMP_BANDLIM		#Rate limit bad replies
options 	IPFILTER		#ipfilter support
options 	IPFILTER_LOG		#ipfilter logging
options		IPFILTER_DEFAULT_BLOCK	#block all packets by default
options 	IPSEC			#IP security
options 	IPSEC_ESP		#IP security (crypto; define w/ IPSEC)
options		SMBFS			#SMB/CIFS filesystem
options 	NETSMB			#SMB/CIFS requester
options 	NETSMBCRYPTO		#encrypted password support for SMB
options 	LIBMCHAIN		#mbuf management library
options 	LIBICONV		# Kernel side iconv library

# File systems
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	PROCFS			#Process filesystem

# SysV & Posix compatibility
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

# Misc
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 	KTRACE			#ktrace(1) support
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	VESA			# To include support for VESA video modes
options 	SC_DISABLE_REBOOT	# disable reboot key sequence
options 	SC_PIXEL_MODE		# add support for the raster text mode
options 	DDB			# Enable the kernel debugger.
options 	USER_LDT		#allow user-level control of i386 ldt

# Busses
device		isa
device		pci

# System management bus
device		smbus		# Bus support, required for smb below.
device		intpm
device		smb

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

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives

# 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

# Console
device		vga0	at isa?
device		sc0	at isa? flags 0x100

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

# Power management support
device		apm0    at nexus? flags 0x20 # Advanced Power Management

# PCCARD (PCMCIA) support
device		card
device		pcic0	at isa? irq 0
device		pcic1	at isa? irq 0

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4

# Ne2K lan card 
device		miibus
device		ed

# Sound card support
device		pcm0 at isa? port 0x530 irq 5 drq 0 flags 0x11

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	bpf		#Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic

--=-=-=


/etc/rc.conf

--=-=-=
Content-Disposition: attachment; filename=rc.conf

dumpdev="/dev/ad0s1b"
hostname="notbsdems.nantes.kisoft-services.com"
keymap="fr.iso.acc"
apm_enable="YES"
apmd_enable="YES"
network_interfaces="lo0"
pccard_enable="YES"
pccard_ifconfig="DHCP"
#pccardd_flags="-I -i 11"
usbd_enable="YES"
usbd_flags=""
linux_enable="YES"
moused_enable="YES"
nfs_client_enable="YES"
sendmail_enable="YES"
tcp_extensions="YES"
sshd_enable="YES"
syslogd_flags="-s -s"
ipfilter_enable="YES"
ipfilter_flags=""
font8x16="iso15-8x16.fnt"
font8x14="iso15-8x14.fnt"
font8x8="iso15-8x8.fnt"
allscreens_flags="-g 100x37 VESA_800x600"

--=-=-=


uname -a
FreeBSD notbsdems.nantes.kisoft-services.com 4.4-PRERELEASE
FreeBSD 4.4-PRERELEASE #0: Fri Aug  3 13:18:10 CEST 2001
emss@notbsdems.nantes.kisoft-services.com:/usr/src/sys/compile/THINKPAD  i386

dmesg 

--=-=-=
Content-Disposition: attachment; filename=dmesg.txt

Copyright (c) 1992-2001 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.4-PRERELEASE #0: Fri Aug  3 13:18:10 CEST 2001
    emss@notbsdems.nantes.kisoft-services.com:/usr/src/sys/compile/THINKPAD
Calibrating clock(s) ... TSC clock: 266605375 Hz, i8254 clock: 1193142 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium II/Pentium II Xeon/Celeron (266.62-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 67043328 (65472K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x003e0000 - 0x03fe7fff, 62947328 bytes (15368 pages)
avail memory = 61431808 (59992K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f71a0
bios32: Entry = 0xfd7e0 (c00fd7e0)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0x225
pnpbios: Found PnP BIOS data at 0xc00f71d0
pnpbios: Entry = f0000:9786  Rev = 1.0
pnpbios: Event flag at 4b4
Other BIOS signatures found:
ACPI: 000f7160
Preloaded elf kernel "kernel" at 0xc03ba000.
VESA: information block
56 45 53 41 00 02 20 01 00 01 00 00 00 00 22 00 
00 01 27 00 11 01 00 01 00 01 09 01 00 01 1b 01 
00 01 00 01 01 01 02 01 03 01 04 01 05 01 07 01 
0d 01 0e 01 10 01 11 01 12 01 13 01 14 01 15 01 
VESA: 24 mode(s) found
VESA: v2.0, 2496k memory, flags:0x0, mode table:0xc03479a2 (1000022)
VESA: MagicGraph 256 AV 48K
VESA: NeoMagic MagicMedia 256 AV 01.0
netsmb_dev: loaded
Pentium Pro MTRR support enabled
Using $PIR table, 4 entries at 0xc00fdf80
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard
found->	vendor=0x8086, dev=0x7192, revid=0x02
	class=06-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base 00000000, size 26
found->	vendor=0x8086, dev=0x7110, revid=0x02
	class=06-80-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x7111, revid=0x01
	class=01-01-80, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[20]: type 1, range 32, base 0000fcd0, size  4
found->	vendor=0x8086, dev=0x7112, revid=0x01
	class=0c-03-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=d, irq=11
	map[20]: type 1, range 32, base 0000fce0, size  5
found->	vendor=0x8086, dev=0x7113, revid=0x02
	class=06-80-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[90]: type 1, range 32, base 00001040, size  4
found->	vendor=0x104c, dev=0xac16, revid=0x02
	class=06-07-00, hdrtype=0x02, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base 04000000, size 12
found->	vendor=0x104c, dev=0xac16, revid=0x02
	class=06-07-00, hdrtype=0x02, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base 04100000, size 12
found->	vendor=0x10c8, dev=0x0005, revid=0x12
	class=03-00-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base fd000000, size 24
	map[14]: type 1, range 32, base fe800000, size 22
	map[18]: type 1, range 32, base fed00000, size 20
found->	vendor=0x10c8, dev=0x8005, revid=0x12
	class=04-01-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=b, irq=11
	map[10]: type 1, range 32, base fe400000, size 22
	map[14]: type 1, range 32, base fec00000, size 20
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfcd0-0xfcdf at device 2.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xfcd0
ata0: mask=03 status0=50 status1=00
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI probe a=00 b=00
ata0-slave: ATAPI probe a=00 b=00
ata0: mask=03 status0=50 status1=00
ata0-master: ATA probe a=01 b=a5
ata0: devices=01
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xfcd8
ata1: mask=01 status0=50 status1=fb
ata1: mask=01 ostat0=50 ostat2=ff
ata1-master: ATAPI probe a=14 b=eb
ata1: mask=01 status0=10 status1=fb
ata1: devices=04
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfce0-0xfcff irq 11 at device 2.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
intpm0: <Intel 82371AB Power management controller> port 0x1040-0x104f irq 9 at device 2.3 on pci0
intpm0: I/O mapped 1040
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped 1000 
pcic0: <TI PCI-1250 PCI-CardBus Bridge> mem 0x4000000-0x4000fff irq 11 at device 3.0 on pci0
pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][pci only]
	using shared irq11.
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1250 PCI-CardBus Bridge> mem 0x4100000-0x4100fff irq 11 at device 3.1 on pci0
pcic1: TI12XX PCI Config Reg: [speaker enable][pwr save][pci only]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <NeoMagic MagicMedia 256AV SVGA controller> (vendor=0x10c8, dev=0x0005) at 5.0 irq 11
chip1: <NeoMagic MagicMedia 256AX Audio controller> mem 0xfec00000-0xfecfffff,0xfe400000-0xfe7fffff irq 11 at device 5.1 on pci0
pcic-: pcic0 exists, using next available unit number
pcic-: pcic1 exists, using next available unit number
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
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
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
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000
psm0: current command byte:0047
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 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x700ff
fb0: port:0x3c0-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 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 05 50 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 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 
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
pcic2 failed to probe at port 0x3e0-0x3e1 on isa0
pcic3 failed to probe at port 0x3e0-0x3e1 on isa0
sio0: irq maps: 0x841 0x851 0x841 0x841
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
mss_detect - chip revision 0x0a
mss_detect() - Detected CS4231
pcm0: <CS4231> at port 0x530-0x537,0x538-0x539,0xf8c-0xf94,0xe0e irq 5 drq 0 flags 0xa111 on isa0
pcm: setmap 4000, 1000; 0xc5abe000 -> 4000
pcm: setmap 5000, 1000; 0xc5abf000 -> 5000
isa_probe_children: probing PnP devices
pcic0: Event mask 0xf
pcic1: Event mask 0xf
BIOS Geometries:
 0:020cfe3f 0..524=525 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: lo0 attached
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.20 initialized.  Default = block all, Logging = enabled
ata0-master: success setting UDMA2 on Intel chip
Creating DISK ad0
ad0: <IBM-DKLA-24320/KL4OA42A> ATA-4 disk at ata0-master
ad0: 4126MB (8452080 sectors), 8944 cyls, 15 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, UDMA33
ad0: piomode=4 dmamode=2 udmamode=2 cblid=0
ad0: 4126MB <IBM-DKLA-24320> [8944/15/63] at ata0-master UDMA33
ata1-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1
ata1-master: success setting PIO4 on generic chip
acd0: <TOSHIBA CD-ROM XM-1702B/1462> CDROM drive at ata1 as master
acd0: read 4134KB/s (4134KB/s), 128KB buffer, PIO4
acd0: Reads: CD-R, CD-RW, CD-DA stream
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
pccard: card inserted, slot 1
pcic0: debounced state is 0x30000759
pcic1: debounced state is 0x30000719
ad0s1: type 0xa5, start 63, end = 8289539, size 8289477 : OK
ad0s4: type 0xa0, start 8289540, end = 8434124, size 144585 : OK
start_init: trying /sbin/init
pccard: card inserted, slot 0
pccard: card inserted, slot 1
Linux-ELF exec handler installed

--=-=-=


relevant part of /var/log/messages for pccardd

--=-=-=
Content-Disposition: attachment; filename=messages.txt

Aug  3 13:24:44 notbsdems pccardd[133]: Card "Intelligent"("PCMCIA FAX+MODEM") [(null)] [(null)] matched "Intelligent" ("PCMCIA FAX+MODEM") [(null)] [(null)] 
Aug  3 13:24:44 notbsdems pccardd[133]: Failed to allocate IRQ for Intelligent 
Aug  3 13:24:49 notbsdems pccardd[133]: Card "IC-CARD+"("IC-CARD+") [118B6603] [(null)] matched "/^IC-CARD\+?$/" ("/^IC-CARD\+?$/") [(null)] [(null)] 
Aug  3 13:24:49 notbsdems pccardd[133]: Failed to allocate IRQ for /^IC-CARD\+?$/ 
Aug  3 13:24:49 notbsdems pccardd[133]: pccardd started

--=-=-=


As seen, no irq can be assigned to the cards. If i boot, with no card
inserted and then insert one the result is the same.

No further removal of any card will be notified.

HTH

Eric Masson

-- 
 > le question est dans le titre.
 > merci linuxement
 > Merci de repondre par mail aussi.
 -+- Greg in Guide du linuxien pervers : "Bien configurer son titre" -+-

--=-=-=--

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?86elqt5q0c.fsf>