Author: mav
Date: Mon Apr 20 19:11:27 2015
New Revision: 281782
URL: https://svnweb.freebsd.org/changeset/base/281782

Log:
  Don't set bits that should be zero for SATA devices.
  
  Old value made Linux think that it is PATA device with SATA bridge.
  
  MFC after:    2 weeks

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

Modified: head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- head/usr.sbin/bhyve/pci_ahci.c      Mon Apr 20 18:30:06 2015        
(r281781)
+++ head/usr.sbin/bhyve/pci_ahci.c      Mon Apr 20 19:11:27 2015        
(r281782)
@@ -930,7 +930,6 @@ handle_identify(struct ahci_port *p, int
                buf[88] = 0x7f;
                if (p->xfermode & ATA_UDMA0)
                        buf[88] |= (1 << ((p->xfermode & 7) + 8));
-               buf[93] = (1 | 1 <<14);
                buf[100] = sectors;
                buf[101] = (sectors >> 16);
                buf[102] = (sectors >> 32);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to