Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6263877rdb; Thu, 14 Dec 2023 13:01:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLgyF/nb92+4cHch6SW4zyuKSEumaLdHmg5QTr2Jv4CdnGPEfyr2u5emz5HQQSq3jd0G61 X-Received: by 2002:a05:6e02:1947:b0:35d:5790:ec8c with SMTP id x7-20020a056e02194700b0035d5790ec8cmr14751481ilu.9.1702587695103; Thu, 14 Dec 2023 13:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702587695; cv=none; d=google.com; s=arc-20160816; b=MD0HXfs3pMOW9ZH2/RMZJOqRvN4xn8Ed+MY3uqJiZX0STTlavzM7dUUwSRCwkiLP2P I3JJDA5Ay9moZGZYEAFcGcB+3cw3fP5z4C0xmZzGQ93hlDGYPgZe+Gjv5pMWFik31r8y BMpxF2OEPRmfMIRreY2OSHJCsNWnSUmGWUYitKeOpysvSul4dmocAq+b4TmlFTUxLbfZ ZGmCTZNqYd6PZSr7ZzIsXt8+zYwkssRDg8RceO+53+QW6UjAAdnKIJBbw6GbVGEf/IMM i1cw28xTVswkLC+TxXseWayO3TPyLa1ZE0xnaJDkQ6tQI8W77TTAs+qD+5oNdd4rRcHj BovQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=cPMpwFRv6qqbkiXG385m5eqKds5+I4+MVC9KueSNLNo=; fh=JnmPWmgzBVXFNCVT5PLF0Zk+bQCYgGE3k9ZGPWXgV7w=; b=xPZZAo05mwQIXAQ5L9UQu2CCp+rBq5Y2ZpRQ/a03Oo2W5SkF1l1evUipeX89rjnHcu 2dttkkpsbeLEfATrhH/EuDXr8pmZnMgCHeoZ5tgw0YVh2SvKR9799GOq2qrDwVOAX4o8 I/FOugHLDOjI2NH5uF6dqowHqrQTegrY4JJazLVHN6pw42OFFWY3Wu3oXqa7LRAFJyLK j9Vif+Br7tztaFlWcuYYbTvJ2DYc8it45ZkNkO6Lj4sKbJWbgigkdtoYHBDaTfEGYeph rPBP4ngSakLkg45t2UYCIL6GTqa8CAPbLpZPV4pl3COiy0TCT75MEBoeTxi/MsyTWIrY 2m+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-102-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y18-20020a634b12000000b005c65ed0f692si11797667pga.141.2023.12.14.13.01.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-102-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3DF80B21146 for ; Thu, 14 Dec 2023 21:01:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9E9554279; Thu, 14 Dec 2023 21:01:11 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2E4C0282E9; Thu, 14 Dec 2023 21:01:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCFC8C433C8; Thu, 14 Dec 2023 21:01:09 +0000 (UTC) Date: Thu, 14 Dec 2023 16:01:56 -0500 From: Steven Rostedt To: Linus Torvalds Cc: "linux-arch@vger.kernel.org" , LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers Subject: Re: [PATCH] ring-buffer: Remove 32bit timestamp logic Message-ID: <20231214160156.73e5ec51@gandalf.local.home> In-Reply-To: References: <20231213211126.24f8c1dd@gandalf.local.home> <20231213214632.15047c40@gandalf.local.home> <20231214115614.2cf5a40e@gandalf.local.home> <20231214153636.655e18ce@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 14 Dec 2023 12:50:29 -0800 Linus Torvalds wrote: > > But do all archs have an implementation of cmpxchg64, even if it requires > > disabling interrupts? If not, then I definitely cannot remove this code. > > We have a generic header file, so anybody who uses that would get the > fallback version, ie > > arch_cmpxchg64 -> generic_cmpxchg64_local -> __generic_cmpxchg64_local > > which does that irq disabling thing. > > But no, not everybody is guaranteed to use that fallback. From a quick > look, ARC, hexagon and CSky don't do this, for example. > > And then I got bored and stopped looking. > > My guess is that *most* 32-bit architectures do not have a 64-bit > cmpxchg - not even the irq-safe one. OK, that means I have to completely abandon this change, even for the next merge window. I may add a check if cmpxchg64 exists before falling back to the 32bit cmpxchg version. But even that will have to wait till the next merge window, with a fixes tag (but not Cc'd stable) in case anyone would like to backport it. Thanks for the advice! -- Steve