Thor XFI: Hardware DMA/cache synchronization issue causes stale data under concurrent traffic (r38.4.0)

nvidia@tegra-ubuntu:/tmp/ntdl$ sha256sum -c manifest.sha256 | grep -c FAILED
0

Does this indicate no error is observed?

No, that’s not it. This issue is caused by abnormal DMA and cache synchronization. TCP checksum cannot detect this error, so the final received file is corrupted. Using tcpdump to capture packets reveals that the erroneous data blocks are actually data from a previous transmission — the cache is synchronizing stale data.

The DTS sets dma-coherent, the hardware is supposed to guarantee correct synchronization. However, when I disable hardware synchronization with ethtool -K mgbe0_0 rx off and let the CPU get involved in checking, the issue is resolved. Therefore, the hardware synchronization is likely problematic.

不知道用中文敘述會不會比較清楚. 前面只是想詢問你最後複製出問題時候的檢查手法是什麼.
如果這個問題是abnormal DMA + cach sync問題, 最後的checksum應該要能檢查出問題?

另外, 請問這一篇也是你們發的嗎?

不好意思

抱歉没有回复清楚,检查手法是对比接收文件和源文件的hash值“sha256sum -c manifest.sha256 | grep -c FAILED” ,问题出现时我检查了TcpInCsumErrors为0

387863的问题不是我们发的

Hi,

想請問一下 gso_max_segs的設定對於這個問題是必要的嗎?

還有複製出來的機率是100%? (每次皆中)

gso_max_segs设置可以提高复现概率,不设置gso_max_segs压测12小时也复现过该问题。

设置gso_max_segs,使用我提供的命令测试,96个文件中100%会出现异常

Hi,

Please try with this patch