Re: ACPI notify handler and reentrancy of WMI device.
From: Corentin Chary <corentin.chary@gmail.com>
Date: 2011-01-17 06:51:28
Also in:
platform-driver-x86
quoted
I got an acpi notify handler. The notify is triggered when I call WMBC(). In this notify handler, I must re-call WMBC (with some other arguments, it won't notify again this time). If I do that, I'll get: [ 176.920391] ACPI Error (dswload-0802): [_T_0] Namespace lookup failure, AE_ALREADY_EXISTS [ 176.920416] ACPI Exception: AE_ALREADY_EXISTS, During name lookup/catalog (20100428/psloop-231) [ 176.920439] ACPI Error (psparse-0537): Method parse/execution failed [\AMW0.WMBC] (Node f7023b88), AE_ALREADY_EXISTS [ 176.920469] ACPI: Marking method WMBC as Serialized because of AE_ALREADY_EXISTS errorCould you attach the acpidump output?
Here it is, and here is the patch I did (I used the workqueue solution in this one): http://git.iksaif.net/?p=acpi4asus.git;a=blobdiff;f=drivers/platform/x86/eeepc-wmi.c;h=725239860bad8d97dabf8b3db4086d6df4b7820b;hp=0d8217d1478028071859ba1a503ba226b3cb33a0;hb=1eac4d6a6fb632314a464e7d52e1dcb1e4780931;hpb=5c5d1a036bb7d38153c6d2102767ef51e5d94ce3 (check eeepc_rfkill_notify, it's triggered when the wlan rfkill is blocked: WMBC is called to disable the wlan card, it send a notification, the handler is called, the handler want to check the wlan card status, it calls WMBC again). Thanks; -- Corentin Chary http://xf.iksaif.net -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html