Re: [RFC PATCH V1 14/33] powerpc/mm: Use helper for finding pte bits mapping I/O area

From
Aneesh Kumar K.V <hidden>
Date
2016-01-13 06:09:00
Reply to
Benjamin Herrenschmidt, 2016-01-13
Benjamin Herrenschmidt [off-list ref] writes:
On Tue, 2016-01-12 at 10:42 +0300, Denis Kirjanov wrote:
quoted
quoted
+static inline unsigned long pte_io_cache_bits(void)
+{
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return _PAGE_NO_CACHE | _PAGE_GUARDED;
+}
This could be just plain #define
Or just use=C2=A0pgprot_noncached()
#define pgprot_noncached(prot)	  (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE=
_CTL) | \
				            _PAGE_NO_CACHE | _PAGE_GUARDED))


That will return me a pgprot_t.  I can fix that by using
pgprot_val(pgprot_noncached(0)). Is that what you are suggesting ?

-aneesh
Thread (45 messages) 45 messages, 4 authors, 2016-01-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help