From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0CC8C433E0 for ; Thu, 25 Feb 2021 13:58:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79FF764F11 for ; Thu, 25 Feb 2021 13:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbhBYN56 (ORCPT ); Thu, 25 Feb 2021 08:57:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbhBYN5q (ORCPT ); Thu, 25 Feb 2021 08:57:46 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA58C061574; Thu, 25 Feb 2021 05:57:05 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id d20so4637313qkc.2; Thu, 25 Feb 2021 05:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z3S2/9NZCW9QVmXj9grkY/k8GsyFK+D3WBEzfAOeLxE=; b=t8MF1Qs6um/IJ27dP+R/8X4j9JbeDhG8huigp8RFGSkisQlib3Mo8fn57x+8dJcdNU W6TcJ464L4jl1tTsSZmo7gZl5evuv0MhrdiaTslyYzYZeFAQY3GJfBOr/apKSlgJjYBQ tVAjmhxY9tDT7iV/GXthJrdvGKnemSzBf6BWqjOM6yiYYF92UClaLANNgWh0CP1TWH2x pAiImpczPp/Aqium3UsM3oOpkJkL6Rjojp00UPK87lSDlgtB85W1u/S5xSgsolYaEEH9 OYYkXgNuvTmOgKGGYY3LhKDZ/XwKl/36t7PYV6Tf2xOzBMXN2Y/gPOf+aDeu0WxV+KEO mX1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z3S2/9NZCW9QVmXj9grkY/k8GsyFK+D3WBEzfAOeLxE=; b=ab0NkD6IRST1qW6gqpjqOxd2ioOC0CTcvdZ3yxXAd38pZPFkcB2ytRSNgxCok2HJrF IL8o1Xjkx+rmL49h3Qoi2V0X/9yBscKlAd8L3rJNODZx92C1njVuCNrkozTghtik1/ry E4/gDT81gzN9IlPt5L4ZWZ7B/AC/pt4KS5OKtoJbvD6T/bcTUoCrNaoEYreF6JZC460x ojNfevrtRFDbTsBaW+TIAq386xdPXV2KC7IurnLh93PtJUjwNFaLSxcd2IJDGP2C7e9R Y+AtzGmK2F0GeLrNpz6pyqYAWJwNqEpeXvOdFzeOXiH+Y8M3Efz3Ac30QWpxLwU4EFEO HGLQ== X-Gm-Message-State: AOAM532antRK+J0j372IMMRA9mzr6kpdqbImPCci+74b9nXUNmk0ep+N 0T8KoDUBUBrLWbkhdne/tvw= X-Google-Smtp-Source: ABdhPJwIoLmbkEdUBaV0j20N2p4kQqMq8twl/L7Q+AGbL1IVJRZjPNmoUaQsgWzi794pb71fOrP1Ag== X-Received: by 2002:a37:a28e:: with SMTP id l136mr1183634qke.172.1614261424402; Thu, 25 Feb 2021 05:57:04 -0800 (PST) Received: from localhost (d27-96-190-162.evv.wideopenwest.com. [96.27.162.190]) by smtp.gmail.com with ESMTPSA id b65sm3913576qkd.120.2021.02.25.05.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 05:57:04 -0800 (PST) From: Yury Norov To: Will Deacon , Catalin Marinas , Thomas Bogendoerfer , Alexander Lobakin , Alexey Klimov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mips@vger.kernel.org Cc: Yury Norov Subject: [PATCH 0/2] arch: enable GENERIC_FIND_FIRST_BIT for MIPS and ARM64 Date: Thu, 25 Feb 2021 05:56:58 -0800 Message-Id: <20210225135700.1381396-1-yury.norov@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MIPS and ARM64 don't implement find_first_{zero}_bit in arch code and don't enable it in config. It leads to using find_next_bit() which is less efficient: It's beneficial to enable GENERIC_FIND_FIRST_BIT as this functionality is not new at all and well-tested. It provides more optimized code and saves .text memory: Alexander Lobakin (1): MIPS: enable GENERIC_FIND_FIRST_BIT Yury Norov (1): arm64: enable GENERIC_FIND_FIRST_BIT arch/arm64/Kconfig | 1 + arch/mips/Kconfig | 1 + 2 files changed, 2 insertions(+) -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4393CC433DB for ; Thu, 25 Feb 2021 13:58:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D028B64F03 for ; Thu, 25 Feb 2021 13:58:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D028B64F03 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=DlxImJoDka+s7JESok5WLpW5CqVJdkQkk+WwFv6bpIM=; b=y0tVgCpMa698fwefjfnryciRMR pAoK6cyxgCFofgnhWo3aFsW2WLONix3Q72WKX+2GcRubEwjCGRe05lCgtB+2I4oloowE5SjluHzJH 4vOJn0UsUI3GqLHZeKtrVYOTvrZUfVL/JYc+aN/NT7UYVhx/91MFvxgbNYg6QdmQEiWm085+NgjB1 Taz7tXBo2I1/++a5OquUCs86IQfjszX92td6kQWog1tex08MTcLouzL5q/GO8Dl5hhNrucf/kIvlz +gPLenfYvYGdO0fTzImhC5BkRwsJgAMFIExmmB9IZsA48HE9e6Gj7n2rFJ8aafnHBpfPTBUP2YjZi H/eroMlg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFH8g-0005Fw-0v; Thu, 25 Feb 2021 13:57:10 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFH8d-0005Ex-Py for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2021 13:57:08 +0000 Received: by mail-qk1-x731.google.com with SMTP id b14so5681245qkk.0 for ; Thu, 25 Feb 2021 05:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z3S2/9NZCW9QVmXj9grkY/k8GsyFK+D3WBEzfAOeLxE=; b=t8MF1Qs6um/IJ27dP+R/8X4j9JbeDhG8huigp8RFGSkisQlib3Mo8fn57x+8dJcdNU W6TcJ464L4jl1tTsSZmo7gZl5evuv0MhrdiaTslyYzYZeFAQY3GJfBOr/apKSlgJjYBQ tVAjmhxY9tDT7iV/GXthJrdvGKnemSzBf6BWqjOM6yiYYF92UClaLANNgWh0CP1TWH2x pAiImpczPp/Aqium3UsM3oOpkJkL6Rjojp00UPK87lSDlgtB85W1u/S5xSgsolYaEEH9 OYYkXgNuvTmOgKGGYY3LhKDZ/XwKl/36t7PYV6Tf2xOzBMXN2Y/gPOf+aDeu0WxV+KEO mX1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z3S2/9NZCW9QVmXj9grkY/k8GsyFK+D3WBEzfAOeLxE=; b=twLE6bV93sHcRai3u5gumwN9FLAd+2nMHCJeC2M7jdg7NhqVwXnmhsdbu4ZMy6mUxN +ji7IKLPcNU0P9osOxFFEUKOFZmAHb4Vf4PkLSpP/4jcJsAYf7FifmVi9hqnQY7Q6lPW n3upYxhY7mPRo2LlOZiIrvvYUF10VURxrKzWLZDB7PgdcrZHRmW/rAovYDipSe6BhkRK s5ezi7AdMgKTAdW7tE5nu6kppoqlRUKsqRrsTHcwHMiuFVakNHlh/gqk2m3uXEAhCyKA PpXZvXQ2XL0X8fVxgvts3YJ1eguPloAOLBY7IV2X6Ji7qgqiJ/rl4LOHXWmAAfP49XQH DvKw== X-Gm-Message-State: AOAM532JlIgyvOS89MTN4t4UgujkONm94gD7Ggxey0qry2xA31nW30Im gw4cJjTh88+v0+4/N3QymIA= X-Google-Smtp-Source: ABdhPJwIoLmbkEdUBaV0j20N2p4kQqMq8twl/L7Q+AGbL1IVJRZjPNmoUaQsgWzi794pb71fOrP1Ag== X-Received: by 2002:a37:a28e:: with SMTP id l136mr1183634qke.172.1614261424402; Thu, 25 Feb 2021 05:57:04 -0800 (PST) Received: from localhost (d27-96-190-162.evv.wideopenwest.com. [96.27.162.190]) by smtp.gmail.com with ESMTPSA id b65sm3913576qkd.120.2021.02.25.05.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 05:57:04 -0800 (PST) From: Yury Norov To: Will Deacon , Catalin Marinas , Thomas Bogendoerfer , Alexander Lobakin , Alexey Klimov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH 0/2] arch: enable GENERIC_FIND_FIRST_BIT for MIPS and ARM64 Date: Thu, 25 Feb 2021 05:56:58 -0800 Message-Id: <20210225135700.1381396-1-yury.norov@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210225_085707_854339_19FE5547 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yury Norov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MIPS and ARM64 don't implement find_first_{zero}_bit in arch code and don't enable it in config. It leads to using find_next_bit() which is less efficient: It's beneficial to enable GENERIC_FIND_FIRST_BIT as this functionality is not new at all and well-tested. It provides more optimized code and saves .text memory: Alexander Lobakin (1): MIPS: enable GENERIC_FIND_FIRST_BIT Yury Norov (1): arm64: enable GENERIC_FIND_FIRST_BIT arch/arm64/Kconfig | 1 + arch/mips/Kconfig | 1 + 2 files changed, 2 insertions(+) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel