Bug 105321
Summary: | AE_AML_MUTEX_ORDER on Thinkpad Yoga 12, when method auto-serialization is enabled | ||
---|---|---|---|
Product: | ACPI | Reporter: | Peter Clifton (petercjclifton) |
Component: | ACPICA-Core | Assignee: | David Box (david.e.box) |
Status: | CLOSED MOVED | ||
Severity: | normal | CC: | lv.zheng, Robert.Moore, rui.zhang |
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | 3.19.0 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | DSDT from affected system |
Description
Peter Clifton
2015-10-01 22:22:59 UTC
Created attachment 189221 [details]
DSDT from affected system
We were able to reproduce the problem with the code below. It appears to be a problem with the interaction of the Mutex SyncLevel and the OperationRegion: Mutex (MWGS, 0x07) // Was 0x07 Method (WTGP, 0, NotSerialized) { Acquire (MWGS, 0xFFFF) Local0 = 0x100 OperationRegion (LGPI, SystemIO, Local0, 0x04) Release (MWGS) } Method (SWBO, 0, NotSerialized) { Acquire (MWGS, 0xFFFF) WTGP () Release (MWGS) } We have figured out the problem, but the fix will take some design work. BTW, an easy workaround is to just set the mutex sync level to zero (although it may not help you unless you override the DSDT). Mutex (MWGS, 0x00) // Was 0x07 Thanks - the "// Was 0x07" comment was one I added when trying 0x00 out as an alternative in acpiexec. I set it back to 0x00 before uploading. I'm actually trying to track down a really hard to reproduce, persists across reboots (ec register probably) fan failure on this laptop, so having other things run correctly is a bonus. The fan failure is seen by people running Windows too, so I'm guessing it is unlikely to be down to this particular bug unless windows 7 + 8 also react badly to this AML in a similar way. One for another bug (once I've triaged it a bit more), is this laptop also rejects the _OSC method for power control on the PCIe bus device, complaining of an incorrect UUID, similar to this bug: https://bugzilla.kernel.org/show_bug.cgi?id=16028 (Interesting to see similar AML triggering that above bug between the Thinkpad here and the Dell XPS... I believe both actually share Compal as their ODM). Hi, Can this be fixed by this ACPICA commit? https://github.com/acpica/acpica/commit/253e3c0 Thanks and best regards -Lv Any way the MWGS looks like a leaf lock held for opregion accesses, and set its SyncLevel to 0x07 is thus reasonable. Which may also means the method should not be serialized... Thanks and best regards -Lv Anyway, this is an ACPICA problem, please track this issue at CA bugzilla. Bug in kernel bugzilla closed. Lv, please update the CA bugzilla link after bug report created. OK, the case is recorded on ACPICA bugzilla: http://bugs.acpica.org/show_bug.cgi?id=1234 Thanks -Lv |