Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2457190rdb; Mon, 12 Feb 2024 05:45:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNhEQhNAlA2fAvSVhn6/wblxd3CDkC3HmtO/tFl3AFCw2D+d6wmnJVajO3gEUqdLhIhhCc X-Received: by 2002:a17:906:1909:b0:a3c:a3eb:6109 with SMTP id a9-20020a170906190900b00a3ca3eb6109mr1788090eje.14.1707745541745; Mon, 12 Feb 2024 05:45:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707745541; cv=pass; d=google.com; s=arc-20160816; b=yVNYjXJX84SnzVJdMDyHLVyuHA1AV9gfJENcOTsqDvWrGHFniEGBfG7/Z76k9k1Tfr yZ3KFYV+eWj7TBuD8ahdJbwPbdqbGRDFFuJD/b2MM1qMKbKItOnv/CEUontJ+dc9SMZ6 gwjqskfQroqcYInyIIxfUqTYo2zPgSg034iYKpfivhFwgAoM62B/SWBR7HacxqOQGD0X HQ4161AZGcX1ZAF+Y/ZLYMMk4pQfzmJ7nMeEv6v0A8r3z14mEZ5eZwCsEfmU5sSnXw9r /GC+wimeaP1ASWh94/1s8AJbD5FkeQkTMwewD5x69saEeS+DNu8LHVS8wxP7vqNecCvj mLmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=Z7rOVuLO0xilSDJ3N64aVRj6PnVPEco4AT9htw6H2H4=; fh=yT2oZJmYyI9snYa87SXgjoWJ/BrbwKchpCSR8SBVDBo=; b=iiqXrz4H2NISUg65CBqLMJ2GkdY8xQxhntwMAuKNVIaKzYZbrrWLj++tc3cvNDvkzc +cLLe2dLLmRa5mmD2fq4/Q/NwhNY9uQs3xi8ndTAtieHQ1l9tGqHRZ/qsCSyj0BI2Exl 98eAYPLC1O1Q9v4Yls+q9yjcGIgG+GLMxu35cp3OqExsbAoPGYowrPigT5sV1XPKDYgS g3YEeFzeDCf9+AzQWlnJpHO9ezjr3vmvrM8X++gFfz6FYwgorlsiMg3DfOHVFqwYTu4G pdqpj6NKEVEXcalVxr57z9SnUFP7SfZYAYrpg0GxVpXZOCf8jeOWAvr2r5wPkl5rKJiX bReA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ie6b3+Dg; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-61714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCUymms78biZ1CYt1KqCxyl90Qlrx0cJ6v3PK8sA9yN7luRGvHbHd1vjIrWGZ94Uij6A5Cd10ILrswpbfj5WDsSJxW3mIRg3BtSXTsPutQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h19-20020a1709067cd300b00a377f72d1f3si201451ejp.789.2024.02.12.05.45.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ie6b3+Dg; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-61714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 740BE1F2411F for ; Mon, 12 Feb 2024 13:45:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D4CE40BE1; Mon, 12 Feb 2024 13:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ie6b3+Dg" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 A2501848E; Mon, 12 Feb 2024 13:38:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745086; cv=none; b=cvAp4QTkYnouKaWRXKb/UmgeZ20YmrSaJlSiruDngr8HKfsyf8i5WFRg3IQM8+TlzszJBU0DNO+A5jEcWqoZjxyEJusGKkk1doDA3y+NcYHL8oSG5umdB1OK6PTYRzzBkJ2SA2iZxnJmUxy9gIzONDlfUQyw3pVQLV0w9tz4dxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745086; c=relaxed/simple; bh=lPAGNQ9qyBXFTL/v/7+iOjDr1xFtXIIoVf3l+u9WEdk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M3cvPROwWC4TKi2DKPa+l+lyuNrCRDxWkVkA0/YdEgYUEDmWZWNEKhiTUKNp09zcB6eJI++F8nrEy2hc07E6Qr3oCUToUllujY7eOztp8/NFsjjXLJJz9RswqrvMWr2KvGLYvZ6WYqydUoS+RxiTV879hzjNr8HPNjdT4WMG73U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ie6b3+Dg; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 481B41BF206; Mon, 12 Feb 2024 13:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707745076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z7rOVuLO0xilSDJ3N64aVRj6PnVPEco4AT9htw6H2H4=; b=ie6b3+Dgxjr4F12aR7ja00IGv0kDHrgLsQfBeM4e67NBLH5C7IMRKZgVpnnOexMji6OOXm YFOjZoH+AQnY9lFkGeIKeR244NpvpPsUchrtXSmUnev77+bqCNmWQ/Y7QpV2zwuTlhOhJq znASmRBLlLlIlj8Vu34bvXPlOhI9sPJlm+8fAjkhjNijvebyiJSJmvsicnWq7mCUKnmDvU 0yEDZ0+wk/qOPBcxUl3sbnGmw8k6o7WjETQeI/Vvy1VXz/9szFs7UaBDdTcPbsRJJt/t4E s2lm9xx4yoXjyh8H0nmscBy17KOVTso2Ebadt7atZAarYpr2naLuRahLuo4spA== Date: Mon, 12 Feb 2024 14:37:53 +0100 From: Herve Codina To: Andy Shevchenko 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: <20240212143753.620ddd6e@bootlin.com> In-Reply-To: References: <20240212075646.19114-1-herve.codina@bootlin.com> <20240212075646.19114-4-herve.codina@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-redhat-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com Hi Andy, 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() ? If so, your bitmap_gather() will match my bitmap_off() (patch 4 in this series). Thanks, Hervé -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com