RE: kacpid problems

Yu, Luming
2004-11-11T14:37:36Z

Did you try this?

I found a similar bug http://bugme.osdl.org/show_bug.cgi?id=3686.

please apply the following patches one by one, and see which patch
could make the symptom disappear.

--- edited/drivers/acpi/ec.0 2004-11-11 00:01:30.000000000 +0800
+++ edited/drivers/acpi/ec.c 2004-11-11 00:03:13.000000000 +0800
@@ -395,9 +395,14 @@

acpi_disable_gpe(NULL, ec->gpe_bit, ACPI_ISR);

+#if 0
status = acpi_os_queue_for_execution(OSD_PRIORITY_GPE,
acpi_ec_gpe_query, ec);

+#endif
+ status = AE_OK;
+
+
if (status == AE_OK)
return ACPI_INTERRUPT_HANDLED;
else

--- edited/drivers/acpi/events/evgpe.c.1 2004-11-11 00:10:44.000000000 +0800
+++ edited/drivers/acpi/events/evgpe.c 2004-11-11 00:09:28.000000000 +0800
@@ -668,6 +668,7 @@
* Execute the method associated with the GPE
* NOTE: Level-triggered GPEs are cleared after the method completes.
*/
+#if 0
if (ACPI_FAILURE (acpi_os_queue_for_execution (OSD_PRIORITY_GPE,
acpi_ev_asynch_execute_gpe_method,
gpe_event_info))) {
@@ -675,6 +676,7 @@
"acpi_ev_gpe_dispatch: Unable to queue handler for GPE[%2X], event is disabled\n",
gpe_number));
}
+#endif
break;

default:

Thanks
Luming

