SATA errors on iMX8QM with Linux 6.12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SATA errors on iMX8QM with Linux 6.12

2,025 Views
Olivaw
Contributor II

Hello, community!

We have a custom board based on i.mx8 QuadMax, and we use a Yocto BSP based on layers meta-imx and meta-freescale. On this board we have an SSD attached to one of the SATA/PCIe lanes, operating with 6.0 Gbps.

Recently we made a big jump of the NXP BSP version from 5.10.72_2.2.0 to 6.12.20_2.0.0, and with the new Kernel we started seeing SATA errors on some devices:

Spoiler

[    4.037121] ahci-imx 5f020000.sata: AHCI vers 0001.0301, 32 command slots, 6 Gbps, platform mode
[    4.047739] ahci-imx 5f020000.sata: 1/1 ports implemented (port mask 0x1)
[    4.054550] ahci-imx 5f020000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sadm sds apst
[    4.082145] scsi host0: ahci-imx
[    4.085601] ata1: SATA max UDMA/133 mmio [mem 0x5f020000-0x5f02ffff] port 0x100 irq 510 lpm-pol 0
[    4.568137] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
...
[    4.592889] ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 32)
[    4.593161] ata1.00: configured for UDMA/133
...
[  588.609141] ata1.00: exception Emask 0x52 SAct 0x3000 SErr 0x200c00 action 0x6 frozen
[  588.620665] ata1.00: irq_stat 0x08000000, interface fatal error
[  588.626672] ata1: SError: { Proto HostInt BadCRC }
[  588.631561] ata1.00: failed command: READ FPDMA QUEUED
[  588.640406] ata1.00: cmd 60/08:60:d8:47:f9/00:00:0d:00:00/40 tag 12 ncq dma 4096 in
[  588.640406]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x52 (ATA bus error)
[  588.658886] ata1.00: status: { DRDY }
[  588.662599] ata1.00: failed command: READ FPDMA QUEUED
[  588.671398] ata1.00: cmd 60/10:68:e8:47:f9/00:00:0d:00:00/40 tag 13 ncq dma 8192 in
[  588.671398]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x52 (ATA bus error)
[  588.687117] ata1.00: status: { DRDY }
[  588.690805] ata1: hard resetting link
[  589.161130] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  589.167972] ata1.00: configured for UDMA/133
[  589.172904] sd 0:0:0:0: [sda] tag#12 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s
[  589.182636] sd 0:0:0:0: [sda] tag#12 Sense Key : 0x5 [current]
[  589.188577] sd 0:0:0:0: [sda] tag#12 ASC=0x21 ASCQ=0x4
[  589.193853] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x28 28 00 0d f9 47 d8 00 00 08 00
[  589.201552] I/O error, dev sda, sector 234440664 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  589.214422] sd 0:0:0:0: [sda] tag#13 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s
[  589.224127] sd 0:0:0:0: [sda] tag#13 Sense Key : 0x5 [current]
[  589.233725] sd 0:0:0:0: [sda] tag#13 ASC=0x21 ASCQ=0x4
[  589.238996] sd 0:0:0:0: [sda] tag#13 CDB: opcode=0x28 28 00 0d f9 47 e8 00 00 10 00
[  589.246675] I/O error, dev sda, sector 234440680 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  589.255890] ata1: EH complete​

 

The SATA errors are logged when the SSD is accessed, in about 10% of boot sessions. Also, not every access leads to the error, and on most devices the errors don't appear at all.

The issue persists when we further upgrade the BSP to release 6.12.34-2.1.0. The Kernel 6.6.52-2.2.0 also shows the symptom.

Did anyone see a similar symptom on their system, and maybe even found a solution for this?

We are thankful for any suggestions.

0 Kudos
Reply
8 Replies

1,902 Views
Olivaw
Contributor II

Hello Aldo! Thanks for your response

We did try "noncq" earlier without success, now I also added "nodma". The problem persists, unfortunately:

Spoiler
[ 4.110570] ahci-imx 5f020000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sadm sds apst 
[ 4.121464] scsi host0: ahci-imx
[ 4.124941] ata1: SATA max UDMA/133 mmio [mem 0x5f020000-0x5f02ffff] port 0x100 irq 510 lpm-pol 0
...
[ 4.599797] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.606509] ata1.00: FORCE: modified (noncq)
[ 4.606516] ata1.00: FORCE: modified (nodma)
[ 4.606527] ata1.00: ATA-9: M.2 (S42) 3TE7, S22921, max UDMA/133
[ 4.612123] pci_bus 0000:01: resource 1 [mem 0x72000000-0x721fffff]
[ 4.618386] ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (not used)
[ 4.618405] ata1.00: device does not support DMA, disabling DMA
[ 4.628979] ata1.00: configured for PIO4
...
[ 100.111610] ata1.00: exception Emask 0x52 SAct 0x0 SErr 0x400d00 action 0x6 frozen
[ 100.122993] ata1.00: irq_stat 0x08000000, interface fatal error
[ 100.128961] ata1: SError: { UnrecovData Proto HostInt Handshk }
[ 100.134944] ata1.00: failed command: WRITE MULTIPLE
[ 100.139853] ata1.00: cmd c5/00:08:58:08:00/00:00:00:00:00/e0 tag 12 pio 4096 out
[ 100.139853] res 50/00:08:08:09:81/00:00:00:00:00/ea Emask 0x52 (ATA bus error)
[ 100.155321] ata1.00: status: { DRDY }
[ 100.159056] ata1: hard resetting link
[ 100.635608] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 100.645314] ata1.00: device does not support DMA, disabling DMA
[ 100.651637] ata1.00: configured for PIO4
[ 100.655695] ata1: EH complete
[ 100.715250] ata1.00: exception Emask 0x52 SAct 0x0 SErr 0x400d00 action 0x6 frozen
[ 100.722875] ata1.00: irq_stat 0x08000000, interface fatal error
[ 100.728839] ata1: SError: { UnrecovData Proto HostInt Handshk }
[ 100.735646] ata1.00: failed command: WRITE MULTIPLE
[ 100.740906] ata1.00: cmd c5/00:08:78:29:00/00:00:00:00:00/e0 tag 11 pio 4096 out
[ 100.740906] res 50/00:0c:00:00:00/00:00:00:00:00/a0 Emask 0x52 (ATA bus error)
[ 100.756959] ata1.00: status: { DRDY }
[ 100.760758] ata1: hard resetting link
[ 101.231617] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 101.239116] ata1.00: device does not support DMA, disabling DMA
[ 101.245398] ata1.00: configured for PIO4
[ 101.249637] ata1: EH complete
...
# dd if=/dev/sda1 of=/dev/null bs=1M count=500 status=progres

