[Top] [All Lists]

Re: a quick question regarding CONFIG_MIPS_UNCACHED..

To: Ralf Baechle <>
Subject: Re: a quick question regarding CONFIG_MIPS_UNCACHED..
From: "Maciej W. Rozycki" <>
Date: Fri, 29 Nov 2002 12:56:10 +0100 (MET)
Cc: atul srivastava <>,
In-reply-to: <>
Organization: Technical University of Gdansk
Original-recipient: rfc822;
Reply-to: "Maciej W. Rozycki" <>
On Thu, 28 Nov 2002, Ralf Baechle wrote:

> We've talked about this before - the specification of the ll/sc
> instructions says they only work ok on cached memory.  In the real world
> they seem to work also in uncached memory but I'd not bet the farm on
> that, too many implementations out there, too many chances for subtle
> bugs.

 Indeed -- CONFIG_MIPS_UNCACHED should either be removed or imply
CONFIG_CPU_HAS_LLSC=n.  I suppose there is some interest in the option, so
the latter is preferable.  That would imply moving the option into the CPU
configuration section as now it's set very late, long after
CONFIG_CPU_HAS_LLSC is set.  Or it could be set up the other way, i.e. the
option would only become available if CONFIG_CPU_HAS_LLSC had been set to
n.  There would be no need to move it then. 

 What do you think? 

+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail:, PGP key available        +

<Prev in Thread] Current Thread [Next in Thread>