I’ve plugged a Kingston SSD into SATA connector of my TX2 dev board (L4T R28.1), and it works fine but it looks it runs in SATA2 mode while the SSD supports SATA3.
dmesg | grep -i sata
[ 0.232965] iommu: Adding device 3507000.ahci-sata to group 2
[ 2.662375] tegra-ahci 3507000.ahci-sata: AHCI 0001.0301 32 slots 2 ports 3 Gbps 0x1 impl platform mode
[ 2.662381] tegra-ahci 3507000.ahci-sata: flags: 64bit ncq sntf pm led pmp pio slum part deso sadm apst
[ 2.663370] ata1: SATA max UDMA/133 mmio [mem 0x03507000-0x03508fff] port 0x100 irq 25
[ 3.154736] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
cat /sys/class/ata_link/link1/sata_spd
3.0 Gbps
hdparm -I /dev/sda | egrep "Model|speed|Transport"
Model Number: KINGSTON SUV400S37120G
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0; Revision: 0x0051
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Gen3 signaling speed (6.0Gb/s)
* SMART Command Transport (SCT) feature set
Is the hardware limited to SATA2 or is there a problem with my case ?
The SATA controller enables a control path from the module to an external SATA device. A SSD / HDD / ODD drive can be
connected. Controller can support the maximum throughput of a Gen 2 drive.
@Linuxdev Thanks for the link (I should have read this doc, sorry… just goggled for TX2 SATA speed, searched this forum and haven’t been able to find this).
It wasn’t obvious…I had to dig through my documents. Made me wish there was some equivalent to “lspci” verbose mode where it would tell me the low level details. Current utilities are designed more for a query of the drive itself, and not so much the SATA controller and physical signal qualities. Probably something like this exists, but I don’t know what it is.
@snarky thanks, but unfortunately lshw gives many details about cpus, usb and network, but nothing about SATA.
This SSD is mainly used for saving room in eMMC, as a mount point to /usr/local and some links in /var for apt repositories.
My main concern about speed is having there also a swap partition, but I’ll know what I can expect from it as performance:
sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 6222 MB in 2.00 seconds = 3117.12 MB/sec
Timing buffered disk reads: 740 MB in 3.00 seconds = 246.34 MB/sec