All of lore.kernel.org
 help / color / mirror / Atom feed
* Does sfence.vma implicitly cover what fence.i does?
@ 2019-10-09  8:53 Alan Kao
  2019-10-16 18:55 ` Paul Walmsley
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Kao @ 2019-10-09  8:53 UTC (permalink / raw)
  To: paul.walmsley, palmer; +Cc: linux-riscv

Hi Paul, Palmer,

In arch/riscv/include/asm/tlbflush.h, the comment says

> Flush entire local TLB.  'sfence.vma' implicitly fences with the instruction
> cache as well, so a 'fence.i' is not necessary.

and in the privileged spec, it is stated that

> Executing an SFENCE.VMA instruction guarantees that any previous stores
> already visible to the current RISC-V hart are ordered before all subsequent
> implicit references from that hart to the memory-management data structures.

So my question is straightforward.  Is I-cache a kind of memory-management data
structure?  am I missing something here?

Thanks for any clarification.

Alan

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-16 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-09  8:53 Does sfence.vma implicitly cover what fence.i does? Alan Kao
2019-10-16 18:55 ` Paul Walmsley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.