AHCI driver error on qemu

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
MikyBart
Posts: 14
Joined: Tue Sep 03, 2024 9:21 am
Libera.chat IRC: MikyBart

AHCI driver error on qemu

Post by MikyBart »

Hi all, I wrote an ahci driver for my kernel in assembly (nasm).
when I run qemu, the kernel in the initialization of the ahci driver does not hang but in exit qemu gives me the following error:

Code: Select all

qemu: AHCI: Failed to start FIS receive engine: bad FIS receive buffer address
so that the buffer must be in physical memory and not virtual.

What can I do to overcome this problem?

thanks to all.
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: AHCI driver error on qemu

Post by Octocontrabass »

Put a valid physical address in the PxFB and PxFBU registers.
Post Reply