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)
Sat, Dec 14, 10:21 PM
Unknown Object (File)
Nov 13 2024, 10:49 AM
Unknown Object (File)
Nov 12 2024, 9:52 AM
Unknown Object (File)
Nov 12 2024, 7:16 AM
Unknown Object (File)
Nov 12 2024, 6:12 AM
Unknown Object (File)
Nov 12 2024, 4:52 AM
Unknown Object (File)
Nov 12 2024, 4:13 AM
Unknown Object (File)
Nov 12 2024, 3:00 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 Not Applicable
Unit
Tests Not Applicable

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.