Page MenuHomeFreeBSD

bhnd(4): Implement generic support for discovery of platform devices (PMU, NVRAM, ChipCommon, etc).
ClosedPublic

Authored by landonf on Jun 25 2016, 2:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 22, 9:14 AM
Unknown Object (File)
Tue, Oct 22, 9:13 AM
Unknown Object (File)
Tue, Oct 22, 9:13 AM
Unknown Object (File)
Tue, Oct 22, 9:13 AM
Unknown Object (File)
Tue, Oct 22, 9:13 AM
Unknown Object (File)
Tue, Oct 22, 9:03 AM
Unknown Object (File)
Sep 18 2024, 6:13 AM
Unknown Object (File)
Sep 8 2024, 7:15 AM
Subscribers

Details

Summary

This extends the existing handling of NVRAM core discovery to support
locating additional devices that may be attached either directly as real
cores, or indirectly via ChipCommon (e.g. bhnd_pmu).

When attached as a SoC root bus (as opposed to a bridged WiFi device),
the platform devices may not be attached until later bus passes,
necessitating delayed discovery/initialization.

Test Plan

Verified that the NVRAM device (if supported) is still discovered, and
that NVRAM lookups succeed, e.g.:

bwn0: got macaddr 68:a3:c4:25:fa:5a

Tested on:

  • BCM4312 (siba, bhndb-attached nvram)
  • BCM43225 (bcma, chipc-attached nvram)
  • RT-N53 (mips/bcma, nvram support unimplemented)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4469
Build 4520: arc lint + arc unit

Event Timeline

landonf retitled this revision from to bhnd(4): Implement generic support for discovery of platform devices (PMU, NVRAM, ChipCommon, etc)..
landonf updated this object.
landonf edited the test plan for this revision. (Show Details)
landonf added reviewers: adrian, mizhka.

Treat bhnd nvram/pmu/chipc devices as valid if they are currently attaching, rather than only after attachment is complete.

adrian edited edge metadata.

as long as it survives make universe, approved!

This revision is now accepted and ready to land.Jul 8 2016, 10:53 PM
landonf edited edge metadata.

Fixed an embarassing copy/paste typo helpfully caught by GCC when testing the universe build.

This revision now requires review to proceed.Jul 10 2016, 12:29 AM
adrian edited edge metadata.
This revision is now accepted and ready to land.Jul 10 2016, 12:33 AM
This revision was automatically updated to reflect the committed changes.