Linux ATA/IDE development
 help / color / mirror / Atom feed
* Re: SG2042 SATA (DMA?) issues
       [not found]             ` <CAAT7Ki_=jGo1jbSBWmr-dQHT2pFovL2LAjcW0SN9F0Xm-uLkRg@mail.gmail.com>
@ 2026-06-03  9:14               ` Niklas Cassel
  0 siblings, 0 replies; only message in thread
From: Niklas Cassel @ 2026-06-03  9:14 UTC (permalink / raw)
  To: Han Gao
  Cc: Chen Wang, Michael Orlitzky, sophgo, Inochi Amaoto, Han Gao,
	zhengjingkun, linux-ide, dlemoal

Hello Han,

On Tue, Jun 02, 2026 at 08:19:32PM +0800, Han Gao wrote:
> Hi, Michael
> 
> Based on the new firmware with DMA coherence, we tested the following cases.
> 
> Test method:
> mkfs.btrfs /dev/sda1
> mount /dev/sda1 /mnt
> f3write -e 128 /mnt
> sync
> f3read /mnt
> 
> case1:
> 2042pcie - asm2824 - jmb585: failed, csum failed.
> case2:
> 2042pcie - amd b650 bridge(prom 21) - asm1062: pass.
> case3:
> 2042pcie - asm2824 - amd b650 bridge(prom 21) - asm1062: pass
> case4:
> 2042pcie - asm2824 - jmb585 + kernel parameter libata.force=noncq: pass
> 
> Based on the test results of the above four cases,
> the problem is suspected to lie in the JMB585 chip itself.

+linux-ide

Original thread:
https://lore.kernel.org/sophgo/ahu57vcS0oOFmCI9@mertle/


I interpret this as, before you added 'dma-coherent' to your PCIe controller
device tree node:

Sophgo SG2042 PCIe + ASM2824 + JMB585
worked fine, without any libata.force=noncq kernel parameter which disables NCQ.


After adding 'dma-coherent' to your PCIe controller device tree node:
Sophgo SG2042 PCIe + ASM2824 + JMB585
no longer works fine, and you need to disable NCQ to not get filesystem
corruption.


If this was a problem with the JMB585 chip, why did it work fine to run with NCQ
enabled before you did firmware changes + added 'dma-coherent' to your PCIe
controller device tree node?

Disabling NCQ will significantly reduce the drive performance.


Kind regards,
Niklas

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ahu57vcS0oOFmCI9@mertle>
     [not found] ` <ahxOMJqJTqKfY9SI@mertle>
     [not found]   ` <MA5PR01MB125002F8416D3FC82656A5262FE152@MA5PR01MB12500.INDPRD01.PROD.OUTLOOK.COM>
     [not found]     ` <ahzs8MSmNU7_vsIT@mertle>
     [not found]       ` <MA5PR01MB12500AE1ED1AD25C00C4BA706FE152@MA5PR01MB12500.INDPRD01.PROD.OUTLOOK.COM>
     [not found]         ` <ah0rA-c34RLkHWYt@mertle>
     [not found]           ` <MA5PR01MB1250071E879EDEC8ED3A29813FE152@MA5PR01MB12500.INDPRD01.PROD.OUTLOOK.COM>
     [not found]             ` <CAAT7Ki_=jGo1jbSBWmr-dQHT2pFovL2LAjcW0SN9F0Xm-uLkRg@mail.gmail.com>
2026-06-03  9:14               ` SG2042 SATA (DMA?) issues Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox