Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1007739rdb; Fri, 2 Feb 2024 10:24:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYUw0axNCDABKyKFqIVAXIOd4LC76mumFcl4cMmNCMLWOoD3xQGZpqhXx4QIEyhRjfYp6v X-Received: by 2002:a17:902:d4d2:b0:1d5:bc27:ddc5 with SMTP id o18-20020a170902d4d200b001d5bc27ddc5mr9590432plg.40.1706898273653; Fri, 02 Feb 2024 10:24:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706898273; cv=pass; d=google.com; s=arc-20160816; b=u+dnxU9Ke04ASJ833tc7ALhr4rlUnU2Tno/iR5oScA0FN+lw2c8zMMxdmPnw7OipL6 KlumPIACY9LoF8YND3UAIdQkv3fCUGeAFRe6ojnWHudpP4GK3+f3sw5jYTe1BPzBAbcn Y3D4YNpG3Uwd1qnbyFQdNISinVhiGkVVzB5Aclu/6Nu6Xe+OHUfKdVmHXTF2u3oeVciu vIe5NouEFkEeFgPUAYGQx220CySwBDdxbJgO3lUmilOfmKBlDtgCdPdep2UApfYO7r9U R9AtzmWhvvaVWXxeF6nBCfbVxYL/19mqqX2UJpYTlB090gwwS8D+PeId5Ro1lrnNQOKR ytZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:feedback-id:dkim-signature:dkim-signature; bh=OExBeIhg8SJBJvjWKHPnt5PnhMHFu9TlyU4PxD6rmZk=; fh=oOV3BWAQexJ+uuQwCSShMdwI4xG/LkzFOtv1UJ428js=; b=HskWtEQgktt8GrmVIBNpoJdmC2ydSNUQojvxIAyEAeebI7x7VNIgneLFI26NSALpWf MFHsXAgose7GNoXPRAlKpZdzPGRFGPWYM1CZ25k2xoXjQC9zksmUB93N+A5yHVwuvfcc 0bSWi50z5DhfaAWlAwMXZ6yhzxlPnAbIzKpd60xaCZqZzhZtpyiwZ8++P+GPOMROdFes 0K0pZNAkuQY46eQB8omHumRKaI0O5ymYvFwV8RFnmOsWoKqrj5h/FynERer3CU7l011A leNndzaZHdVdYhf/92bMTTRRz5PSoJ13wrHcVT+Sz41qgExdX/C0Zx4x2J7+2vr0yn7R bSxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=LAf4uM32; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=U3WdxLjS; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-50313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com X-Forwarded-Encrypted: i=1; AJvYcCVP4UU2v6TSKr3gUpa6p0TqIkVRyJmTWlc++/AcfXou2LX6gbl89S9HtXXrBSzGcB1BFD5ps5ukj5FRfMR5I1E70g2SCelYJnF8+kXdAw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lr14-20020a17090b4b8e00b00295b08ac6d7si319295pjb.16.2024.02.02.10.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:24:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=LAf4uM32; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=U3WdxLjS; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-50313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BEA0A28D2B5 for ; Fri, 2 Feb 2024 18:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8B29151450; Fri, 2 Feb 2024 18:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="LAf4uM32"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="U3WdxLjS" Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 772EB14D44D; Fri, 2 Feb 2024 18:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706898134; cv=none; b=Q0L6Twg68e9va/x9QHEQXIjkLO4PfA4Qibzxq/sQIWYBUG9cd1Q/ZKSb2Uh6M6s2lP0ugTqud1+PWXvwXoj7JefY6rbE/Ys6v+2TY5fJu3o4m7MS+wRWsXKb/S7DqqjTG5Y/bsZdV7u/7LIxYMTmXDamkUKmkqNbOVA8sefaQAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706898134; c=relaxed/simple; bh=N59Bj8/WdhFntIwAd6AT31VUOMyxOe1WmRe/HYmvrls=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EFlywia5viMkl9iL0GZmyYRmdOZlVPaTQ5OoO8jyvJPdHPX1rO2x97PxusFH/YPcGO4SH9yY8hQvzILFi4yk4C/NYoeCzkUwEbtoMBWdaOON6+mSafaQPs/jgdmwDhRbKZqurud2ueaI3BlaJ843hei8a3hiWdf2LQSkTR9i6kE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=LAf4uM32; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=U3WdxLjS; arc=none smtp.client-ip=64.147.123.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id DEB063200B0B; Fri, 2 Feb 2024 13:22:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 02 Feb 2024 13:22:12 -0500 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:subject:subject:to:to; s=fm1; t=1706898131; x=1706984531; bh=OExBeIhg8SJBJvjWKHPnt5PnhMHFu9TlyU4PxD6rmZk=; b= LAf4uM325odBgKk2X3ivSYBTTYNzZQCWuJWKsQjcG1jC1El6ojoK0DiaYSz6MBrs NxNvs5XnNcYJ+WRkNn3ee0i/MfGig+pPvibfmmzRb+/WvpeZpokhgXON2AVl0S11 uoZlBqaWUh1iofMGHTBfKEGkpP0lJkJ1Hkc/1EJTMHgyh+RkNDsVvqAhdA6Hu4AA Y4Ofnx1PD1WO8RALj56dmFVTHcGDyjqXQJ4aPeA0nTGu58hRFGOKCwo+bEwUtHmE 50oS1sIVJB1LuRA6sTavr34idiwwD8s2Djhd1NPly0U91A0kPo64cUgD69+U+cCy hCUWflT2WtAxJMCmkm3/FA== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706898131; x= 1706984531; bh=OExBeIhg8SJBJvjWKHPnt5PnhMHFu9TlyU4PxD6rmZk=; b=U 3WdxLjSK7lWM9oJ7/UqRa7tMAjSwGJkP6JotbNOrEdmGPehJEfRB2JoB/c3/RmzO wqkMLmpiFXW6C+FFri1uM0ZllM315CTekH9Y0+WDk7lDtIvNBoyThvyN1FH/gD5e GQnBWKxXbr1Gl0hurii5pOLrFktchlMxSNlJv/OeJXBq8k5Dc2OPDCHfeLPBnBex k431ma2PqwlPIlKy7ks7NZ8Uost+1XLCDW1sO64S7tE3v5rgvKk7gqzEQRrH8UsP zwDK8wm4t3pJNq28fBD7t9AQ1g67UggtKNY45+OskTLzNeOpWISP6Vh99KhZ3ceR 0rITwX5U0uzAz18wYV1Hg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedugedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpeevudejhfffhfevkefhffekteevgfetjeekuedtudeiheei geefjedtleevjeetudenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghn ghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Feb 2024 13:22:09 -0500 (EST) From: Jiaxun Yang Date: Fri, 02 Feb 2024 18:21:45 +0000 Subject: [PATCH 6/8] MIPS: Limit MIPS_MT_SMP support by ISA reversion Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240202-llvm-msym32-v1-6-52f0631057d6@flygoat.com> References: <20240202-llvm-msym32-v1-0-52f0631057d6@flygoat.com> In-Reply-To: <20240202-llvm-msym32-v1-0-52f0631057d6@flygoat.com> To: Thomas Bogendoerfer , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Jiaxun Yang , Guenter Roeck X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=961; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=N59Bj8/WdhFntIwAd6AT31VUOMyxOe1WmRe/HYmvrls=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhtS9RnvO13XHvSx4mP4hUsvI3d41drnz7bkC4T88Du/0Y J7/gD2so5SFQYyLQVZMkSVEQKlvQ+PFBdcfZP2BmcPKBDKEgYtTACZS28fI8G1ujlNJ00vR6ZJe m47ujC6+98d0MsNBr1lJHw969UikMTAyvJ/zQDpGds+n1etCTS2Wv36tyKAQqbLl+tuDLb86GWR 52AE= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 MIPS MT ASE is only available on ISA between Release 1 and Release 5. Add ISA level dependency to Kconfig to fix build. Reported-by: Guenter Roeck Signed-off-by: Jiaxun Yang --- v0: https://lore.kernel.org/all/20230414080701.15503-8-jiaxun.yang@flygoat.com/ --- arch/mips/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 797ae590ebdb..c44358a6d93e 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2171,7 +2171,8 @@ config CPU_R4K_CACHE_TLB config MIPS_MT_SMP bool "MIPS MT SMP support (1 TC on each available VPE)" default y - depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS + depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6 + depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS select CPU_MIPSR2_IRQ_VI select CPU_MIPSR2_IRQ_EI select SYNC_R4K -- 2.43.0