AHCI Driver working in VMs, but not on real h/w

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
ComputerFido
Member
Member
Posts: 44
Joined: Fri Sep 09, 2016 5:52 pm
Location: Australia
Contact:

AHCI Driver working in VMs, but not on real h/w

Post by ComputerFido »

So I have implemented an AHCI driver and it works fine in VirtualBox and QEMU, however on the 3 laptops I have tested it on, no data has been transferred. I have checked SSTS (0x133), SCTL (0x700), and SERR (0), and I have noticed that whilst command issue clears, interrupt status is not set unlike in the VMs. I have tried resetting the controller and sending COMRESET to the ports to no avail.

Port code:
https://github.com/fido2020/Lemon-OS/bl ... ciport.cpp

Controller code:
https://github.com/fido2020/Lemon-OS/bl ... e/ahci.cpp
Post Reply