Skip to contentSkip to conversation

AHCI / Sata port initial error status

Qemu-devel John Snow 2 participants 2 messages Jun 30, 2014 – Jul 3, 2014

lore
Share & tools
lore

John Snow

author
#0 lore raw

I am in the process of writing a series of AHCI tests (for q35) that compare the written specifications against what the current device emulation actually does, and I was curious about this bit instead of ahci.c, in ahci_reset_port:

ide_state->error = 1;

What does this error signify, exactly, and why is it set by default on ports with a device attached? It trickles up inside of the PxTFD.ERR byte in the HBA as well as showing up in the initial Register D2H FIS after the PxCMD.FRE bit is set.

Thank you,
--John.

#1 lore raw
Quoted 5 lines · John Snow

I am in the process of writing a series of AHCI tests (for q35) that compare the written specifications against what the current device emulation actually does, and I was curious about this bit instead of ahci.c, in ahci_reset_port:

ide_state->error = 1;

What does this error signify, exactly, and why is it set by default on ports with a device attached? It trickles up inside of the PxTFD.ERR byte in the HBA as well as showing up in the initial Register D2H FIS after the PxCMD.FRE bit is set.

I honestly don't remember :). We do unset the error bit once we get the first working command though.

Alex