From patchwork Mon May 29 13:52:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 100290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1542148vqr; Mon, 29 May 2023 07:09:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5S+9OpvzIhFQu/fnVqf5MUKXOvaQT3rG3B27nUKBMJo/t5n9rxMCgTM5+qUDCGXnTKdiaA X-Received: by 2002:a17:90a:9514:b0:24e:4b1c:74d2 with SMTP id t20-20020a17090a951400b0024e4b1c74d2mr11412983pjo.32.1685369357727; Mon, 29 May 2023 07:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685369357; cv=none; d=google.com; s=arc-20160816; b=w28PR5AzxHvblaLMzTsGe4kaX+SbMPaeM+kPlG3n5Gju5lKPB78Cs3mM9xL3AqOZS0 XrM4JzxzEWElj8/yWHg5HqpnwR2xwF+YIv03T5CEfwW6MMGrC83GcYqQkMJV1EQ/4lrS GrBZF5hypJkKs9kKjnu26T+tNNq3oYv+4DiHYfj4T+7uOLNhj3Rdq9If6jt0U1FwmqAZ lRyNMtOuIgRi+RSC4P9KvgTVOTwJFB7+87XobPjZKTfyzHN7ozrj4yOSg/YlyrNsS8LU vzmMvwgdEsQxFeTOUJM64gsz0h3Af+vemmbAhWjmBKoR/3ES5eGP7KDjeciUs/b/UB0w MjuA== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=cWL+ydqAXLJ30NEjXy53IDGA3PgBjHHLDwDyHIEE/5I=; b=KQ8P9guHT9l1P9tVzslC73qxdLe36rg/W2YYleLjbOGh9aBc+UGlgF5bFybFsvRMms KWrpSHpLZXXKp7qxbAo8nMKHVSjr3EgCCUM+pkioBKUk94J9SLicyr44eh1EufdijM6/ xwwXour88exHFIT1AQbrfc4CLiFHtF1h1K4MmhAOpeRsW0bmVKNRYfn6Btp/ZFEeI2NM ktit8vdKh1eQ/i0MiWTV6jBwh24FtoAkelOHeX6s2o3C3t89+vFFKQ4gzOVAUMTOpHBd U/jgsxU3uG9A9iRtuy9w8fdpvXWBDT33u5edJ7yie+Lh7Np374BoX865DRv5+nNe29cZ CCEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=oIuNInrO; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=HE8oGDLZ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a17090abc8400b0024981e98175si1576557pjr.75.2023.05.29.07.09.05; Mon, 29 May 2023 07:09:17 -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=oIuNInrO; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=HE8oGDLZ; 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 S230175AbjE2NyR (ORCPT + 99 others); Mon, 29 May 2023 09:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229951AbjE2Nx2 (ORCPT ); Mon, 29 May 2023 09:53:28 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E33DE131; Mon, 29 May 2023 06:52:59 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id F3CD65C0126; Mon, 29 May 2023 09:52:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 29 May 2023 09:52:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1685368374; x=1685454774; bh=cWL+ydqAXL J30NEjXy53IDGA3PgBjHHLDwDyHIEE/5I=; b=oIuNInrOtpAOQzZLbD3v5AFSN9 wutegbZ/U5SfeEbORvQQhtNW6bPWpN8Q52nfnapxf8uYDv7RKKUzLudF5HwmQhRW mxAROGGCvczWGmeHdYUp5mian4SsLWtzsTUJFa3uhZcK+YGQg2niUGgw3AnXQjwn RXcFSKWzXUjiv/H4LEbrXDUPVAQKM6GF+AfDVv+6jD7KT9C1EbT2s9wNdUGL8L4j z+V1ui+cEDs8n1Lx9ncJjLQhoprh+Tg0FyyVfyhYMRKu85wawezOC0TlIzGPr479 uA7UR5mnm+esj0BRZNbVDiS+tPNTyMPn9Mz46FKNtnPtvYO25wbVj7dupRRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version: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=1685368374; x=1685454774; bh=cWL+ydqAXLJ30 NEjXy53IDGA3PgBjHHLDwDyHIEE/5I=; b=HE8oGDLZwc2VA82joUBHhO3NCvfKV gY/KsLPzdO0DdYXB3N+6fRQVDIYXVJ5Jb+2b0ATKUJ6avPGZYq2fS9oFQZ+Kr8+G BtX8r2fH8Dbh6ARptyzO7OmRMy7uJ+kSAqYqxAH1OfLntJxVQIZS17lh1UD5PLlM RQnbKy683qe8E3DiEClzw/uvNrhcI6dzpsQcomrtccs9DPfkDcy66TOFffAlpQ0I uaJsYipIPlU/sTRkkZ2rulKSOu5E89C/4C3J3WzKGL+H1vb+q9y0IrEo0eGHIa3I 6LbGz6qJHYsk1iUl/z9VSF6Xf9Py7buzUFmz29oSS93WOoVfO1gppBkxA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekhedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhephfetuddtudevieeljeejte ffheeujeduhefgffejudfhueelleduffefgfffveeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 May 2023 09:52:53 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, Jiaxun Yang Subject: [PATCH 1/2] MIPS: Allow MIPS32R2 kernel to run on P5600 and M5150 Date: Mon, 29 May 2023 14:52:44 +0100 Message-Id: <20230529135245.4085-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767237859715836004?= X-GMAIL-MSGID: =?utf-8?q?1767237859715836004?= 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. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/cpu-type.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h index a4a66bd93748..4032cd90ea30 100644 --- a/arch/mips/include/asm/cpu-type.h +++ b/arch/mips/include/asm/cpu-type.h @@ -54,7 +54,8 @@ static inline int __pure __get_cpu_type(const int cpu_type) case CPU_PROAPTIV: #endif -#ifdef CONFIG_SYS_HAS_CPU_MIPS32_R5 +#if defined(CONFIG_SYS_HAS_CPU_MIPS32_R2) || \ + defined(CONFIG_SYS_HAS_CPU_MIPS32_R5) case CPU_M5150: case CPU_P5600: #endif From patchwork Mon May 29 13:52:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 100291 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1543042vqr; Mon, 29 May 2023 07:10:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40lp1yQlY9Gxir0xWZMZJhn6/nk1rXpOsXjGfeS0H0wIANP5wZi/puNOP6ZgkYCxuZz2zc X-Received: by 2002:a17:90a:aa0b:b0:24b:a5b6:e866 with SMTP id k11-20020a17090aaa0b00b0024ba5b6e866mr9980269pjq.24.1685369417837; Mon, 29 May 2023 07:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685369417; cv=none; d=google.com; s=arc-20160816; b=m+Bi6CydK97/LN+FJvcQuzj5tarPjwrVxyokYf7rfHiheiaGHk/G/ZploNI3gizqH4 y5XpL328nZi0fxs5N+LnJMy1arT1QdoUpc6mooDLcOc3fShy1Z8yotKi50ZQfHBocjaV klrL8rzObA9++iAoqm0+t/B7qgOFevQ27YS/9ZPHgFS1xyMybR1V698bjKYuHMo6UZ+4 G/tauFoqEed4CNpVmnEsrkoHQ7egE05LcXwFhsq0Pk6Sf0j8tGQ7aO7qJzyKhSp6nf+2 7zOY1TvSl5r/Ov0OkB21inTz7cplrIlyPnRfMFAtsrS7xls6zxarWydJYuiD8vYcZYeC 6sAw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=xV14FPf2+WbyBcB20DB/FPJ/yAOl9xyxITkMtr//G28=; b=B+zIVXbib6ZzwUASWICpAdPpmHOjPcBTvdI4ok9VcleDQLhxnYc3u1uxWWXSjRMIuO DsujbYzQ2XQuvAYoZ8QrW329ScRfIOLtTwkRVql6GWlpvBZQllZyib1WmJKTd5XxKMgZ wGn8rQF5FRVFbUNGlvWCKCSL3lefA35onXD6Jj9CJVPVJh6yrPsZ4tLqmZfXuq3TRMBP mbvsXs8A4RzWk6zpwXp0P6XYYHNkeXFxBCiPvlbWeRmgktl8aMUZnelF0CunO54WhaxB fzD2zHUm0F42h3Z9iRumDb612tHnonLas278d/waHeHlkmL/lvOe6vgrwg2ZhBnD0Z7a uPYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=i+tDjU4K; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=HoG4od1y; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j23-20020a63fc17000000b0053ef3c50929si5153733pgi.508.2023.05.29.07.10.05; Mon, 29 May 2023 07:10:17 -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=i+tDjU4K; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=HoG4od1y; 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 S230156AbjE2NyI (ORCPT + 99 others); Mon, 29 May 2023 09:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjE2Nx2 (ORCPT ); Mon, 29 May 2023 09:53:28 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9958133; Mon, 29 May 2023 06:52:59 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3C5A45C0127; Mon, 29 May 2023 09:52:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 29 May 2023 09:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding: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=1685368376; x= 1685454776; bh=xV14FPf2+WbyBcB20DB/FPJ/yAOl9xyxITkMtr//G28=; b=i +tDjU4KfJtTlhGqxRujTHO4egfkBEwzCgYnX3P8sQojPZ0q784ue3Zd1PRT309c4 ww9zm0qlFJk0T4KZ7rnlzVJxYRDbEBtAaKjkCyzC4M+uWJ5/Y+K4vVIR7EcYlxeX iy1GXudY4qPnwBhOrVP6RHNfeQiPp3bR4A44weZV+KIj4YQYWCiN4mFa+22WPB+e zumlA8go+KvUl1RBBy2oLVlz+IVHgckw7lr11HZSxq6kTktgr//rS5D7Z22Ikorf mj1fIbZ+8uV1EUEMii98NXoVF4Xj8tvg0JCw3ftiyphczj64+ddqfGhqnw89rJfx YDMtd50Aqt6lJzuyAop8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1685368376; x= 1685454776; bh=xV14FPf2+WbyBcB20DB/FPJ/yAOl9xyxITkMtr//G28=; b=H oG4od1yu9k6kRTfpWyDpC7Xc4p4nDKcrRs0illbHpT/rezuRcb8QmBgf5tN0Fgs1 KkcXZbvqf2GteoD32cS7z7JVTfP/S9m8FEtZzbYvPEzBJEXxubYTTxiJ+0mget4b m4qCnuhal9+QjkrTgFiEH9BInp+sWx1/BmdvDnXNcYXEw3E5Hb4mycV3Uvw/JcUO S9wSWcj07bLApxXzrziC3f+i+AQx0O24ItN6OShv+wQhY/gvGSDFxd2lzzHiI/Km 9uCnjYb9qGm/iDuTHbYHODeR+RCrA0cg9yfU6ncFeDhQIToV04YBuOI8y20zNGd6 WXYJFJIJPfsCK8I3p2DWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekhedgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghn ghesfhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepfeeludefheegvdeuvd dvgeekgfdvtdettdelieeihfegtedugeekhfdvhfejfedtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhi hgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 May 2023 09:52:55 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, Jiaxun Yang Subject: [PATCH 2/2] MIPS: generic: Allow R5 CPUs to be selected Date: Mon, 29 May 2023 14:52:45 +0100 Message-Id: <20230529135245.4085-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20230529135245.4085-1-jiaxun.yang@flygoat.com> References: <20230529135245.4085-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767237922890740519?= X-GMAIL-MSGID: =?utf-8?q?1767237922890740519?= Since we do have P5600 bitfile for boston board, we should allow generic kernel to be compiled for R5 CPUs. Signed-off-by: Jiaxun Yang Reviewed-by: Serge Semin --- arch/mips/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index e437bf43ecfc..215fcdc059d2 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -154,9 +154,11 @@ config MIPS_GENERIC_KERNEL select SWAP_IO_SPACE select SYS_HAS_CPU_MIPS32_R1 select SYS_HAS_CPU_MIPS32_R2 + select SYS_HAS_CPU_MIPS32_R5 select SYS_HAS_CPU_MIPS32_R6 select SYS_HAS_CPU_MIPS64_R1 select SYS_HAS_CPU_MIPS64_R2 + select SYS_HAS_CPU_MIPS64_R5 select SYS_HAS_CPU_MIPS64_R6 select SYS_SUPPORTS_32BIT_KERNEL select SYS_SUPPORTS_64BIT_KERNEL