Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1681518rdh; Mon, 25 Sep 2023 23:26:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5R/94UR0kAlZ6AAxia70S/svws+WSioqxfw59MrqNjVjn6QuOF/hYuneCUF5mtrAjeA7L X-Received: by 2002:a17:902:f68e:b0:1c5:6f43:9502 with SMTP id l14-20020a170902f68e00b001c56f439502mr2864079plg.14.1695709592351; Mon, 25 Sep 2023 23:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695709592; cv=none; d=google.com; s=arc-20160816; b=oYQWs5W+zABDgq/ok/o7dzbj4dDb2rpLN2QT64+3fxexDaFoXIMXAw+uw4zQMPUy/0 s8HpI6VWCoiKeSOGWdrFcdPk6nbvQdHDTr+CtrnWksd0gNnNj3/7qlf8cmjQH26/C6Kd PMvbuwbM+kSzWPHZzUTNMKdP+PXDoVAYadbzaVAHCereOevxZlDZihdLn6c7F/+KLy6z x2P8Dyhq9ryyuMYDoTPOwxui2yVeX8S+FOgITwaceo5cj/bPuolduKN1NB74tS2Ys5qM iEjAomVM00NcvdbDcT+pVqIExCHu28lFH+ILbp1UURxBPWUvQptRJZFbytLMcMQRLs7w tJCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=i2foDDrSz2iJg8miAXO5rrO/5KUg+hiOSwl15Fg7Hq4=; fh=vW1oNT0lvWbI8AMX2u/BZGKXD0nTZmrv2xM94BgUfog=; b=MBYuropqvJ1WhKWIqD7JybvqLJWRu8aa9shzK+evBAWRboLyTzwftXNf7z0q22Hr6I TLOTun5mN6V/jLq7YjiOsnNjNxFhxT4em1BvP0fQSlvZx4DfcMm54jyQjLmRzDEw1eay e7Y2SXbaGzjqAfIsgLZhV+5ZI/+CBGrdFW/kBuvHv9JzXwWKerVrozfO/roq8sgWinZk abFHfSLyaeglW0vaFUib+7iWqzSIzcEHLAUuLpkFPExjv1rPP0ipl/AHVJiNlzgQZOfz Yc6b8Fn9n3aW7majz22+8iqPryt9aVwyPhS7DFqD8S9M8dCjLimdSvA14063fUqp0oho 9SjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CZ9JT25o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i5-20020a170902c94500b001bdebddc2f7si12848017pla.257.2023.09.25.23.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 23:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CZ9JT25o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 212EE826E312; Mon, 25 Sep 2023 22:20:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232066AbjIZFUd (ORCPT + 99 others); Tue, 26 Sep 2023 01:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbjIZFUa (ORCPT ); Tue, 26 Sep 2023 01:20:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD0FF2; Mon, 25 Sep 2023 22:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695705624; x=1727241624; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8WwRDr25TqRIwoayNtleziPeT4USa3sxRbOwFlmDtVA=; b=CZ9JT25olegywqm8x8Jiqw+fQzX9YVnI+AtsguFLLGwsUtkJViJ6mECi N53GEu422wuwSIN1+XLYciuZ8ZbaYvxvlj5+h7O3Om2y3Bw581fy75/Za lfYhpE98kvsSj3vlBM3hApHYCSmnRY7duAgU23v1ahGLz6Et+F5Il05Rg hd7+8AD8e+CQ0PrmDVw2sdubZEHGKya+nyIpr98irnvMhyaiF0zrKMyrc Is6spiQUJquU3pUa2wuep9iiL5K+J9k+Zn+mdH6f5oT2nBX6CGP/xAx7S iXdlhcbcHV3K1ZoT5/iaMXJEgo+7M2aGdenpRfv3xwrW/Hd2hKfJLX4Qo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="371820567" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="371820567" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 22:20:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="783824215" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="783824215" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 25 Sep 2023 22:20:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id D4D3311D; Tue, 26 Sep 2023 08:20:18 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , Yury Norov , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Bartosz Golaszewski , Andy Shevchenko , Rasmus Villemoes , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH v1 0/5] bitmap: get rid of bitmap_remap() and bitmap_biremap() uses Date: Tue, 26 Sep 2023 08:20:02 +0300 Message-Id: <20230926052007.3917389-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 22:20:42 -0700 (PDT) As Rasmus suggested [1], the bit remapping APIs should be local to NUMA. However, they are being in use outside of that for a while. To make above happen, introduces simplified APIs that can be used otherwise. It seems we might have yet another user of the above mentioned APIs. The last patch has not been tested anyhow (except compilation, so all testing and comments are welcome). The idea is to get an immutable tag (via my tree) that can be pulled by bitmap and GPIO trees on the need (while usually I send PR to the GPIO subsystem). Link: https://lore.kernel.org/all/20230815235934.47782-1-yury.norov@gmail.com/ [1] Andy Shevchenko (5): lib/test_bitmap: Excape space symbols when printing input string lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers gpio: xilinx: Switch to use new bitmap_scatter() helper gpio: xilinx: Replace bitmap_bitremap() calls gpiolib: cdev: Utilize more bitmap APIs drivers/gpio/gpio-xilinx.c | 13 ++---- drivers/gpio/gpiolib-cdev.c | 79 +++++++++++++++++-------------------- include/linux/bitmap.h | 9 +++++ lib/bitmap.c | 70 ++++++++++++++++++++++++++++++++ lib/test_bitmap.c | 25 +++++++++++- 5 files changed, 143 insertions(+), 53 deletions(-) -- 2.40.0.1.gaa8946217a0b