All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] xen: arm: map normal memory as inner shareable, reduce scope of various barriers
@ 2014-03-17 14:53 Ian Campbell
  2014-03-17 14:53 ` [PATCH=v3 1/8] xen: arm: map memory as inner shareable Ian Campbell
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Ian Campbell @ 2014-03-17 14:53 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Tim Deegan, Stefano Stabellini

Currently Xen maps all RAM as Outer-Shareable, since that seemed like
the most conservative option early on when we didn't really know what
Inner- vs. Outer-Shareable meant. However we have long suspected that
actually Inner-Shareable would be the correct type to use.

After reading the docs many times, getting more confused each time, I
finally got a reasonable explanation from a man (and a dog) down the
pub: Inner-Shareable == the processors in an SMP system, while
Outer-Shareable == devices. (NB: Not a random man, he knew what he was
talking about...). With that in mind switch all of Xen's memory mapping,
page table walks and an appropriate subset of the barriers to be inner
shareable.

In addition I have switched barriers to use the correct read/write/any
variants for their types. Note that I have only tackled the generic
mb/rmb/wmb and smp_* barriers (mainly used by common code) here. There
are also quite a few open-coded full-system dsb's in the arch code which
I will look at another time.

Since v2 I have just rebased onto current staging. All except the first
patch have an ack attached already.

Ian.

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

end of thread, other threads:[~2014-03-18 16:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 14:53 [PATCH v3 0/8] xen: arm: map normal memory as inner shareable, reduce scope of various barriers Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 1/8] xen: arm: map memory as inner shareable Ian Campbell
2014-03-17 15:06   ` Julien Grall
2014-03-17 15:11     ` Ian Campbell
2014-03-17 15:17       ` Julien Grall
2014-03-17 17:36         ` Ian Campbell
2014-03-18 13:47           ` Julien Grall
2014-03-18 14:04             ` Ian Campbell
2014-03-18 16:12             ` Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 2/8] xen: arm: Only upgrade guest barriers to " Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 3/8] xen: arm: consolidate barrier definitions Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 4/8] xen: arm: Use SMP barriers when that is all which is required Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 5/8] xen: arm: Use dmb for smp barriers Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 6/8] xen: arm: add scope to dsb and dmb macros Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 7/8] xen: arm: weaken SMP barriers to inner shareable Ian Campbell
2014-03-17 14:53 ` [PATCH=v3 8/8] xen: arm: use more specific barriers for read and write barriers Ian Campbell

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.