Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp714294rdg; Wed, 11 Oct 2023 03:37:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4RZOdZyO3/c4P5Vl+vtWAxVqwm1yBWqUEYOflgobjoh+lGn1POBA33Gk4/x9ClC6OIN6y X-Received: by 2002:a05:6a20:728e:b0:15a:4c23:870b with SMTP id o14-20020a056a20728e00b0015a4c23870bmr25310141pzk.23.1697020633940; Wed, 11 Oct 2023 03:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697020633; cv=none; d=google.com; s=arc-20160816; b=WGNUNErewjfDLoOaI0HB38eVOm+YpwlPaFfHcwStYpkDqtr79GJZkSAlk6prL+C415 Lfpm4EY8YtsWf8+rJgVZUpuirHyxpd//vVZJwET4o/bbCkcJA3EeOQsGg8xgOTn2wNjC 2UMKp1u8UnY/6t2SZ1+gg7967A52nMtpNmoDQOakfriI1xzGiFyhD/FdGJ34Jb4IGNo8 dJorLLSlwW1PvZDB+aV3VCDYnPyWN05rjK9MVLNSNPuVwJUbSnsKmzs9/vhUrziDI2E2 YV48wEcwxL3wo3YAHnBSYUzNxULJ4BDHTwFY0gxG7DG06cYenH9ZmNZ2FMOXdFL+hiaU 4OTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m5qmOpgaAbxaCEjrKwXUvLVHntmiS31/qG1xWZzsbNk=; fh=JtmS/SRd+u02hME4UWL/8765Lcg+ipjMM0kOK5ylSug=; b=vooT3+lN1XRFC0DdzZAGq0SYGYdB57OmWGXTARFbFb2h3tyrAVZ2uP5p5579fHGr34 78LLqaKk8c1CHtJX9LG2Cx9/AGwNsQZM65R8seAmhumEPUrLn/EmIpQCJQUNkxojadef 3jWBqsUOlDGY/My+O7Gvtln7EJcVAPI5c4gVWoRnRCdDdC/wxp9E/oU8CppIzqWZM9eV 6YmYw1k5RRUoXmjaEbkvHRwLOHyOPB0edj9t3gSyJl8zLHBVxtXQr24v4H22rxV5YlOS 7GWEhLn9td8sxBaQAqjnl8t83MUz1UaOkRKPqcKCedBaye3qKegBwwTY5nWy+2P/CxLh 4G9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UglVFxDZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q83-20020a632a56000000b00569161a1885si1988838pgq.288.2023.10.11.03.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UglVFxDZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0D448801F12E; Wed, 11 Oct 2023 03:37:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231847AbjJKKg6 (ORCPT + 99 others); Wed, 11 Oct 2023 06:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbjJKKg4 (ORCPT ); Wed, 11 Oct 2023 06:36:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912BFB7; Wed, 11 Oct 2023 03:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697020615; x=1728556615; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=52YiH9Rm64BW8CkQzXjUhpKwgm4oo9z7eHhxwksiAv4=; b=UglVFxDZiGCyI1bnaBQ4VxS4tOIW5Hp8CO60QnsG+tYHH8Isk3iRwnpc NwHL4gdZeEj5MNzNdofCvtp/3WXbSYK+6NBIhVGQq655fVZr4rKczu0dz PKe/Lfh7nZ9QtX4sKr0b4rhInphagaLr12aJnzAhT14L6hUDwW6wutghx P5hV7jTi3B+AP6/noFqd3FfV3XXcaA8GefjLOl6LEH2DeuHXJq3OVMDWx htVxoB9Vz5eZUR0aXEun8HTzXFe4oVemN84RPocqsrEgBhjU6nszso4MC hhlSjIJiiqo3pzlwW1WMEkiRYdlbtrN5JiNTmk+YAse927WA9nPM/lBbO Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="415675482" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="415675482" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 03:36:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="824114342" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="824114342" Received: from unknown (HELO smile.fi.intel.com) ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 03:36:50 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qqWa7-00000004azc-2aLH; Wed, 11 Oct 2023 13:36:47 +0300 Date: Wed, 11 Oct 2023 13:36:47 +0300 From: Andy Shevchenko To: Alexander Lobakin Cc: Yury Norov , Rasmus Villemoes , Alexander Potapenko , Jakub Kicinski , Eric Dumazet , David Ahern , Przemek Kitszel , Simon Horman , netdev@vger.kernel.org, linux-btrfs@vger.kernel.org, dm-devel@redhat.com, ntfs3@lists.linux.dev, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/14] bitmap: extend bitmap_{get,set}_value8() to bitmap_{get,set}_bits() Message-ID: References: <20231009151026.66145-1-aleksander.lobakin@intel.com> <20231009151026.66145-10-aleksander.lobakin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:37:11 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 11, 2023 at 11:33:25AM +0200, Alexander Lobakin wrote: > From: Yury Norov > Date: Mon, 9 Oct 2023 09:31:15 -0700 > > > + Alexander Potapenko > > > > On Mon, Oct 09, 2023 at 05:10:21PM +0200, Alexander Lobakin wrote: > >> Sometimes there's need to get a 8/16/...-bit piece of a bitmap at a > >> particular offset. Currently, there are only bitmap_{get,set}_value8() > >> to do that for 8 bits and that's it. > > > > And also a series from Alexander Potapenko, which I really hope will > > get into the -next really soon. It introduces bitmap_read/write which > > can set up to BITS_PER_LONG at once, with no limitations on alignment > > of position and length: > > > > https://lore.kernel.org/linux-arm-kernel/ZRXbOoKHHafCWQCW@yury-ThinkPad/T/#mc311037494229647088b3a84b9f0d9b50bf227cb > > > > Can you consider building your series on top of it? > > Yeah, I mentioned in the cover letter that I'm aware of it and in fact > it doesn't conflict much, as the functions I'm adding here get optimized > as much as the original bitmap_{get,set}_value8(), while Alexander's > generic helpers are heavier. > I realize lots of calls will be optimized as well due to the offset and > the width being compile-time constants, but not all of them. The idea of > keeping two pairs of helpers initially came from Andy if I understood > him correctly. Just a disclaimer: The idea came before I saw the series by Alexander Potapenko. > What do you think? I can provide some bloat-o-meter stats after > rebasing. And either way, I see no issue in basing this series on top of > Alex' one. -- With Best Regards, Andy Shevchenko