Re: [PATCH 1/3 v3] dma: document dma_{un}map_{single|sg}_attrs() interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Ellerman
Date: Wednesday, March 5, 2008 - 11:01 pm

On Wed, 2008-03-05 at 10:13 -0800, akepner@sgi.com wrote:


It's not a matter of whether it's a PCI thing or a NUMA thing. The name
of the attribute needs to reflect the semantics of what the driver
perceives, along the entire path from the device including PCI and NUMA
and other bits.

How the attribute is implemented is up to the arch code, it can decide
if it sets attributes on the PHB or the device or in the NUMA
interconnect or whatever.

For a single mapping, it's fairly straight forward to define two obvious
cases:
 - strict ordering, all accesses to this mapping are ordered.
 - weak ordering (none, relaxed ..) - accesses to this mapping are not=20
   ordered in anyway.

Where I think it gets confusing is the semantics between mappings with
different attributes. If I map region A weak and then region B strict,
does an access to region B have any effect on accesses to region A?

It sounds like in your case the answer is yes - but I don't know if
that's clearly the right answer.

/me scratches his head :)

cheers

--=20
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3 v3] dma: document dma_{un}map_{single|sg}_a ..., Benjamin Herrenschmidt, (Fri Feb 29, 7:56 pm)
Re: [PATCH 1/3 v3] dma: document dma_{un}map_{single|sg}_a ..., Michael Ellerman, (Wed Mar 5, 11:01 pm)