Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2143902rwp; Fri, 14 Jul 2023 01:10:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFauje0WqBbqyvoLRryYPnIlYKeea4M3ccGDBIiJ+cW9x9+GEcy3EdmHqx9ZoLQHFr+g6rT X-Received: by 2002:a05:6402:503:b0:518:721e:f594 with SMTP id m3-20020a056402050300b00518721ef594mr4021242edv.37.1689322226091; Fri, 14 Jul 2023 01:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689322226; cv=none; d=google.com; s=arc-20160816; b=Tj0iS6l5qjo/zpLAqVwanxCePJlf7ZR+0j92KXoTAUfLT77HJ7dRO1zY8y0Bpfzvnf +GIRgQbnOYOisMTT4/eaVf6gCBndJHUg7WFuwlunToyjI/blEaODgIFgBr3XuBHzeEdD UH6okgOD3SJwb/AcpMsSAxK3xNtYnFvTB0ax0sMhGcZBwwgJP86PYt/VUu2ITi1rm7QF spde3TBDQoscOpD+1t+zV5+jzJyY6FW4eW98rJSiRtH9pL5gISYHWlvx8YefjkG3J9sh 7P4TBh7hjN17nwlBkqSsM4aEnL6Lm6t/Uv5BopU6BFz4U2EodD0C815nbNGlFzv3EyKr xPEQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B7OsUKRiZb8Qzy+Ybe/5kpA13EKlI7+QMKsXepTvbB0=; fh=TzDRwQqRnZsaPX2+VyPu89YSLTuu8ULaeDpIBVXuy6U=; b=AZ67A0BJzp64SpoXTbuXiZRNS/vZUdqrtVwC+zpvN80TADj7Jd6LoTHR5ahxVyCD9i b0yxZUkMTTHptPQdGqGAFDEz78aUwcwSTYnTeWIW40jc95C5nIrTDzIaWyp+Vit4eYr/ pDrqOmHPjcdGjz1rt6+yPh1rAUhGlVGDpWcVFao0hUxKSdeHfEHQNEghlfNbgj+FidOK sC4ck6imliOKuqt49CzLugMK5mCYLoXXO7AwfsGLJThDmCdQzklGcH4yoI17IcDTSpta B3ZxkZnxHbkZME1tx9fPJLLNgsg2+L7fiWk5tz8AUjZQqMvqbFPNix0UFcVz7XlmBUx6 inOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DhdZMwbq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020aa7ca4b000000b0051ddc36463dsi9036990edt.629.2023.07.14.01.10.00; Fri, 14 Jul 2023 01:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DhdZMwbq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234969AbjGNIHG (ORCPT + 99 others); Fri, 14 Jul 2023 04:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233677AbjGNIGk (ORCPT ); Fri, 14 Jul 2023 04:06:40 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A88C630E2 for ; Fri, 14 Jul 2023 01:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689321866; x=1720857866; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=KTVhij6S6J9wOQxsZ93AjKzVSRhtji3qCHsu2XYKIW4=; b=DhdZMwbqv7IRuuGiRAGwu861ByE21NxaY/GuJXakML8PCuhFYP6ivrf4 JpcE0fd+rBrgS6W4F/NYpQRb0INejH9XIeCkt8OIssQz+YYWiA5QxKzGA 5SFjUbXRPHSQ/cyD8oSvRYf36T/AkN4UBF2PuvybYqx+D7Tv+hMBpdKaH XnSDDH2NxxUeCI2Jeox8g2PgiPIKy289T7BZ8H7jc0bsoCPoryBoF5IRL DplvsAdTGmAB6nOtBU5+bev2BmNT5TpPAP6dW807pUwLmuw5xW9Vnswb5 A8QIxgXpcarnUZJWw7EptpnkDPdAi9dz3yqOezJX3/r5uuvwoO+igvLA1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="355355613" X-IronPort-AV: E=Sophos;i="6.01,204,1684825200"; d="scan'208";a="355355613" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2023 01:04:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="1052976605" X-IronPort-AV: E=Sophos;i="6.01,204,1684825200"; d="scan'208";a="1052976605" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 14 Jul 2023 01:04:18 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qKDmi-002b9e-2r; Fri, 14 Jul 2023 11:04:16 +0300 Date: Fri, 14 Jul 2023 11:04:16 +0300 From: Andy Shevchenko To: Alexander Potapenko Cc: William Breathitt Gray , catalin.marinas@arm.com, will@kernel.org, pcc@google.com, andreyknvl@gmail.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com Subject: Re: [v2 1/5] lib/bitmap: add bitmap_{set,get}_value_unaligned() Message-ID: References: <20230713125706.2884502-1-glider@google.com> <20230713125706.2884502-2-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 13, 2023 at 08:05:34PM +0200, Alexander Potapenko wrote: > On Thu, Jul 13, 2023 at 7:29 PM Andy Shevchenko > wrote: > > > > +Cc: William > > > > On Thu, Jul 13, 2023 at 02:57:01PM +0200, Alexander Potapenko wrote: > > > The two new functions allow setting/getting values of length up to > > > BITS_PER_LONG bits at arbitrary position in the bitmap. > > > > A couple of years (?) ago it was a series to achieve something like this with > > better (?) code. Why not resurrect that one? > > > > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2195426.html > > It looks more compact thanks to GENMASK, I can cook something based on > the proposed bitmap_{set,get}_value (and change the names if you > prefer the shorter ones). > But I'd better avoid pulling in the rest of that series without a strong need. William, what do you think on this? I'm personally prefer William's version as not only it was published first it was carefully designed and got a lot of review already. We just hadn't had the user for it that time. -- With Best Regards, Andy Shevchenko