From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB57A82C67 for ; Thu, 13 Jun 2024 20:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718310337; cv=none; b=pNJVmZRdPBFivBsdM5MqvUSxOeOnylmqVjx4pzqE4X7Mjo6pIF3ibDkNlTR//YzmCzZz+O6HZSJ4PK7ODP7+YPcFbbaHWZ+/XzqUuchStUaTJkxKIlSSlqCESKRzgkTjVPPpPHDeuZYgsMIUOlnUZi8E968Ie0FYeEZ6QRNW2wc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718310337; c=relaxed/simple; bh=XZMnBPtlkifS5Fdca+gG4KAFlQ4eMVf6o5s14uxWoGY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nMIz51rIJsW1wc842ilQC2XWhtzODoMVdemf9+96S9VzGFxz3jBTF+/U5t/sNNuWjQi+U5zd4C6onGsQ5Kw3Vc1euuh3ZvRD9BjTWBluopRw+IAbX33oVbYlvtcxx4HDpSu0PGpu07wbviLFmuwT5wK8zw91NhOdkLZUejd78EY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gbQBbqIY; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gbQBbqIY" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-795524bb6d9so97458085a.0 for ; Thu, 13 Jun 2024 13:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718310335; x=1718915135; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=EMz0ZFRHVHUChYlldLB+9O1uGefbqiAdPKIID9/kO3c=; b=gbQBbqIYR3vl473ulf8UQCp8LfkSYBuEQ19og8oxMegSP97vaeYUqT1xwG/e/er6Zh IVDESsAbxW0+KQtIU4kIdLUF+c7B71cewAQuZDQ0HKT4CAKnFUfQlBmOiOnWAFvEVGha qPvXDLNY8qWOpQrVoWUVwk2buQGBESJ4tXizB8EljZous9s0knll0Y+cUAT4/G4t0KhP dT8dAPMTIWuW0vf/llTzVd6J1tTv3QCg8ixiKMdUQulV9uwytFO/3lEOGzeyYtYX/gX+ 7V5Vy8JBTiCEoSUUoYSfKigrT4a5lFFUMiPLes+2rijFHHRKblz5/y8JDxlcy/GtnDKD xNJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718310335; x=1718915135; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EMz0ZFRHVHUChYlldLB+9O1uGefbqiAdPKIID9/kO3c=; b=L8Nkq8dExyz6s5NG7r1N12qEP18E1d0BPu3p0nYLdPuh698xVOJf3rZkIJ5MM+aHve XKkvxdMXlF2bXM1dGrNmRO/2zsWxtVD6Tw4ouwE73MdkkrsN5oG1MFe7Tj9bun5rq+gC 4mUAABocAA4OrhjfkitSZ+Gwnn1nR3q53ylCo6H2mmsane51q6l5noclwlL4o7ePAEnv OlQOCfatXE/4DdUBmXUwhD3CSzpY/ypsRS9yCzyZrX4X6+dzLCfJVwBcWe2U1QTDud5+ hxmGjEG7XuNQJyNrBGp9tfauu5nNn6BYnfapi/FI2uRYGMOUb0KlqKxfzu8Gq+SvQGl6 O7Ag== X-Forwarded-Encrypted: i=1; AJvYcCUFty3cPCv2BgzkoZ5FVNdndRsNpTyMU5rVMti8RMkcBKGJ83o1a8Vz+TuBH7QJz3g/WKZLv4xan+AkKBHihh85+2/ghA== X-Gm-Message-State: AOJu0YxNesPMTuHFosSWRW4lPe3C2p6NRKogPPw/shSE+bOQd1BXN8Eq 5F9KrXWwhaZEcZ8uu0KH6/7cq64J4p+pVEBR+DJmxUw3S+DMxaBj X-Google-Smtp-Source: AGHT+IGpSoIULcvWez99JK7JK+Up8HU1l/s1FINDWZs8LC9tBJeQ3hxxZVJWnFEHKbk+02gDLzMs0Q== X-Received: by 2002:a05:620a:4007:b0:797:e9f7:e924 with SMTP id af79cd13be357-798d26af852mr68059885a.65.1718310334648; Thu, 13 Jun 2024 13:25:34 -0700 (PDT) Received: from fauth2-smtp.messagingengine.com (fauth2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-441f2fcc468sm9379261cf.70.2024.06.13.13.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 13:25:34 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfauth.nyi.internal (Postfix) with ESMTP id 283391200069; Thu, 13 Jun 2024 16:25:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 13 Jun 2024 16:25:33 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedujedgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeeuohhq uhhnucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrf grthhtvghrnhephedugfduffffteeutddvheeuveelvdfhleelieevtdeguefhgeeuveei udffiedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epsghoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedt ieegqddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfh higihmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Jun 2024 16:25:32 -0400 (EDT) Date: Thu, 13 Jun 2024 13:25:02 -0700 From: Boqun Feng To: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, llvm@lists.linux.dev Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Joel Fernandes , Nathan Chancellor , Nick Desaulniers , kent.overstreet@gmail.com, Greg Kroah-Hartman , elver@google.com, Mark Rutland , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Catalin Marinas , torvalds@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, Trevor Gross , dakr@redhat.com Subject: Re: [RFC 2/2] rust: sync: Add atomic support Message-ID: References: <20240612223025.1158537-1-boqun.feng@gmail.com> <20240612223025.1158537-3-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240612223025.1158537-3-boqun.feng@gmail.com> On Wed, Jun 12, 2024 at 03:30:25PM -0700, Boqun Feng wrote: [...] > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index 48e7029f1054..99e6e2b2867f 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -1601,6 +1601,8 @@ static bool > has_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) > { > u64 val = read_scoped_sysreg(entry, scope); > + if (entry->capability == ARM64_HAS_LSE_ATOMICS) > + return false; > return feature_matches(val, entry); > } > Yeah, this part was mis-committed, will remove it in the next version. Regards, Boqun [...]