Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp808567ybz; Fri, 24 Apr 2020 09:36:43 -0700 (PDT) X-Google-Smtp-Source: APiQypLYgTEXryPheQ03FG7/LYT+DVe/BAFYkEedD1PVB0KrQ+4Ag1I0ukDL0B3ISNpNFAIdWmfm X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr7621756ejc.154.1587746202912; Fri, 24 Apr 2020 09:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587746202; cv=none; d=google.com; s=arc-20160816; b=BqumZi7h12cHYvA2ZfDjKAAOhWwuPdhwTin2IujXAm+h4OK/IeKMiOZYFEp7q/EKIB DfOtXhA1g9Fp2FXC8u2T1wghYT2ZJWU552QR96tVkcSQzHKO7wdq0NsuvM4DFiUoIJQ/ eBr9HXTtYnwne+bveI74/aH+mxOeRTKhKB4korRIYI+t8fj16y3L6SjnarvClkwGXs9X Ala58Ktz65OwBsGnD1iv9LouNIC1aqGQ/fRS1DAQs8dziTTSEhXukkhkL5d7Du3SClOZ 4dYtiSQojQpnLmL7uJQTfGDdPkGfutDeI7rD4NCEvA6Ds4LX+h4H8qH2EcYACphd90Sm JeKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=wj8l6mYA9Z6EXiTEL3RF7vvosbwlTnTIJjBhFAwvdGk=; b=xq1CiyLXCoVNJMrWWDA4bVlqkPhF/ttFwlbC0uexuT4rk4rJHH1lqLRy/a51Txhdv3 nDGbHdKeKs9Jxx9IKSkjeyrsVFKAZwwdD041kEBUWKKcl8R2qM40IZoRbxE7+Ew9arg0 2UZ10T8RCuFiZuB+0ZTl/pbOjBGpyydXKi+9uD1Wc0Iv/1d9UIwfAb3ygJN6K7hADi/j DunKq8NjqBT9pas002OcKmFbXNaYQ5yr9gk8vGryGLwSAPuZrTmD5SEvKZ8sgyUabnk7 JasKR8qywR1ggi7K2S3REk+QnWx+hqz+mkFWzsAdBaHMoThzETI1xscb2nv9JM6MXXju mW6w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si2907372edr.441.2020.04.24.09.36.11; Fri, 24 Apr 2020 09:36:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728360AbgDXQeL (ORCPT + 99 others); Fri, 24 Apr 2020 12:34:11 -0400 Received: from mga03.intel.com ([134.134.136.65]:11407 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbgDXQeK (ORCPT ); Fri, 24 Apr 2020 12:34:10 -0400 IronPort-SDR: XExRAI9o+lqhrFYWuvEyikVXV1a3fByAKsXYyZtkQhv3xdj6aOzYfX3J8UTt3FQY25GehrAEoC C84fgaZWopGw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2020 09:34:10 -0700 IronPort-SDR: ngvym3+L5ScyIZ1Lzg94Y3EyStWESL5cit+lM/KL/xmSGIspPVGp49mPFcyjBgcpwPUAyif5XG Xt7mXyPXJMjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,311,1583222400"; d="scan'208";a="274647472" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002.jf.intel.com with ESMTP; 24 Apr 2020 09:34:07 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jS1HG-002sEv-MN; Fri, 24 Apr 2020 19:34:10 +0300 Date: Fri, 24 Apr 2020 19:34:10 +0300 From: Andy Shevchenko To: William Breathitt Gray Cc: Lukas Wunner , Syed Nayyar Waris , akpm@linux-foundation.org, arnd@arndb.de, Linus Walleij , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] bitops: Introduce the the for_each_set_clump macro Message-ID: <20200424163410.GD185537@smile.fi.intel.com> References: <20200424122521.GA5552@syed> <20200424141037.ersebbfe7xls37be@wunner.de> <20200424150058.xadjxaga3csh3br6@wunner.de> <20200424150828.GA5034@icarus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424150828.GA5034@icarus> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 11:09:26AM -0400, William Breathitt Gray wrote: > On Fri, Apr 24, 2020 at 05:00:58PM +0200, Lukas Wunner wrote: > > On Fri, Apr 24, 2020 at 08:22:38PM +0530, Syed Nayyar Waris wrote: > > > On Fri, Apr 24, 2020 at 7:40 PM Lukas Wunner wrote: > > > > On Fri, Apr 24, 2020 at 05:55:21PM +0530, Syed Nayyar Waris wrote: ... > > > So, this function preserves the behaviour of earlier > > > bitmap_set_value8() function and also adds extra functionality to > > > that. > > > > Please leave drivers as is which use exclusively 8-bit accesses, > > e.g. gpio-max3191x.c and gpio-74x164.c. I'm fearing a performance > > regression if your new generic variant is used. They work perfectly > > fine the way they are and I don't see any benefit this series may have > > for them. > > > > If there are other drivers which benefit from the flexibility of your > > generic variant then I'm not opposed to changing those. > We can leave of course bitmap_set_value8 alone, but for 8-bit values the > difference in latency I suspect is primarily due to the conditional test > for the word boundaries. This latency is surely overshadowed by the I/O > latency of the GPIO drivers, so I don't think there's much harm in > changing those to use the generic function when the bottleneck will not > be due to the bitmap_set_value/bitmap_get_value operations. Okay, how many new (non-8-bit) users this will target? -- With Best Regards, Andy Shevchenko