Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2470474rdb; Mon, 12 Feb 2024 06:07:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuSPLWBoVLFF8lLGsxX0vqL+LxB8leV6/GacmvcpvHl+doW03PGIF9H67P7hkyhat82qie X-Received: by 2002:a05:620a:4007:b0:786:d733:6b7d with SMTP id h7-20020a05620a400700b00786d7336b7dmr836796qko.47.1707746877209; Mon, 12 Feb 2024 06:07:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707746877; cv=pass; d=google.com; s=arc-20160816; b=M/mDJ7bWjyRW8k4stpi8XHKKVZipXDE5kbeCSRgqXHP3cx02t6WuD6e6zZSPVtCDP9 q3qLRG0i+xg4bn5+5nip/ac43kO4wYjubarDw91djKFhjIxs/37gfjLYSo64hiWFRFp8 dfx3OqK87FUqkAF7cKqHfEUTjKtmMEuENskQlQukgUyZS7+Q8eVJBxNWI1TXSC1yro4R zQlpao+jsfgnceKLCI4S56vnTjZqekY3xBNCPzfB86iab2vtgB055p7w464C13L/1r+z pYSKNfsGxPcJAhEQ7puIKOqXIfcNR61vHZuuv0v5MsrrNTEFF1tWp8M+/vyVYdIOHSDR Xaew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=qFHdVL4iKbohYu+kbe3SokL6eF1W8uWXl+6cbd39UAY=; fh=SO5udrxkcKwI5kAHqTKDFPnazsGybQ3Y5W5i4oKcY88=; b=sWuB1Yu/5yv3fzI9cT2J38G8zr7dv74AURLUt6Wr0nazBGgNzixtrQz1ZS6TyKHC9o ocyWevj5llCdwRYgMN4gvXE0JgMf80zbtaEbdZKXHWPNZsTvJdDb6Myx94YsUwLN/JwV PvJdAVoeNqXWH4mycUua4geNm5L51GRPmYO4FP7LS/Ob4creg4c7I+WMRJVKyKj8+UA8 61w3qOE17jPC6kFsfnj5vFN6NbPWrTrwkRnboJeqae+JQcjliphMKZgjiwztsuHTA6/N xIP3uL94XJBP1OAyH/iB6I/mx86DpK3CIuyUKa4qD4itU/l8Sptuiz66K/iTtR86V+CQ SRww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QFVdNLoV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCW9nTFXzMcZgbi33aQiCVNywoU1QftTiwcoXkDm5NubkOGM8UzjBEm66YQSRlXLXNBnJB4W7FiCBSKui0RHWRjOLW5NT/FgQ1ftndUsWA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dv16-20020a05620a1b9000b0078153cbf56fsi6449353qkb.607.2024.02.12.06.07.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:07:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QFVdNLoV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F11421C22D61 for ; Mon, 12 Feb 2024 14:07:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 129893C491; Mon, 12 Feb 2024 14:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QFVdNLoV" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E0D63C481; Mon, 12 Feb 2024 14:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707746510; cv=none; b=SGkcRtL9pXSrohuJHZoE7XFF4n5D5G06wjrLjLcIh1/G+i6BLYYNe5cxNi8wvsH6twbCV5/VD+njUUICA3gNmYnsw8CCSWlyZkQwOTJLA9f4GiYHSTuJ0eYq4ZG+MEtg21czvH3i2+F+NqYJCVE8IWyOz5Rgt1FVmQaPkt091uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707746510; c=relaxed/simple; bh=+k/jxrO0zWN40HjTz5V2N5DaQA7u2Sd/R7/hgOheP60=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sceAc/SuNzjaCGHwpeSUEDnweztG1e5Cvc+Du9mOGh3qwYCYeiJO6qSE7Rv6dBNIbR4nTE47wEHzkEL6x8JStI1O950sfZLK4CR/+YhhoRz8vTKJD/fNiTAlujoEd1c2qVINkbUhbyfA2tmp7SRhM/PLbVGbCEIBeGgDZKwOPE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QFVdNLoV; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707746508; x=1739282508; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+k/jxrO0zWN40HjTz5V2N5DaQA7u2Sd/R7/hgOheP60=; b=QFVdNLoVmjNJJrre0np1kOK0p98XuJRTVGAS+UNIZap46XsaLqCY3qNY tPXk8ysSXYaBwkRmvv2xKYjevx3r6T0QfnT2oJkDeRiQ/gUBRAGIWzc+M I22vyPe7dg2hcg/CYfIoX872wUpN1jeW32exLUqLwQx9snXXdQOhaauQf Lsi1bxEB9TjpA4U23VjdrKyVIPCb8zzxI3eTzgEzjfJpAT15as375B3zF 4WjWNtegYh8J4rCCcWrWYwtpayWze7shiTwTWkCDsrKy9KPHRMSqAkvPa IwqbZV46ruwpsog7KL/v1MSkHCZ+AA+gspa9m6dW+aDiLkGLvkTgGOlwv Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10981"; a="5535970" X-IronPort-AV: E=Sophos;i="6.06,264,1705392000"; d="scan'208";a="5535970" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 06:01:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10981"; a="911490360" X-IronPort-AV: E=Sophos;i="6.06,264,1705392000"; d="scan'208";a="911490360" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 06:01:41 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rZWsM-00000003unC-1szc; Mon, 12 Feb 2024 16:01:38 +0200 Date: Mon, 12 Feb 2024 16:01:38 +0200 From: Andy Shevchenko To: Herve Codina Cc: Vadim Fedorenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yury Norov , Rasmus Villemoes , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn , Mark Brown , Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v3 RESEND 3/6] bitmap: Make bitmap_onto() available to users Message-ID: References: <20240212075646.19114-1-herve.codina@bootlin.com> <20240212075646.19114-4-herve.codina@bootlin.com> <20240212143753.620ddd6e@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240212143753.620ddd6e@bootlin.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Feb 12, 2024 at 02:37:53PM +0100, Herve Codina wrote: > On Mon, 12 Feb 2024 14:27:16 +0200 > Andy Shevchenko wrote: > > On Mon, Feb 12, 2024 at 08:56:31AM +0100, Herve Codina wrote: > > > Currently the bitmap_onto() is available only for CONFIG_NUMA=y case, > > > while some users may benefit out of it and being independent to NUMA > > > code. > > > > > > Make it available to users by moving out of ifdeffery and exporting for > > > modules. > > > > Wondering if you are trying to have something like > > https://lore.kernel.org/lkml/20230926052007.3917389-1-andriy.shevchenko@linux.intel.com/ > > Yes, it looks like. > Can you confirm that your bitmap_scatter() do the same operations as the > existing bitmap_onto() ? I have test cases to be 100% sure, but on the first glance, yes it does with the adjustment to the atomicity of the operations (which I do not understand why be atomic in the original bitmap_onto() implementation). This actually gives a question if we should use your approach or mine. At least the help of bitmap_onto() is kinda hard to understand. > If so, your bitmap_gather() will match my bitmap_off() (patch 4 in this > series). Yes. -- With Best Regards, Andy Shevchenko