Chiming in here: My sata card from Pine has been giving me same kind of trouble. Couple of dmesgs from ayufan's ubuntu minimal + kernels (4.4 and 4.20):
- https://pastebin.com/c9S7ECFt
- https://pastebin.com/N6gJ4Min
RockPro64 setup:
- RP64 4GB, v2.1
- Pine64 SATA card (ASM1062)
- 500GB Samsung 860 Evo SSD
- 7-port USB3 Hub in USB3 port
- Keyboard in USB2 port
- 12V/6A Salcar PSU (from Amazon). This powers all of above.
What seems to happen in my logs is that ata/sata errors and after a couple of tries kernel (at least 4.20) disables NCQ and after that the card starts working. There's a little difference between kernels: If I remember correctly in 4.4 mkfs already caused errors. From user's point of view it looks like the command just halted. In 4.20 mkfs and mount went ok but first attempt to actually do something (ls -l in mount point) caused errors. Removing keyboard and USB hub didn't have any effect.
I tried the card in x86_64 PC with 18.04 Ubuntu and same errors happened is that setup too. When I tried using the SSD drive connected directly to PC motherboard with same SATA cable it worked without errors. This makes me believe there's something wrong with the SATA card itself.
PC setup:
- Asus Fatal1ty H87 performance
- Intel Xeon E3-1230 v3
- 32GB Ram
- Pine64 SATA card (ASM1062, in PCIe 2.0 x16 slot)
- MSI Radeon R9 270X
- Seagate Momentus 500GB Hybrid drive as boot + rootfs device
- 500GB Samsung 860 Evo SSD as "drive under test"
- XFX TS 550W PSU
As a workaround I disabled NCQ from kernel by adding libata.force=noncq to kernel command line (to line that says "append" in /boot/extlinux/extlinux.conf). After that I haven't experienced any ATA/SATA errors yet. Note that disabling NCQ may cause serious performance drop especially with spinning disks! For me it's okayish as I'm using it on my retro/Recalbox build with SSD. But personally I wouldn't use it on NAS (I have Marvell 88SE9230 and 88SE9215 cards working just fine on that purpose).
Edit: Pine64 store page (https://www.pine64.org/?product=rockpro6...rface-card) says the card is ASM1061 but lspci says it's ASM1062. The card is from Pine store anyway
- https://pastebin.com/c9S7ECFt
- https://pastebin.com/N6gJ4Min
RockPro64 setup:
- RP64 4GB, v2.1
- Pine64 SATA card (ASM1062)
- 500GB Samsung 860 Evo SSD
- 7-port USB3 Hub in USB3 port
- Keyboard in USB2 port
- 12V/6A Salcar PSU (from Amazon). This powers all of above.
What seems to happen in my logs is that ata/sata errors and after a couple of tries kernel (at least 4.20) disables NCQ and after that the card starts working. There's a little difference between kernels: If I remember correctly in 4.4 mkfs already caused errors. From user's point of view it looks like the command just halted. In 4.20 mkfs and mount went ok but first attempt to actually do something (ls -l in mount point) caused errors. Removing keyboard and USB hub didn't have any effect.
I tried the card in x86_64 PC with 18.04 Ubuntu and same errors happened is that setup too. When I tried using the SSD drive connected directly to PC motherboard with same SATA cable it worked without errors. This makes me believe there's something wrong with the SATA card itself.
PC setup:
- Asus Fatal1ty H87 performance
- Intel Xeon E3-1230 v3
- 32GB Ram
- Pine64 SATA card (ASM1062, in PCIe 2.0 x16 slot)
- MSI Radeon R9 270X
- Seagate Momentus 500GB Hybrid drive as boot + rootfs device
- 500GB Samsung 860 Evo SSD as "drive under test"
- XFX TS 550W PSU
As a workaround I disabled NCQ from kernel by adding libata.force=noncq to kernel command line (to line that says "append" in /boot/extlinux/extlinux.conf). After that I haven't experienced any ATA/SATA errors yet. Note that disabling NCQ may cause serious performance drop especially with spinning disks! For me it's okayish as I'm using it on my retro/Recalbox build with SSD. But personally I wouldn't use it on NAS (I have Marvell 88SE9230 and 88SE9215 cards working just fine on that purpose).
Edit: Pine64 store page (https://www.pine64.org/?product=rockpro6...rface-card) says the card is ASM1061 but lspci says it's ASM1062. The card is from Pine store anyway