From nobody  Fri Oct 24 21:15:29 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id VAA11221;
          Fri, 24 Oct 1997 21:15:29 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199710250415.VAA11221@hub.freebsd.org>
Date: Fri, 24 Oct 1997 21:15:29 -0700 (PDT)
From: richw@webcom.com
To: freebsd-gnats-submit@freebsd.org
Subject: pccard stuff fails after running Win95 without power-cycling
X-Send-Pr-Version: www-1.0

>Number:         4847
>Category:       kern
>Synopsis:       pccard stuff fails after running Win95 without power-cycling
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 24 21:20:01 PDT 1997
>Closed-Date:    Mon Jun 4 10:42:10 MDT 2001
>Last-Modified:  Mon Jun 04 11:16:33 MDT 2001
>Originator:     Rich Wales
>Release:        2.2.2-RELEASE
>Organization:
>Environment:
FreeBSD localhost 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Tue Oct 21 10:07:55 PDT 1997     richw@localhost:/home/src/sys/compile/RICHW  i386
>Description:
Dell Latitude XPi CD laptop with both FreeBSD and Win95 installed.

PC cards cannot be detected if Win95 is run on the machine and it is
rebooted (shutdown/restart) into FreeBSD without cycling power.

Output of "pccardc dumpcis":

	Configuration data for card in slot 0
	Tuple #1, code = 0xff (Terminator), length = 0
	Configuration data for card in slot 1
	Tuple #1, code = 0xff (Terminator), length = 0
	2 slots found

If the machine is powered off and then booted into FreeBSD, everything
is fine.

My two PC cards are a Megahertz XJ4336-CC4336 modem, and a 3Com 3C589D
network card.  I edited /etc/pccard.conf so that both cards are recog-
nized (when I boot FreeBSD from a power-off, that is).  I assume the
problem doesn't have anything to do with /etc/pccard.conf, since
"pccardc dumpcis" doesn't show any meaningful data when I switch from
Win95 to FreeBSD without power-cycling.
>How-To-Repeat:
On a dual-boot (Win95/FreeBSD) system with one or two PC cards, power
up and go directly into FreeBSD.  Say "pccardc dumpcis" and note the
output.

Shutdown, halt, power down, power back up, and go into Win95.  Shutdown
and restart (i.e., don't power-cycle), then select FreeBSD on the
reboot.  Say "pccardc dumpcis" and note the output.  Where did every-
thing go?!?
>Fix:
Don't switch from Win95 to FreeBSD without power-cycling.  Shutdown
completely (i.e., power-down), then power-up before booting FreeBSD.
>Release-Note:
>Audit-Trail:

From: Nate Williams <nate@mt.sri.com>
To: richw@webcom.com
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/4847: pccard stuff fails after running Win95 without power-cycling
Date: Sat, 25 Oct 1997 11:28:28 -0600 (MDT)

 > >Number:         4847
 > >Category:       kern
 > >Synopsis:       pccard stuff fails after running Win95 without power-cycling
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Fri Oct 24 21:20:01 PDT 1997
 > >Last-Modified:
 > >Originator:     Rich Wales
 > >Organization:
 > >Release:        2.2.2-RELEASE
 > >Environment:
 > FreeBSD localhost 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Tue Oct 21 10:07:55 PDT 1997     richw@localhost:/home/src/sys/compile/RICHW  i386
 > >Description:
 > Dell Latitude XPi CD laptop with both FreeBSD and Win95 installed.
 > 
 > PC cards cannot be detected if Win95 is run on the machine and it is
 > rebooted (shutdown/restart) into FreeBSD without cycling power.
 > 
 > Output of "pccardc dumpcis":
 > 
 > 	Configuration data for card in slot 0
 > 	Tuple #1, code = 0xff (Terminator), length = 0
 > 	Configuration data for card in slot 1
 > 	Tuple #1, code = 0xff (Terminator), length = 0
 > 	2 slots found
 > 
 > If the machine is powered off and then booted into FreeBSD, everything
 > is fine.
 
 What PCIC controller do you have?  Is it correctly found?  (Obviously it
 is, but more details are necessary.)
 
 > My two PC cards are a Megahertz XJ4336-CC4336 modem, and a 3Com 3C589D
 > network card. 
 
 Since neither are found, I'm pretty sure this is a controller issue, and
 not a card issue.  We may need to 'reset' things a bit better than we do
 now, but I haven't looked at the code to see what we're doing.
 
 > thing go?!?
 > >Fix:
 > Don't switch from Win95 to FreeBSD without power-cycling.  Shutdown
 > completely (i.e., power-down), then power-up before booting FreeBSD.
 > >Audit-Trail:
 > >Unformatted:

From: Rich Wales <richw@webcom.com>
To: Nate Williams <nate@mt.sri.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/4847: pccard stuff fails after running Win95 without power-cycling
Date: Sat, 25 Oct 1997 14:25:38 -0700 (PDT)

 Nate --
 
 Replying to:
 
 	What PCIC controller do you have?
 
 Windows 95 says it sees a "Texas Instruments PCI-1131".
 
 	Is it correctly found?  (Obviously it is, but more
 	details are necessary.)
 
 FreeBSD says it sees a "PC-Card VLSI 82C146 (5 mem & 2 I/O windows)".
 
 Rich Wales         richw@webcom.com         http://www.webcom.com/richw/
 

From: Nate Williams <nate@mt.sri.com>
To: Rich Wales <richw@webcom.com>
Cc: Nate Williams <nate@mt.sri.com>, freebsd-gnats-submit@freebsd.org
Subject: Re: kern/4847: pccard stuff fails after running Win95 without power-cycling
Date: Sat, 25 Oct 1997 15:42:54 -0600 (MDT)

 > 	What PCIC controller do you have?
 > 
 > Windows 95 says it sees a "Texas Instruments PCI-1131".
 > 
 > 	Is it correctly found?  (Obviously it is, but more
 > 	details are necessary.)
 > 
 > FreeBSD says it sees a "PC-Card VLSI 82C146 (5 mem & 2 I/O windows)".
 
 Ahh, that explains it.  What happens is that the BIOS on your box does
 something special so that it looks like a legacy-ISA device, but Win95
 'screws up' this mapping, so when you boot into FreeBSD the PCI stuff is
 probably hosed up.
 
 Hopefully we'll get better 'PCI/PCMCIA' controller support in FreeBSD.
 
 (I'm working on PCMCIA stuff this weekend, but not on that particular
 item, although it's on my white-board.)
 
 
 Nate
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: imp 
Responsible-Changed-When: Mon May 15 23:09:07 MDT 2000 
Responsible-Changed-Why:  
I think that this has been hacked recently.  Will find out from orinator 
if he still has the problem with -current. 

In any event, I'll track this down. 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Mon Jun 4 10:42:10 MDT 2001 
State-Changed-Why:  
I think I just fixed this.  It was a power state issue. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4847 
>Unformatted:
