]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI: EC: Make the GPE storm threshold a module parameter
authorFeng Tang <feng.tang@intel.com>
Fri, 28 Sep 2012 07:22:00 +0000 (15:22 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 6 Oct 2012 18:53:10 +0000 (14:53 -0400)
commita520d52e99b14ba7db135e916348f12f2a6e09be
tree286c64629a828c802ca25fd92a14322bc74fde02
parenta0d271cbfed1dd50278c6b06bead3d00ba0a88f9
ACPI: EC: Make the GPE storm threshold a module parameter

The Linux EC driver includes a mechanism to detect GPE storms,
and switch from interrupt-mode to polling mode.  However, polling
mode sometimes doesn't work, so the workaround is problematic.
Also, different systems seem to need the threshold for detecting
the GPE storm at different levels.

ACPI_EC_STORM_THRESHOLD was initially 20 when it's created, and
was changed to 8 in 2.6.28 commit 06cf7d3c7 "ACPI: EC: lower interrupt storm
threshold" to fix kernel bug 11892 by forcing the laptop in that bug to
work in polling mode. However in bug 45151, it works fine in interrupt
mode if we lift the threshold back to 20.

This patch makes the threshold a module parameter so that user has a
flexible option to debug/workaround this issue.

The default is unchanged.

This is also a preparation patch to fix specific systems:
https://bugzilla.kernel.org/show_bug.cgi?id=45151

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
cc: stable@vger.kernel.org
drivers/acpi/ec.c