Commit 552045fb authored by Zhou Xuemei's avatar Zhou Xuemei Committed by guzitao
Browse files

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: default avatarZhou Xuemei <zhouxuemei@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent de2feaab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment