sw64: pcie: fix piu configuration to ensure data correctness
Sunway inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5PNFK -------------------------------- If a device does not use msi but uses polling as the completion flag of DMAW events, the current PIUCONFIG0 register configuration can not guarantee completion order of DMAW. It may happen that completion flag has been polled before data written to memory, causing users to access incorrect data. To ensure correctness of data, DMAW order on PIU should be controlled. That is, DMAW request with Relaxed Ordering off has to wait until the previous write request receive response before submitting it. This will significantly degrade DMAW performance for devices without Relaxed Ordering capability. Signed-off-by: NZhou Xuemei <zhouxuemei@wxiat.com> Signed-off-by: NGu Zitao <guzitao@wxiat.com>
Showing
想要评论请 注册 或 登录