xHCI on QEMU aarch64 can not be accessed through MMIO

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
siketyan
Posts: 2
Joined: Wed Mar 01, 2023 1:47 am

xHCI on QEMU aarch64 can not be accessed through MMIO

Post by siketyan »

I am developing a OS kernel for aarch64 architecture, in Rust.
I could find PCI configuration space using ACPI, and the device descriptor seems fine.
I have read the PCI configuration space and found a xHCI device, but it can not be accessed through MMIO at the address specified in BAR.
It always returns 0xFF for any fields in capability registers. What did I missed to do?
I also tried reading 32 bit and 64 bit at once, but did not work either.

Screenshot:
https://drive.google.com/file/d/1wGFV2S ... sp=sharing

Source code is at:
https://github.com/siketyan/mikan/pull/ ... 65bd094211

Any helps are welcome!
Thank you for reading.
siketyan
Posts: 2
Joined: Wed Mar 01, 2023 1:47 am

Re: xHCI on QEMU aarch64 can not be accessed through MMIO

Post by siketyan »

Yes, already resolved :)

Thank you!
Post Reply