diff options
| author | Armin Wolf <[email protected]> | 2025-04-14 14:04:53 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-04-16 08:15:22 +0000 |
| commit | baf2f2c2b4c8e1d398173acd4d2fa9131a86b84e (patch) | |
| tree | 7de49249377e1c83593b8ab13668d56bbee5f438 /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | platform/x86: msi-wmi-platform: Rename "data" variable (diff) | |
| download | kernel-baf2f2c2b4c8e1d398173acd4d2fa9131a86b84e.tar.gz kernel-baf2f2c2b4c8e1d398173acd4d2fa9131a86b84e.zip | |
platform/x86: msi-wmi-platform: Workaround a ACPI firmware bug
The ACPI byte code inside the ACPI control method responsible for
handling the WMI method calls uses a global buffer for constructing
the return value, yet the ACPI control method itself is not marked
as "Serialized".
This means that calling WMI methods on this WMI device is not
thread-safe, as concurrent WMI method calls will corrupt the global
buffer.
Fix this by serializing the WMI method calls using a mutex.
Cc: [email protected] # 6.x.x: 912d614ac99e: platform/x86: msi-wmi-platform: Rename "data" variable
Fixes: 9c0beb6b29e7 ("platform/x86: wmi: Add MSI WMI Platform driver")
Tested-by: Antheas Kapenekakis <[email protected]>
Signed-off-by: Armin Wolf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions
