Page MenuHomeFreeBSD

pci_dw: Detect number of outbound regions automatically
ClosedPublic

Authored by jrtc27 on Jul 5 2021, 12:10 AM.

Details

Summary

Currently we use the num-viewports property to decide how many outbound
regions there are we can use, defaulting to 2. However, Linux has
stopped using that and so it no longer appears in new device trees, such
as for the SiFive FU740. Instead, it's possible to just probe the
hardware directly.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

I need day or two to test this on my boards, but it looks OK for me.

Tested on MACCHIATObin and HoneyComb LX2.

This revision is now accepted and ready to land.Jul 10 2021, 11:46 AM