HomeFreeBSD

pci_dw: Detect number of outbound regions automatically

Description

pci_dw: Detect number of outbound regions automatically

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.

Reviewed by: mmel
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31030

(cherry picked from commit 4707bb0430e6ca3935ef8196e30830b3cdaf3514)

Details

Provenance
jrtc27Authored on Jul 21 2021, 4:51 AM
Reviewer
mmel
Differential Revision
D31030: pci_dw: Detect number of outbound regions automatically
Parents
rG15a5871387ca: pci_dw: Support modern "unroll" iATU mode
Branches
Unknown
Tags
Unknown