New ThunderX firmware incorporates modified DTB that presents
different device hierarchy. In the new device tree, MDIO
devices are below two additional buses that oddly hang on
PCI bridge.
Details
- Reviewers
wma andrew imp • ian - Commits
- rS294993: Add FDT bus capabilities to ThunderX PCI driver
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Looks good to me, but someone else should approve.
sys/arm64/cavium/thunder_pcie_common.c | ||
---|---|---|
48 ↗ | (On Diff #12688) | Change to: 'Thunder PCie driver memory' or anything specifying which memory it's all about. |
sys/arm64/cavium/thunder_pcie.c | ||
---|---|---|
408 ↗ | (On Diff #12721) | Hmm. Won't bus_alloc_resource and bus_release_resource here interfere with the same in thunder_pcie_fdt.c? |
sys/arm64/cavium/thunder_pcie_fdt.c | ||
270–271 ↗ | (On Diff #12721) | OK I will keep that in mind, thanks! |
279 ↗ | (On Diff #12721) | You are right. This will be either == 0 or > 0. |
sys/arm64/cavium/thunder_pcie_fdt.c | ||
---|---|---|
270–271 ↗ | (On Diff #12786) | It is done in the current diff. Did you check? |
sys/arm64/cavium/thunder_pcie.c | ||
---|---|---|
408 ↗ | (On Diff #12786) | OK |
sys/arm64/cavium/thunder_pcie_fdt.c | ||
---|---|---|
270–271 ↗ | (On Diff #12786) | Which diff? I don't see it here. |
sys/arm64/cavium/thunder_pcie_fdt.c | ||
---|---|---|
270–271 ↗ | (On Diff #12786) | Agr sorry my bad. Didn't upload this one. |
I suspect this was an attempt to handle the F bit from the vpd cap address register. It should be 0x7fff instead of 0x7f*4, then.