Skip to contentSkip to conversation

EC SCI model?

DISCUSSION Nate Lawson 2 participants 2 messages Jun 24, 2003 – Jun 25, 2003 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

I am a FreeBSD developer but this is a more general question with ACPI. I looked through the spec (especially 13 Embedded Controller) and I have a question regarding the IBF/OBF stuff. Testing has shown that I get multiple callbacks of my EcGpeHandler() routine even when IBF and OBF have not changed. Isn't the GPE only supposed to trigger when they change (and only once)? I've gotten more reliability by waiting for the GPE, checking the status and if it isn't what I'm waiting for, go back to sleep.

Also, what is the procedure for sleeping while holding the ACPI Global Lock? I need to sleep while waiting for the GPE to trigger between each phase of read and write (i.e. command, address, data). I'm not using burst mode but may consider implementing it to make this easier and avoid the sleep altogether.

Thanks,
-Nate

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Nate Lawson

I am a FreeBSD developer but this is a more general question with ACPI. I looked through the spec (especially 13 Embedded Controller) and I have a question regarding the IBF/OBF stuff. Testing has shown that I get multiple callbacks of my EcGpeHandler() routine even when IBF and OBF have not changed. Isn't the GPE only supposed to trigger when they change (and only once)? I've gotten more reliability by waiting for the GPE, checking the status and if it isn't what I'm waiting for, go back to sleep.

Quoted 6 lines

Also, what is the procedure for sleeping while holding the ACPI Global Lock? I need to sleep while waiting for the GPE to trigger between each phase of read and write (i.e. command, address, data). I'm not using burst mode but may consider implementing it to make this easier and avoid the sleep altogether.

Look at the NetBSD implementation of the EC. It look stable for me, and do not have the GPL issue...

Signature · 11 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php