Re: RFC: ATA to CAM integration patch (INTEL DX58SO)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexander Motin <mav@...>
Cc: FreeBSD-Current <freebsd-current@...>, <scottl@...>
Date: Friday, July 3, 2009 - 3:00 pm

At 10:49 AM 7/3/2009, Alexander Motin wrote:


Sorry again for the confusion.  I am trying a *different* motherboard 
(INTEL DX58SO) and drive now with your 0629 patch as well as the diff below.

--- ahci.c.prev 2009-06-29 12:48:45.000000000 +0300
+++ ahci.c      2009-06-29 17:25:29.000000000 +0300
@@ -986,7 +986,7 @@ ahci_begin_transaction(device_t dev, uni
                 if (ch->slot[tag].state == AHCI_SLOT_EMPTY)
                         break;
         } while (tag != ch->lastslot);
-       if (tag == ch->lastslot)
+       if (ch->slot[tag].state != AHCI_SLOT_EMPTY)
                 device_printf(ch->dev, "ALL SLOTS BUSY!\n");
         ch->lastslot = tag;
         /* Occupy chosen slot. */


Without the diff, I was getting a steady stream of

ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!
ahcich0: ALL SLOTS BUSY!

With the above diff, all seems to work well.

Full verbose dmesg and pciconf -lvc at

http://www.tancsa.com/ahci/DX58SO.txt


Read/Write speed looks good with a more modern disk as well


               -------Sequential Output-------- ---Sequential Input-- 
--Random--
               -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- 
--Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
          4000 103884 51.4 109344  9.7 42048  6.0 91201 59.0 
116723  8.5 1123.4  2.0
0(ich10)# dd if=/dev/ada0 of=/dev/null bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 7.562206 secs (138660068 bytes/sec)
0(ich10)#


The eSata port does not work, but it never did under the old driver 
either. I think it has a separate controller ?  At the BIOS boot up 
time, it shows some Marvell controller talking to the eSata attached 
drive, and pciconf does show a separate ATA controller


ahci0@pci0:0:31:2:      class=0x010601 card=0x4f538086 
chip=0x3a228086 rev=0x00 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '6 port SATA AHCI Controller'
     class      = mass storage
     subclass   = SATA
     cap 05[80] = MSI supports 16 messages enabled with 1 message
     cap 01[70] = powerspec 3  supports D0 D3  current D0
     cap 12[a8] = SATA Index-Data Pair
none7@pci0:0:31:3:      class=0x0c0500 card=0x4f538086 
chip=0x3a308086 rev=0x00 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'SMB controller  (50011458)'
     class      = serial bus
     subclass   = SMBus
