Bug 32895

Summary: rebooting between Win98SE and 4.4-20011210 causes pccardc to misplace the CIS
Product: Base System Reporter: John L. Utz III <john>
Component: binAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description John L. Utz III 2001-12-16 08:00:07 UTC
pccards no longer get probed after i reboot to stable from Win98.
pccardd returns the 'no card for (null) (null)' line and pccardc dumpcis claims that Tuple #1 is ff and the length is 0.

note that the bridge chipset is correctly probed as a TI113X. note further that this is a computer that requires the ISA interrupt rerouting hw.pcic.irq=0 and hw.pcic.intr_path=1 to avoid a panic on install, but it isnt required after the install

Fix: 

shutdown. and remove the mains. and remove the battery.

it seems like the problem is that the registers in the pccard code arent getting initialized correctly and windows sets them to something that makes freebsd unhappy and freebsd never resets them to the stock setting on reboot. pulling the power probably lets the registers get back to where they belong.

occasonally when rebooting for the first time after pulling the power, the it reports that it inserted and removed each card 2x, but the cards work after that. and the next reboot shoes the cards 'inserting' mormally
How-To-Repeat: once it occurs, it doesnt matter what you do, it remains after any reboot *or* reconfiguration of the interrupt routing
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2001-12-30 13:18:29 UTC
Responsible Changed
From-To: freebsd-bugs->imp

Over to the pccard maintainer.
Comment 2 Warner Losh freebsd_committer freebsd_triage 2002-09-30 00:45:41 UTC
State Changed
From-To: open->feedback

I think this has been fixed.  Can you confirm with a newer version of 
FreeBSD?  In fact, I kinda remember you telling me that this was fixed 
in newer versions of FreeBSD.
Comment 3 Warner Losh freebsd_committer freebsd_triage 2002-10-07 20:10:44 UTC
State Changed
From-To: feedback->closed

John says I've fixed this.