Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp330065lqp; Wed, 12 Jun 2024 02:54:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUw19Xq5unxRRFb5q4txXwlCdYYEtK6NU03soNBP8E+Ly8PoWoXicC8Bd0U9Lg8fYfSBQzjj98zgWrbJFqQ/uv1y1Op/PuulPfiW4aPA== X-Google-Smtp-Source: AGHT+IHUetK9+iSBfc5ByDm+W9ko9bUNnyM7egeCr9znKoe26PuKxGB88gYbHfyYw55/NW1QzAS9 X-Received: by 2002:a50:96d1:0:b0:578:6c08:88fb with SMTP id 4fb4d7f45d1cf-57caaabd170mr1288492a12.12.1718186057012; Wed, 12 Jun 2024 02:54:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718186056; cv=pass; d=google.com; s=arc-20160816; b=mXHUVXd8mHBdob1iKaEAMnoeaOpE4qFQ9/n7T1opPTSjeGKQzQW5hH+pnusfFEGF9k uEs/Dw7DoV3QOnAjYv1vL4emtqbnDtQnMj0M4vMUXSgD/hs5dcsXnllbyb7mv9yHEJFG 9kRfagjmUUBNd2j+xhCBJ+IMgRlAz7OpVkZtjzh9fPSpQoEz/bLVeND6KKgEK9Q6epJN 6Nxl94b5KqynUfkd6+ulYy7M7n+0Du7bazEFVoszyrJK44MPsf7ktfAiOUfEGcKkZjB2 tuZHorZrVQl5HgcwjSafj0q/WFoG3XQV+QxhQkuxWH3HgS/GmuNAp9wThK7g4YwcwJK/ cAzw== 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=eTw/3uGoMaLNBc00Ig08jpj75W3u53E9jYmieBPTfWU=; fh=mGMdN8CNPnSnCOlUdkXNufr+nOn5LJkQTNTeQ1Iihlw=; b=WeGfSAX6IlfgU4lVj47CUFTo450tOOqdf2273nCI/99q4Yuz8Hq9re8QbA3l2/7bdo DLPIKbm+cqJ1cRVCssEihHm4ztEUJHSIyEyTaxAZ05rdu/slTuNlYaCDG02yKK2W36EC 3Zv96yJ4RqHcR/eoCWX+86Fq7XnYWIm4fYwzFbGxHbMROhuXAb4tC7IiTqjX/h745nMZ nGkbttNtNkrdRDw0aj+hKwfoLcJSPy1wrdCO8N2kUl5a48nKp6TXVEIv3/gjeKZFiYhS tTQq6rf8ybhcoS5+KgHMS1CLzVmy9s+nVAkjAQZIag6BN4FJodyXs0bcVhByDEKinrZ3 3+vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=B8Tz9pui; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=aF3fLhvJ; 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-211302-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211302-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6e54d98d8fsi528619666b.552.2024.06.12.02.54.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211302-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=B8Tz9pui; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=aF3fLhvJ; 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-211302-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211302-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B98D71F25E32 for ; Wed, 12 Jun 2024 09:54:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C75E16EC00; Wed, 12 Jun 2024 09:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="B8Tz9pui"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="aF3fLhvJ" Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (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 0C95616E87C; Wed, 12 Jun 2024 09:53:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186021; cv=none; b=Rp6zBzgzAftK8sAFEKscGCpIwcBTxyj5ZJzBYawYBKpZA4XeUPew1NGsObb/+5AerbOB/xO3R6NMb2dNSRy00WlzGyf7Gbkw5ziyDPsc0+7iSgUPpmlbdUcE0HwZzFpBaUJrYJTW4uwIXcXtD4OShoYc2d07pfGeh4HS7+KEOS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186021; c=relaxed/simple; bh=NSrQU7oxV782OTF1pzPrNXGHVTnX0ocauyLrs3G9UWw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F65hmWHQsfGf897GL33IIc3SxQQSAMPHEvlb58pRvttcE/zKKhKbTmSX7IlZShcOEkxW2TuRK7K16x7PdUf+WajaciBI+S29z6D5FLTZsvr0/zbqYr6vu+mkqkrTrNNjicT7rrwk6/ENm3FDY/xkmPZcASPFqb1H9S76Nlza3a4= 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=B8Tz9pui; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=aF3fLhvJ; arc=none smtp.client-ip=103.168.172.148 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 compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 250B213801B6; Wed, 12 Jun 2024 05:53:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 12 Jun 2024 05:53:39 -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:subject:subject:to:to; s=fm2; t=1718186019; x=1718272419; bh=eTw/3uGoMaLNBc00Ig08jpj75W3u53E9jYmieBPTfWU=; b= B8Tz9puigFIHyA4uL2uLeAZfR5lVpixa3qnlj0f8iVSo2xuQ6PyVq0U+eVdfdy0K T6LFgIX7Xu93MmmogGKW04YQNo30yW4cvAgCE1311fWyNufwlndNLkZsaJO0PKrk N6IaBDChMRC3PhZHxUsdOtIcQFMkvtYegfr69EHfKLDRr4bi/jqa4nfq2Cb22Fkx XATiu+C0Lmug00xsoWhk2jUn78HCZrMT37wggG1tfR2zDErUnbKISOuTc62eliZQ Fsu9KxTEWNrIgQXE3ZNj0ND4FXZQ+8QKmvV5KdCpi9deEIXDOzQHXGDlb9PhVelb bv3P82pEa6CGx/O9lyG9MA== 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=fm1; t=1718186019; x= 1718272419; bh=eTw/3uGoMaLNBc00Ig08jpj75W3u53E9jYmieBPTfWU=; b=a F3fLhvJqW/Z7Erq9KoHi69WfmcZiFoRLrH47iSyzZ9USw8+xdHoTXB9yGNUED/Ur yxyjtmUa/qj27URKoDAickrTmzEKVvz/4gUxHYYo3DVFhK/lsr+k4FMRd6oHCOMp KuZMDkV4V5yk9JoeGW2HEGBHyEom/Aas/05oatWq4socA6hBFnk45hpTilX86prx MPYZ7+ddM0ZVtF17b3NskroogylaHdxNWL5bqZ3dUd46CAHvVHVPVctdz3Yo2YNc PD0FWfoPML6szVJoPc9J5cSmQjIRZcM97HFxTdvnLPV8DHm8Er/qB+1H6lnYJtmx Qneq4Gx87ef9epqLu1Z2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfeelffekgedugefhtdduudeghfeu veegffegudekjeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 05:53:38 -0400 (EDT) From: Jiaxun Yang Date: Wed, 12 Jun 2024 10:53:32 +0100 Subject: [PATCH v2 4/4] MIPS: Select ARCH_HAVE_NMI_SAFE_CMPXCHG when possible 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: <20240612-mips-llsc-v2-4-a42bd5562bdb@flygoat.com> References: <20240612-mips-llsc-v2-0-a42bd5562bdb@flygoat.com> In-Reply-To: <20240612-mips-llsc-v2-0-a42bd5562bdb@flygoat.com> To: Thomas Bogendoerfer Cc: Jonas Gorski , "Maciej W. Rozycki" , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=635; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=NSrQU7oxV782OTF1pzPrNXGHVTnX0ocauyLrs3G9UWw=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrTMAlmP7QHTs8w8JoU2PjhS4ayfIDfz4xHv5T4Xs7sUe 67evtPeUcrCIMbFICumyBIioNS3ofHigusPsv7AzGFlAhnCwMUpABPZVsbwzy7v9w6uKzPjpN/v P27M5mi+4rKHY+5enjJVG43WdIvt4owMkxn/hv7bqGjLerummSdQWWT9lMs9mueW739k1HH73Sx 3TgA= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 LLSC based CMPXCHG is safe for NMI. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index e83036580a47..1bb274c50636 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -17,6 +17,7 @@ config MIPS select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_HAS_UBSAN select ARCH_HAS_GCOV_PROFILE_ALL + select ARCH_HAVE_NMI_SAFE_CMPXCHG if CPU_HAS_LLSC select ARCH_KEEP_MEMBLOCK select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF if 64BIT -- 2.43.0