From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 24 Sep 2013 11:11:16 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:42832 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S6824799Ab3IXJLFepVOH (ORCPT ); Tue, 24 Sep 2013 11:11:05 +0200 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.14.7/8.14.4) with ESMTP id r8O9B3Z2022436; Tue, 24 Sep 2013 11:11:03 +0200 Received: (from ralf@localhost) by scotty.linux-mips.net (8.14.7/8.14.7/Submit) id r8O9B296022435; Tue, 24 Sep 2013 11:11:02 +0200 Date: Tue, 24 Sep 2013 11:11:02 +0200 From: Ralf Baechle To: "Maciej W. Rozycki" Cc: Jonas Gorski , MIPS Mailing List Subject: Re: [PATCH v3] MIPS: Tell R4k SC and MC variations apart Message-ID: <20130924091102.GB21257@linux-mips.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 37934 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Mon, Sep 23, 2013 at 02:01:53PM +0100, Maciej W. Rozycki wrote: > There is no reliable way to tell R4000/R4400 SC and MC variations apart, > however simple heuristic should give good results. Only the MC version > supports coherent caching so we can rely on such a mode having been set > for KSEG0 by the power-on firmware to reliably indicate an MC processor. > SC processors reportedly hang on coherent cached memory accesses and Linux > is linked to a cached load address so the firmware has to use the correct > caching mode to download the kernel image in a cached mode successfully. > > OTOH if the firmware chooses to use either the non-coherent cached or the > uncached mode for KSEG0 on an MC processor, then the SC variant will be > reported, just as we currently do, so no regression here. Queued for 3.13. Thanks, Ralf