From: Li Guang <lig.fnst@cn.fujitsu.com>
To: Juan Manuel Cabo <juanmanuel.cabo@gmail.com>
Cc: Kieran Clancy <clancy.kieran@gmail.com>,
Len Brown <lenb@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
Lan Tianyu <tianyu.lan@intel.com>,
Dennis Jansen <dennis.jansen@web.de>
Subject: Re: [PATCH] ACPI / EC: Clear stale EC events on Samsung systems
Date: Thu, 27 Feb 2014 11:45:51 +0800 [thread overview]
Message-ID: <530EB4EF.8080800@cn.fujitsu.com> (raw)
In-Reply-To: <530EB176.1050402@gmail.com>
Juan Manuel Cabo wrote:
> On 02/27/2014 12:14 AM, Li Guang wrote:
>
>> oh, sorry, I'm referring internal EC firmware code
>> for Q event queuing, not ACPI SPEC, ;-)
>> for machine you tested, 8 is the queue size,
>> but for some unknown also nasty EC firmwares(let's suppose it exists),
>> it may queue more Q events.
>> and I saw several firmwares queued 32 events by default,
>> then, let's say, they be used for some samsung products,
>> and also they also forgot to deal with sleep/resume state,
>> then, we'll also leave stale Q event there.
>>
>> Thanks!
>>
>>
> We tested each on our different samsung models (intel, amd), and it
> was 8 across. But you're right, there might be more in the future.
>
> I even saw a bug report in ubuntu's launchpad of an HP with a similar
> sounding problem, ( https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/89860 )
> which I have no idea if it was caused by the same issue, but if in the future,
> the flag ec_clear_on_resume is used to match other DMI's, it might
> be a good idea to make the max iteration count bigger.
>
> The only reason that there is a max iteration count, was to prevent
> an unexpected case in which an unknown EC never returns 0 after
> queue emptied. So far it hasn't been the case. Can we count on it?.
> The loop currently does finish early when there are no more events.
>
> I guess changing it 255 or 1000 would be enough, right?
>
>
can't imagine 1K bytes be dissipated on Q event,
EC's ram is usually expensive,
I think 255 is really enough. :-)
Thanks!
next prev parent reply other threads:[~2014-02-27 3:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 15:42 Kieran Clancy
2014-02-26 23:45 ` Rafael J. Wysocki
2014-02-27 0:45 ` Kieran Clancy
2014-02-27 0:59 ` Kieran Clancy
2014-02-27 1:16 ` Rafael J. Wysocki
2014-02-27 1:09 ` Kieran Clancy
2014-02-27 22:02 ` Rafael J. Wysocki
2014-02-27 1:15 ` Rafael J. Wysocki
2014-02-27 1:59 ` Li Guang
2014-02-27 2:33 ` Juan Manuel Cabo
2014-02-27 3:14 ` Li Guang
2014-02-27 3:31 ` Juan Manuel Cabo
2014-02-27 3:45 ` Li Guang [this message]
2014-02-27 3:49 ` Kieran Clancy
2014-02-27 4:47 ` Li Guang
2014-02-27 13:41 ` Hello Kieran Juan Manuel Cabo
2014-02-28 14:12 ` [PATCH v2] ACPI / EC: Clear stale EC events on Samsung systems Kieran Clancy
2014-03-02 0:40 ` Rafael J. Wysocki
2014-03-05 18:30 ` Joseph Salisbury
2014-03-06 0:34 ` Kieran Clancy
2014-03-06 0:52 ` Rafael J. Wysocki
2014-03-06 1:24 ` Kieran Clancy
2014-03-06 1:36 ` Juan Manuel Cabo
2014-03-06 12:32 ` Rafael J. Wysocki
2014-03-06 23:12 ` Joseph Salisbury
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=530EB4EF.8080800@cn.fujitsu.com \
--to=lig.fnst@cn.fujitsu.com \
--cc=clancy.kieran@gmail.com \
--cc=dennis.jansen@web.de \
--cc=juanmanuel.cabo@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=tianyu.lan@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
Powered by JetHome