Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1741904
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH v6 3/3] ACPI / EC: Enable noirq stage event detection |
| Date | 2017-09-29 05:00 +0200 |
| Message-ID | <uuTGV-oV-5@gated-at.bofh.it> (permalink) |
| References | <u7LS9-3l2-5@gated-at.bofh.it> <uuTGV-oV-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch enables noirq stage event detection for the EC driver. EC is a very special driver, required to detecting events throughout the entire suspend/resume process. Thus this patch enables event detection for EC during noirq stages to meet this requirement. This is done by making sure that the EC sleep APIs: acpi_ec_block_transactions() acpi_ec_unblock_transactions() rather than the EC driver suspend/resume hooks: acpi_ec_suspend() acpi_ec_resume() are the boundary of the EC event handling during suspend/resume, so that the ACPI sleep core can tune their invocation timing to handle special BIOS requirements. If this commit is bisected to be a regression culprit, please report this to bugzilla.kernel.org for further investigation. Link: https://bugzilla.kernel.org/show_bug.cgi?id=196129 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Tested-by: Tomislav Ivek <tomislav.ivek@gmail.com> --- drivers/acpi/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 389c499..a48a2b3 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -157,7 +157,7 @@ static bool ec_no_wakeup __read_mostly; module_param(ec_no_wakeup, bool, 0644); MODULE_PARM_DESC(ec_no_wakeup, "Do not wake up from suspend-to-idle"); -static bool ec_detect_noirq_events __read_mostly; +static bool ec_detect_noirq_events __read_mostly = true; module_param(ec_detect_noirq_events, bool, 0644); MODULE_PARM_DESC(ec_detect_noirq_events, "Enabling event detection during noirq stage"); -- 2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH v6 0/3] ACPI / EC: Tune the timing of EC events arrival during S3-exit Lv Zheng <lv.zheng@intel.com> - 2017-09-29 05:00 +0200 [RFC PATCH v6 3/3] ACPI / EC: Enable noirq stage event detection Lv Zheng <lv.zheng@intel.com> - 2017-09-29 05:00 +0200 [RFC PATCH v6 1/3] ACPI / EC: Fix possible driver order issue by moving EC event handling earlier Lv Zheng <lv.zheng@intel.com> - 2017-09-29 05:00 +0200 [RFC PATCH v6 2/3] ACPI / EC: Add event detection support for noirq stages Lv Zheng <lv.zheng@intel.com> - 2017-09-29 05:00 +0200
csiph-web