linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Oldrich Jedlicka <oldium.pro@seznam.cz>
Cc: Andi Kleen <andi@firstfloor.org>,
	Zhao Yakui <yakui.zhao@intel.com>,
	linux-acpi@vger.kernel.org, lenb@kernel.org
Subject: Re: [PATCH] ACPI : Avoid bogus timeout about SMbus check
Date: Fri, 12 Sep 2008 01:13:12 +0400	[thread overview]
Message-ID: <48C989E8.5010704@suse.de> (raw)
In-Reply-To: <200809112149.43894.oldium.pro@seznam.cz>

Hi Oldrich,

It might happen that you too have GPE storm on your machine. The patch
to workaround it was placed in 9998 and 10724 bug reports.
So, for a start you could check if the last patch in 9998 makes any difference.
We probably could drop wait_event_timeout() as the last resort.

Regards,
Alex.

Oldrich Jedlicka wrote:
> On Thursday 04 of September 2008 at 14:18:20, Andi Kleen wrote:
>> On Tue, Aug 26, 2008 at 01:57:34PM +0800, Zhao Yakui wrote:
>>> Subject: ACPI: Avoid bogus timeout about SMbus check
>>>
>>> >From :  Zhao Yakui <yakui.zhao@intel.com>
>>>
>>> In the function of wait_transaction_complete when the timeout happens,
>>> OS will try to check the status of SMbus again. If the status is what OS
>>> expected, it will be regarded as the bogus timeout. Otherwise it will be
>>> treated as ETIME.
>>>
>>> http://bugzilla.kernel.org/show_bug.cgi?id=10483
>> I added it for 2.6.27 thanks (since it seems to be a regression)
> 
> Hi all,
> 
> the problem in bug 10483 isn't solved, unfortunately the patch applied to 
> 2.6.27 isn't the one I tested.
> 
> The problem I face is that wait_transaction_complete() in sbshc.c doesn't take 
> at most "timeout" time (=one second), but it rather often takes very long 
> time to complete on my system (several minutes) - notebook Acer TravelMate 
> 4502WLMi.
> 
> To describe the problem I need to go into wait_event_timeout() macro as used 
> in wait_transaction_complete(): it first calls the user method 
> smb_check_done() to check if the loop should end and if not, it waits for at 
> most "timeout" time. The wait can be woken-up by a wake_up() method and if 
> so, it remembers the remaining "timeout", repeats the call to user method 
> smb_check_done() and possibly continues with wait (with the 
> remaining "timeout"). This is done in a loop.
> 
> Now my problem: the wait_event_timeout() loop takes several minutes instead of 
> one second (as specified by the parameter "timeout"). The reason for that - as 
> I think - is this:
> 
>   1. The smb_check_done() method called each loop takes some time to execute, 
> but this time is not included into the overall timeout.
>   2. The wait_event_timeout() is woken-up by smbus_alarm() very early each 
> loop, so the remaining "timeout" gets lower very slow (I think it is so, but 
> I haven't verified this hypothesis yet).
> 
> So my question is what I shoud do now? If you want to see some logs (and the 
> original patch), please go to my bug report:
> 
>   http://bugzilla.kernel.org/show_bug.cgi?id=10483
> 
> Thanks.
> 
> Note: I'm building my house after my normal work, so I don't have much time 
> left, but I will do my best to try whatever you suggest. And sorry for my 
> english :-)
> 
> Regards,
> Oldrich.
> 


  reply	other threads:[~2008-09-11 21:13 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-26  5:57 [PATCH] ACPI : Avoid bogus timeout about SMbus check Zhao Yakui
2008-09-04 12:18 ` Andi Kleen
2008-09-04 12:33   ` patch for bugs 9998 and 10724 Alexey Starikovskiy
2008-09-04 12:35     ` Alexey Starikovskiy
2008-09-04 13:18       ` Andi Kleen
2008-09-05  2:26       ` Zhang Rui
2008-09-05  3:49         ` Zhao Yakui
2008-09-05 12:58           ` Alexey Starikovskiy
2008-09-08  1:18             ` Zhao Yakui
2008-09-05 12:45         ` Alexey Starikovskiy
2008-09-08  2:56           ` Zhang Rui
2008-09-08  8:25             ` Alexey Starikovskiy
2008-09-09  9:13               ` Zhao Yakui
2008-09-09  9:12                 ` Alexey Starikovskiy
2008-09-09  9:28                   ` Alexey Starikovskiy
2008-09-09  9:43                   ` Zhao Yakui
2008-09-09  9:36                     ` Alexey Starikovskiy
2008-09-10  1:15                       ` Zhao Yakui
2008-09-10  2:23                         ` Alexey Starikovskiy
2008-09-11 19:49   ` [PATCH] ACPI : Avoid bogus timeout about SMbus check Oldrich Jedlicka
2008-09-11 21:13     ` Alexey Starikovskiy [this message]
2008-09-14 20:06       ` Oldrich Jedlicka
2008-09-12  1:38     ` Zhao Yakui
2008-09-14 20:17       ` Oldrich Jedlicka

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=48C989E8.5010704@suse.de \
    --to=astarikovskiy@suse.de \
    --cc=andi@firstfloor.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=oldium.pro@seznam.cz \
    --cc=yakui.zhao@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).