Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2314762pxu; Mon, 7 Dec 2020 03:28:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1H6JR7RkaZqhawj3PzIr6CBB9l9M5KZolKMBBFwesxzFfYCfwNplERBcKusHmjwNteK73 X-Received: by 2002:a50:d6d3:: with SMTP id l19mr8077722edj.340.1607340505195; Mon, 07 Dec 2020 03:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607340505; cv=none; d=google.com; s=arc-20160816; b=ZxP5aCoFV5JoSd2LBaJd6Ae+dr1cl6fTsYBe6WBxG8UlO0FwwK4CoImf4VYgUDoBT7 qxUJhR5nyb3D8kTgGt2G4yDY6eBMwI5HiGupHQwYaqqZTWXbVjWrT04mfHj7chUnRi9Z Dl9DwyKAzKWbZdLC4XZzMc2byjMSH+6u2EXo9I/SWosAmIe5kVa6cA2XpYSddBakQ8bI WuOjbuwbF2zaZbRlqOvIzz4RxOqb6TmkKJK3j+fvb6J0dITCCT8c4wP7r31ODACuM4fO XXi4Xlb09RDvPLVOcQYhmnwLw3EHOq173NfVOmJod8lRXoDomnwslG05UorILhxulAfh hsHQ== 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 :dkim-signature:date; bh=NUhAhvTCdg5H2UJxoaIabDWXu4yGoybBUvZW3FzgQGc=; b=0N8nxtzav04/ktutookKd0Wpnuf0sX3AjD4/mevw8LgtryxnnkYnIR9re6812vyuKt 1gIQt3LroIFno3e1bEdGnVWHH5P9bk9+MnYY53Rl3bRCltCjLQr37P/Z7iAQ3x0d2nKJ BR0SNdfXkJdPnDD2D95L76vESMbDWLgAruYF74/B4owcQ1cHdYvB8lLweTDjdxgEbaQ1 7SskUUDbyeLZhZpjRTeau82DyRC3s9wdMSJVZEKekvjZ+eaJKcxIeop55qbWSIVhHgIB 3O3wsQzDW5b0sN2IB0FY2x9Vf7D+u2EaGYRX7qZw9TP8+3O8fhnQTXb9BeqQhJit+F9K jpoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LO1t2k18; 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 i23si7880672edg.60.2020.12.07.03.28.03; Mon, 07 Dec 2020 03:28:25 -0800 (PST) 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=LO1t2k18; 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 S1726822AbgLGL0Q (ORCPT + 99 others); Mon, 7 Dec 2020 06:26:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:51324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgLGL0P (ORCPT ); Mon, 7 Dec 2020 06:26:15 -0500 Date: Mon, 7 Dec 2020 11:25:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607340335; bh=tCa+SCe7Tz2pY32ACYBN1TqZqetx06uBL1NMCeLWUZ4=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=LO1t2k18IowPpv2iCVCBshWRF1a4vzde4KtMgs8ydGWAtuVF3pf1r2hNBS+BeFIOI 6Nh2gDTQ5J+29/yVnmVEgLy3lXoGzzozXzjdPoZ8QnP9bx1xeAoA5hKi+yY0qv/0QZ PLos+SmCTZMcDWZLWYs74X0zGOpNAGG2IkxNmV7TFOe8coW0M3f/J9SUBOoZUmgLlk MFYmpYwZ3qqk2vUX78qY9TyScLj3mJKqGujU4XKLUo7gK20qG6Rs/8JJUz/N7aO+KN 3z6QgfEaIz+bNzqqs9L6qQPc8VmUkYiCgO6emc8xdpVOGkCTVB6lh4a2tu/rPU2Y1g gC0NEAeaU65Wg== From: Will Deacon To: Yury Norov Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH] arm64: enable GENERIC_FIND_FIRST_BIT Message-ID: <20201207112530.GB4379@willie-the-truck> References: <20201205165406.108990-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205165406.108990-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 Sat, Dec 05, 2020 at 08:54:06AM -0800, Yury Norov wrote: > ARM64 doesn't implement find_first_{zero}_bit in arch code and doesn't > enable it in config. It leads to using find_next_bit() which is less > efficient: [...] > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 1515f6f153a0..2b90ef1f548e 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -106,6 +106,7 @@ config ARM64 > select GENERIC_CPU_AUTOPROBE > select GENERIC_CPU_VULNERABILITIES > select GENERIC_EARLY_IOREMAP > + select GENERIC_FIND_FIRST_BIT Does this actually make any measurable difference? The disassembly with or without this is _very_ similar for me (clang 11). Will