As per ISA and isync is only needed on instruction cache
block invalidate. Remove the same from dcache invalidate.
Signed-off-by: Aneesh Kumar K.V <redacted>
---
Note: IIUC we can also void the sync fore dcbf.
arch/powerpc/include/asm/cacheflush.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
On Fri, Mar 20, 2020 at 04:02:42PM +0530, Aneesh Kumar K.V wrote:
quoted
As per ISA and isync is only needed on instruction cache
block invalidate. Remove the same from dcache invalidate.
Is that true on older CPUs?
That is what I found by checking with hardware team. One thing i was not
able to get full confirmation about was the usage of 'sync' before 'dcbf'.
-aneesh
On Fri, Mar 20, 2020 at 08:38:42PM +0530, Aneesh Kumar K.V wrote:
On 3/20/20 8:35 PM, Segher Boessenkool wrote:
quoted
On Fri, Mar 20, 2020 at 04:02:42PM +0530, Aneesh Kumar K.V wrote:
quoted
As per ISA and isync is only needed on instruction cache
block invalidate. Remove the same from dcache invalidate.
Is that true on older CPUs?
That is what I found by checking with hardware team.
Oh, the comment right before this function says "does not invalidat
the corresponding insncache blocks", so this looks fine, sorry for not
looking closely enough before.
One thing i was not
able to get full confirmation about was the usage of 'sync' before 'dcbf'.
Yeah, this looks like something that would matter on some implementations.
Would it make anything measurably faster if you would remove that sync?
Segher
From: Michael Ellerman <hidden> Date: 2020-04-01 13:37:50
On Fri, 2020-03-20 at 10:32:42 UTC, "Aneesh Kumar K.V" wrote:
As per ISA and isync is only needed on instruction cache
block invalidate. Remove the same from dcache invalidate.
Signed-off-by: Aneesh Kumar K.V <redacted>