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)
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
Unknown Object (File)
Dec 11 2023, 9:43 AM
Unknown Object (File)
Dec 5 2023, 9:18 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #61693)

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

63 ↗(On Diff #61693)

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

94 ↗(On Diff #61693)

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

116 ↗(On Diff #61693)

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

sys/dev/acpi_support/acpi_wmi.c
281 ↗(On Diff #61693)

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

282 ↗(On Diff #61693)

Missing space before '}'.

286 ↗(On Diff #61693)

Continuation

287 ↗(On Diff #61693)

missing space

289 ↗(On Diff #61693)

missing space

291 ↗(On Diff #61693)

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

A couple more nits.

share/man/man4/acpi_wmi.4
63 ↗(On Diff #61717)

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 ↗(On Diff #61717)

Extra space before ';'

282 ↗(On Diff #61717)

A blank line is needed after a variable definition block.

291 ↗(On Diff #61717)

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