linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* _PAGE_PRESENT and _PAGE_ACCESSED
@ 2016-07-26 17:52 LEROY Christophe
  2016-07-27  9:49 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: LEROY Christophe @ 2016-07-26 17:52 UTC (permalink / raw)
  To: linuxppc-dev

In ppc8xx tlbmiss handler, we consider a page valid if both  
_PAGE_PRESENT and _PAGE_ACCESSED are set.
Is there any chance to have _PAGE_ACCESSED set and not _PAGE_PRESENT ?
Otherwise we could simplify the handler by considering the page valid  
only when _PAGE_ACCESSED is set

Christophe

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

* Re: _PAGE_PRESENT and _PAGE_ACCESSED
  2016-07-26 17:52 _PAGE_PRESENT and _PAGE_ACCESSED LEROY Christophe
@ 2016-07-27  9:49 ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2016-07-27  9:49 UTC (permalink / raw)
  To: LEROY Christophe, linuxppc-dev

On Tue, 2016-07-26 at 19:52 +0200, LEROY Christophe wrote:
> In ppc8xx tlbmiss handler, we consider a page valid if both  
> _PAGE_PRESENT and _PAGE_ACCESSED are set.
> Is there any chance to have _PAGE_ACCESSED set and not _PAGE_PRESENT ?
> Otherwise we could simplify the handler by considering the page valid  
> only when _PAGE_ACCESSED is set

When _PAGE_PRESENT is not set, the PTE becomes a swap PTE and a pile
of the other bits can be repurposed, you may want to verify if
_PAGE_ACCESSED is one of them.

Cheers,
Ben.

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

end of thread, other threads:[~2016-07-27 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-26 17:52 _PAGE_PRESENT and _PAGE_ACCESSED LEROY Christophe
2016-07-27  9:49 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).