[  149.324058] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  149.330650] ata1.00: device does not support DMA, disabling DMA
[  149.338353] ata1.00: configured for PIO4

57671680 bytes (58 MB, 55 MiB) copied, 1 s, 57.5 MB/s
179306496 bytes (179 MB, 171 MiB) copied, 2 s, 89.5 MB/s

[  151.505052] ata1: limiting SATA link speed to 3.0 Gbps
[  151.975579] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  151.983099] ata1.00: device does not support DMA, disabling DMA
[  151.991499] ata1.00: configured for PIO4

263192576 bytes (263 MB, 251 MiB) copied, 3 s, 82.6 MB/s
342884352 bytes (343 MB, 327 MiB) copied, 4 s, 85.5 MB/s
443547648 bytes (444 MB, 423 MiB) copied, 5 s, 88.5 MB/s
500+0 records in
500+0 records out
 

With setting noncq and nodma, the read speed has dropped from about 250MB/s to 85 MB/s but the errors on ata1 still occur.

0 Kudos
Reply

1,878 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Thank you for trying, I see a differnet error on the last test so I will investigate, during so could you try with a different cable/connector?
Also, regarding the drop in speed it is spected since without DMA it would be slower, I wanted to see if this was the actual issue.

Best regards/Saludos,
Aldo.

0 Kudos
Reply

1,695 Views
Olivaw
Contributor II

Thanks for sticking to this thread, @AldoG

I cannot test a different cable because the SSD is attached via an M.2 connector that carries the SATA signals.

There is a hardware dependency though: we know that not every board is equally affected. Some show the symptom less frequently, some don't at all, but all boards that do show the symptom work fine with Kernel from the 5.10.72_2.2.0 BSP release.

We tried replacing the SSD on affected boards, and the issue persists there.

1,673 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I understand thank you for sharing, then could you please try by checking the Power rails?
Try to Scope the SSD supply during sustained reads
Also, please re enable DMA and try reducing the link speed for a test, this by sending the kernel parameter:

libata.force=3.0G

Please try it and let me know of your results<
Best regards/Saludos,
Aldo.
0 Kudos
Reply

1,600 Views
Olivaw
Contributor II

Thanks for the suggestion, @AldoG!

Unfortunately, setting "libata.force=3.0G" does not eliminate the symptom:

[    4.145416] scsi host0: ahci-imx
[    4.148867] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    4.153930] ata1: SATA max UDMA/133 mmio [mem 0x5f020000-0x5f02ffff] port 0x100 irq 510 lpm-pol 0
// ...
[    4.628203] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
// ...
[   89.900251] ata1.00: exception Emask 0x12 SAct 0x100 SErr 0x400500 action 0x6 frozen
[   89.908965] ata1.00: irq_stat 0x08000000, interface fatal error
[   89.915563] ata1: SError: { UnrecovData Proto Handshk }
[   89.921264] ata1.00: failed command: WRITE FPDMA QUEUED
[   89.926649] ata1.00: cmd 61/50:40:00:48:c5/00:00:06:00:00/40 tag 8 ncq dma 40960 out
[   89.926649]          res 40/00:01:01:4f:c2/00:00:00:00:00/00 Emask 0x12 (ATA bus error)
[   89.942665] ata1.00: status: { DRDY }
[   89.946535] ata1: hard resetting link
[   90.416176] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   90.423350] ata1.00: configured for UDMA/133
[   90.427751] ata1: EH complete

 Sometimes we also see automatic reduction of speed, which does not help though:

[   90.476233] ata1: limiting SATA link speed to 1.5 Gbps
[   90.481466] ata1.00: exception Emask 0x12 SAct 0x1000 SErr 0x400500 action 0x6 frozen
[   90.489382] ata1.00: irq_stat 0x08000000, interface fatal error
[   90.495367] ata1: SError: { UnrecovData Proto Handshk }
[   90.500708] ata1.00: failed command: WRITE FPDMA QUEUED
[   90.505977] ata1.00: cmd 61/50:60:00:48:c5/00:00:06:00:00/40 tag 12 ncq dma 40960 out
[   90.505977]          res 41/84:01:06:4f:c2/00:00:00:00:00/00 Emask 0x12 (ATA bus error)
[   90.521892] ata1.00: status: { DRDY ERR }
[   90.525954] ata1.00: error: { ICRC ABRT }
[   90.530002] ata1: hard resetting link
[   91.000176] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   91.007078] ata1.00: configured for UDMA/133
[   91.011575] ata1: EH complete

Best regards

Olivaw

0 Kudos
Reply

1,146 Views
Olivaw
Contributor II

Hello again!

Unfortunately it was not possible for me to do the power rail measurements.

However, our board manufacturer did some quick eye pattern measurements on the TX signal line (CPU to SSD) of an affected board. I have attached the images to this post.

We see that the vertical eye opening reduces visibly when transitioning from 5.4 to 6.12 (these are the two versions that they had at hand). 

2026-02_kernel-5.04.png

2026-02_kernel-6.12.png


When looking at the Kernel source code (linux-imx), we see that in a relatively recent driver architecture rework, some SATA PHY settings were removed in one place (ahci_imx) [1] but not added in the other (imx8qm-hsio) [2].

Can this be the reason?

Best regards

Olivaw

[1] https://github.com/nxp-imx/linux-imx/commit/4147e9d2408aab6df9315900f18f4142ca6e7c3f

[2] https://github.com/nxp-imx/linux-imx/commit/82c56b6dd24fcdf811f2b47b72e5585c8a79b685

 

0 Kudos
Reply

885 Views
Olivaw
Contributor II

Hello, community!

In the meantime I got contacted by an NXP FAE, a colleague of @AldoG but we did not receive much support so far, unfortunately.

We see that the same hardware shows errors with Kernel 6.x, and _not_ with Kernel 5.10. Therefore we are sure that the issue can be solved in software.

We started reverse-engineering the driver, hoping to find a workaround.
So far, we did not have success, but we saw that the errors disappear if we disable the PCIe lane that is usually active in addition to the SATA lane (we have fsl,hsio-cfg = "pciea-pcieb-sata", and use the pcieb lane along with SATA).

Our conclusion is that there seems to be an interference:

  • either from the PCIe driver pci-imx6.c accessing one of the three PHYs, and thus corrupting the SATA line calibration
  • or from the PCIe traffic somehow influencing the SATA signal integrity

