Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4538128rwd; Tue, 30 May 2023 06:51:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cJCx79wU85klQlNY5iomuB/9zBiZ+xbSme62ohfxe1LuF8y86s5xszTaGsP7h6FRq2DOL X-Received: by 2002:a05:6a20:c1a9:b0:107:1f22:10d5 with SMTP id bg41-20020a056a20c1a900b001071f2210d5mr2278882pzb.52.1685454680391; Tue, 30 May 2023 06:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685454680; cv=none; d=google.com; s=arc-20160816; b=WfwqrpDszSYqDNrH4L91Cqm4pyWmIO/vQzozjzlwqgv2W/hg93JIfyG2pbWrONtYuC QGn7ZDMmdy7WBJDL47fayyLmWawMqYOsIHgIItE7T8ropwAlJfoAwYFGsviBvoCo7v/P qdpdoSlQjdXoxDieDZ/wel9Nuxt4cvw7MtcX4qjXYjt4798hdviAqVXduadI6lqK9r3j 66KzS+AsCu0z+fKAUUZPJ4cOmDxo78T7oEJaVehBzt1fO+dnOeJfWDRGWQ7ZvqBhyefe rFbL4uRP2p0jhmlS8TQpe3x2oRJDxyovRKSgnS16uhD0C1uUp4urQXaMi7eJR9f/RjdM XU/A== 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=fF7F3pQCLKgh++twE6/HupDMBWeYuGMm2mtCqL1NK0Y=; b=hPf8l0q6e0TDNr5KDIa/Rf84vDMC76omf4H6+UTo0J3oVPc3j8iiCj/6wzXlyzPHTC leJQNHCExUbSGWmh9BZcFHs8ZdiCWfrGI2QqX2LK+540mYw4MOT7JC49MUl6mojOHyFG BIkrcunm3gSc2trL621k1i1CEFQjK8ewWpxebIv8K9ixB6ESske9FHJWD5hjz6vu4Wzx mmudCybGcQf1IwOme7n3MQESy2uVH0IU/r7OK7QRyqRPW96LrE2Z1mMD4+TWKQaeTfQa d3T74c9Vqvr4FIS7MV/bNAWksH5vTP5bsrwSilFIGyDvI7TRpavuEwffqGgLbB/ICMMG 7uzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=bNem6wJO; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=nXGQ1fyN; 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 i17-20020a63e911000000b0050f66d3f72csi10511720pgh.532.2023.05.30.06.51.06; Tue, 30 May 2023 06:51:20 -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=bNem6wJO; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=nXGQ1fyN; 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 S231294AbjE3NKV (ORCPT + 99 others); Tue, 30 May 2023 09:10:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbjE3NKT (ORCPT ); Tue, 30 May 2023 09:10:19 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F01592; Tue, 30 May 2023 06:10:18 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CE2BB5C0054; Tue, 30 May 2023 09:10:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 30 May 2023 09:10:17 -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= 1685452217; x=1685538617; bh=fF7F3pQCLKgh++twE6/HupDMBWeYuGMm2mt CqL1NK0Y=; b=bNem6wJOMlUc8Jo2udzJnu3vKBZ8kjDwfNm3tN1dFuCYB2ISHjv 0omYGm5lXiVTSEoy4NkroP9jg5UY1OyuYsfEAQwnbeiqjoKZgj/Yn6FhfTJPqdp4 1jW1iZV+rpRCBHMtqavfKDbgZV2REMOZ0m1qMneadNcAn0Ws5lBhLCqHgHeYmAv/ ltA8m1D0alGcGMOSULbZ6WD+nw76Gjnq+MmEcgc930MgG1/lFsUBl81W1Mda4WH8 7dSPOLLjYqhGJ3nJGiUlU0/GTwpUf5HRoE6LOTQrFItEqSaZlvUeeq/s5s17x9Ad 5zPFrSxfV8r5axR/mRknt0D20vq9uBX4GOA== 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= 1685452217; x=1685538617; bh=fF7F3pQCLKgh++twE6/HupDMBWeYuGMm2mt CqL1NK0Y=; b=nXGQ1fyN3UEGjtaqubkgg5c3n6txMf8fB5PvMSiHTCx/m1tmuvj X7PEBQWITj4llijyVgof5wQMn1CBEVuTtOuDJ6wj76skE8h509omabtydy13P/r4 ur7uuITNprj5ptxofOK0KiK/87JCMrIZN4rqgdXhuWPts0YFV5w990k7DXPK0Fal Ze37WrJTQ8ttSzPOXrJY8vtwHBsqg+xs0JpAUF6955Ur1mOjsW2YIqv8X0MkYdUg YsAoGZgamEnHznZfDGUmpb0+E87VnruJ6vhZCG6FdZ3Elkbi48kn+aiPQWzE1xbs za3M4SgxVqJkg7NnCuwe8YP68fewGtXTEqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekjedgheelucetufdoteggodetrfdotf 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 09:10:15 -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 14:10:04 +0100 Cc: Paul Cercueil , "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, Thomas Bogendoerfer Content-Transfer-Encoding: quoted-printable Message-Id: <5CC33034-4AF3-4522-9942-8BCCEF1086AE@flygoat.com> References: <20230529135245.4085-1-jiaxun.yang@flygoat.com> <684C1A48-C743-4045-AF12-B0846FCE8EBE@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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 13:16=EF=BC=8CMaciej W. Rozycki = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On Tue, 30 May 2023, Jiaxun Yang wrote: >=20 >>> Sure, but this change is not needed for it. You just need to = declare=20 >>> which ISA revisions your platform supports and leave = `__get_cpu_type'=20 >>> alone. It has worked like that for a decade now. >>=20 >> I=E2=80=99m afraid it won=E2=80=99t work as you expected. >>=20 >> Actually I ran into a problem that `case CPU_P5600` in c-r4k.c is = optimised out >> by compiler, because the codepath is marked as unreachable. >=20 > Maybe there's a bug elsewhere then. Send me your .config and I'll try = to=20 > reproduce it. Ok I see the problem, after applying patch 2 the issue is gone. So actually only patch 2 is necessary. The unreachable mark here leads gcc to generate some confusing code and I misread it. Sorry for the noise. Thanks - Jiaxun >=20 > Maciej