public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org, Rusty Russell <rusty@rustcorp.com.au>,
	Joshua Kinard <kumba@gentoo.org>,
	Andrew Bresticker <abrestic@chromium.org>,
	Huacai Chen <chenhc@lemote.com>,
	Paul Gortmaker <paul.gortmaker@windriver.com>,
	Kevin Cernekee <cernekee@gmail.com>,
	linux-kernel@vger.kernel.org,
	"Maciej W. Rozycki" <macro@codesourcery.com>,
	Markos Chandras <markos.chandras@imgtec.com>,
	Alex Smith <alex.smith@imgtec.com>
Subject: Re: [PATCH] MIPS: c-r4k: remove cpu_foreign_map
Date: Mon, 3 Aug 2015 18:18:45 +0200	[thread overview]
Message-ID: <20150803161845.GG2843@linux-mips.org> (raw)
In-Reply-To: <1438617288-25261-1-git-send-email-paul.burton@imgtec.com>

On Mon, Aug 03, 2015 at 08:54:47AM -0700, Paul Burton wrote:

> Commit cccf34e9411c ("MIPS: c-r4k: Fix cache flushing for MT cores") did
> 2 things:
> 
>   - Introduced cpu_foreign_map to call cache maintenance functions on
>     only a single CPU within each core in the system.
> 
>   - Stopped calling cache maintenance functions on non-local CPUs for
>     systems which include a MIPS Coherence Manager.
> 
> Thus the introduction of cpu_foreign_map has no effect on any systems
> with a CM, since the IPIs will be avoided entirely. Thus it can only
> possibly affect other systems which have multiple logical CPUs per core,
> which appears to only be netlogic. I'm pretty certain this wasn't the
> intent, am unsure whether avoiding such cache maintenance calls is
> correct for netlogic systems and believe the overhead of calculating
> cpu_foreign_map is thus unnecessary & this code is almost certainly
> untested.
> 
> This mostly reverts commit cccf34e9411c ("MIPS: c-r4k: Fix cache
> flushing for MT cores"), leaving only the change for systems with a CM.

BMIPS is another "hyperthreading-like" core.  Maybe Kevin or Florian
can comment if this patch is good for them?

  Ralf

      reply	other threads:[~2015-08-03 16:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 15:54 [PATCH] MIPS: c-r4k: remove cpu_foreign_map Paul Burton
2015-08-03 16:18 ` Ralf Baechle [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=20150803161845.GG2843@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=abrestic@chromium.org \
    --cc=alex.smith@imgtec.com \
    --cc=cernekee@gmail.com \
    --cc=chenhc@lemote.com \
    --cc=kumba@gentoo.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@codesourcery.com \
    --cc=markos.chandras@imgtec.com \
    --cc=paul.burton@imgtec.com \
    --cc=paul.gortmaker@windriver.com \
    --cc=rusty@rustcorp.com.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox