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: PCCard Sleep Query



Hi 
Thanks Rick !

I m using PowerBook G3 Series (333MHz,512K Cache, 8MB Video) on Mac OS 10.3.2
Family Number : M5343

Just have a look at the logs

Case 1:  When I insert the card, the logs are :
May 23 12:29:30 localhost kernel: IOPCCard info:   cs: cb_alloc(bus
1): vendor 0x5678, device 0x1234
May 23 12:29:30 localhost kernel: IOCardBusDevice: binding socket 0
function 0 to card services.
May 23 12:29:30 localhost kernel: IOPCCard info:   cs: cb_config(bus 1)
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 bar 2: io 0x24-0x27
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 bar 4: io 0x20-0x23
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 bar 6: mem
0x90080000-0x900801ff
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 bar 1: io 0x18-0x1f
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 bar 3: io 0x10-0x17
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 rom: mem
0x90000000-0x9007ffff
May 23 12:29:30 localhost kernel: IOPCCard info:     fn 0 bar 5: io 0x0-0xf
May 23 12:29:30 localhost kernel: IOPCCard info:     irq 255
May 23 12:29:30 localhost kernel: IOPCCardBridge: bad range 1(00000010:00000010)
May 23 12:29:30 localhost kernel: IOPCCardBridge: bad range 1(00000020:00000010)

---------------------------------------------------------------------------------------------------------------------------------------
Case 2:  When I make the system sleep from apple menu and then wake
the system, the logs are:

May 23 12:29:54 localhost mDNSResponder[180]: mDNSResponder Sleeping at 300602
May 23 12:30:02 localhost kernel: System Sleep
May 23 12:30:04 localhost kernel: System Wake
May 23 12:30:04 localhost kernel: IOPCCard info:   cs: cb_free(bus 1)
May 23 12:30:04 localhost kernel: IOPCCard: shutting down socket 0.
May 23 12:30:04 localhost kernel: IOPCCard: calling terminate on
socket 0 function 0 nub 0xc82000.
May 23 12:30:04 localhost kernel: IOCardBusDevice: releasing socket 0
function 0 from card services.
May 23 12:30:04 localhost kernel: IOPCCard notice: Cardbus Expert:
ReleaseConfiguration: Bad handle
May 23 12:30:04 localhost kernel: IOPCCard: socket 0 did not terminate
cleanly, state = 0x4.
May 23 12:30:04 localhost kernel: IOPCCard info:   cs: cb_alloc(bus
1): vendor 0x5678, device 0x1234
May 23 12:30:04 localhost kernel: IOCardBusDevice: binding socket 0
function 0 to card services.
May 23 12:30:04 localhost kernel: IOPCCard info:   cs: cb_config(bus 1)
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 bar 2: io 0x64-0x67
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 bar 4: io 0x60-0x63
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 bar 6: mem
0x90180000-0x901801ff
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 bar 1: io 0x58-0x5f
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 bar 3: io 0x50-0x57
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 rom: mem
0x90100000-0x9017ffff
May 23 12:30:04 localhost kernel: IOPCCard info:     fn 0 bar 5: io 0x40-0x4f
May 23 12:30:04 localhost kernel: IOPCCard info:     irq 255
May 23 12:30:04 localhost kernel: IOPCCardBridge: bad range 1(00000050:00000010)
May 23 12:30:04 localhost kernel: IOPCCardBridge: bad range 1(00000060:00000010)
May 23 12:30:04 localhost kernel: BMacEnet::monitorLinkStatus: Link up
at 10 Mbps - Half Duplex
May 23 12:30:05 localhost kernel: ADB present:8c
May 23 12:30:09 localhost mDNSResponder[180]: mDNSResponder Waking at 310980
---------------------------------------------------------------------------------------------------------------------------------------
Clearly as you can see the IOPCCard is shutting down the socket.  So
whether my driver is loaded or not the IOPCCard shuts down the socket.

My Questions:
1.  Is this how the IOPCCard behaves ?
2.  Why it releases the socket during a system sleep?  Can this be prevented?
3.  What does these two lines signify?
May 23 12:30:04 localhost kernel: IOPCCardBridge: bad range 1(00000050:00000010)
May 23 12:30:04 localhost kernel: IOPCCardBridge: bad range 1(00000060:00000010)

My Requirement:
I need to prevent this release of socket as the card under question
gives interface to harddisk which gets ejected and then mount back
when system sleeps and wakes. This happens because IOPCCard shuts down
socket and then bind again thereby causing my driver to unload and
load again during a system sleep and wake.

FINALLY, are there any issues with IOPCCard and Mac OS 10.1.3
regarding memory map?
The logs when i insert the same card using Mac OS 10.1.3 are:
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:   cs:
cb_alloc(bus 1): vendor 0x5678, device 0x1234
Apr 27 16:53:02 localhost mach_kernel: IOCardBusDevice: binding socket
0 function 0 to card services.
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:   cs: cb_config(bus 1)
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 bar 2:
io 0x64-0x67
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 bar 4:
io 0x60-0x63
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 bar 6:
mem 0x90180000-0x901801ff
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 bar 1:
io 0x58-0x5f
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 bar 3:
io 0x50-0x57
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 rom:
mem 0x90100000-0x9017ffff
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     fn 0 bar 5:
io 0x40-0x4f
Apr 27 16:53:02 localhost mach_kernel: IOPCCard info:     irq 255
Apr 27 16:53:02 localhost mach_kernel: IOPCCardBridge: bad range
1(00000050:00000010)
Apr 27 16:53:02 localhost mach_kernel: IOPCCardBridge: bad range
1(00000060:00000010)
Apr 27 16:53:02 localhost mach_kernel: IOPCCardBridge: bad range
1(00000050:00000010)
Apr 27 16:53:02 localhost mach_kernel: IOPCCardBridge: bad range
1(00000060:00000010)
Apr 27 16:53:02 localhost mach_kernel: IOPCCardBridge: bad range
1(00000040:00000010)

The memory is not mapped this can be seen from the Registry as follows:
IODeviceMemory = (
       "IOSubMemoryDescriptor is not serializable",
       "IOSubMemoryDescriptor is not serializable",
       "IOSubMemoryDescriptor is not serializable",
       "IOSubMemoryDescriptor is not serializable",
       "IOSubMemoryDescriptor is not serializable",
       "IOGeneralMemoryDescriptor is not serializable"
   );

Thanks
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to 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.