We initially guessed that there might be a race condition between the two drivers simultaneously accessing the PHY registers (`phy-fsl-imx8qm-hsio.c`). This was not confirmed because the errors persisted also after configuring the PCIe driver as `late_initcall()`, thus starting it after SATA calibration is completed.

Would be great to hear an opinion from NXP who have authored the drivers and should have a better idea about the reason for the errors.

Best regards

Olivaw

0 Kudos
Reply

1,931 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you try with the following kernel parameter:
libata.force=noncq, nodma

This would disable NCQ and DMA, lets see if this does help.

Best regards/Saludos,
Aldo.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2293401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2293401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20community!%3C%2FP%3E%3CP%3EWe%20have%20a%20custom%20board%20based%20on%20i.mx8%20QuadMax%2C%20and%20we%20use%20a%20Yocto%20BSP%20based%20on%20layers%20meta-imx%20and%20meta-freescale.%26nbsp%3BOn%20this%20board%20we%20have%20an%20SSD%20attached%20to%20one%20of%20the%20SATA%2FPCIe%20lanes%2C%20operating%20with%26nbsp%3B6.0%20Gbps.%3C%2FP%3E%3CP%3ERecently%20we%20made%20a%20big%20jump%20of%20the%20NXP%20BSP%20version%20from%26nbsp%3B%3CSPAN%3E5.10.72_2.2.0%3C%2FSPAN%3E%20to%206.12.20_2.0.0%2C%20and%20with%20the%20new%20Kernel%20we%20started%20seeing%20SATA%20errors%20on%20some%20devices%3A%3C%2FP%3E%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ESpoiler%3C%2FA%3E%3CNOSCRIPT%3E%20(Highlight%20to%20read)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%5B%20%20%20%204.037121%5D%20ahci-imx%205f020000.sata%3A%20AHCI%20vers%200001.0301%2C%2032%20command%20slots%2C%206%20Gbps%2C%20platform%20mode%0A%5B%20%20%20%204.047739%5D%20ahci-imx%205f020000.sata%3A%201%2F1%20ports%20implemented%20(port%20mask%200x1)%0A%5B%20%20%20%204.054550%5D%20ahci-imx%205f020000.sata%3A%20flags%3A%2064bit%20ncq%20sntf%20pm%20clo%20only%20pmp%20fbs%20pio%20slum%20part%20ccc%20sadm%20sds%20apst%0A%5B%20%20%20%204.082145%5D%20scsi%20host0%3A%20ahci-imx%0A%5B%20%20%20%204.085601%5D%20ata1%3A%20SATA%20max%20UDMA%2F133%20mmio%20%5Bmem%200x5f020000-0x5f02ffff%5D%20port%200x100%20irq%20510%20lpm-pol%200%0A%5B%20%20%20%204.568137%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%0A...%0A%5B%20%20%20%204.592889%5D%20ata1.00%3A%20234441648%20sectors%2C%20multi%2016%3A%20LBA48%20NCQ%20(depth%2032)%0A%5B%20%20%20%204.593161%5D%20ata1.00%3A%20configured%20for%20UDMA%2F133%0A...%0A%5B%20%20588.609141%5D%20ata1.00%3A%20exception%20Emask%200x52%20SAct%200x3000%20SErr%200x200c00%20action%200x6%20frozen%0A%5B%20%20588.620665%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%0A%5B%20%20588.626672%5D%20ata1%3A%20SError%3A%20%7B%20Proto%20HostInt%20BadCRC%20%7D%0A%5B%20%20588.631561%5D%20ata1.00%3A%20failed%20command%3A%20READ%20FPDMA%20QUEUED%0A%5B%20%20588.640406%5D%20ata1.00%3A%20cmd%2060%2F08%3A60%3Ad8%3A47%3Af9%2F00%3A00%3A0d%3A00%3A00%2F40%20tag%2012%20ncq%20dma%204096%20in%0A%5B%20%20588.640406%5D%20%20%20%20%20%20%20%20%20%20res%2040%2F00%3A00%3A00%3A00%3A00%2F00%3A00%3A00%3A00%3A00%2F00%20Emask%200x52%20(ATA%20bus%20error)%0A%5B%20%20588.658886%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%0A%5B%20%20588.662599%5D%20ata1.00%3A%20failed%20command%3A%20READ%20FPDMA%20QUEUED%0A%5B%20%20588.671398%5D%20ata1.00%3A%20cmd%2060%2F10%3A68%3Ae8%3A47%3Af9%2F00%3A00%3A0d%3A00%3A00%2F40%20tag%2013%20ncq%20dma%208192%20in%0A%5B%20%20588.671398%5D%20%20%20%20%20%20%20%20%20%20res%2040%2F00%3A00%3A00%3A00%3A00%2F00%3A00%3A00%3A00%3A00%2F00%20Emask%200x52%20(ATA%20bus%20error)%0A%5B%20%20588.687117%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%0A%5B%20%20588.690805%5D%20ata1%3A%20hard%20resetting%20link%0A%5B%20%20589.161130%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%0A%5B%20%20589.167972%5D%20ata1.00%3A%20configured%20for%20UDMA%2F133%0A%5B%20%20589.172904%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20UNKNOWN(0x2003)%20Result%3A%20hostbyte%3D0x00%20driverbyte%3DDRIVER_OK%20cmd_age%3D0s%0A%5B%20%20589.182636%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20Sense%20Key%20%3A%200x5%20%5Bcurrent%5D%0A%5B%20%20589.188577%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20ASC%3D0x21%20ASCQ%3D0x4%0A%5B%20%20589.193853%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20CDB%3A%20opcode%3D0x28%2028%2000%200d%20f9%2047%20d8%2000%2000%2008%2000%0A%5B%20%20589.201552%5D%20I%2FO%20error%2C%20dev%20sda%2C%20sector%20234440664%20op%200x0%3A(READ)%20flags%200x80700%20phys_seg%201%20prio%20class%200%0A%5B%20%20589.214422%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20UNKNOWN(0x2003)%20Result%3A%20hostbyte%3D0x00%20driverbyte%3DDRIVER_OK%20cmd_age%3D0s%0A%5B%20%20589.224127%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20Sense%20Key%20%3A%200x5%20%5Bcurrent%5D%0A%5B%20%20589.233725%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20ASC%3D0x21%20ASCQ%3D0x4%0A%5B%20%20589.238996%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20CDB%3A%20opcode%3D0x28%2028%2000%200d%20f9%2047%20e8%2000%2000%2010%2000%0A%5B%20%20589.246675%5D%20I%2FO%20error%2C%20dev%20sda%2C%20sector%20234440680%20op%200x0%3A(READ)%20flags%200x80700%20phys_seg%201%20prio%20class%200%0A%5B%20%20589.255890%5D%20ata1%3A%20EH%20complete%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E%5B%20%20%20%204.037121%5D%20ahci-imx%205f020000.sata%3A%20AHCI%20vers%200001.0301%2C%2032%20command%20slots%2C%206%20Gbps%2C%20platform%20mode%0A%5B%20%20%20%204.047739%5D%20ahci-imx%205f020000.sata%3A%201%2F1%20ports%20implemented%20(port%20mask%200x1)%0A%5B%20%20%20%204.054550%5D%20ahci-imx%205f020000.sata%3A%20flags%3A%2064bit%20ncq%20sntf%20pm%20clo%20only%20pmp%20fbs%20pio%20slum%20part%20ccc%20sadm%20sds%20apst%0A%5B%20%20%20%204.082145%5D%20scsi%20host0%3A%20ahci-imx%0A%5B%20%20%20%204.085601%5D%20ata1%3A%20SATA%20max%20UDMA%2F133%20mmio%20%5Bmem%200x5f020000-0x5f02ffff%5D%20port%200x100%20irq%20510%20lpm-pol%200%0A%5B%20%20%20%204.568137%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%0A...%0A%5B%20%20%20%204.592889%5D%20ata1.00%3A%20234441648%20sectors%2C%20multi%2016%3A%20LBA48%20NCQ%20(depth%2032)%0A%5B%20%20%20%204.593161%5D%20ata1.00%3A%20configured%20for%20UDMA%2F133%0A...%0A%5B%20%20588.609141%5D%20ata1.00%3A%20exception%20Emask%200x52%20SAct%200x3000%20SErr%200x200c00%20action%200x6%20frozen%0A%5B%20%20588.620665%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%0A%5B%20%20588.626672%5D%20ata1%3A%20SError%3A%20%7B%20Proto%20HostInt%20BadCRC%20%7D%0A%5B%20%20588.631561%5D%20ata1.00%3A%20failed%20command%3A%20READ%20FPDMA%20QUEUED%0A%5B%20%20588.640406%5D%20ata1.00%3A%20cmd%2060%2F08%3A60%3Ad8%3A47%3Af9%2F00%3A00%3A0d%3A00%3A00%2F40%20tag%2012%20ncq%20dma%204096%20in%0A%5B%20%20588.640406%5D%20%20%20%20%20%20%20%20%20%20res%2040%2F00%3A00%3A00%3A00%3A00%2F00%3A00%3A00%3A00%3A00%2F00%20Emask%200x52%20(ATA%20bus%20error)%0A%5B%20%20588.658886%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%0A%5B%20%20588.662599%5D%20ata1.00%3A%20failed%20command%3A%20READ%20FPDMA%20QUEUED%0A%5B%20%20588.671398%5D%20ata1.00%3A%20cmd%2060%2F10%3A68%3Ae8%3A47%3Af9%2F00%3A00%3A0d%3A00%3A00%2F40%20tag%2013%20ncq%20dma%208192%20in%0A%5B%20%20588.671398%5D%20%20%20%20%20%20%20%20%20%20res%2040%2F00%3A00%3A00%3A00%3A00%2F00%3A00%3A00%3A00%3A00%2F00%20Emask%200x52%20(ATA%20bus%20error)%0A%5B%20%20588.687117%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%0A%5B%20%20588.690805%5D%20ata1%3A%20hard%20resetting%20link%0A%5B%20%20589.161130%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%0A%5B%20%20589.167972%5D%20ata1.00%3A%20configured%20for%20UDMA%2F133%0A%5B%20%20589.172904%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20UNKNOWN(0x2003)%20Result%3A%20hostbyte%3D0x00%20driverbyte%3DDRIVER_OK%20cmd_age%3D0s%0A%5B%20%20589.182636%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20Sense%20Key%20%3A%200x5%20%5Bcurrent%5D%0A%5B%20%20589.188577%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20ASC%3D0x21%20ASCQ%3D0x4%0A%5B%20%20589.193853%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2312%20CDB%3A%20opcode%3D0x28%2028%2000%200d%20f9%2047%20d8%2000%2000%2008%2000%0A%5B%20%20589.201552%5D%20I%2FO%20error%2C%20dev%20sda%2C%20sector%20234440664%20op%200x0%3A(READ)%20flags%200x80700%20phys_seg%201%20prio%20class%200%0A%5B%20%20589.214422%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20UNKNOWN(0x2003)%20Result%3A%20hostbyte%3D0x00%20driverbyte%3DDRIVER_OK%20cmd_age%3D0s%0A%5B%20%20589.224127%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20Sense%20Key%20%3A%200x5%20%5Bcurrent%5D%0A%5B%20%20589.233725%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20ASC%3D0x21%20ASCQ%3D0x4%0A%5B%20%20589.238996%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20tag%2313%20CDB%3A%20opcode%3D0x28%2028%2000%200d%20f9%2047%20e8%2000%2000%2010%2000%0A%5B%20%20589.246675%5D%20I%2FO%20error%2C%20dev%20sda%2C%20sector%20234440680%20op%200x0%3A(READ)%20flags%200x80700%20phys_seg%201%20prio%20class%200%0A%5B%20%20589.255890%5D%20ata1%3A%20EH%20complete%E2%80%8B%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3EThe%20SATA%20errors%20are%20logged%20when%20the%20SSD%20is%20accessed%2C%20in%20about%2010%25%20of%20boot%20sessions.%20Also%2C%20not%20every%20access%20leads%20to%20the%20error%2C%20and%20on%20most%20devices%20the%20errors%20don't%20appear%20at%20all.%3C%2FP%3E%3CP%3EThe%20issue%20persists%20when%20we%20further%20upgrade%20the%20BSP%20to%20release%26nbsp%3B%3CSPAN%3E6.12.34-2.1.0.%20The%20Kernel%26nbsp%3B6.6.52-2.2.0%20also%20shows%20the%20symptom.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDid%20anyone%20see%20a%20similar%20symptom%20on%20their%20system%2C%20and%20maybe%20even%20found%20a%20solution%20for%20this%3F%3C%2FP%3E%3CP%3EWe%20are%20thankful%20for%20any%20suggestions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2293401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2294605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20try%20with%20the%20following%20kernel%20parameter%3A%3CBR%20%2F%3Elibata.force%3Dnoncq%2C%20nodma%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20would%20disable%20NCQ%20and%20DMA%2C%20lets%20see%20if%20this%20does%20help.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Aldo!%20Thanks%20for%20your%20response%3C%2FP%3E%3CP%3EWe%20did%20try%20%22%3CSPAN%3Enoncq%22%20earlier%20without%20success%2C%20now%20I%20also%20added%20%22nodma%22.%20The%20problem%20persists%2C%20unfortunately%3A%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ESpoiler%3C%2FA%3E%3CNOSCRIPT%3E%20(Highlight%20to%20read)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%3CPRE%3E%5B%204.110570%5D%20ahci-imx%205f020000.sata%3A%20flags%3A%2064bit%20ncq%20sntf%20pm%20clo%20only%20pmp%20fbs%20pio%20slum%20part%20ccc%20sadm%20sds%20apst%20%3CBR%20%2F%3E%5B%204.121464%5D%20scsi%20host0%3A%20ahci-imx%3CBR%20%2F%3E%5B%204.124941%5D%20ata1%3A%20SATA%20max%20UDMA%2F133%20mmio%20%5Bmem%200x5f020000-0x5f02ffff%5D%20port%200x100%20irq%20510%20lpm-pol%200%3CBR%20%2F%3E...%3CBR%20%2F%3E%5B%204.599797%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%3CBR%20%2F%3E%5B%204.606509%5D%20ata1.00%3A%20FORCE%3A%20modified%20(noncq)%3CBR%20%2F%3E%5B%204.606516%5D%20ata1.00%3A%20FORCE%3A%20modified%20(nodma)%3CBR%20%2F%3E%5B%204.606527%5D%20ata1.00%3A%20ATA-9%3A%20M.2%20(S42)%203TE7%2C%20S22921%2C%20max%20UDMA%2F133%3CBR%20%2F%3E%5B%204.612123%5D%20pci_bus%200000%3A01%3A%20resource%201%20%5Bmem%200x72000000-0x721fffff%5D%3CBR%20%2F%3E%5B%204.618386%5D%20ata1.00%3A%20234441648%20sectors%2C%20multi%2016%3A%20LBA48%20NCQ%20(not%20used)%3CBR%20%2F%3E%5B%204.618405%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%3CBR%20%2F%3E%5B%204.628979%5D%20ata1.00%3A%20configured%20for%20PIO4%3CBR%20%2F%3E...%3CBR%20%2F%3E%5B%20100.111610%5D%20ata1.00%3A%20exception%20Emask%200x52%20SAct%200x0%20SErr%200x400d00%20action%200x6%20frozen%3CBR%20%2F%3E%5B%20100.122993%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%3CBR%20%2F%3E%5B%20100.128961%5D%20ata1%3A%20SError%3A%20%7B%20UnrecovData%20Proto%20HostInt%20Handshk%20%7D%3CBR%20%2F%3E%5B%20100.134944%5D%20ata1.00%3A%20failed%20command%3A%20WRITE%20MULTIPLE%3CBR%20%2F%3E%5B%20100.139853%5D%20ata1.00%3A%20cmd%20c5%2F00%3A08%3A58%3A08%3A00%2F00%3A00%3A00%3A00%3A00%2Fe0%20tag%2012%20pio%204096%20out%3CBR%20%2F%3E%5B%20100.139853%5D%20res%2050%2F00%3A08%3A08%3A09%3A81%2F00%3A00%3A00%3A00%3A00%2Fea%20Emask%200x52%20(ATA%20bus%20error)%3CBR%20%2F%3E%5B%20100.155321%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%3CBR%20%2F%3E%5B%20100.159056%5D%20ata1%3A%20hard%20resetting%20link%3CBR%20%2F%3E%5B%20100.635608%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%3CBR%20%2F%3E%5B%20100.645314%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%3CBR%20%2F%3E%5B%20100.651637%5D%20ata1.00%3A%20configured%20for%20PIO4%3CBR%20%2F%3E%5B%20100.655695%5D%20ata1%3A%20EH%20complete%3CBR%20%2F%3E%5B%20100.715250%5D%20ata1.00%3A%20exception%20Emask%200x52%20SAct%200x0%20SErr%200x400d00%20action%200x6%20frozen%3CBR%20%2F%3E%5B%20100.722875%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%3CBR%20%2F%3E%5B%20100.728839%5D%20ata1%3A%20SError%3A%20%7B%20UnrecovData%20Proto%20HostInt%20Handshk%20%7D%3CBR%20%2F%3E%5B%20100.735646%5D%20ata1.00%3A%20failed%20command%3A%20WRITE%20MULTIPLE%3CBR%20%2F%3E%5B%20100.740906%5D%20ata1.00%3A%20cmd%20c5%2F00%3A08%3A78%3A29%3A00%2F00%3A00%3A00%3A00%3A00%2Fe0%20tag%2011%20pio%204096%20out%3CBR%20%2F%3E%5B%20100.740906%5D%20res%2050%2F00%3A0c%3A00%3A00%3A00%2F00%3A00%3A00%3A00%3A00%2Fa0%20Emask%200x52%20(ATA%20bus%20error)%3CBR%20%2F%3E%5B%20100.756959%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%3CBR%20%2F%3E%5B%20100.760758%5D%20ata1%3A%20hard%20resetting%20link%3CBR%20%2F%3E%5B%20101.231617%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%3CBR%20%2F%3E%5B%20101.239116%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%3CBR%20%2F%3E%5B%20101.245398%5D%20ata1.00%3A%20configured%20for%20PIO4%3CBR%20%2F%3E%5B%20101.249637%5D%20ata1%3A%20EH%20complete%3CBR%20%2F%3E...%3CBR%20%2F%3E%23%20dd%20if%3D%2Fdev%2Fsda1%20of%3D%2Fdev%2Fnull%20bs%3D1M%20count%3D500%20status%3Dprogres%3CBR%20%2F%3E%3CBR%20%2F%3E%5B%20%26nbsp%3B149.324058%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%3CBR%20%2F%3E%5B%20%26nbsp%3B149.330650%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%3CBR%20%2F%3E%5B%20%26nbsp%3B149.338353%5D%20ata1.00%3A%20configured%20for%20PIO4%3CBR%20%2F%3E%3CBR%20%2F%3E57671680%20bytes%20(58%20MB%2C%2055%20MiB)%20copied%2C%201%20s%2C%2057.5%20MB%2Fs%3CBR%20%2F%3E179306496%20bytes%20(179%20MB%2C%20171%20MiB)%20copied%2C%202%20s%2C%2089.5%20MB%2Fs%3CBR%20%2F%3E%3CBR%20%2F%3E%5B%20%26nbsp%3B151.505052%5D%20ata1%3A%20limiting%20SATA%20link%20speed%20to%203.0%20Gbps%3CBR%20%2F%3E%5B%20%26nbsp%3B151.975579%5D%20ata1%3A%20SATA%20link%20up%203.0%20Gbps%20(SStatus%20123%20SControl%20320)%3CBR%20%2F%3E%5B%20%26nbsp%3B151.983099%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%3CBR%20%2F%3E%5B%20%26nbsp%3B151.991499%5D%20ata1.00%3A%20configured%20for%20PIO4%3CBR%20%2F%3E%3CBR%20%2F%3E263192576%20bytes%20(263%20MB%2C%20251%20MiB)%20copied%2C%203%20s%2C%2082.6%20MB%2Fs%3CBR%20%2F%3E342884352%20bytes%20(343%20MB%2C%20327%20MiB)%20copied%2C%204%20s%2C%2085.5%20MB%2Fs%3CBR%20%2F%3E443547648%20bytes%20(444%20MB%2C%20423%20MiB)%20copied%2C%205%20s%2C%2088.5%20MB%2Fs%3CBR%20%2F%3E500%2B0%20records%20in%3CBR%20%2F%3E500%2B0%20records%20out%3C%2FPRE%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E%5B%204.110570%5D%20ahci-imx%205f020000.sata%3A%20flags%3A%2064bit%20ncq%20sntf%20pm%20clo%20only%20pmp%20fbs%20pio%20slum%20part%20ccc%20sadm%20sds%20apst%20%5B%204.121464%5D%20scsi%20host0%3A%20ahci-imx%5B%204.124941%5D%20ata1%3A%20SATA%20max%20UDMA%2F133%20mmio%20%5Bmem%200x5f020000-0x5f02ffff%5D%20port%200x100%20irq%20510%20lpm-pol%200...%5B%204.599797%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%5B%204.606509%5D%20ata1.00%3A%20FORCE%3A%20modified%20(noncq)%5B%204.606516%5D%20ata1.00%3A%20FORCE%3A%20modified%20(nodma)%5B%204.606527%5D%20ata1.00%3A%20ATA-9%3A%20M.2%20(S42)%203TE7%2C%20S22921%2C%20max%20UDMA%2F133%5B%204.612123%5D%20pci_bus%200000%3A01%3A%20resource%201%20%5Bmem%200x72000000-0x721fffff%5D%5B%204.618386%5D%20ata1.00%3A%20234441648%20sectors%2C%20multi%2016%3A%20LBA48%20NCQ%20(not%20used)%5B%204.618405%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%5B%204.628979%5D%20ata1.00%3A%20configured%20for%20PIO4...%5B%20100.111610%5D%20ata1.00%3A%20exception%20Emask%200x52%20SAct%200x0%20SErr%200x400d00%20action%200x6%20frozen%5B%20100.122993%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%5B%20100.128961%5D%20ata1%3A%20SError%3A%20%7B%20UnrecovData%20Proto%20HostInt%20Handshk%20%7D%5B%20100.134944%5D%20ata1.00%3A%20failed%20command%3A%20WRITE%20MULTIPLE%5B%20100.139853%5D%20ata1.00%3A%20cmd%20c5%2F00%3A08%3A58%3A08%3A00%2F00%3A00%3A00%3A00%3A00%2Fe0%20tag%2012%20pio%204096%20out%5B%20100.139853%5D%20res%2050%2F00%3A08%3A08%3A09%3A81%2F00%3A00%3A00%3A00%3A00%2Fea%20Emask%200x52%20(ATA%20bus%20error)%5B%20100.155321%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%5B%20100.159056%5D%20ata1%3A%20hard%20resetting%20link%5B%20100.635608%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%5B%20100.645314%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%5B%20100.651637%5D%20ata1.00%3A%20configured%20for%20PIO4%5B%20100.655695%5D%20ata1%3A%20EH%20complete%5B%20100.715250%5D%20ata1.00%3A%20exception%20Emask%200x52%20SAct%200x0%20SErr%200x400d00%20action%200x6%20frozen%5B%20100.722875%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%5B%20100.728839%5D%20ata1%3A%20SError%3A%20%7B%20UnrecovData%20Proto%20HostInt%20Handshk%20%7D%5B%20100.735646%5D%20ata1.00%3A%20failed%20command%3A%20WRITE%20MULTIPLE%5B%20100.740906%5D%20ata1.00%3A%20cmd%20c5%2F00%3A08%3A78%3A29%3A00%2F00%3A00%3A00%3A00%3A00%2Fe0%20tag%2011%20pio%204096%20out%5B%20100.740906%5D%20res%2050%2F00%3A0c%3A00%3A00%3A00%2F00%3A00%3A00%3A00%3A00%2Fa0%20Emask%200x52%20(ATA%20bus%20error)%5B%20100.756959%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%5B%20100.760758%5D%20ata1%3A%20hard%20resetting%20link%5B%20101.231617%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%5B%20101.239116%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%5B%20101.245398%5D%20ata1.00%3A%20configured%20for%20PIO4%5B%20101.249637%5D%20ata1%3A%20EH%20complete...%23%20dd%20if%3D%2Fdev%2Fsda1%20of%3D%2Fdev%2Fnull%20bs%3D1M%20count%3D500%20status%3Dprogres%5B%20%26nbsp%3B149.324058%5D%20ata1%3A%20SATA%20link%20up%206.0%20Gbps%20(SStatus%20133%20SControl%20300)%5B%20%26nbsp%3B149.330650%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%5B%20%26nbsp%3B149.338353%5D%20ata1.00%3A%20configured%20for%20PIO457671680%20bytes%20(58%20MB%2C%2055%20MiB)%20copied%2C%201%20s%2C%2057.5%20MB%2Fs179306496%20bytes%20(179%20MB%2C%20171%20MiB)%20copied%2C%202%20s%2C%2089.5%20MB%2Fs%5B%20%26nbsp%3B151.505052%5D%20ata1%3A%20limiting%20SATA%20link%20speed%20to%203.0%20Gbps%5B%20%26nbsp%3B151.975579%5D%20ata1%3A%20SATA%20link%20up%203.0%20Gbps%20(SStatus%20123%20SControl%20320)%5B%20%26nbsp%3B151.983099%5D%20ata1.00%3A%20device%20does%20not%20support%20DMA%2C%20disabling%20DMA%5B%20%26nbsp%3B151.991499%5D%20ata1.00%3A%20configured%20for%20PIO4263192576%20bytes%20(263%20MB%2C%20251%20MiB)%20copied%2C%203%20s%2C%2082.6%20MB%2Fs342884352%20bytes%20(343%20MB%2C%20327%20MiB)%20copied%2C%204%20s%2C%2085.5%20MB%2Fs443547648%20bytes%20(444%20MB%2C%20423%20MiB)%20copied%2C%205%20s%2C%2088.5%20MB%2Fs500%2B0%20records%20in500%2B0%20records%20out%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3EWith%20setting%20noncq%20and%20nodma%2C%20the%20read%20speed%20has%20dropped%20from%20about%20250MB%2Fs%20to%2085%20MB%2Fs%20but%20the%20errors%20on%20ata1%20still%20occur.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295219%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295219%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20trying%2C%20I%20see%20a%20differnet%20error%20on%20the%20last%20test%20so%20I%20will%20investigate%2C%20during%20so%20could%20you%20try%20with%20a%20different%20cable%2Fconnector%3F%3CBR%20%2F%3EAlso%2C%20regarding%20the%20drop%20in%20speed%20it%20is%20spected%20since%20without%20DMA%20it%20would%20be%20slower%2C%20I%20wanted%20to%20see%20if%20this%20was%20the%20actual%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2296901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2296901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20understand%20thank%20you%20for%20sharing%2C%20then%20could%20you%20please%20try%20by%20checking%20the%26nbsp%3BPower%20rails%3F%3CBR%20%2F%3E%3CSPAN%3ETry%20to%20Scope%20the%20SSD%20supply%20during%20sustained%20reads%3CBR%20%2F%3EAlso%2C%20please%20re%20enable%20DMA%20and%20try%20reducing%20the%20link%20speed%20for%20a%20test%2C%20this%20by%20sending%20the%20kernel%20parameter%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3Elibata.force%3D3.0G%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20try%20it%20and%20let%20me%20know%20of%20your%20results%26lt%3B%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2296427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2296427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20sticking%20to%20this%20thread%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E!%26nbsp%3B%3C%2FP%3E%3CP%3EI%20cannot%20test%20a%20different%20cable%20because%20the%20SSD%20is%20attached%20via%20an%20M.2%20connector%20that%20carries%20the%20SATA%20signals.%3C%2FP%3E%3CP%3EThere%20is%20a%20hardware%20dependency%20though%3A%20we%20know%20that%20not%20every%20board%20is%20equally%20affected.%20Some%20show%20the%20symptom%20less%20frequently%2C%20some%20don't%20at%20all%2C%20but%20all%20boards%20that%20do%20show%20the%20symptom%20work%20fine%20with%20Kernel%20from%20the%26nbsp%3B%3CSPAN%3E5.10.72_2.2.0%20BSP%20release.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWe%20tried%20replacing%20the%20SSD%20on%20affected%20boards%2C%20and%20the%20issue%20persists%20there.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2297581%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2297581%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20the%20suggestion%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E!%3C%2FP%3E%3CP%3EUnfortunately%2C%20setting%20%22%3CSPAN%3Elibata.force%3D3.0G%22%20does%20not%20eliminate%20the%20symptom%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%5B%20%20%20%204.145416%5D%20scsi%20host0%3A%20ahci-imx%0A%5B%20%20%20%204.148867%5D%20ata1%3A%20FORCE%3A%20PHY%20spd%20limit%20set%20to%203.0Gbps%0A%5B%20%20%20%204.153930%5D%20ata1%3A%20SATA%20max%20UDMA%2F133%20mmio%20%5Bmem%200x5f020000-0x5f02ffff%5D%20port%200x100%20irq%20510%20lpm-pol%200%0A%2F%2F%20...%0A%5B%20%20%20%204.628203%5D%20ata1%3A%20SATA%20link%20up%203.0%20Gbps%20(SStatus%20123%20SControl%20320)%0A%2F%2F%20...%0A%5B%20%20%2089.900251%5D%20ata1.00%3A%20exception%20Emask%200x12%20SAct%200x100%20SErr%200x400500%20action%200x6%20frozen%0A%5B%20%20%2089.908965%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%0A%5B%20%20%2089.915563%5D%20ata1%3A%20SError%3A%20%7B%20UnrecovData%20Proto%20Handshk%20%7D%0A%5B%20%20%2089.921264%5D%20ata1.00%3A%20failed%20command%3A%20WRITE%20FPDMA%20QUEUED%0A%5B%20%20%2089.926649%5D%20ata1.00%3A%20cmd%2061%2F50%3A40%3A00%3A48%3Ac5%2F00%3A00%3A06%3A00%3A00%2F40%20tag%208%20ncq%20dma%2040960%20out%0A%5B%20%20%2089.926649%5D%20%20%20%20%20%20%20%20%20%20res%2040%2F00%3A01%3A01%3A4f%3Ac2%2F00%3A00%3A00%3A00%3A00%2F00%20Emask%200x12%20(ATA%20bus%20error)%0A%5B%20%20%2089.942665%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20%7D%0A%5B%20%20%2089.946535%5D%20ata1%3A%20hard%20resetting%20link%0A%5B%20%20%2090.416176%5D%20ata1%3A%20SATA%20link%20up%203.0%20Gbps%20(SStatus%20123%20SControl%20320)%0A%5B%20%20%2090.423350%5D%20ata1.00%3A%20configured%20for%20UDMA%2F133%0A%5B%20%20%2090.427751%5D%20ata1%3A%20EH%20complete%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BSometimes%20we%20also%20see%20automatic%20reduction%20of%20speed%2C%20which%20does%20not%20help%20though%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%5B%20%20%2090.476233%5D%20ata1%3A%20limiting%20SATA%20link%20speed%20to%201.5%20Gbps%0A%5B%20%20%2090.481466%5D%20ata1.00%3A%20exception%20Emask%200x12%20SAct%200x1000%20SErr%200x400500%20action%200x6%20frozen%0A%5B%20%20%2090.489382%5D%20ata1.00%3A%20irq_stat%200x08000000%2C%20interface%20fatal%20error%0A%5B%20%20%2090.495367%5D%20ata1%3A%20SError%3A%20%7B%20UnrecovData%20Proto%20Handshk%20%7D%0A%5B%20%20%2090.500708%5D%20ata1.00%3A%20failed%20command%3A%20WRITE%20FPDMA%20QUEUED%0A%5B%20%20%2090.505977%5D%20ata1.00%3A%20cmd%2061%2F50%3A60%3A00%3A48%3Ac5%2F00%3A00%3A06%3A00%3A00%2F40%20tag%2012%20ncq%20dma%2040960%20out%0A%5B%20%20%2090.505977%5D%20%20%20%20%20%20%20%20%20%20res%2041%2F84%3A01%3A06%3A4f%3Ac2%2F00%3A00%3A00%3A00%3A00%2F00%20Emask%200x12%20(ATA%20bus%20error)%0A%5B%20%20%2090.521892%5D%20ata1.00%3A%20status%3A%20%7B%20DRDY%20ERR%20%7D%0A%5B%20%20%2090.525954%5D%20ata1.00%3A%20error%3A%20%7B%20ICRC%20ABRT%20%7D%0A%5B%20%20%2090.530002%5D%20ata1%3A%20hard%20resetting%20link%0A%5B%20%20%2091.000176%5D%20ata1%3A%20SATA%20link%20up%201.5%20Gbps%20(SStatus%20113%20SControl%20310)%0A%5B%20%20%2091.007078%5D%20ata1.00%3A%20configured%20for%20UDMA%2F133%0A%5B%20%20%2091.011575%5D%20ata1%3A%20EH%20complete%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EOlivaw%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20again!%3C%2FP%3E%3CP%3EUnfortunately%20it%20was%20not%20possible%20for%20me%20to%20do%20the%20power%20rail%20measurements.%3C%2FP%3E%3CP%3EHowever%2C%20our%20board%20manufacturer%20did%20some%20quick%20eye%20pattern%20measurements%20on%20the%20TX%20signal%20line%20(CPU%20to%20SSD)%20of%20an%20affected%20board.%20I%20have%20attached%20the%20images%20to%20this%20post.%3C%2FP%3E%3CP%3EWe%20see%20that%20the%20vertical%20eye%20opening%20reduces%20visibly%20when%20transitioning%20from%205.4%20to%206.12%20(these%20are%20the%20two%20versions%20that%20they%20had%20at%20hand).%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222026-02_kernel-5.04.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222026-02_kernel-5.04.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222026-02_kernel-5.04.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376088i983765DA5F1A4747%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%222026-02_kernel-5.04.png%22%20alt%3D%222026-02_kernel-5.04.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222026-02_kernel-6.12.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222026-02_kernel-6.12.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222026-02_kernel-6.12.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376089i48922C8B4724C7C4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%222026-02_kernel-6.12.png%22%20alt%3D%222026-02_kernel-6.12.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhen%20looking%20at%20the%20Kernel%20source%20code%20(linux-imx)%2C%20we%20see%20that%20in%20a%20relatively%20recent%20driver%20architecture%20rework%2C%20some%20SATA%20PHY%20settings%20were%20removed%20in%20one%20place%20(%3CSPAN%3Eahci_imx%3C%2FSPAN%3E)%20%5B1%5D%20but%20not%20added%20in%20the%20other%20(%3CSPAN%3Eimx8qm-hsio%3C%2FSPAN%3E)%20%5B2%5D.%3C%2FP%3E%3CP%3ECan%20this%20be%20the%20reason%3F%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EOlivaw%3C%2FP%3E%3CP%3E%5B1%5D%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fcommit%2F4147e9d2408aab6df9315900f18f4142ca6e7c3f%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fcommit%2F4147e9d2408aab6df9315900f18f4142ca6e7c3f%3C%2FA%3E%3C%2FP%3E%3CP%3E%5B2%5D%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fcommit%2F82c56b6dd24fcdf811f2b47b72e5585c8a79b685%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fcommit%2F82c56b6dd24fcdf811f2b47b72e5585c8a79b685%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2334121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SATA%20errors%20on%20iMX8QM%20with%20Linux%206.12%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2334121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20community!%3C%2FP%3E%3CP%3EIn%20the%20meantime%20I%20got%20contacted%20by%20an%20NXP%20FAE%2C%20a%20colleague%20of%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E%26nbsp%3Bbut%20we%20did%20not%20receive%20much%20support%20so%20far%2C%20unfortunately.%3C%2FP%3E%3CP%3EWe%20see%20that%20the%20same%20hardware%20shows%20errors%20with%20Kernel%206.x%2C%20and%20_not_%20with%20Kernel%205.10.%20Therefore%20we%20are%20sure%20that%20the%20issue%20can%20be%20solved%20in%20software.%3C%2FP%3E%3CP%3EWe%20started%20reverse-engineering%20the%20driver%2C%20hoping%20to%20find%20a%20workaround.%3CBR%20%2F%3ESo%20far%2C%20we%20did%20not%20have%20success%2C%20but%20we%20saw%20that%20the%20errors%20disappear%20if%20we%20disable%20the%20PCIe%20lane%20that%20is%20usually%20active%20in%20addition%20to%20the%20SATA%20lane%20(we%20have%26nbsp%3B%3CSPAN%3Efsl%2Chsio-cfg%20%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3Epciea-pcieb-sata%3C%2FSPAN%3E%3CSPAN%3E%22%2C%20and%20use%20the%20pcieb%20lane%20along%20with%20SATA%3C%2FSPAN%3E).%3C%2FP%3E%3CP%3EOur%20conclusion%20is%20that%20there%20seems%20to%20be%20an%20interference%3A%3C%2FP%3E%3CUL%3E%3CLI%3Eeither%20from%20the%20PCIe%20driver%26nbsp%3Bpci-imx6.c%20accessing%20one%20of%20the%20three%20PHYs%2C%20and%20thus%20corrupting%20the%20SATA%20line%20calibration%3C%2FLI%3E%3CLI%3Eor%20from%20the%20PCIe%20traffic%20somehow%20influencing%20the%20SATA%20signal%20integrity%3C%2FLI%3E%3C%2FUL%3E%3CP%3EWe%20initially%20guessed%20that%20there%20might%20be%20a%20race%20condition%20between%20the%20two%20drivers%20simultaneously%20accessing%20the%20PHY%20registers%20(%60phy-fsl-imx8qm-hsio.c%60).%20This%20was%20not%20confirmed%20because%20the%20errors%20persisted%20also%20after%20configuring%20the%20PCIe%20driver%20as%20%60%3CSPAN%3Elate_initcall()%60%2C%20thus%20starting%20it%20after%20SATA%20calibration%20is%20completed.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWould%20be%20great%20to%20hear%20an%20opinion%20from%20NXP%20who%20have%20authored%20the%20drivers%20and%20should%20have%20a%20better%20idea%20about%20the%20reason%20for%20the%20errors.%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EOlivaw%3C%2FP%3E%3C%2FLINGO-BODY%3E