From dcarmich@dcarmich.pr.mcs.net  Sat Oct 25 03:46:56 1997
Received: from dcarmich.pr.mcs.net (dcarmich.pr.mcs.net [204.95.63.202])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA28518
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Oct 1997 03:46:54 -0700 (PDT)
          (envelope-from dcarmich@dcarmich.pr.mcs.net)
Received: (from dcarmich@localhost)
	by dcarmich.pr.mcs.net (8.8.7/8.8.7) id FAA01023;
	Sat, 25 Oct 1997 05:49:20 -0500 (CDT)
	(envelope-from dcarmich)
Message-Id: <199710251049.FAA01023@dcarmich.pr.mcs.net>
Date: Sat, 25 Oct 1997 05:49:20 -0500 (CDT)
From: dcarmich@mcs.com
Reply-To: dcarmich@mcs.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: 2.2.5-RELEASE does not detect TI PCI-1130 CardBus PCMCIA controller  
X-Send-Pr-Version: 3.2

>Number:         4849
>Category:       kern
>Synopsis:       2.2.5-RELEASE does not detect TI PCI-1130 CardBus PCMCIA controller
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    phk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 25 03:50:00 PDT 1997
>Closed-Date:    Tue Mar 9 10:05:52 PST 1999
>Last-Modified:  Tue Mar  9 10:25:33 PST 1999
>Originator:     Douglas Carmichael
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
none
>Environment:

	FreeBSD 2.2.5-RELEASE (bindist & srcdist /usr/src/sys installed via FTP
	with "Upgrade" option to sysinstall over a previously installed
	2.2.2-RELEASE system)
 
	Hardware:
	NEC Versa 6050MH laptop with TI PCI-1130 CardBus PCMCIA controller.
 

>Description:

	When I compile a kernel with a config file that successfully
	detected my PCI-1130 CardBus PCMCIA controller under 2.2.2-RELEASE
	and PAO-970616 under 2.2.5-RELEASE, 2.2.5-RELEASE fails to detect
	my PCMCIA controller correctly. 	
  

>How-To-Repeat:

	Compile a kernel from the stock 2.2.5-RELEASE /usr/src/sys with
	this configuration file:
# My new kernel configuration (10/3/97)

machine		"i386"
cpu		"I586_CPU"
ident		NECVERSA
maxusers	60

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options         MFS                     #Memory Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		UCONSOLE		#Allow users to grab the console

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

# kernel tracing
options KTRACE

# laptop-specific configuration
options		LAPTOP

# If your laptop have not had Windoze95-Ready BIOS, please update it.
# Such old BIOS'es sometimes have critical bugs at 32-bit protected
# mode APM BIOS interface (which have not used by Windoze 3.1).

# PC-card suspend/resume support (experimental)
options		APM_PCCARD_RESUME
options		PCIC_RESUME_RESET

# Keep power for serial cards when the system suspends
# (If your machine hangs up when you try to suspend the system with
#  FAX/Modem PCMCIA card, uncomment this option).
#options	SIO_SUSP_KEEP_PWR       

# Detach SCSI devices when the SCSI card is removed
options		SCSI_DETACH

# Don't suspend the system immediately before the system is resumed
# from suspended mode (Default 3 seconds)
options		"APM_NOSUSPEND_IMMEDIATE=3"

config		kernel	root on wd0 

controller	isa0
controller	pci0

controller	crd0
device		pcic0   at crd?
device		pcic1   at crd?
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0 flags 0x80ff
options         ATAPI		#Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
device          wcd0    #IDE CD-ROM
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

#
# Laptop support (see LINT for more options)
#
device		apm0    at isa?		# Advanced Power Management
options		APM_BROKEN_STATCLOCK	# Workaround some buggy APM BIOS

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 9 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr
device		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

# Sound devices
controller snd0
device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr
options SBC_IRQ=5
device sbxvi0 at isa? drq 5
device sbmidi0 at isa? port 0x330
device opl0 at isa? port 0x388

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.

pseudo-device	loop
pseudo-device   speaker
pseudo-device	tun	2
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	vn		#Vnode driver (turns a file into a device)




	 

>Fix:
	
	Not available.


>Release-Note:
>Audit-Trail:

From: Greg Troxel <gdt@ir.bbn.com>
To: freebsd-gnats-submit@freebsd.org, dcarmich@mcs.com
Cc:  Subject: Re: kern/4849: 2.2.5-RELEASE does not detect TI PCI-1130 CardBus PCMCIA controller
Date: Mon, 29 Jun 1998 12:38:31 -0400

 I had this problem on 2.2.1, and just brought my fix
 forward to 2.2.6.  I have not tried the stock 2.2.6 sources
 with pccard support (the boot floppy worked ok with zp0, but
 I needed custom stuff anyway).
 Hardware is an IBM Thinkpad 760ED.  The resulting kernel doesn't
 suspend/resume 100% right, but it basically works ok.
 This patch avoids recognizing the 1130 as a pci device; this allowed
 (under 2.2.1) it to be probed in isa compatibility mode, where it
 acted like the normal bridge chip.
 
 Index: src/sys/pci/pcic_p.c
 ===================================================================
 RCS file: /my-CVS/FreeBSD/src/sys/pci/pcic_p.c,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 pcic_p.c
 --- pcic_p.c    1998/06/24 14:28:34     1.1.1.1
 +++ pcic_p.c    1998/06/26 15:34:21
 @@ -72,7 +72,12 @@
         case PCI_DEVICE_ID_PCIC_CLPD6832:
                 return ("Cirrus Logic PD6832 CardBus Adapter");
         case PCI_DEVICE_ID_PCIC_TI1130:
 +#if 0
                 return ("TI 1130 PCMCIA/CardBus Bridge");
 +#else
 +               printf("ignoring 1130; fallthrough to compat mode\n");
 +               break;
 +#endif
         case PCI_DEVICE_ID_PCIC_TI1131:
                 return ("TI 1131 PCI to PCMCIA/CardBus bridge");
         default:

From: Greg Troxel <gdt@ir.bbn.com>
To: freebsd-gnats-submit@freebsd.org, dcarmich@mcs.com
Cc:  Subject: Re: kern/4849: 2.2.5-RELEASE does not detect TI PCI-1130 CardBus PCMCIA controller
Date: Wed, 19 Aug 1998 11:54:58 -0400

 I have now run a kernel without the patch in my messageof 1998-06-29.
 This is 2.2.6+kame+altq, but the pcic probe stuff is unchanged.
 It correctly recognizes the TI-1130 on an IBM Thinkpad 760ED.
 I withdraw my previous patch, as 2.2.6 works on my hardware.
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Mar 9 10:05:52 PST 1999 
State-Changed-Why:  
TI 1130 supported in 2.2.6-RELEASE, originator not available for  
confirmation. 


Responsible-Changed-From-To: freebsd-bugs->phk 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Mar 9 10:05:52 PST 1999 
Responsible-Changed-Why:  
He added recognition for the controller. 
>Unformatted:
