All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Mark Nutter <mnutter@us.ibm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	linux-mm@kvack.org, linuxppc64-dev@ozlabs.org,
	Michael Day <mnday@us.ibm.com>, Paul Mackerras <paulus@samba.org>,
	Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
	Max Aguilar <maguilar@us.ibm.com>
Subject: Re: ppc64/cell: local TLB flush with active SPEs
Date: Thu, 13 Oct 2005 01:45:12 +0200	[thread overview]
Message-ID: <200510130145.15377.arnd@arndb.de> (raw)
In-Reply-To: <OF66519BDB.81F21C74-ON85257098.0078C43D-86257098.0079BEBE@us.ibm.com>

On Dunnersdag 13 Oktober 2005 00:09, Mark Nutter wrote:
> As long as we are thinking about a proper solution, the whole 
> mm->cpu_vm_mask thing is broken, at least as a selector for local -vs- 
> global TLBIE.  The problem, as I see it, is that memory regions can shared 
> among processes (via mmap/shmat), with each task bound to different 
> processors.  If we are to continue using a cpumask as selector for TLBIE, 
> then we really need a vma->cpu_vma_mask. 
>  
No, because different tasks mapping the same address_space result in distinct
virtual (though not necessarily effective) addresses, so the TLB entries
are never shared across processes. A TLB entry on ppc64 always maps between
the (mm_struct,effective address) tuple and the real address and is local to
one CPU or SPU.
If we want to be clever, we could optimize the case where an mm_struct has
been used on exactly on CPU (the currently running one) and at least one
SPU. In that case, doing a TLBIEL plus a separate flush of each of the
MFCs that were used (by writing to their TLB_Invalidate_Entry registers)
is probably better than a global TLBIE.

	Arnd <><

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2005-10-12 23:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 18:03 ppc64/cell: local TLB flush with active SPEs Arnd Bergmann
2005-10-12 18:08 ` Andi Kleen
2005-10-12 22:09 ` Mark Nutter
2005-10-12 23:45   ` Arnd Bergmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200510130145.15377.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=linux-mm@kvack.org \
    --cc=linuxppc64-dev@ozlabs.org \
    --cc=maguilar@us.ibm.com \
    --cc=mnday@us.ibm.com \
    --cc=mnutter@us.ibm.com \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.