atapci0@pci0:6:0:0:     class=0x01018f card=0x4f538086 
chip=0x612111ab rev=0xb2 hdr=0x00
     vendor     = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
     device     = '6121 SATA2 Controller'
     class      = mass storage
     subclass   = ATA
     cap 01[48] = powerspec 2  supports D0 D1 D3  current D0
     cap 05[50] = MSI supports 1 message
     cap 10[e0] = PCI-Express 1 legacy endpoint max data 128(128) link x1(x1) 

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC: ATA to CAM integration patch, Alexander Motin, (Fri Jun 26, 2:47 pm)
Re: RFC: ATA to CAM integration patch (and gjournaled previu..., Harald Schmalzbauer, (Sat Jul 4, 7:54 pm)
Re: RFC: ATA to CAM integration patch (and gjournaled previu..., Harald Schmalzbauer, (Tue Jul 7, 2:49 pm)
Re: RFC: ATA to CAM integration patch (and gjournaled previu..., Harald Schmalzbauer, (Tue Jul 7, 3:10 pm)
Re: RFC: ATA to CAM integration patch, Boris S., (Tue Jun 30, 6:54 am)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Sat Jun 27, 7:06 pm)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sun Jun 28, 3:44 am)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Thu Jul 2, 3:02 pm)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sat Jul 4, 7:20 am)
Re: RFC: ATA to CAM integration patch, Scott Long, (Sat Jul 4, 11:02 pm)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Thu Jul 2, 3:33 pm)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Thu Jul 2, 5:20 pm)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Fri Jul 3, 9:28 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Fri Jul 3, 9:53 am)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Fri Jul 3, 10:15 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Fri Jul 3, 10:26 am)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Fri Jul 3, 10:32 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Fri Jul 3, 10:49 am)
Re: RFC: ATA to CAM integration patch (INTEL DX58SO), Mike Tancsa, (Fri Jul 3, 3:00 pm)
Re: RFC: ATA to CAM integration patch (INTEL DX58SO), Alexander Motin, (Fri Jul 3, 3:31 pm)
Re: RFC: ATA to CAM integration patch (INTEL DX58SO), Mike Tancsa, (Fri Jul 3, 5:30 pm)
Re: RFC: ATA to CAM integration patch, Mike Tancsa, (Sun Jun 28, 6:54 am)
Re: RFC: ATA to CAM integration patch, Gary Jennejohn, (Sat Jun 27, 10:44 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sat Jun 27, 1:22 pm)
Re: RFC: ATA to CAM integration patch, Gary Jennejohn, (Sun Jun 28, 5:04 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sun Jun 28, 5:14 am)
Re: RFC: ATA to CAM integration patch, Ulrich , (Sat Jun 27, 10:14 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sat Jun 27, 12:31 pm)
Re: RFC: ATA to CAM integration patch, Kamigishi Rei, (Sat Jun 27, 10:19 am)
Re: RFC: ATA to CAM integration patch, Daniel O'Connor, (Sat Jun 27, 7:17 pm)
Re: RFC: ATA to CAM integration patch, Carlos A. M. dos Santos, (Sun Jun 28, 9:50 am)
Re: RFC: ATA to CAM integration patch, Anonymous, (Sun Jun 28, 6:00 pm)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sun Jun 28, 3:55 am)
Re: RFC: ATA to CAM integration patch, Daniel O'Connor, (Sun Jun 28, 4:28 am)
Re: RFC: ATA to CAM integration patch, Aisaka Taiga, (Sun Jun 28, 5:59 am)
Re: RFC: ATA to CAM integration patch, Daniel O'Connor, (Sun Jun 28, 7:08 am)
Re: RFC: ATA to CAM integration patch, Aisaka Taiga, (Sun Jun 28, 7:24 am)
Re: RFC: ATA to CAM integration patch, Daniel O'Connor, (Sun Jun 28, 7:43 am)
Re: RFC: ATA to CAM integration patch, Aisaka Taiga, (Sun Jun 28, 7:55 am)
Re: RFC: ATA to CAM integration patch, Aisaka Taiga, (Sun Jun 28, 7:55 am)
Re: RFC: ATA to CAM integration patch, Daniel O'Connor, (Sun Jun 28, 10:07 am)
Re: RFC: ATA to CAM integration patch, Louis Mamakos, (Sat Jun 27, 11:56 pm)
Re: RFC: ATA to CAM integration patch, Daniel O'Connor, (Sun Jun 28, 1:00 am)
Re: RFC: ATA to CAM integration patch, Stanislav Sedov, (Sun Jun 28, 3:27 pm)
Re: RFC: ATA to CAM integration patch, Scott Long, (Sat Jun 27, 10:42 am)
Re: RFC: ATA to CAM integration patch, Gary Jennejohn, (Sat Jun 27, 10:37 am)
Re: RFC: ATA to CAM integration patch, Pieter de Goeje, (Sat Jun 27, 8:19 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sat Jun 27, 12:55 pm)
Re: RFC: ATA to CAM integration patch, Scott Long, (Sat Jun 27, 2:06 pm)
Re: RFC: ATA to CAM integration patch, Ulrich , (Mon Jun 29, 6:55 am)
Re: RFC: ATA to CAM integration patch, Scott Long, (Mon Jun 29, 11:25 am)
Re: RFC: ATA to CAM integration patch, Dan Nelson, (Mon Jun 29, 12:12 pm)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Mon Jun 29, 7:23 am)
Re: RFC: ATA to CAM integration patch, Ulrich , (Mon Jun 29, 8:54 am)
Re: RFC: ATA to CAM integration patch, Alexander Leidinger, (Sat Jun 27, 6:50 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sat Jun 27, 7:22 am)
Re: RFC: ATA to CAM integration patch, Alexander Leidinger, (Sat Jun 27, 10:01 am)
Re: RFC: ATA to CAM integration patch, Roman Divacky, (Sat Jun 27, 6:11 am)
Re: RFC: ATA to CAM integration patch, Ivan Voras, (Sat Jun 27, 7:05 am)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Sat Jun 27, 7:01 am)
Re: RFC: ATA to CAM integration patch, Ed Schouten, (Fri Jun 26, 3:54 pm)
Re: RFC: ATA to CAM integration patch, Alexander Motin, (Fri Jun 26, 4:05 pm)