socsvn commit: r257158 - soc2013/zcore/head/usr.sbin/bhyve

zcore at FreeBSD.org zcore at FreeBSD.org
Mon Sep 9 14:25:25 UTC 2013


Author: zcore
Date: Mon Sep  9 14:25:24 2013
New Revision: 257158
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257158

Log:
  set ABORT for all unsupported cmds

Modified:
  soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c

Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c	Mon Sep  9 14:23:54 2013	(r257157)
+++ soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c	Mon Sep  9 14:25:24 2013	(r257158)
@@ -570,6 +570,10 @@
 		handle_flush(p, slot, cfis);
 		break;
 	default:
+		p->tfd = (ATA_E_ABORT << 8) | ATA_S_READY | ATA_S_ERROR;
+		p->is |= AHCI_P_IX_TFE;
+		p->ci &= ~(1 << slot);
+		ahci_generate_intr(sc);
 		break;
 	}
 }
@@ -1006,13 +1010,11 @@
 	case AHCI_P_IE:
 	case AHCI_P_CMD:
 	case AHCI_P_TFD:
-		/* TODO */
 	case AHCI_P_SIG:
 	case AHCI_P_SSTS:
 	case AHCI_P_SCTL:
 	case AHCI_P_SERR:
 	case AHCI_P_SACT:
-		/* TODO */
 	case AHCI_P_CI:
 	case AHCI_P_SNTF:
 	case AHCI_P_FBS:


More information about the svn-soc-all mailing list