Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp92441pxj; Wed, 26 May 2021 17:10:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLLbfmKGzbWcvd8c0TYQOK6Ew0zJysmzfKHH0tVtu3OHPy08S2lTtqyswKt1mC715uEi3Z X-Received: by 2002:a17:907:a06e:: with SMTP id ia14mr880037ejc.17.1622074205544; Wed, 26 May 2021 17:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622074205; cv=none; d=google.com; s=arc-20160816; b=KYg1XhKWg0q/j9KaVJYS31O2YH6IowmCQ2t4AaF0Pv1OASnwY/h5rgMT6ikcqSkRKe 7RBsKgYyd8dJzceUQn/QMvzQX5j8VQDbRwBYEMIxGhqNrG/OfPFoFzYWSdkbX0CgaygT j0fLPO9/GMW88k/bWBz7JbmAX5/GUHmjkKnmd5b5Pq0Q3nuOOPxG89Ga1tkvjsZm7VbX 9dLxnPa0h4OnjJ4HZoNgsOkLQnxB5zxflHu+47XVkvJfG6lsFI+EvDsTF+sEkW5ppWeO 71pGRq/WBPvokcRDJjYmpOAdK5lclHquMb/ULcEGLAfLkpqelr+r9s2ArB5g4mZ2SaNH 0F/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WLRWsOkmBXo7a1TeEy5DRcPt//fM6DbpfS8Q1s2dqYY=; b=Zqkmka0Ep8XZ2z9hlhk+53wQTjuvG4T/C6MfPfAQUgQOfIbsEU7X6vqNT4Oq1tq8An 7EGexJRGBzJxdy6XOphGu/QWqvCkA3Su9NyiBw3lA7kwytI3MHZlwgKtGq1fSQgNGblC jumQyrSOb0EGwazsCirh0dTNGUXG1rDgzgo3u2GMvzhE+skpN2JdqEK1C1IdfjbEToJb NEvEtsnkxP6KyxPiP+P3Y1zjNzmpKHidMOLW7ZFBke5jI/Ehk1rwLE4ganRS1aZB+FTg KYvcGbMq734lKxO2pYZlmR3gyD2ApPCz6ZI6aDKibVgFS22lOf0SqFGqtfobG596yAj7 oUwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CCJ1YLsP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cn17si408399edb.73.2021.05.26.17.09.38; Wed, 26 May 2021 17:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CCJ1YLsP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234253AbhEZSfE (ORCPT + 99 others); Wed, 26 May 2021 14:35:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:35752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbhEZSfC (ORCPT ); Wed, 26 May 2021 14:35:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4BBB3613BA; Wed, 26 May 2021 18:33:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622054011; bh=UK6wHJT4nW2m0M9S/InYlvnZnFEuXBK89A6fNGZIpBI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CCJ1YLsPawytssAl3Q5VhnAbUbV9uJbXaOEroICNKtpEqilp2LOzT8jY560tju94R DQU45Dah+XuW+9EZFeurk4JodvknKjTf6qW2qUC2bVjcbqs8cQxJD1XeHPmnEgcEm+ bSjM9DvjlTOafCHnThTpl/qWxsYSsZrcJGppItleu76zMj83WA6t/xpQqcG8cmSJP/ 29ikFBkdGV5zyzLHlXwe43xnkpO5Pyz1UMAXSH8K5grA+10HE7AHuVNaIyPnBFBJpb xUUk7iq4Df8ZMQmvvYz5u0IYxZM7Ur6N00fNjpnXL8/DpfXG+ZtjrYnJqE58+8ndem XGDWL7CFiLTkg== Date: Wed, 26 May 2021 19:33:23 +0100 From: Will Deacon To: Yury Norov Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Alexander Lobakin , Alexey Klimov , Andy Shevchenko , Anton Ivanov , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christian Borntraeger , Dan Williams , "H. Peter Anvin" , Heiko Carstens , Ingo Molnar , Jacob Keller , Jarkko Sakkinen , Jeff Dike , Kees Cook , Mark Brown , Matti Vaittinen , Nick Terrell , Palmer Dabbelt , Rasmus Villemoes , Richard Weinberger , Thomas Bogendoerfer , Thomas Gleixner , Vasily Gorbik , Vijayanand Jitta , Vineet Gupta , Yogesh Lal Subject: Re: [PATCH] all: remove GENERIC_FIND_FIRST_BIT Message-ID: <20210526183322.GB20055@willie-the-truck> References: <20210510233421.18684-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210510233421.18684-1-yury.norov@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 04:34:21PM -0700, Yury Norov wrote: > In the 5.12 cycle we enabled the GENERIC_FIND_FIRST_BIT config option > for ARM64 and MIPS. It increased performance and shrunk .text size; and > so far I didn't receive any negative feedback on the change. > > https://lore.kernel.org/linux-arch/20210225135700.1381396-1-yury.norov@gmail.com/ > > I think it's time to make all architectures use find_{first,last}_bit() > unconditionally and remove the corresponding config option. > > This patch doesn't introduce functional changes for arc, arm64, mips, > s390 and x86 because they already enable GENERIC_FIND_FIRST_BIT. There > will be no changes for arm because it implements find_{first,last}_bit > in arch code. For other architectures I expect improvement both in > performance and .text size. > > It would be great if people with an access to real hardware would share > the output of bloat-o-meter and lib/find_bit_benchmark. > > Signed-off-by: Yury Norov > --- > arch/arc/Kconfig | 1 - > arch/arm64/Kconfig | 1 - > arch/mips/Kconfig | 1 - > arch/s390/Kconfig | 1 - > arch/x86/Kconfig | 1 - > arch/x86/um/Kconfig | 1 - > include/asm-generic/bitops/find.h | 12 ------------ > lib/Kconfig | 3 --- > 8 files changed, 21 deletions(-) Acked-by: Will Deacon Will