public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rich Townsend <rhdt-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: New Smart Battery release (incl. updated embedded controller patches)
Date: Sat, 12 Nov 2005 23:14:08 -0500	[thread overview]
Message-ID: <4376BD90.5080603@bartol.udel.edu> (raw)


I'm pleased to announce that, after quite a long period of inactivity, I've 
finally managed to grab enough spare time from the real world to bring the 
SBS-CM (Smart Battery System/Control Method) project up to date.

Those relying on this project to check their battery status (primarily on Acer 
laptops) can now grab the sbs-cm-20051112 release of SBS-CM from the Sourceforge 
download page:

https://sourceforge.net/project/showfiles.php?group_id=129330

In this new release, I haven't made any changes to the DSDT stuff. However, I've 
included new patches for replacing the spinlock mutexing in the embedded 
controller (EC) driver with semaphore mutexing. In addition to the kernel 2.6.10 
and 2.6.11 patches included in previous releases, I now provide patches for 
2.6.12. 2.6.13 and 2.6.14 kernels. I intend to offer a 2.6.15 patch once this 
kernel version becomes the current version.

Why are these patches still necessary? Yuming Lu has done some great work 
getting EC burst mode working under Linux; I believe all kernels since 2.6.13 
contain the burst mode code by default. Unfortunately, however, burst mode does 
not fix the problems that the spinlock patches were designed to fix.

To be specific: I have fixed my kernel (2.6.13) with Yuming's most recent patch 
that prevents the boot process from stalling when the EC driver is loaded. 
Booting with burst mode enabled (boot parameter ec_burst=1) gets into immediate 
trouble if I have the thermal zone ACPI driver loaded, since my computer thinks 
the cpu is at 250C. This is indicative that the EC is not working properly.

Then, after disabling the thermal zone stuff, my computer boots up OK but still 
shows all the symptoms of lost interrupts. Furthermore, after 10 minutes of 
uptime, I notice that the kacpid task has expended nearly 3 seconds of CPU time. 
This expenditure is wholly due to the EC access, and indicates that for 3 
seconds out of 10 minutes, the EC burst code is not interruptible -- hence the 
lost interrupts.

While I will certainly agree that my own patches are not nearly as elegant as 
the burst mode solution, I must point out that they do not lead to any lost 
interrupts at all -- I don't lose any keypresses, and the kacpid task doesn't 
use up any CPU time.

I would really appreciate it if those involved in maintaining the EC code --- 
both Yuming and perhaps Len Brown --- could get in touch with me and help sort 
out a way to get EC burst mode working without lost interrupts. When that's 
done, I'll feel much more comfortable about focusing on porting my SBS stuff to 
the HAL, which is where it belongs.

Best wishes,

Rich T


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

             reply	other threads:[~2005-11-13  4:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-13  4:14 Rich Townsend [this message]
     [not found] ` <4376BD90.5080603-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
2005-11-14 10:05   ` New Smart Battery release (incl. updated embedded controller patches) Yu, Luming
     [not found]     ` <200511141805.54633.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2005-11-14 12:15       ` Pavel Machek
     [not found]         ` <20051114121512.GB1570-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-11-14 15:58           ` Matthew Garrett
     [not found]             ` <20051114155810.GA23604-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2005-11-14 16:05               ` Pavel Machek
     [not found]                 ` <20051114160525.GA9288-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-11-14 16:09                   ` Matthew Garrett
     [not found]                     ` <20051114160902.GA23683-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2005-11-14 16:11                       ` Rich Townsend
2005-11-14 16:23                       ` Pavel Machek
2005-11-21  8:07                       ` Bruno Ducrot
2005-11-14 21:34           ` David Gómez
2006-03-01 14:09     ` Roderick van Domburg
2005-11-14 23:01   ` Berthold Cogel
     [not found]     ` <43791753.2030004-F8dkAKZEjLURtNtAH2Wc8g@public.gmane.org>
2005-11-15  3:11       ` Rich Townsend
     [not found]         ` <437951CE.7060708-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
2005-11-15  7:02           ` Olaf Jansen-Olliges
     [not found]             ` <200511150802.00439.o.jansen-n+qsWun7DryELgA04lAiVw@public.gmane.org>
2005-11-15  9:07               ` Berthold Cogel
2005-11-15  8:57           ` Berthold Cogel
2005-11-15 22:28           ` Berthold Cogel
  -- strict thread matches above, loose matches on Subject: below --
2005-11-15 17:39 Lebedev, Vladimir P
2005-12-20  7:27 Yu, Luming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4376BD90.5080603@bartol.udel.edu \
    --to=rhdt-obnux95toyn10jlvftc4ga@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox