[Top] [All Lists]

Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU

To: Robert Millan <>
Subject: Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU
From: wu zhangjin <>
Date: Tue, 9 Nov 2010 17:48:34 +0800
Cc: David Daney <>, Aurelien Jarno <>, Ralf Baechle <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=s8vCMx5meCHvTAnPiEWEPxirybPRF0Lbt3zw408zF1U=; b=q+FNxMJ9G0TYIXZkQ6Dq76C1qfxPWi1kbByAW2N86xELIh+xHtTNqaUINx2MxOl0qo DhqWd33iKhRnegfqtmP3s0uXtFCgCKsXOCCenqnzJ+TKUYbzEiAiIDA9gsbXBfq7HEVo SOVLhowta9mFT8oXaX+0eQ/Oitx+BfWoWXWmI=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Kf9+GSF8dGj7a0gp6mUYPvgdTRF6A+puFBSxBNSbMSgbDRD9uT38P/itM88b+MnkMP 2KdecqYFUt/IaUw/RF1m9iKlxTf6QxoZd5Kr1q5vhgeSTSu0Hx38G/1u8I5z6ztYUg2u yUxgX9mg6T27G4Tg8021E/bB2/DZjsVcFRtls=
In-reply-to: <>
Original-recipient: rfc822;
References: <1289133059.1547.0@thorin> <> <> <> <>
Hi, Robert

On Tue, Nov 9, 2010 at 7:02 AM, Robert Millan <> wrote:
> 2010/11/8 David Daney <>:
>> Look at the description of the register in this document:
>> On page 49, it says that bits 0-3 contain the minor version number and bits
>> 4-7 are the major version number (according to a workmate that reads
>> Chinese).
>> I don't know for certain, but it seems plausible that the 2E and 2F will
>> differ in bits 4-7, and bits 0-3 can be ignored.
> Thanks for investigating, but ignoring bits 0-3 doesn't
> really change anything.  Our problem was that bits 0-7
> are the same on 2E and 2F (0x02).  If we ignore bits 0-3,
> then our problem is that bits 4-7 are the same on 2E
> and 2F (0x2).

Just rechecked this with a friend from Lemote, in reality, the
revision id of Loongson-2F is 0x3, so, my old code should be a
reference for you:


PRID_REV_LOONGSON2F and PRID_REV_LOONGSON2E has already been defined
in arch/mips/include/asm/cpu.h

So, the manual is buggy, perhaps the editors of the manuals did copy
and paste for I have found the title of the 2F manual is the same as
the 2E manual ;-)

Best Regards,
Wu Zhangjin

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