Page MenuHomeFreeBSD

powerpcspe: fix PCI enumeration on ppce500
ClosedPublic

Authored by alfredo on Mar 21 2022, 11:07 AM.
Tags
None
Referenced Files
F102894510: D34621.diff
Mon, Nov 18, 10:29 AM
Unknown Object (File)
Fri, Nov 1, 4:42 AM
Unknown Object (File)
Wed, Oct 23, 4:14 AM
Unknown Object (File)
Sep 23 2024, 7:08 PM
Unknown Object (File)
Sep 19 2024, 2:45 PM
Unknown Object (File)
Sep 19 2024, 11:50 AM
Unknown Object (File)
Sep 19 2024, 6:54 AM
Unknown Object (File)
Sep 19 2024, 5:29 AM

Details

Summary

This fixes PCI devices not being found on QEMU ppce500. This
generic board used to have its first PCI slot at 0x11, like the
mpc8544dsi and some real HW. After commit [1], it was changed to
0x1 and our driver wasn't prepared for that.

[1] https://gitlab.com/qemu-project/qemu/-/commit/3bb7e02a9725a24e5bf915b35f914f82f5b07a1f

Sponsored by: Institudo de Pesquisas Eldorado (eldorado.org.br)

Test Plan

Boot/run test on ppce500 and mpc8544ds under QEMU 6.2.0

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 21 2022, 3:37 PM

Looks good to me on inspection. That was always something annoying about trying to configure the PCI bus on ppce500 in qemu. Things should be a lot easier to work with now, before this, we had to manually assign slots high enough.

This revision was automatically updated to reflect the committed changes.