]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ata: ahci_imx: Enlarge RX water mark for i.MX8QM SATA
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 12 Aug 2024 02:00:54 +0000 (10:00 +0800)
committerNiklas Cassel <cassel@kernel.org>
Mon, 12 Aug 2024 12:41:37 +0000 (14:41 +0200)
commit803f9fb819fd533fb41025898f625ec8835034e1
treea3873bba0ab8fcf91b14fd6fef7f6abdc53240fe
parent3156e1b2c07181f43cd65baf828c7e6acb022c12
ata: ahci_imx: Enlarge RX water mark for i.MX8QM SATA

The RXWM(RxWaterMark) sets the minimum number of free location within
the RX FIFO before the watermark is exceeded which in turn will cause
the Transport Layer to instruct the Link Layer to transmit HOLDS to the
transmitting end.

Based on the default RXWM value 0x20, RX FIFO overflow might be observed
on i.MX8QM MEK board, when some Gen3 SATA disks are used.

The FIFO overflow will result in CRC error, internal error and protocol
error, then the SATA link is not stable anymore.

To fix this issue, enlarge RX water mark setting from 0x20 to 0x29.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Link: https://lore.kernel.org/r/1723428055-27021-5-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/ahci_imx.c