Date: Sun, 20 Apr 2014 23:05:17 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Andrey Fesenko <f0andrey@gmail.com> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: SATA2 mode on SATA3 SSD (marvell controller) after boot Message-ID: <5354287D.6040508@FreeBSD.org> In-Reply-To: <CA%2BK5SrOTB=%2BA_4Z4p%2B3G2DUTQMNpb9-n3BhvO1Fw4tK%2BZaGQEA@mail.gmail.com> References: <CA%2BK5SrO0rAWP5Ca_HNBYUE-bGgsuVxvaFOnmrMoCoWVGwbZY3A@mail.gmail.com> <CA%2BK5SrPN3iRK19exw0ADWBhzG2qP3nzNpGRg-guYqUhJZexcQg@mail.gmail.com> <5354238C.50100@FreeBSD.org> <CA%2BK5SrOTB=%2BA_4Z4p%2B3G2DUTQMNpb9-n3BhvO1Fw4tK%2BZaGQEA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20.04.2014 22:51, Andrey Fesenko wrote: > On Sun, Apr 20, 2014 at 11:44 PM, Alexander Motin <mav@freebsd.org> wrote: >> On 20.04.2014 22:31, Andrey Fesenko wrote: >>> >>> On Thu, Apr 17, 2014 at 2:10 PM, Andrey Fesenko <f0andrey@gmail.com> >>> wrote: >>>> >>>> if disconnect ssd >>>> pr 17 14:07:08 desktop kernel: ahcich3: DISCONNECT requested >>>> Apr 17 14:07:08 desktop kernel: ahcich3: AHCI reset... >>>> Apr 17 14:07:08 desktop kernel: ahcich3: SATA connect timeout >>>> time=10000us status=00000000 >>>> Apr 17 14:07:08 desktop kernel: ahcich3: AHCI reset: device not found >>>> Apr 17 14:07:08 desktop kernel: pass3 at ahcich3 bus 0 scbus3 target 0 >>>> lun 0 >>>> Apr 17 14:07:08 desktop kernel: pass3: <PLEXTOR PX-128M5S 1.05> s/n >>>> P02411112921 detached >>>> Apr 17 14:07:08 desktop kernel: ada3 at ahcich3 bus 0 scbus3 target 0 lun >>>> 0 >>>> Apr 17 14:07:08 desktop kernel: ada3: <PLEXTOR PX-128M5S 1.05> s/n >>>> P02411112921 detached >>>> Apr 17 14:07:08 desktop kernel: (pass3:ahcich3:0:0:0): Periph destroyed >>>> Apr 17 14:07:08 desktop kernel: (ada3:ahcich3:0:0:0): Periph destroyed >>>> Apr 17 14:07:18 desktop kernel: ahcich3: CONNECT requested >>>> Apr 17 14:07:18 desktop kernel: ahcich3: AHCI reset... >>>> Apr 17 14:07:18 desktop kernel: ahcich3: SATA connect time=8000us >>>> status=00000133 >>>> Apr 17 14:07:18 desktop kernel: ahcich3: AHCI reset: device found >>>> Apr 17 14:07:18 desktop kernel: ahcich3: AHCI reset: device ready after >>>> 0ms >>>> Apr 17 14:07:18 desktop kernel: ada3 at ahcich3 bus 0 scbus3 target 0 lun >>>> 0 >>>> Apr 17 14:07:18 desktop kernel: GEOM: new disk ada3 >>>> Apr 17 14:07:18 desktop kernel: ada3: <PLEXTOR PX-128M5S 1.05> ATA-8 >>>> SATA 3.x device >>>> Apr 17 14:07:18 desktop kernel: ada3: Serial Number P02411112921 >>>> Apr 17 14:07:18 desktop kernel: ada3: 600.000MB/s transfers (SATA 3.x, >>>> UDMA6, PIO 8192bytes) >>>> Apr 17 14:07:18 desktop kernel: ada3: Command Queueing enabled >>>> Apr 17 14:07:18 desktop kernel: ada3: 122104MB (250069680 512 byte >>>> sectors: 16H 63S/T 16383C) >>>> Apr 17 14:07:18 desktop kernel: ada3: Previously was known as ad10 >>>> Apr 17 14:07:18 desktop kernel: pass3 at ahcich3 bus 0 scbus3 target 0 >>>> lun 0 >>>> Apr 17 14:07:18 desktop kernel: pass3: <PLEXTOR PX-128M5S 1.05> ATA-8 >>>> SATA 3.x device >>>> Apr 17 14:07:18 desktop kernel: pass3: Serial Number P02411112921 >>>> Apr 17 14:07:18 desktop kernel: pass3: 600.000MB/s transfers (SATA >>>> 3.x, UDMA6, PIO 8192bytes) >>>> Apr 17 14:07:18 desktop kernel: pass3: Command Queueing enabled >>>> >>>> >>>> # uname -a >>>> FreeBSD desktop.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r263932: >>>> Sun Mar 30 15:43:01 MSK 2014 >>>> root@desktop.local:/usr/obj/usr/src/sys/MY_DES amd64 >>> >>> >>> Is it possible camcontrol repeat behavior as physical disable/enable >>> or enable SATA 3.x mode? >>> camcontrol negotiate only report not set new mode. >>> >>> # camcontrol negotiate pass2 >>> Current parameters: >>> (pass2:ahcich3:0:0:0): SATA revision: 2.x >>> (pass2:ahcich3:0:0:0): ATA mode: UDMA6 >>> (pass2:ahcich3:0:0:0): ATAPI packet length: 0 >>> (pass2:ahcich3:0:0:0): PIO transaction length: 8192 >>> (pass2:ahcich3:0:0:0): PMP presence: 0 >>> (pass2:ahcich3:0:0:0): Number of tags: 32 >>> (pass2:ahcich3:0:0:0): SATA capabilities: 00000030 >>> (pass2:ahcich3:0:0:0): tagged queueing: enabled >> >> >> camcontrol negotiate can limit maximal SATA mode, but not specify it >> exactly. Unless you limited it previously, there should be no limitation set >> and HBA should negotiate it freely. The limitations could be read/set with >> `camcontrol negotiate pass2 -U`, and affect operation after following >> `camcontrol reset ...`. >> >> -- >> Alexander Motin > > system this installer usb image without limitation > # uname -a > FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r264634: Fri Apr 18 > 08:25:11 MSK 2014 > andrey@desktop.local:/usr/obj/usr/src/sys/GENERIC amd64 > > root@:~ # camcontrol negotiate pass2 -U > User parameters: > (pass2:ahcich3:0:0:0): SATA revision: 0.x > (pass2:ahcich3:0:0:0): ATA mode: NONE > (pass2:ahcich3:0:0:0): ATAPI packet length: 0 > (pass2:ahcich3:0:0:0): PIO transaction length: 8192 > (pass2:ahcich3:0:0:0): PMP presence: 0 > (pass2:ahcich3:0:0:0): Number of tags: 32 > (pass2:ahcich3:0:0:0): SATA capabilities: 00000030 > (pass2:ahcich3:0:0:0): tagged queueing: enabled > root@:~ # camcontrol reset pass2 > Reset of bus 0 was successful > root@:~ # camcontrol negotiate pass2 > Current parameters: > (pass2:ahcich3:0:0:0): SATA revision: 2.x > (pass2:ahcich3:0:0:0): ATA mode: UDMA6 > (pass2:ahcich3:0:0:0): ATAPI packet length: 0 > (pass2:ahcich3:0:0:0): PIO transaction length: 8192 > (pass2:ahcich3:0:0:0): PMP presence: 0 > (pass2:ahcich3:0:0:0): Number of tags: 32 > (pass2:ahcich3:0:0:0): SATA capabilities: 00000030 > (pass2:ahcich3:0:0:0): tagged queueing: enabled Then it is a question to hardware or firmware not an OS driver. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5354287D.6040508>