Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3544856pxj; Tue, 11 May 2021 06:55:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwenhI6hIj4P5pqdvthMULGytDfxXifRh4pXfx48SfHgLt5euKJ8OWU/W1+RSOfoCD/Ml8k X-Received: by 2002:aa7:c6ca:: with SMTP id b10mr21584395eds.221.1620741341162; Tue, 11 May 2021 06:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620741341; cv=none; d=google.com; s=arc-20160816; b=nIkuiq2Sx9SfeNwiUpstWDtM8DAaf99GVj/Jb7lpoTazKaoDU2kttBtf8S4GGhjvYf uQBm6/Hh5MmxEDPnMDaMnZgc5L7l/vGvdm90eNQFrvNDct3RfuGX1SDBx0PsWQFSk5Lk OJy9FM8zuFMYYRof4AhT0wxFMWHSd3euQ8Ef5gmbhION+NOihyOMcqDFqOj7UzADaLBC X5d9J6DviT9jbQpKDT5y8nNQpMbGT9yPNggD42bFOxbCrpQzPmsXFspmV63YdRWB+E1i 2AfpATUTCRG8zwNe4CndF3SAB1TbXQ4PIxIG0KAVxGGYvQ9GfidSIj+o/DH4HbcK4hij Iq0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=jI9W9Blj/Z2qjs3mmYq2tUWMQe2pKTQ81XNwCTvedF4=; b=ZmvMJuSDvZgq2YdvUEcAP9Xm8NhrGV90crBfzmzIPRMsFh/0pgTIuUK3sCCyiGahZ1 0cffJagLF8WNGfNGpbBZLDByJ84RdunugSShsK/nqPVtysdfa+7zZ2r11WcBNDvRXcQM 7r6aGN3j8kwmR5TWymsIs8VBwrK0nC+uzz+a9EhY9Y/wOf+uzpBYBekPS+jBNo3D9pKm 5Hqlru7+Bh7rdYV+YwaJR3RkOx9Tl7ezQ1wZPqBLVcGHtRs1nOJNhfy7LSCAcEnFVy8C ZGtrsgTJdMhYVYJBJsyR7LLXBBdVDab1lNEgEbj/e7iLEeFWGOpeaEuk+gUv6pEvBb6w yO7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=bmoJ+2g9; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds10si21377602ejc.415.2021.05.11.06.55.16; Tue, 11 May 2021 06:55:41 -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=@pm.me header.s=protonmail header.b=bmoJ+2g9; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbhEKNym (ORCPT + 99 others); Tue, 11 May 2021 09:54:42 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:17802 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbhEKNyh (ORCPT ); Tue, 11 May 2021 09:54:37 -0400 Date: Tue, 11 May 2021 13:53:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1620741209; bh=jI9W9Blj/Z2qjs3mmYq2tUWMQe2pKTQ81XNwCTvedF4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=bmoJ+2g9V7Dr5u4+mbx7+VWWI+VbNHXRu4+Pl5zJLxdO8By602YaZnUhpNrhCPfuf sbGhHBahrMkDSDYReFAPMkFqjPE4x8cpaOrhYQFoA7Pi1+JJpqo2n3DHog4Fh835IC SwuVMUMGEUTEyCy9h6K2k7Z4cDonsp1kjOs5B/RUpmFc3r7Ss/JE9LUqblCbvvDEXx X5UcOUlKsJbrg/1ok2jCKdAkre6tcBWjrhWXBXIkhyoJ08J+Lla6ZGEPrALMFwxfe2 LE2Q2pde3JcBQWvSUEPsRbmeMTCpqwnoDjzV6LAHmwvfrzXiUkzv2GjOwBGQhfzl1p apSpWWjgxYVgA== To: Yury Norov From: Alexander Lobakin Cc: Alexander Lobakin , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, 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 , Will Deacon , Yogesh Lal Reply-To: Alexander Lobakin Subject: Re: [PATCH] all: remove GENERIC_FIND_FIRST_BIT Message-ID: <20210511134551.18721-1-alobakin@pm.me> In-Reply-To: <20210510233421.18684-1-yury.norov@gmail.com> References: <20210510233421.18684-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yury Norov Date: Mon, 10 May 2021 16:34:21 -0700 > 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@gm= ail.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 - MIPS bit: Reviewed-by: Alexander Lobakin Tested-by: Alexander Lobakin > 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(-) Thanks, Al