Page MenuHomeFreeBSD

acpi_wmi: Add type check before evaluaeting query ACPI method
ClosedPublic

Authored by takawata on Tue, Feb 25, 10:00 AM.
Tags
None
Referenced Files
F112601147: D49129.diff
Thu, Mar 20, 9:06 AM
Unknown Object (File)
Tue, Mar 18, 5:30 PM
Unknown Object (File)
Thu, Mar 13, 10:56 AM
Unknown Object (File)
Mon, Mar 10, 5:06 AM
Unknown Object (File)
Mon, Mar 10, 2:28 AM
Unknown Object (File)
Sat, Mar 8, 7:08 PM
Unknown Object (File)
Tue, Mar 4, 7:56 PM
Unknown Object (File)
Tue, Mar 4, 7:32 PM
Subscribers

Details

Summary

Some ACPI wmi query is impremented by named object, not method,
ACPICA complains when non-method object is evaluated with one or more arguments.
Especially, almost all binary MOF object obtaining method is the case.
his commit will fix it.

PR: 284912
Reported by: Alexander Ziaee

Test Plan

Reboot and make sure no ACPI warning is happend and make sure ACPI wmi child driver is not regressed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62620
Build 59504: arc lint + arc unit

Event Timeline

takawata held this revision as a draft.

acpi_wmi: Add type check before evaluaeting query ACPI method

Some ACPI wmi query is impremented by named object, not method,
ACPICA complains when non-method object is evaluated with one or more arguments.
Especially, almost all binary MOF object obtaining method is the case.

This commit will fix it.

PR: 284912
Reported by: Alexander Ziaee

acpi_wmi: Add type check before evaluaeting query ACPI method

Some ACPI wmi query is impremented by named object, not method,
ACPICA complains when non-method object is evaluated with one or more arguments.
Especially, almost all binary MOF object obtaining method is the case.

This commit will fix it.

PR:     284912
Reported by:    Alexander Ziaee

Test Plan: Reboot and make sure no ACPI warning is happend and make sure ACPI wmi child driver is not regressed.

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D49129
takawata retitled this revision from PR: 284912 Reported by: Alexander Ziaee to acpi_wmi: Add type check before evaluaeting query ACPI method.Tue, Feb 25, 10:16 AM
takawata edited the summary of this revision. (Show Details)
takawata edited the summary of this revision. (Show Details)
takawata added reviewers: avg, wulf.

I do not have WMI client drivers to determine regressions. I have been running current with this patch for several days though on my laptop.

sys/dev/acpi_support/acpi_wmi.c
585–586

Please add an empty line between variables and code.

This revision is now accepted and ready to land.Fri, Mar 7, 1:29 PM