public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fixed buffered ACPI events for a lot ASUS machines
@ 2005-09-12 11:39 Thomas Renninger
       [not found] ` <432568E3.6040401-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Renninger @ 2005-09-12 11:39 UTC (permalink / raw)
  To: Yu, Luming
  Cc: ML ACPI-devel, jfvasconcelos-Re5JQEeQqe8AvxtiuMwx3w,
	acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Len Brown

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

Hi,

I finally could resolve the buffering of ACPI events on
some ASUS (M6N, M6000, A3500N, A6000G, maybe more...)
when battery module is loaded.

After hours of hopeless debugging I could track it down by comparing
with Yu Luming's previously patch posted on bugzilla.kernel.org.

Yu, could you confirm that this is really fixing a bug and totally safe?

Or was this intended and could possibly lead to problems on other machines?

Thanks,

      Thomas

[-- Attachment #2: acpi_fix_ASUS_M6N_bufferd_events.diff --]
[-- Type: text/x-patch, Size: 346 bytes --]

--- drivers/acpi/ec.c.orig	2005-09-12 13:22:13.000000000 +0200
+++ drivers/acpi/ec.c	2005-09-12 13:22:22.000000000 +0200
@@ -840,8 +840,8 @@
 	ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Evaluating %s\n", object_name));
 
 	acpi_evaluate_object(ec->common.handle, object_name, NULL, NULL);
-end:	
 	atomic_dec(&ec->burst.pending_gpe);
+end:	
 	return;
 }
 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: [Acpi4asus-user] Re: Re: [PATCH] Fixed buffered ACPI events for a lot ASUS machines
@ 2005-09-13 14:21 Yu, Luming
  0 siblings, 0 replies; 6+ messages in thread
From: Yu, Luming @ 2005-09-13 14:21 UTC (permalink / raw)
  To: Thomas Renninger
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	jfvasconcelos-Re5JQEeQqe8AvxtiuMwx3w,
	acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Brown, Len

>ec_burst patch will be enabled in SUSE Linux 10.0 by default.

Great!

Please check patch link at :
 http://bugzilla.kernel.org/show_bug.cgi?id=3851#c73

The same patch against Lindent-ed ec.c is at:
 http://bugzilla.kernel.org/show_bug.cgi?id=3851#c75

>Beside lost mouse/key-strokes on some specific machines (also 
>happen with 
>ec_burst=0), I don't know of any greater harm ec_burst causes.
>If you know any other issues I'd appreciate if you let me know.

After fixing the infamous regression of old burst mode ec patch,
the latest burst mode ec driver has been validated on pretty much boxs.
(One example is  http://bugzilla.kernel.org/show_bug.cgi?id=4665)

And, I don't know other regression could exist. So, I think this patch
is safe.
If you know it,  please drop me a link to bug report.  It's really
appreciated.

As for lost mouse/key-strokes issues,  the root cause is quite
complicated.
the latest ec driver has eliminated  the long delay of polling ec status

while holding spin lock. So, the latest ec driver itself shouldn't hang
system
a period that causes mouse/key lost.

In case you unluckily encounter problem with ec_burst=1, please also
test ec_burst=0. If ec_burst=0 works and ec_burst=1 doesn't, then 
it is a regression with ec_burst=1. 


Thanks,
Luming


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

end of thread, other threads:[~2005-09-13 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-12 11:39 [PATCH] Fixed buffered ACPI events for a lot ASUS machines Thomas Renninger
     [not found] ` <432568E3.6040401-l3A5Bk7waGM@public.gmane.org>
2005-09-13  2:31   ` Yu Luming
     [not found]     ` <200509131031.43570.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2005-09-13  7:18       ` Thomas Renninger
     [not found]         ` <43267D43.3070305-l3A5Bk7waGM@public.gmane.org>
2005-09-13  9:08           ` Yu Luming
     [not found]             ` <200509131708.53544.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2005-09-13 10:39               ` [Acpi4asus-user] " Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2005-09-13 14:21 Yu, Luming

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