Page MenuHomeFreeBSD

aibs / atk0110: add support for querying sensors via GGRP and GITM

Authored by avg on Oct 12 2016, 12:08 PM.



Comparing to the Linux driver there is one missing feature.
The Linux driver finds and enables "Embedded Controller" item in
the 0x11 group if it's not enabled yet.

Test Plan

The new method is tested on hardware that I have.
The old method is to be tested.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

avg updated this revision to Diff 21306.Oct 12 2016, 12:08 PM
avg retitled this revision from to aibs / atk0110: add support for querying sensors via GGRP and GITM.
avg updated this object.
avg edited the test plan for this revision. (Show Details)
avg added a reviewer: rpaulo.
rpaulo accepted this revision.Oct 15 2016, 5:25 AM
rpaulo edited edge metadata.
rpaulo added inline comments.
227 ↗(On Diff #21306)

I really tend to prefer tunables because otherwise this is harder to debug in other people's systems.

263 ↗(On Diff #21306)

double ;

281 ↗(On Diff #21306)

double ;

376 ↗(On Diff #21306)


383 ↗(On Diff #21306)


397 ↗(On Diff #21306)


427 ↗(On Diff #21306)


505 ↗(On Diff #21306)

Don't we have a macro for this? We should have one since it would be easier to understand you're converting K to C.

This revision is now accepted and ready to land.Oct 15 2016, 5:25 AM
avg added inline comments.Oct 15 2016, 8:50 AM
227 ↗(On Diff #21306)

Well, at the moment AIBS_VERBOSE is unconditionally defined in the driver. I haven't changed that.

263 ↗(On Diff #21306)

fixing this and other instances

505 ↗(On Diff #21306)

I see several private definitions scattered around the code, but nothing that can be shared.
I think that this is a result of having no sensors framework.

avg updated this revision to Diff 21413.Oct 15 2016, 9:04 AM
avg edited edge metadata.

fix typos

This revision now requires review to proceed.Oct 15 2016, 9:04 AM
This revision was automatically updated to reflect the committed changes.