Librem Mini Samsung EVO 860 link reset

Hello there.

On a Librem Mini I get this disk SATA reset and hangs, with those messages in kernel output

[Sat Oct 24 12:11:45 2020] ata1: limiting SATA link speed to 3.0 Gbps
[Sat Oct 24 12:11:45 2020] ata1.00: exception Emask 0x10 SAct 0x7000 SErr 0x400100 action 0x6 frozen
[Sat Oct 24 12:11:45 2020] ata1.00: irq_stat 0x08000000, interface fatal error
[Sat Oct 24 12:11:45 2020] ata1: SError: { UnrecovData Handshk }
[Sat Oct 24 12:11:45 2020] ata1.00: failed command: WRITE FPDMA QUEUED
[Sat Oct 24 12:11:45 2020] ata1.00: cmd 61/40:60:09:a8:56/05:00:00:00:00/40 tag 12 ncq dma 688128 out
                                    res 40/00:60:09:a8:56/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[Sat Oct 24 12:11:45 2020] ata1.00: status: { DRDY }
[Sat Oct 24 12:11:45 2020] ata1.00: failed command: WRITE FPDMA QUEUED
[Sat Oct 24 12:11:45 2020] ata1.00: cmd 61/c0:68:49:ad:56/02:00:00:00:00/40 tag 13 ncq dma 360448 out
                                    res 40/00:60:09:a8:56/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[Sat Oct 24 12:11:45 2020] ata1.00: status: { DRDY }
[Sat Oct 24 12:11:45 2020] ata1.00: failed command: WRITE FPDMA QUEUED
[Sat Oct 24 12:11:45 2020] ata1.00: cmd 61/40:70:09:b0:56/05:00:00:00:00/40 tag 14 ncq dma 688128 out
                                    res 40/00:60:09:a8:56/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[Sat Oct 24 12:11:45 2020] ata1.00: status: { DRDY }
[Sat Oct 24 12:11:45 2020] ata1: hard resetting link
[Sat Oct 24 12:11:46 2020] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[Sat Oct 24 12:11:46 2020] ata1.00: supports DRM functions and may not be fully accessible
[Sat Oct 24 12:11:46 2020] ata1.00: supports DRM functions and may not be fully accessible
[Sat Oct 24 12:11:46 2020] ata1.00: configured for UDMA/133
[Sat Oct 24 12:11:46 2020] ahci 0000:00:17.0: port does not support device sleep
[Sat Oct 24 12:11:46 2020] ata1: EH complete
[Sat Oct 24 12:11:46 2020] ata1.00: Enabling discard_zeroes_data

I am on a patched version of Seabios 4.12-Purism-3

Should I try to fix the SATA speed back to 3 and also try to disable sleep on the controler?

Are you using version of coreboot provided by us? If yes, try to upgrade it please: https://puri.sm/coreboot/

1 Like

Hello, yes I am on a custom build provided by Matt D. There is some issues with 4k display on the latest 4.12-Purism-3 --> https://source.puri.sm/coreboot/coreboot/-/issues/9

Meanwhile I added this to grub
GRUB_CMDLINE_LINUX="libata.force=1:3.0G"

@mladen I will re-try the latest version of coreboot to see if it got the fix for 4k display. Brb with results.

4.12-Purism-3 is the latest release and you will probably have the same issue. So I suggest you leave the workaround, I think Matt managed to fix this issue already and that it will land in the upcoming version. @MrChromebox is this correct?

1 Like

I confirm that the issue is still there in 4.12-Purism-3 I just flashed it, and :

  1. Press esc for boot option is not displayed and display stay turned off.

  2. Resolution is changed / reset ( zoom level change ) when I login to PureOS. And there is lag in the mouse movements after I login and during the whole session ( Feels like 1998 running KDE on 16Mb ram 486sx cpu. )

— So I re-flashed back the custom version :slight_smile: and I will keep libata.force=1:3.0G.

I will report back if libata.force option fix the ATA jams I get.

Another one that I am worried about is the sleep cmd not available. I will see if it show up again.

@purismforum 4.12-Purism-3 includes SATA 6Gbps fixes for the Mini, but internal testing has shown some issue remain on the 2.5" SATA interface (M.2 should be good). But it does also have a VBIOS issue with the DisplayPort output which will be fixed in the next release

3 Likes

Ok :slight_smile: no worries, I will wait for the next release to try it out without that kernel option.