PCI MMIO and MTRR/PTEs #102
macpacheco
started this conversation in
General
Replies: 2 comments 2 replies
-
Yes, PCI devices were tested. The AHCI and i8254x drivers were written when BareMetal only supported PCI. I'll try to find an older system that has PCI and verify. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you read the hardware registers by using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've had zero luck testing PCI devices running on BareMetal. The symptom is whatever writes go to PCI MMIO memory is ignored, no changes at all.
So I realized, MTRR or page tables must the properly set, otherwise the CPU will think its regular memory and all kinds of strange behavior will ensue. Like the one I'm getting.
I have 2 AMD CPU/AMD chipset (one laptop, one desktop), both with RTL8168 NIC and AMD AHCI. I can't get either to work, for the same reason.
Did you tested any PCI peripherals with BM ?
PS: This issue doesn't happen with emulated hardware under QEMU. AHCI and Intel I8257x code runs just fine under QEMU.
I managed to get vfio-pci to work, and I get the same problem acessing an RTL8168 NIC from within QEMU but pass through to real hardware.
Beta Was this translation helpful? Give feedback.
All reactions