GUARDED attribute not set by consistent_alloc()

2 messages, 2 authors, 2003-02-07 · open the first message on its own page

GUARDED attribute not set by consistent_alloc()

From: Joakim Tjernlund <hidden>
Date: 2003-02-07 15:07:29

Hi

While browsing the tree I noticed that consistent_alloc() does not
set the _PAGE_GUARDED attribute(only _PAGE_KERNEL and _PAGE_NO_CACHE)
on the allocated memory.

ioremap() adds _PAGE_GUARDED if _PAGE_NO_CACHE is set. Should not
consistent_alloc() also add _PAGE_GUARDED?

  Jocke


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: GUARDED attribute not set by consistent_alloc()

From: Dan Malek <hidden>
Date: 2003-02-07 15:57:03

Joakim Tjernlund wrote:
ioremap() adds _PAGE_GUARDED if _PAGE_NO_CACHE is set. Should not
consistent_alloc() also add _PAGE_GUARDED?
No.  ioremap() is used to map device registers, where operation
order is important.  consistent_alloc() maps real memory, where
setting guarded wouldn't change any behavior and would cost
significant pipeline drain cycles.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help