Re: SATA2 mode on SATA3 SSD (marvell controller) after boot

2014-04-20 Thread Andrey Fesenko
On Thu, Apr 17, 2014 at 2:10 PM, Andrey Fesenko f0and...@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=1us status=
 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
 P0242921 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
 P0242921 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=0133
 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 P0242921
 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 P0242921
 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: 0030
(pass2:ahcich3:0:0:0): tagged queueing: enabled
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: SATA2 mode on SATA3 SSD (marvell controller) after boot

2014-04-20 Thread Alexander Motin

On 20.04.2014 22:31, Andrey Fesenko wrote:

On Thu, Apr 17, 2014 at 2:10 PM, Andrey Fesenko f0and...@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=1us status=
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
P0242921 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
P0242921 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=0133
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 P0242921
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 P0242921
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: 0030
(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
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: SATA2 mode on SATA3 SSD (marvell controller) after boot

2014-04-20 Thread Andrey Fesenko
On Sun, Apr 20, 2014 at 11:44 PM, Alexander Motin m...@freebsd.org wrote:
 On 20.04.2014 22:31, Andrey Fesenko wrote:

 On Thu, Apr 17, 2014 at 2:10 PM, Andrey Fesenko f0and...@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=1us status=
 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
 P0242921 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
 P0242921 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=0133
 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 P0242921
 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 P0242921
 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: 0030
 (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: 0030
(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: 0030
(pass2:ahcich3:0:0:0): tagged queueing: enabled
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: SATA2 mode on SATA3 SSD (marvell controller) after boot

2014-04-20 Thread Alexander Motin

On 20.04.2014 22:51, Andrey Fesenko wrote:

On Sun, Apr 20, 2014 at 11:44 PM, Alexander Motin m...@freebsd.org wrote:

On 20.04.2014 22:31, Andrey Fesenko wrote:


On Thu, Apr 17, 2014 at 2:10 PM, Andrey Fesenko f0and...@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=1us status=
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
P0242921 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
P0242921 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=0133
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 P0242921
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 P0242921
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: 0030
(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: 0030
(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: 0030
(pass2:ahcich3:0:0:0): tagged queueing: enabled


Then it is a question to hardware or firmware not an OS driver.

--
Alexander Motin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


[head tinderbox] failure on arm/arm

2014-04-20 Thread FreeBSD Tinderbox
TB --- 2014-04-20 18:50:39 - tinderbox 2.21 running on freebsd-current.sentex.ca
TB --- 2014-04-20 18:50:39 - FreeBSD freebsd-current.sentex.ca 9.2-STABLE 
FreeBSD 9.2-STABLE #0 r263721: Tue Mar 25 09:27:39 EDT 2014 
d...@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC  amd64
TB --- 2014-04-20 18:50:39 - starting HEAD tinderbox run for arm/arm
TB --- 2014-04-20 18:50:39 - cleaning the object tree
TB --- 2014-04-20 18:50:39 - /usr/local/bin/svn stat --no-ignore /src
TB --- 2014-04-20 18:50:44 - At svn revision 264702
TB --- 2014-04-20 18:50:45 - building world
TB --- 2014-04-20 18:50:45 - CROSS_BUILD_TESTING=YES
TB --- 2014-04-20 18:50:45 - MAKEOBJDIRPREFIX=/obj
TB --- 2014-04-20 18:50:45 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2014-04-20 18:50:45 - SRCCONF=/dev/null
TB --- 2014-04-20 18:50:45 - TARGET=arm
TB --- 2014-04-20 18:50:45 - TARGET_ARCH=arm
TB --- 2014-04-20 18:50:45 - TZ=UTC
TB --- 2014-04-20 18:50:45 - __MAKE_CONF=/dev/null
TB --- 2014-04-20 18:50:45 - cd /src
TB --- 2014-04-20 18:50:45 - /usr/bin/make -B buildworld
 Building an up-to-date make(1)
 World build started on Sun Apr 20 18:50:52 UTC 2014
 Rebuilding the temporary build tree
 stage 1.1: legacy release compatibility shims
 stage 1.2: bootstrap tools
 stage 2.1: cleaning up the object tree
 stage 2.2: rebuilding the object tree
 stage 2.3: build tools
 stage 3: cross tools
 stage 4.1: building includes
 stage 4.2: building libraries
[...]
cc   -O -pipe   -I/src/lib/libc/include -I/src/lib/libc/../../include 
-I/src/lib/libc/arm -DNLS   -D__DBINTERFACE_PRIVATE 
-I/src/lib/libc/../../contrib/gdtoa -I/src/lib/libc/../../contrib/libc-vis 
-DINET6 -I/obj/arm.arm/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE 
-DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/jemalloc/include 
-I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime  
-I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc 
-I/src/lib/libc/arm/softfloat  -I/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC 
-DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Qunused-arguments  
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
-Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value 
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch 
-Wno-switch-enum -Wno-knr-promoted-parameter -c 
/src/lib/libc/uuid/uuid_create_nil.c -o!
  uuid_create_nil.o
cc   -O -pipe   -I/src/lib/libc/include -I/src/lib/libc/../../include 
-I/src/lib/libc/arm -DNLS   -D__DBINTERFACE_PRIVATE 
-I/src/lib/libc/../../contrib/gdtoa -I/src/lib/libc/../../contrib/libc-vis 
-DINET6 -I/obj/arm.arm/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE 
-DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/jemalloc/include 
-I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime  
-I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc 
-I/src/lib/libc/arm/softfloat  -I/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC 
-DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Qunused-arguments  
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
-Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value 
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch 
-Wno-switch-enum -Wno-knr-promoted-parameter -c /src/lib/libc/uuid/uuid_equal.c 
-o uuid!
 _equal.o
cc   -O -pipe   -I/src/lib/libc/include -I/src/lib/libc/../../include 
-I/src/lib/libc/arm -DNLS   -D__DBINTERFACE_PRIVATE 
-I/src/lib/libc/../../contrib/gdtoa -I/src/lib/libc/../../contrib/libc-vis 
-DINET6 -I/obj/arm.arm/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE 
-DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/jemalloc/include 
-I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime  
-I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc 
-I/src/lib/libc/arm/softfloat  -I/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC 
-DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Qunused-arguments  
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
-Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value 
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch 
-Wno-switch-enum -Wno-knr-promoted-parameter -c 
/src/lib/libc/uuid/uuid_from_string.c -!
 o uuid_from_string.o
cc   -O -pipe   -I/src/lib/libc/include -I/src/lib/libc/../../include 
-I/src/lib/libc/arm -DNLS   -D__DBINTERFACE_PRIVATE 
-I/src/lib/libc/../../contrib/gdtoa -I/src/lib/libc/../../contrib/libc-vis 
-DINET6 -I/obj/arm.arm/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE 
-DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/jemalloc/include 
-I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime  
-I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN 

Re: SATA2 mode on SATA3 SSD (marvell controller) after boot

2014-04-20 Thread Andrey Fesenko
On Mon, Apr 21, 2014 at 12:05 AM, Alexander Motin m...@freebsd.org wrote:

 Then it is a question to hardware or firmware not an OS driver.

 --
 Alexander Motin

Thanks for the tips
try to change to another, it seems some problems with the firmware

In the linux (grml)
Sata-3 hdd have section
Standards:
Supported: 9 8 7 6 5
Likely used: 9


# hdparm -I /dev/sdc

/dev/sdc:

ATA device, with non-removable media
Model Number:   PLEXTOR PX-128M5S
Serial Number:  P0242921
Firmware Revision:  1.05
Transport:  Serial, ATA8-AST, SATA II Extensions, SATA
Rev 2.6, SATA Rev 3.0
Standards:
Used: ATA/ATAPI-7 T13 1532D revision 4a
Supported: 8 7 6 5  some of 8
Configuration:
Logical max current
cylinders   16383   16383
heads   16  16
sectors/track   63  63
--
CHS current addressable sectors:   16514064
LBAuser addressable sectors:  250069680
LBA48  user addressable sectors:  250069680
Logical  Sector size:   512 bytes
Physical Sector size:   512 bytes
Logical Sector-0 offset:  0 bytes
device size with M = 1024*1024:  122104 MBytes
device size with M = 1000*1000:  128035 MBytes (128 GB)
cache/buffer size  = unknown
Nominal Media Rotation Rate: Solid State Device
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16  Current = 16
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
 Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
Enabled Supported:
   *SMART feature set
Security Mode feature set
   *Power Management feature set
   *Write cache
   *Look-ahead
   *Host Protected Area feature set
   *WRITE_BUFFER command
   *READ_BUFFER command
   *DOWNLOAD_MICROCODE
SET_MAX security extension
   *48-bit Address feature set
   *Device Configuration Overlay feature set
   *Mandatory FLUSH_CACHE
   *FLUSH_CACHE_EXT
   *SMART error logging
   *SMART self-test
   *General Purpose Logging feature set
   *64-bit World wide name
   *Segmented DOWNLOAD_MICROCODE
   *Gen1 signaling speed (1.5Gb/s)
   *Gen2 signaling speed (3.0Gb/s)
   *Gen3 signaling speed (6.0Gb/s)
   *Native Command Queueing (NCQ)
   *Host-initiated interface power management
   *Phy event counters
   *DMA Setup Auto-Activate optimization
Device-initiated interface power management
   *Software settings preservation
unknown 78[8]
   *SMART Command Transport (SCT) feature set
   *SCT Write Same (AC2)
   *SCT Error Recovery Control (AC3)
   *SCT Features Control (AC4)
   *SCT Data Tables (AC5)
   *Data Set Management TRIM supported (limit 8 blocks)
Security:
supported
not enabled
not locked
frozen
not expired: security count
supported: enhanced erase
6min for SECURITY ERASE UNIT. 6min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 500230310017df1b
NAA : 5
IEEE OUI: 002303
Unique ID   : 10017df1b
Checksum: correct

after reconnect SSD this information not change, but syslog

2014-04-21T00:23:21.223409+00:00 grml kernel: [3.482230] ata4:
SATA link up 3.0 Gbps (SStatus 123 SControl 300)
2014-04-21T00:23:21.223410+00:00 grml kernel: [3.482375] Switched
to clocksource tsc
2014-04-21T00:23:21.223410+00:00 grml kernel: [3.484803] ata4.00:
ATA-8: PLEXTOR PX-128M5S, 1.05, max UDMA/133
2014-04-21T00:23:21.223413+00:00 grml kernel: [3.484804] ata4.00:
250069680 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
...
2014-04-21T00:43:52.004962+00:00 grml kernel: [ 1199.327857] ata4:
SError: { DevExch }
2014-04-21T00:43:52.004962+00:00 grml kernel: [ 1199.327860] ata4:
hard resetting link
2014-04-21T00:43:52.728949+00:00 grml kernel: [ 1200.048622] ata4:
SATA link up 6.0 Gbps (SStatus 133 SControl 300)
2014-04-21T00:43:52.728953+00:00 grml kernel: [ 1200.051217] ata4.00:
ATA-8: PLEXTOR PX-128M5S, 1.05, max UDMA/133
2014-04-21T00:43:52.728954+00:00 grml kernel: [ 1200.051219] ata4.00:
250069680 sectors, multi 1: LBA48 NCQ (depth 31/32), AA
___