Fix data cache flush on ppc64#4844
Conversation
|
Thanks for your contribution. The patch looks good, but the build is failing because of style checker. You can read our guidelines here: |
|
@pbalcer I fixed the issue in the title of the commit, a long line in the commit message and included the bug number in the commit message, following the guidelines. |
|
This last version should make the appveyor test a little bit less angry. Line 83 is an asm that uses |
|
You can create file .cstyleignore with the name of your file which cstyle should ignore. here is an example of such file |
The dcbst instruction doesn't flush a cache block correctly because it doesn't mark that block as clean on Power 9, see Manual "POWER9 Processor User’s Manual" page 66. Replace dcbst with dcbf in order to fix this issue. This change requires to replace lwsync with a hwsync too in order to cover for the usage of dcbf. Adopt the best practices according to the POWER ISA 3.1. Fix bug pmem#4843. Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
|
The last version of my patch is now ignoring cstyle errors on |
|
I think I can do it myself - should be easy enough. |
|
@lucmaga @tuliom there seems to be an issue with this patch on valgrind: (Full log here: https://api.travis-ci.org/v3/job/699647959/log.txt) Since we are about to tag 1.9 RC1, and we are short on time, we've made the decision to temporarily switch over to using msync when running valgrind tests on PPC. But it would be better to add support for the new instruction to valgrind. This didn't come up with this PR, because travis is not running on stable-1.8 branch. |
|
Sorry, I forgot to mention this Valgrind issue: https://bugs.kde.org/show_bug.cgi?id=422677 |
The dcbst instruction doesn't flush a cache block correctly because it
doesn't mark that block as clean on Power 9, see Manual "POWER9
Processor User’s Manual" page 66.
Replace dcbst with dcbf in order to fix this issue. This change requires
to replace lwsync with a hwsync too in order to cover for the usage of dcbf.
Adopt the best practices according to the POWER ISA 3.1.
Fix #4843 .
This change is