linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: rabin@rab.in (Rabin Vincent)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] ARM: Make CPU_DCACHE_DISABLE depend on !SMP
Date: Fri, 9 Jan 2015 18:57:38 +0100	[thread overview]
Message-ID: <20150109175738.GA4057@debian> (raw)
In-Reply-To: <1420683088-1856-1-git-send-email-f.fainelli@gmail.com>

On Wed, Jan 07, 2015 at 06:11:28PM -0800, Florian Fainelli wrote:
> Enabling CPU_DCACHE_DISABLE on a SMP capable system will prevent the
> kernel from booting because of the following ldrex instruction in
> arch_spin_lock:

BTW, it's not just SMP spin_lock which uses ldrex/strex.  The atomic
ops, set_bit() and friends, and cmpxchg() and related functions all use
ldrex/strex on ARMv6+ processors, even if you disable SMP.

      parent reply	other threads:[~2015-01-09 17:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08  2:11 [RFC] ARM: Make CPU_DCACHE_DISABLE depend on !SMP Florian Fainelli
2015-01-08  8:33 ` Arnd Bergmann
2015-01-08 11:52   ` Russell King - ARM Linux
2015-01-08 15:53     ` Florian Fainelli
2015-01-08 21:54       ` Gregory Fong
2015-01-08 22:10         ` Arnd Bergmann
2015-01-08 22:13           ` Russell King - ARM Linux
2015-01-08 22:25             ` Florian Fainelli
2015-01-09 16:16               ` Russell King - ARM Linux
2015-01-09 18:35                 ` Florian Fainelli
2015-01-08 22:11         ` Gregory Fong
2015-01-09 17:57 ` Rabin Vincent [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=20150109175738.GA4057@debian \
    --to=rabin@rab.in \
    --cc=linux-arm-kernel@lists.infradead.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 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).