]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
intpm: change translation of HBA error status to smbus(4) errors
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 22 Mar 2019 10:38:22 +0000 (10:38 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 22 Mar 2019 10:38:22 +0000 (10:38 +0000)
commit4c2fb039548b4246a27463721ae2a37c5bcde7ab
tree6f0fa7890182640d9bb59599aecb7cdac8baedc9
parentc1581f4f4dfb307bdea683a4a8bdc94c5f7617a1
intpm: change translation of HBA error status to smbus(4) errors

PIIX4_SMBHSTSTAT_ERR can be set for several reasons that, unfortunately,
cannot be distinguished, but the most typical case is a missing or hung
slave (SMB_ENOACK).

PIIX4_SMBHSTSTAT_FAIL means failed or killed / aborted transaction, so
it's previous mapping to SMB_ENOACK was not ideal.

After this change an smb(4) access to a missing slave results in ENXIO
rather than EIO.  To me, that seems to be more appropriate.

MFC after: 3 weeks
sys/dev/intpm/intpm.c