Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1645253 > unrolled thread
| Started by | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| First post | 2017-05-19 09:10 +0200 |
| Last post | 2017-05-19 09:10 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 0/3] ACPI / EC: Add quirk modes for boot EC support Lv Zheng <lv.zheng@intel.com> - 2017-05-19 09:10 +0200
[PATCH v2 1/3] ACPI / EC: Enhance boot EC sanity check Lv Zheng <lv.zheng@intel.com> - 2017-05-19 09:10 +0200
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Date | 2017-05-19 09:10 +0200 |
| Subject | [PATCH v2 0/3] ACPI / EC: Add quirk modes for boot EC support |
| Message-ID | <tIKcW-76X-11@gated-at.bofh.it> |
It's reported that Asus laptop X580VD/X550VXK/FX502VD/FX502VE have a BIOS
bug where the ECDT correctly states that EC events trigger GPE 0x23, but
the DSDT _GPE method incorrectly returns GPE 0x33.
This patchset fixes this issue.
Link: https://www.spinics.net/lists/linux-acpi/msg73763.html
https://bugzilla.kernel.org/show_bug.cgi?id=195651
v2: Stops doing craps related to EC_ID (it's already too complicated), and
reduces one unnecessary boot parameter. For the final bug fix, prefers
the fix from endlessm.com developers.
Chris Chiu (1):
ACPI / EC: Fix media keys not working problem on some Asus laptops
Lv Zheng (2):
ACPI / EC: Enhance boot EC sanity check
ACPI / EC: Add support to skip boot stage DSDT probe
drivers/acpi/ec.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 60 insertions(+), 6 deletions(-)
--
2.7.4
[toc] | [next] | [standalone]
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Date | 2017-05-19 09:10 +0200 |
| Subject | [PATCH v2 1/3] ACPI / EC: Enhance boot EC sanity check |
| Message-ID | <tIKcX-76X-33@gated-at.bofh.it> |
| In reply to | #1645253 |
It's reported that some buggy BIOS tables can contain 2 DSDT ECs and one of them is invalid. As we shouldn't evaluate _STA from acpi_ec_dsdt_probe() due to the unknown Windows enumeration order, this patch simply enhances sanity checks in ec_parse_device() as a workaround to skip probing wrong namespace ECs. Link: https://bugzilla.kernel.org/show_bug.cgi?id=195651 Tested-by: Daniel Drake <drake@endlessm.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> --- drivers/acpi/ec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index c24235d..a920db6 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1362,6 +1362,14 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval) ec_parse_io_ports, ec); if (ACPI_FAILURE(status)) return status; + /* + * It's better to evaluate _STA to determine if the device is + * valid. But that could potentially trigger issues related to + * the unknown orders of _INI/_STA evaluations. + * However we can abort due to invalid _CRS information here. + */ + if (ec->data_addr == 0 || ec->command_addr == 0) + return AE_OK; /* Get GPE bit assignment (EC events). */ /* TODO: Add support for _GPE returning a package */ -- 2.7.4
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web