>-----Original Message-----
>From: dev_zero [mailto:dev_xor@yahoo.no]
>Sent: 2004年11月11日 1:10
>To: Wang, Zhenyu Z
>Cc: Yu, Luming; acpi-devel@lists.sourceforge.net
>Subject: Re: [ACPI] kacpid problems
>
>This patch actually made some difference. I could play
>much longer now. First it started lagging, then it
>stopped, then it started lagging again, then it
>stopped. It went like this for a while, but after I
>had played som more, it started lagging again but now
>it didn't stop.
>
> --- "Wang, Zhenyu" <zhenyu.z.wang@intel.com> wrote:
>> oops,
>>
>> ---
>> acpi-2.6/drivers/acpi/thermal.c~remove_queue_work
>> 2004-11-10 23:38:51.693022464 +0800
>> +++ acpi-2.6/drivers/acpi/thermal.c 2004-11-10
>> 23:52:40.820975856 +0800
>> @@ -472,6 +472,8 @@ acpi_thermal_critical (
>> printk(KERN_EMERG "Critical temperature reached
>> (%ld C), shutting down.\n",
>> KELVIN_TO_CELSIUS(tz->temperature));
>> acpi_bus_generate_event(device,
>> ACPI_THERMAL_NOTIFY_CRITICAL,
>> tz->trips.critical.flags.enabled);
>>
>> + tz->zombie = 1;
>> + acpi_os_wait_events_complete(NULL);
>>
>>
>acpi_thermal_call_usermode(ACPI_THERMAL_PATH_POWEROFF);
>>
>> return_VALUE(0);
>>
>> If this has no help, maybe others eat up kacpid..
>>
>> On 2004.11.10 23:44:33 +0000, Wang, Zhenyu wrote:
>> > Pls try this patch,
>> >
>> > ---
>> acpi-2.6/drivers/acpi/thermal.c~remove_queue_work
>> 2004-11-10 23:38:51.693022464 +0800
>> > +++ acpi-2.6/drivers/acpi/thermal.c 2004-11-10
>> 23:39:50.195128792 +0800
>> > @@ -472,6 +472,7 @@ acpi_thermal_critical (
>> > printk(KERN_EMERG "Critical temperature
>> reached (%ld C), shutting down.\n",
>> KELVIN_TO_CELSIUS(tz->temperature));
>> > acpi_bus_generate_event(device,
>> ACPI_THERMAL_NOTIFY_CRITICAL,
>> tz->trips.critical.flags.enabled);
>> >
>> > + tz->zombie = 1;
>> >
>>
>acpi_thermal_call_usermode(ACPI_THERMAL_PATH_POWEROFF);
>> >
>> > return_VALUE(0);
>> >
>> > Is this work?
>> >
>> > -zhen
>> >
>> > On 2004.11.10 14:33:35 +0000, dev_zero wrote:
>> > > kacpid still runns with 99%cpu usage when the
>> cpu gets
>> > > too hot. I tried the game quake 2. You can play
>> around
>> > > 10 -15 minutes before the kacpid starts running
>> on 99%
>> > > cpu usage. I also used quake 2 too test the
>> kernel
>> > > before I applied your patch.
>> > >
>> > > --- "Yu, Luming" <luming.yu@intel.com> wrote:
>> > > > It means there was NO event generated at that
>> time.
>> > > > Do you think the symptom is gone with my debug
>> > > > patch?
>> > > > If so, I think your box need a more sane
>> schedule
>> > > > for acpi_thermal_check
>> > > > And, I can come up with a patch.
>> > > >
>> > > > Thanks
>> > > > Luming
>> > > >
>> > > > >-----Original Message-----
>> > > > >From: dev_zero [mailto:dev_xor@yahoo.no]
>> > > > >Sent: 2004å¹´11æœˆ10æ—¥ 1:06
>> > > > >To: Yu, Luming
>> > > > >Cc: acpi-devel@lists.sourceforge.net
>> > > > >Subject: RE: [ACPI] kacpid problems
>> > > > >
>> > > > >When I try to output the event file I do
>> this:
>> > > > >[root@balder: /proc/acpi]# cat event >
>> > > > /home/event.log
>> > > > >
>> > > > >But then It just stands there without doing
>> > > > anything.
>> > > > >So i tried to check what was wrong (ps ax)
>> command:
>> > > > >2922 pts/0 S+ 0:00 cat event
>> > > > >
>> > > > >I don't know if it is supposed to be
>> suspended?
>> > > > >> I want to know what kind of events could be
>> > > > >> generated heavily, which could have
>> corresponding
>> > > > >> pending execution of AML method issued to
>> work
>> > > > queue
>> > > > >> handled by kacpid. So just cat
>> /proc/acpi/event
>> > > > >
>> > > > >> event.log
>> > > > >> to me when you were observing abnormal cpu
>> > > > >> consumption by kacpid.
>> > > > >>
>> > > > >> Thanks
>> > > > >> Luming
>> > > > >>
>> > > > >> >-----Original Message-----
>> > > > >> >From: dev_zero [mailto:dev_xor@yahoo.no]
>> > > > >> >Sent: 2004Ã„Ãª11Ã”Ã‚10ÃˆÃ• 0:00
>> > > > >> >To: Yu, Luming
>> > > > >> >Subject: RE: [ACPI] kacpid problems
>> > > > >> >
>> > > > >> >Of course.. But which log files do you
>> want to
>> > > > take
>> > > > >> a
>> > > > >> >look at?
>> > > > >> >> >How am i supppose to get an output from
>> > > > >> >> >/proc/acpi/event ??? I can't access the
>> file,
>> > > > >> >> because
>> > > > >> >> >it's in use.
>> > > > >> >>
>> > > > >> >> Just kill acpid or the similar.
>> > > > >> >>
>> > > > >> >>
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>>
>>>-------------------------------------------------------
>> > > > >> >> This SF.Net email is sponsored by:
>> > > > >> >> Sybase ASE Linux Express Edition -
>> download
>> > > > now
>> > > > >> for
>> > > > >> >> FREE
>> > > > >> >> LinuxWorld Reader's Choice Award Winner
>> for
>> > > > best
>> > > > >> >> database on Linux.
>> > > > >> >>
>> > > > >>
>> > > >
>> http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
>> > > > >> >>
>> > > >
>> _______________________________________________
>> > > > >> >> Acpi-devel mailing list
>> > > > >> >> Acpi-devel@lists.sourceforge.net
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>>
>>>https://lists.sourceforge.net/lists/listinfo/acpi-devel
>> > > > >> >>
>> > > > >> >
>> > > > >>
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>>
>-------------------------------------------------------
>> > > This SF.Net email is sponsored by:
>> > > Sybase ASE Linux Express Edition - download now
>> for FREE
>> > > LinuxWorld Reader's Choice Award Winner for best
>> database on Linux.
>> > >
>>
>http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
>> > > _______________________________________________
>> > > Acpi-devel mailing list
>> > > Acpi-devel@lists.sourceforge.net
>> > >
>>
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
>> >
>> >
>> >
>>
>-------------------------------------------------------
>> > This SF.Net email is sponsored by:
>> > Sybase ASE Linux Express Edition - download now
>> for FREE
>> > LinuxWorld Reader's Choice Award Winner for best
>> database on Linux.
>> >
>> http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
>> > _______________________________________________
>> > Acpi-devel mailing list
>> > Acpi-devel@lists.sourceforge.net
>> >
>>
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
>>
>