From nobody Tue Dec 2 02:20:24 2025 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 EAF7A16132A for ; Thu, 20 Nov 2025 07:46:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763624773; cv=none; b=NDPCjnZDvIo2leZFgJNDioFygnh88tGGq5QdzDLEg6iZYgBkBjmmHeKhPKyPsG5KYd2B4gxSdRHKLlMeVGOMHjHcDaFNtfRiH79rHAy6QnSmiO2GK8DqVA6toqSxSYGi3Fuhku0PevGfaLLQQfiXg8slb2+4jq8pn3yS6g77sk0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763624773; c=relaxed/simple; bh=8TifsbTNXqYIYqD9lXrhIsElmC4Aa87KXjt2KqkZcjI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=M9PjoQrF6qJSHn51q/e3+hsPrmsoIXaTyoze+bYAXuLEShM+ow2NULFt9CnBjBh9+7Pip6GBu/VOuS/cmUucuuAqaBucU/UBcn/o4H+B4uP073p4auvGDmkQ7FShbI0ig+Z5pWAtUaCza8wY3Ug8MUsbvapO1OjLgqFz7AtS0To= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Yz4No9fC; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Yz4No9fC" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1763624767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qd6hbMJvs0YabNz3CCTWdf/jCMHxiJ1lcDXBCRGzJYI=; b=Yz4No9fCwMNc8ssgEO6jiIvtqT84Cl3uzMu8Bt+mX3mWpFCdypGDpzu0Vu8AAATIfEadYI jSKkXqBZQnO3UCfDTj4cnO9q3qYvr0sDpLRV7ymIOm57RRLNVoCpeWW03QlJVIMCxNso// yaRM6+tR8wzBL6K1t4OHPLsqhLXIQE8= From: George Guo Date: Thu, 20 Nov 2025 15:45:45 +0800 Subject: [PATCH 2/2] LoongArch: Enable 128-bit atomics cmpxchg support 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: quoted-printable Message-Id: <20251120-2-v1-2-705bdc440550@linux.dev> References: <20251120-2-v1-0-705bdc440550@linux.dev> In-Reply-To: <20251120-2-v1-0-705bdc440550@linux.dev> To: Huacai Chen , WANG Xuerui Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, George Guo , George Guo X-Developer-Signature: v=1; a=ed25519-sha256; t=1763624762; l=1046; i=dongtai.guo@linux.dev; s=20251103; h=from:subject:message-id; bh=jJgZhwA4ooo3Ax4Z4naKB2Lj5KNiYF1TJyBIlsCbAQU=; b=FlX9GOAxCpmsdldQasxmyuj/0/XIwH/idfHREdtwQLt3jDoDVwXogyzvlRUWIEiHrt8Umr540 ZH60hGSRRi7AP/0vq0NiNQPJlu94Ibn5/7J2SI4/EXYD+KcSJ8ZgTJe X-Developer-Key: i=dongtai.guo@linux.dev; a=ed25519; pk=yHUJPGx/kAXutP/NSHpj7hWW0KQNlv3w9H6ju4qUoTM= X-Migadu-Flow: FLOW_OUT From: George Guo Add select HAVE_CMPXCHG_DOUBLE and select HAVE_ALIGNED_STRUCT_PAGE in Kconf= ig to enable 128-bit atomic cmpxchg support on LoongArch. Signed-off-by: George Guo --- arch/loongarch/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 5b1116733d881bc2b1b43fb93f20367add4dbc54..6fb2c253969f9ddece547892042= 3d7326c3ec046 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -114,6 +114,7 @@ config LOONGARCH select GENERIC_TIME_VSYSCALL select GPIOLIB select HAS_IOPORT + select HAVE_ALIGNED_STRUCT_PAGE select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_JUMP_LABEL select HAVE_ARCH_JUMP_LABEL_RELATIVE @@ -140,6 +141,7 @@ config LOONGARCH select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS select HAVE_DYNAMIC_FTRACE_WITH_REGS select HAVE_EBPF_JIT + select HAVE_CMPXCHG_DOUBLE select HAVE_EFFICIENT_UNALIGNED_ACCESS if !ARCH_STRICT_ALIGN select HAVE_EXIT_THREAD select HAVE_GENERIC_TIF_BITS --=20 2.48.1