Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2001 22:34:14 -0700
From:      unsafe at any speed <erich@ucsd.edu>
To:        Warner Losh <imp@harmony.village.org>
Cc:        mobile@FreeBSD.ORG
Subject:   Re: Thinkpad fix + MFC of Ian's eject improvements.
Message-ID:  <3B81F2D6.260BEF7@ucsd.edu>
References:  <200108200815.f7K8F7W48853@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------44759DA22DA8106FA4289BF1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Warner Losh wrote:
.....
> So this patch does two things.  First, it doesn't set the INTRTIE bit,
> which should help some of the laptops that don't route things to the
> same interrupt.  Second, it doesn't touch bits 1 and 2 of register
> 0x92 which direct how interrupts are routed.  This didn't break my
> dell and made the thinkpad work again.
> 
> Someone else reported this fix for their machine as well, but I don't
> know if it was a thinkpad or not.
> 
> Please test them and let me know what you have to say.
> 
>         http://people.freebsd.org/~imp/pcic-44rc1.diff.1

Hi Warner,
Still no luck with the Thinkpad 560X, I'm afraid. Hangs in the same
place with or without the INTRTIE active.

Here are the last few lines of boot -v before it hangs:
pcic1: event mask 0xf
Device configuration finished
   device combination doesn't support shared irq0
   intr_connect(irq0) failed, result=-1
bpf: lo0 attached
bpf: faith0 attached
IP Packet filtering initialized, divert enabled, (.....)

and here it stops.

Attached below are my kernel configuration and a full dmesg from my last
working kernel, for the sake of reference.

If I can provide any more information, please let me know.
Eric
--------------44759DA22DA8106FA4289BF1
Content-Type: text/plain; charset=us-ascii; name="dmesg.today"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="dmesg.today"

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 #4: Wed Aug 15 00:03:41 PDT 2001
    erich@palomar:/usr/src/sys/compile/PALOMAR
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P55C (quarter-micron) (231.78-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 100466688 (98112K bytes)
avail memory = 94437376 (92224K bytes)
Preloaded elf kernel "kernel" at 0xc0342000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc034209c.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
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: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfcf0-0xfcff at device 1.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x9000-0x901f irq 11 at device 1.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
chip1: <Intel 82371AB Power management controller> port 0xefa0-0xefaf at device 1.3 on pci0
pcic-pci0: <TI PCI-1250 PCI-CardBus Bridge> mem 0x20822000-0x20822fff 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-1250 PCI-CardBus Bridge> mem 0x20821000-0x20821fff at device 2.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC parallel isa irq]
pci0: <NeoMagic MagicGraph 128XD SVGA controller> at 3.0 irq 11
orm0: <Option ROM> at iomem 0xc0000-0xc9fff on isa0
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 i82365SL-A/B> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
pcm0: <CS4236> at port 0x52c-0x533,0xf8c-0xf94,0xe0e irq 5 drq 1 flags 0xa110 on isa0
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to deny, logging disabled
pccard: card inserted, slot 1
ata0-slave: ata_command: timeout waiting for intr
ata0-slave: identify failed
ad0: 3909MB <IBM-DTCA-24090> [7944/16/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s1a

--------------44759DA22DA8106FA4289BF1
Content-Type: text/plain; charset=us-ascii; name="PALOMAR"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="PALOMAR"

#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.27 2001/07/11 01:08:15 semenu Exp $

machine		i386
cpu		I586_CPU
ident		PALOMAR
maxusers	32

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

options 	INET			#InterNETworking
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 	MD_ROOT			#MD is a potential root device
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=5000		#Delay (in ms) before probing SCSI
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 	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		IPFIREWALL
options		IPDIVERT

# To make an SMP kernel, the next two are needed
#options 	SMP			# Symmetric MultiProcessor Kernel
#options 	APIC_IO			# Symmetric (APIC) I/O

device		isa
#device		eisa
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
options 	ATA_STATIC_ID		#Static device numbering

# 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

# 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
device		pcic0	at isa? irq 0 port 0x3e0 iomem 0xd0000

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

# sound
device		pcm0 at isa? port 0x52c irq 5 drq 1 flags 0x10
#device		pcm
#device		csa

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

# ISA Ethernet NICs.
device		ep
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attachment needed
# and resources will always be dynamically assigned by the pccard code.
#device		wi

# 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	md		# Memory "disks"
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

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		scbus
device		da

--------------44759DA22DA8106FA4289BF1--


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?3B81F2D6.260BEF7>