public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* New Smart Battery release (incl. updated embedded controller patches)
@ 2005-11-13  4:14 Rich Townsend
       [not found] ` <4376BD90.5080603-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
  0 siblings, 1 reply; 19+ messages in thread
From: Rich Townsend @ 2005-11-13  4:14 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: New Smart Battery release (incl. updated embedded controller patches)
@ 2005-11-15 17:39 Lebedev, Vladimir P
  0 siblings, 0 replies; 19+ messages in thread
From: Lebedev, Vladimir P @ 2005-11-15 17:39 UTC (permalink / raw)
  To: Rich Townsend, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: Brown, Len, Starikovskiy, Alexey Y

[-- Attachment #1: Type: text/plain, Size: 4350 bytes --]

Hi Rich,

I am attaching patch for kernel 2.6.14 with SBS drivers based on drivers
which were written by you and Bruno Ducrot.

Also this patch contains your latest updates of embedded controller
(ec.c file)

Differences to your version include some cleanup, handling of battery
removal/insertion, and non-conflicting operation with ACPI battery and
ac modules. 

All work pretty good on Acer TravelMate 2303LCi.

If you are interested, apply the patch, set ACPI_SBS configuration
variable (Smart Battery System - bottom of menu) to 'y' or 'm'(modprobe
acpi_sbs will be required in case 'm'), etc. Module acpi_sbs depends on
ACPI_AC, ACPI_BATTERY and I2C.

Vladimir.



 

 

 

 


-----Original Message-----
From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Rich
Townsend
Sent: Sunday, November 13, 2005 7:14 AM
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [ACPI] New Smart Battery release (incl. updated embedded
controller patches)


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
_______________________________________________
Acpi-devel mailing list
Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/acpi-devel

[-- Attachment #2: diff.txt.bz2 --]
[-- Type: application/octet-stream, Size: 12726 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: New Smart Battery release (incl. updated embedded controller patches)
@ 2005-12-20  7:27 Yu, Luming
  0 siblings, 0 replies; 19+ messages in thread
From: Yu, Luming @ 2005-12-20  7:27 UTC (permalink / raw)
  To: Lebedev, Vladimir P, Rich Townsend,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: Brown, Len, Starikovskiy, Alexey Y

 I just replace spin_lock_irq_xx with mutex for poll code path of ec driver.
It is at http://bugzilla.kernel.org/show_bug.cgi?id=5764 .

For issues observerd on Smart Battery driver with ec_intr=1 (aka "ec_burst=1")
 , we need to follow up.  

Please try to kill acpi daemon to see if your problem get resolved?

Thanks,
Luming


>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
>Lebedev, Vladimir P
>Sent: 2005年11月16日 1:39
>To: Rich Townsend; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Cc: Brown, Len; Starikovskiy, Alexey Y
>Subject: RE: [ACPI] New Smart Battery release (incl. updated 
>embedded controller patches)
>
>Hi Rich,
>
>I am attaching patch for kernel 2.6.14 with SBS drivers based 
>on drivers
>which were written by you and Bruno Ducrot.
>
>Also this patch contains your latest updates of embedded controller
>(ec.c file)
>
>Differences to your version include some cleanup, handling of battery
>removal/insertion, and non-conflicting operation with ACPI battery and
>ac modules. 
>
>All work pretty good on Acer TravelMate 2303LCi.
>
>If you are interested, apply the patch, set ACPI_SBS configuration
>variable (Smart Battery System - bottom of menu) to 'y' or 'm'(modprobe
>acpi_sbs will be required in case 'm'), etc. Module acpi_sbs depends on
>ACPI_AC, ACPI_BATTERY and I2C.
>
>Vladimir.
>
>
>
> 
>
> 
>
> 
>
> 
>
>
>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Rich
>Townsend
>Sent: Sunday, November 13, 2005 7:14 AM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: [ACPI] New Smart Battery release (incl. updated embedded
>controller patches)
>
>
>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
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-03-01 15:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13  4:14 New Smart Battery release (incl. updated embedded controller patches) Rich Townsend
     [not found] ` <4376BD90.5080603-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
2005-11-14 10:05   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox