Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCMCIA Race condition after sleep



On Tuesday, February 25, 2003, at 01:48 PM, Matthew T. Russotto wrote:

On Tuesday, February 25, 2003, at 04:16 PM, Rick Sulack wrote:

matthew,

the IOPCCardFamily did not change between 10.2.3 and 10.2.4, but I have also started receiving reports of things being broken on 10.2.4 that worked on 10.2.3. :-(

What appears to be happening under 10.2.4 is that the card is treated as 'ejected' when the system wakes up, whether or not it actually was ejected (I have a log from 10.2.4 when the card was not removed which is identical in the essentials to the log from 10.2.3 when the card was removed then quickly re-inserted). It's then treated as freshly inserted. Perhaps the change was in power management rather than IOPCCardFamily?

issue unless you are trying insertions/removals during sleep. I have been telling driver writers that they need to guard against this by keeping track of what state they are in so that they know when to ignore/stall requests from system that don't make sense. This also applies to incoming user requests and device interrupts, it is also possible to get either of these while you are still in state of being powered off.

Right. I'm very careful to not touch the card if I've been told to power off. However, I don't think there's a hole in my driver here; the system tells me to power off, but never tells me to power back on, so my driver can't safely do anything. Meanwhile the card is generating interrupts of its own accord, which don't get serviced because my driver is afraid to touch the card!

it really sounds like there is something is wrong with the OS. I will see what I can figure out. thanks.

-rick
__
rick sulack
darwin core os group
apple computer, inc
--------------------------------------------------------------
"More computing sins are committed in the name of efficiency (without necessarily achieving it)
than for any other single reason - including blind stupidity" -Wulf 1972
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: PCMCIA Race condition after sleep (From: "Matthew T. Russotto" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.