Page MenuHomeFreeBSD

Adding WMI embedded Binary MOF object interface driver.
ClosedPublic

Authored by takawata on Sep 5 2019, 3:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 23, 11:07 AM
Unknown Object (File)
Tue, Apr 23, 10:34 AM
Unknown Object (File)
Thu, Apr 11, 6:43 AM
Unknown Object (File)
Mar 7 2024, 11:31 PM
Unknown Object (File)
Jan 10 2024, 1:43 AM
Unknown Object (File)
Dec 20 2023, 6:59 PM
Unknown Object (File)
Dec 20 2023, 2:09 AM
Unknown Object (File)
Dec 18 2023, 3:10 AM
Subscribers

Details

Summary

This patch extracts Managed Object Format object embedded to ACPI WMI devices, which appears some laptops like ThinkPad.

It is compiled binary form and needs extra tools to obtain human readable output. (http://github.com/pali/bmfdec)

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26287
Build 24769: arc lint + arc unit

Event Timeline

If this driver just provides a single sysctl, then I think that it would be simpler to add that sysctl to acpi_wmi.
Do you plan to have any other functionality in acpi_wmi_bmof?

Add the feature to acpi_wmi driver, instead of creating new driver.

Free MOF buf only when successfilly detach.

Some nit, pointed out by hrs@

No features other than obtaining MOF is expected, so I add the feature in parent driver, instead of having new driver.

share/man/man4/acpi_wmi.4
61

Are you sure about '-width indent' ?
I am not an expert on this, it just looks unusual.

63

This line looks too long. Please break it up.
Also, I am not sure if any special mark up is needed for URLs.

94

I would use something else rather than "blah blah" here.
Maybe "..." or "etc".

116

No need for the space before the final '.'.

sys/dev/acpi_support/acpi_wmi.c
281

Please use the standard FreeBSD indentation for continuation lines (+4 spaces) here and in other new code.

282

Missing space before '}'.

286

Continuation

287

missing space

289

missing space

291

'(' should be on the original line.
Also, wrong indentation.

A couple more nits.

share/man/man4/acpi_wmi.4
63

I think that it is preferred that a new sentence is started on a new line.
That is to say that there should be a line break after each period that ends a sentence.

sys/dev/acpi_support/acpi_wmi.c
281

Extra space before ';'

282

A blank line is needed after a variable definition block.

291

I think that we do not do a nested continuation, so this line should probably be indented the same as the previous one. Though, that would be less readable, so I don't insist on such change.

This revision is now accepted and ready to land.Sep 6 2019, 9:56 AM