AHCI / Sata port initial error status
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.
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, inahci_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