Bug 4718 - Fix DMA RW sequence disorder issue
Summary: Fix DMA RW sequence disorder issue
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: wangrongwei
QA Contact: shuming
URL: https://gitee.com/openeuler/kernel/pu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-06 17:50 UTC by LeoLiu-oc
Modified: 2024-01-31 11:24 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeoLiu-oc zhaoxin_group 2023-04-06 17:50:08 UTC
Description of problem:
The Zhaoxin KH-40000 platform can't keep the PCIE transaction order for DMA writes, whose target addresses are located in different NUMA nodes, from the same device. Patch this issue by flushing the target DMA write with a subsequent PCIE configuration space read operation.

For streaming dma ops callback .unmap_page/sg and .sync_sg/single_for_cpu, add PCIE configuration space read operation to flush the target DMA write.

For coherent DMA map, limit the DMA buffer that the device driver applies to to be on the same node as the device.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 wangrongwei alibaba_cloud_group 2023-04-06 18:25:08 UTC
是否附带有bugfix,如果是,更新一下Assignee。

感谢!
Comment 2 LeoLiu-oc zhaoxin_group 2023-04-11 17:57:40 UTC
(In reply to wangrongwei from comment #1)
> 是否附带有bugfix,如果是,更新一下Assignee。
> 
> 感谢!

已更新。
Comment 3 小龙 admin 2024-01-31 11:24:54 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2725