Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4291174rwd; Tue, 30 May 2023 03:22:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hpB3Oah7ERSIcsa7DzFVuiVswtd/pK7HEk8YHACHGaaH1CQc8d1O3+1Jji//nkwUBO6Tl X-Received: by 2002:a17:903:1211:b0:1ac:2f98:e94d with SMTP id l17-20020a170903121100b001ac2f98e94dmr2202495plh.67.1685442139399; Tue, 30 May 2023 03:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685442139; cv=none; d=google.com; s=arc-20160816; b=QMncOfnGNDaY3237Z7RpBoVK0H9CmPZeJzsFeyUlB4BYtitBg3TpMzy11NUUcEDjcx TJwObl4TCqEPaJocMkGjHGgbWWzvTtghBBuL43g+r7dGmfDFVr2GxtRvDLcpFjcXf4k+ TAIRJqKfTs3nGcEM+B8ZCAEGdCJr//DaUCEFx9lIhVSq819xTTj/pgrISJrNWwhftiBW w3tnytRApskiqapE7CtN/y9RgoeexuupHls19y/vfrzedRsDSQp3bZImAuIvquaeA+OS Us/9gog/iVVxC9msDBxp00ke0NFtPUqtv4MHXjMouOc8k8goG9jXHJtxK7yMG4RjO6MX SQdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:feedback-id:dkim-signature:dkim-signature; bh=mVNqPo87NfFEfgNxvaqd7ERnmadSPr41Xby9dmRRviQ=; b=ZZ+QSH+FVKyfeunUCunuFFcqlm0xhy/BCtyIS6CpwZjRwV/EZCVnQqKLnYLXoL+XuQ Oxe3OP111ABtK4Rc0iEU4n9kIILRjlDaLgw7xXlxMdYFoC4ksyfdT9lllGzd4vmyiZaV 6bjmTonG2Ffz0nwhzeM4HhhCx1PEetPKjW+5OjMZq/mrJCCY8127b/odvp/FuA26OQEC Xdo9AeYFdKYxiUaFxa71r1l6q0jeevCDqnBbuwfuC9oMPnt379BVX3VPHMDdSFycOOaT G7PCHZvj95TumoKGHTztfDPDiJ/jZX3lA3a8EB7RXNBhi7st6IsUKuyVgSupuG7xdk7w JBVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=WahCs54H; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cJj4QZ4Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a170902d70400b001a2445dd0fasi10468036ply.381.2023.05.30.03.22.05; Tue, 30 May 2023 03:22:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=WahCs54H; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cJj4QZ4Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbjE3KMR (ORCPT + 99 others); Tue, 30 May 2023 06:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbjE3KMD (ORCPT ); Tue, 30 May 2023 06:12:03 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAD89C9; Tue, 30 May 2023 03:12:01 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 282333200936; Tue, 30 May 2023 06:11:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 30 May 2023 06:11:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1685441518; x=1685527918; bh=mVNqPo87NfFEfgNxvaqd7ERnmadSPr41Xby 9dmRRviQ=; b=WahCs54HMDt401Ld0E16WracTP9F/x+baO6ofMS5tGaj+3Hywm4 cW0re7j5mxF5cP8YpQ/G/tCvNR4lgavlq3Xd2nyS+QbKsCY4Yir8vogIk7apYTBB hh52Jrz6DTtLHqPqwATufKztPVmnNnAfYYg6pwrv9hZNJLvX/l/YLxvFs3psNqnZ xPU06/JhOL9Z7mRqZB1LVfo9MADIVVz/J3DSnVSQ5CYjzbQpdxz/bpfJ0H9ChTUk vZ5G2KeaHNr/N5jXxUSkFZHTE17nxOHc4LyHz3JJSW2pDO0yfhXB64mcUXlW1TSK aMWZgcD31+noDdx2ihvCUCoKv1zQ0hJRr5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1685441518; x=1685527918; bh=mVNqPo87NfFEfgNxvaqd7ERnmadSPr41Xby 9dmRRviQ=; b=cJj4QZ4QGbHzwaVmBkPFBbvq6vPVD6Sx7TidDy0hISxBZFcxyL9 5r6FYJCqwtFWqlntPXRuq6CEtbnpSvKPHddeWITzhvMEMghs+wdSS2yLpTo6DM70 dR3WNQmrpytSlz6WDtPqcRuum602y1OkImiA0BKViT02Lj5DeoRuw6p6SGb87pv+ W8U+S5M7VSFxmsLm8xR5VDFIwcjhUBpM8zl/1RJRuUy3r9I6H+MDKBC6Klm2v8r6 HhkvTFQTYtk0IxdXatKUeBaJecf0Rs1h7IlbuIOAeHwZ19PEK0TQLvd4odrrDuKX cO6mwLg1MZEMCu6po9lN2qsq3MkGA2Ladag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekjedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepuddtjeffteetfeekjeeiheefueeigeeutdevieejveeihfff ledvgfduiefhvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 May 2023 06:11:57 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: [PATCH 1/2] MIPS: Allow MIPS32R2 kernel to run on P5600 and M5150 From: Jiaxun Yang In-Reply-To: Date: Tue, 30 May 2023 11:11:46 +0100 Cc: Paul Cercueil , "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, Thomas Bogendoerfer Content-Transfer-Encoding: quoted-printable Message-Id: <684C1A48-C743-4045-AF12-B0846FCE8EBE@flygoat.com> References: <20230529135245.4085-1-jiaxun.yang@flygoat.com> To: "Maciej W. Rozycki" X-Mailer: Apple Mail (2.3731.500.231) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 2023=E5=B9=B45=E6=9C=8830=E6=97=A5 09:03=EF=BC=8CMaciej W. Rozycki = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On Mon, 29 May 2023, Jiaxun Yang wrote: >=20 >> M5150 and P5600 are two MIPS32R5 kernels, however as MIPS32R5 is >> backward compatible with MIPS32R2 there is no reason to forbid >> M5150 and P5600 on MIPS32R2 kernel. >=20 > What problem are you trying to solve? The CONFIG_SYS_HAS_CPU_* = settings=20 > denote overall platform's support for the given CPU and have nothing = to do=20 > with what architecture level a given kernel has been configured for. = You=20 > do need to get the settings right for your platform, just as you do in=20= > 2/2, but this 1/2 part looks wrong to me. Well the universal target is to allow R2 generic kernel to run on R5 = CPUs. As R5 is backward compatible we can just have one universal kernel = binary. Allowing P5600 and M5150 to run on R2 kernel does not bring much = overhead. In fact only several bytes are added to kernel binary. (Actually although M5150 is advertising as R5 it=E2=80=99s technically = R2 because it does not implement some features mandatory for R5.) Thanks - Jiaxun >=20 > NB CPU_4KEC is double-listed as R1 and R2 because early revisions of = the=20 > 4KEc core were actually R1 before switching to R2, so this CPU can = report=20 > either revision. >=20 > I don't know why CPU_XBURST is also listed as both R1 and R2, the = history=20 > looks convoluted with no explanation. Paul, is the CPU also = dual-revision=20 > or is it just a bug and it is supposed to be listed under one ISA = revision > only, presumably R2? >=20 > Maciej