Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4418653rwd; Tue, 30 May 2023 05:20:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ukg9PiqNK22UY+KrO4mwfB6kt//lVFUgc2Grp/BCMTp9Joaacgupj23qAztJiHfMH6KP1 X-Received: by 2002:a05:6a20:c704:b0:105:b75e:9df6 with SMTP id hi4-20020a056a20c70400b00105b75e9df6mr2106330pzb.26.1685449204738; Tue, 30 May 2023 05:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685449204; cv=none; d=google.com; s=arc-20160816; b=oA35AN2fGuwMThCVyoBeI0UYCwF29Me0BoMIydp29HPAWy0v0SYKyLkTHswU7544dP zNvGVCiaVNOMZpHFKnWvqT+XcZnSDQK5YmA5CMqQ+7BunjlCfyR8ZdEQ/4Rtj3Taijba 7dDV8hrWxndFTN6ZkXcYg4VZ6FcjuwTn0d0bjvZ3oJo8q92gqX5pj8/Pum3sVY61rsOh udsTVZiRiKVeNoJpM7DSCMFPxjB3nggth2iMr0KvUYunKSV7J9vlf1e0ku5VHNKalo1Q Ju6FfbF3uS9h5V6w6BRts+isngqf+3J2ohHwvF+RPjtzodzJ0gO46I4Rj81XJ3OKYPbT lH5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=wV+2eNnc6GcdPFTnolP7znEnIMKtIuf7qr0ELxTS+QY=; b=lO1O5OBC8JtLRCJW70RVVmuwm/ZiddTnQl0nkObuccPO1Hj9tvRugvbSyK/ExqdNNP f9y+ak9GmgMjgoUb5xMvXAzBu/hSGjq3lcFR4Yg5c3+XxMnQ+lzpzGzCEo+wah7LtEJq bf21ao42pqnQDf9G0lIXRgt6nAt2omr++t2/u5c+XJo1sjM29q7myMMtH8c6GL2WYC53 u0D7yV7XEH0CNP9l6bJLzT+Pgf27F7Kxdz69wv4cuUsia6zWCKszaQl0Am1uw/YU+POL j6f7jWeUGDYR7eVh6Fzea2zazEMjUu0lBNFU6eDWGd5FqG/VS0sFjPN6u9hPZq5y0H9n cyhA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b00534e67fd867si11314685pgi.62.2023.05.30.05.19.52; Tue, 30 May 2023 05:20:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230513AbjE3MQl (ORCPT + 99 others); Tue, 30 May 2023 08:16:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjE3MQh (ORCPT ); Tue, 30 May 2023 08:16:37 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6D5B102; Tue, 30 May 2023 05:16:33 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id EF2E692009C; Tue, 30 May 2023 14:16:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E80CB92009B; Tue, 30 May 2023 13:16:32 +0100 (BST) Date: Tue, 30 May 2023 13:16:32 +0100 (BST) From: "Maciej W. Rozycki" To: Jiaxun Yang cc: Paul Cercueil , "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, Thomas Bogendoerfer Subject: Re: [PATCH 1/2] MIPS: Allow MIPS32R2 kernel to run on P5600 and M5150 In-Reply-To: Message-ID: References: <20230529135245.4085-1-jiaxun.yang@flygoat.com> <684C1A48-C743-4045-AF12-B0846FCE8EBE@flygoat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Tue, 30 May 2023, Jiaxun Yang wrote: > > Sure, but this change is not needed for it. You just need to declare > > which ISA revisions your platform supports and leave `__get_cpu_type' > > alone. It has worked like that for a decade now. > > I’m afraid it won’t work as you expected. > > 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. Maybe there's a bug elsewhere then. Send me your .config and I'll try to reproduce it. Maciej