Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2657040imn; Tue, 2 Aug 2022 10:59:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+C8ezBzgCD8VqZBFQJm9x03bP+4effRzPCAckqvLBZCJwhJzNxwIE3HTVYZuN0mOdFyFD X-Received: by 2002:a05:6a00:32c6:b0:52d:32b6:6986 with SMTP id cl6-20020a056a0032c600b0052d32b66986mr14672270pfb.79.1659463143504; Tue, 02 Aug 2022 10:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659463143; cv=none; d=google.com; s=arc-20160816; b=XRwlAhtzUvlO6K25vQ1m/D/DRiyRB9Mr01DUYeKON95qBmVCh0/Ha/cQndFHgBjJA4 yItfdc2A32grrJVADK2UIprdG29FA4OK2Oo2ktnfTfvevFb1onVx1w1VPJJjvbgOFAAH Lfc0qLVl1it+Z5wCctlVmc45QtKKC15+LPQAS4UpVpn2AKHZhXXUraObG/DgP6vnE9cP VdiAFbaQ1WRGIq0LJi2cnAi5WIfS7x4Bsms/JpNVCdG2+0KakVSQmcJxEBre/HIi4d/Q nTM+CClZzWIDC+K6Qxw47m3ohFiIpAKqAWJfP6IQBPGbicKlYwQQGCRJGsWmkgKwa3eT ezIg== 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=eN+753ntuwekEICR9aI/lEsWMT36c088ptJUh+DTgM0=; b=FpdwCz3mEmroUpu3tMZHiF28xozcjIbePcdAPUtxkAI2qpJwdLkDjHyNM4rdf1WVHl YJCzUNCsEJkIH5pTKy0TgEAt3j1+y5QNq3mXfS8zuPw3y/qnd8rqKue9kiOf0P4+siDK WB85LCg4uvjOgSptMcffdb4hvrqGVsi9ubT+4C3BO/rqtA+3tvSVJhcyUjSDcd8pdMkp G7Q5d08N6zGcaMh42eNccejjZREMAjm2L14RoMWtkfHfo0BWOzd8KxgwgRxQkE3pYhYM hdfkdWc6W6nwtQMK0rNwZ5Yy44AFmEKcxY2pEfKRgmx3X8PgQKuaVXq6nAhBEb33uHT4 qZGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K8e5z8Uz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f66-20020a636a45000000b00413ae10dad9si15917609pgc.690.2022.08.02.10.58.49; Tue, 02 Aug 2022 10:59:03 -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=@gmail.com header.s=20210112 header.b=K8e5z8Uz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234299AbiHBRoM (ORCPT + 99 others); Tue, 2 Aug 2022 13:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233779AbiHBRoK (ORCPT ); Tue, 2 Aug 2022 13:44:10 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93AA8B1D7 for ; Tue, 2 Aug 2022 10:44:09 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id u12so10904130qtk.0 for ; Tue, 02 Aug 2022 10:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=eN+753ntuwekEICR9aI/lEsWMT36c088ptJUh+DTgM0=; b=K8e5z8UzMw9+TVXrnZJCf8Ei8suTy61ji5CL9uGs34qDa8Vn5MQq+p+E24Y7+nhhcy KwHdKD+vHtgUNQkF86z4f5LKI/93yQOClntyIFnwd10bxT/sH43iiVbciofPVlv6YzQ/ SzthC0uC9oMtLSjoMNCrfKhU1IoYp2R781obu5enFm0VqfQ2ea6Fa/25b5PhwfcpICTl B4/2cB/DtYYsNwJ5JEBWl0YT2z4+JRGAJLc89oTHiCElnCDKLTKRor2XiKBM6ILJFyJ8 aw5JZo8O4tqJRRjYpVlHBGztANzeasfGz0NA9lf+gPJcTniVYXzkuA/pK/wlV7enRRsZ O9lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=eN+753ntuwekEICR9aI/lEsWMT36c088ptJUh+DTgM0=; b=Y9d5+zNrr1vKzzKuMGxTOS6MWkRKmeVFSiZQALwApfIrOSfg3aHersJbr5LCS7cFtM ocaLWFl1NWVVW5n3ubdOHX4o/dwKUFd5wJh3HoBt4PjHNp66X9DsJxYuf6VpeePiB+dH LDtujmkLK63ukF0SULyPKvYEaw9CqZotDR1f1KUzGm33s7h3eHLHGHDJ/HDIbpoY1c84 WqxI81soSRx+oMkBDzAvNhINli+gtcgVzqPpdlghPNb1uM0CGDifrA1bFIqwHHX3GKFe 5WCLMBMx9iVZ32J1TkNclPV55JwRINjMAw/3FNN7c3vF9YEOMDFcmFYtNxYToreIUkRS gndQ== X-Gm-Message-State: AJIora9pHCjQuEAjP6agaHGd6AzSJo52ra7fPxyo4SbmPh/F3luvA4iD XKH4jBA9ncGuE24hPsYHiHw= X-Received: by 2002:a05:622a:1a0d:b0:31e:da67:7cb4 with SMTP id f13-20020a05622a1a0d00b0031eda677cb4mr19200431qtb.643.1659462248621; Tue, 02 Aug 2022 10:44:08 -0700 (PDT) Received: from localhost ([2601:c4:c432:3fa:1cd3:c4de:6001:cc75]) by smtp.gmail.com with ESMTPSA id x10-20020a05620a448a00b006b640efe6dasm538793qkp.132.2022.08.02.10.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 10:44:08 -0700 (PDT) From: Yury Norov To: Linus Torvalds , linux-kernel@vger.kernel.org Cc: Yury Norov Subject: Bitmap patches for v6.0-rc1 Date: Tue, 2 Aug 2022 10:44:06 -0700 Message-Id: <20220802174406.1311671-1-yury.norov@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 The following changes since commit a111daf0c53ae91e71fd2bfe7497862d14132e3e: Linux 5.19-rc3 (2022-06-19 15:06:47 -0500) are available in the Git repository at: https://github.com/norov/linux.git/ tags/bitmap-6.0-rc1 for you to fetch changes up to 36d4b36b69590fed99356a4426c940a253a93800: lib/nodemask: inline next_node_in() and node_random() (2022-08-01 08:13:21 -0700) ---------------------------------------------------------------- Bitmap patches for v6.0-rc1 This branch consists of: Qu Wenruo: lib: bitmap: fix the duplicated comments on bitmap_to_arr64() https://lore.kernel.org/lkml/0d85e1dbad52ad7fb5787c4432bdb36cbd24f632.1656063005.git.wqu@suse.com/ Alexander Lobakin: bitops: let optimize out non-atomic bitops on compile-time constants https://lore.kernel.org/lkml/20220624121313.2382500-1-alexandr.lobakin@intel.com/T/ Yury Norov: lib: cleanup bitmap-related headers https://lore.kernel.org/linux-arm-kernel/YtCVeOGLiQ4gNPSf@yury-laptop/T/#m305522194c4d38edfdaffa71fcaaf2e2ca00a961 Alexander Lobakin: x86/olpc: fix 'logical not is only applied to the left hand side' https://www.spinics.net/lists/kernel/msg4440064.html Yury Norov: lib/nodemask: inline wrappers around bitmap https://lore.kernel.org/all/20220723214537.2054208-1-yury.norov@gmail.com/ ---------------------------------------------------------------- The patch "headers/deps: mm: Split out of " conflicts with 70c248aca9e7e ("mm: kasan: Skip unpoisoning of user pages"). The gfp_types patch moves macros from gfp.h to gfp_types.h, but the 70c248aca9e7e modifies original gfp.h, and therefore git can't apply gfp_types patch cleanly. The solution is to propagate the following change from gfp.h to new gfp_types.h: #define GFP_DMA32 __GFP_DMA32 #define GFP_HIGHUSER (GFP_USER | __GFP_HIGHMEM) #define GFP_HIGHUSER_MOVABLE (GFP_HIGHUSER | __GFP_MOVABLE | \ - __GFP_SKIP_KASAN_POISON) + __GFP_SKIP_KASAN_POISON | __GFP_SKIP_KASAN_UNPOISON) #define GFP_TRANSHUGE_LIGHT ((GFP_HIGHUSER_MOVABLE | __GFP_COMP | \ __GFP_NOMEMALLOC | __GFP_NOWARN) & ~__GFP_RECLAIM) #define GFP_TRANSHUGE (GFP_TRANSHUGE_LIGHT | __GFP_DIRECT_RECLAIM) --- Alexander Lobakin (13): ia64, processor: fix -Wincompatible-pointer-types in ia64_get_irr() bitops: always define asm-generic non-atomic bitops bitops: unify non-atomic bitops prototypes across architectures bitops: define const_*() versions of the non-atomics bitops: wrap non-atomic bitops with a transparent macro bitops: let optimize out non-atomic bitops on compile-time constants net/ice: fix initializing the bitmap in the switch code bitmap: don't assume compiler evaluates small mem*() builtins calls lib: test_bitmap: add compile-time optimization/evaluations assertions lib/bitmap: fix off-by-one in bitmap_to_arr64() lib/test_bitmap: test the tail after bitmap_to_arr64() iommu/vt-d: avoid invalid memory access via node_online(NUMA_NO_NODE) x86/olpc: fix 'logical not is only applied to the left hand side' Ingo Molnar (2): headers/deps: mm: Optimize header dependencies headers/deps: mm: Split out of Qu Wenruo (1): lib: bitmap: fix the duplicated comments on bitmap_to_arr64() Yury Norov (10): arm: align find_bit declarations with generic kernel lib/bitmap: change return types to bool where appropriate lib/bitmap: change type of bitmap_weight to unsigned long cpumask: change return types to bool where appropriate lib/cpumask: change return types to unsigned where appropriate lib/cpumask: move trivial wrappers around find_bit to the header headers/deps: mm: align MANITAINERS and Docs with new gfp.h structure lib/cpumask: move some one-line wrappers to header file powerpc: drop dependency on in archrandom.h lib/nodemask: inline next_node_in() and node_random() Documentation/core-api/mm-api.rst | 8 +- MAINTAINERS | 2 +- arch/alpha/include/asm/bitops.h | 32 +- arch/arm/include/asm/bitops.h | 18 +- arch/hexagon/include/asm/bitops.h | 24 +- arch/ia64/include/asm/bitops.h | 42 +-- arch/ia64/include/asm/processor.h | 2 +- arch/m68k/include/asm/bitops.h | 49 ++- arch/powerpc/include/asm/archrandom.h | 9 +- arch/powerpc/kernel/setup-common.c | 12 + arch/s390/include/asm/bitops.h | 61 ++-- arch/sh/include/asm/bitops-op32.h | 34 +- arch/sparc/include/asm/bitops_32.h | 18 +- arch/sparc/lib/atomic32.c | 12 +- arch/x86/include/asm/bitops.h | 22 +- arch/x86/platform/olpc/olpc-xo1-sci.c | 2 +- drivers/dma/ti/k3-udma.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 +- drivers/gpu/drm/i915/display/intel_display_power.c | 2 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 2 +- drivers/iommu/intel/dmar.c | 2 +- drivers/iommu/intel/iommu.c | 2 +- drivers/net/ethernet/intel/ice/ice_switch.c | 2 +- drivers/net/ethernet/mellanox/mlx4/fw.c | 2 +- drivers/net/wireless/ath/ath9k/htc_drv_debug.c | 2 +- drivers/net/wireless/ath/carl9170/debug.c | 2 +- include/asm-generic/bitops/generic-non-atomic.h | 161 ++++++++++ .../asm-generic/bitops/instrumented-non-atomic.h | 35 ++- include/asm-generic/bitops/non-atomic.h | 121 +------ .../bitops/non-instrumented-non-atomic.h | 16 + include/linux/bitmap.h | 37 ++- include/linux/bitops.h | 50 +++ include/linux/cpumask.h | 125 ++++++-- include/linux/gfp.h | 348 +-------------------- include/linux/gfp_types.h | 348 +++++++++++++++++++++ include/linux/nodemask.h | 24 +- lib/Makefile | 2 +- lib/bitmap.c | 11 +- lib/cpumask.c | 97 +----- lib/nodemask.c | 8 - lib/test_bitmap.c | 68 ++++ tools/include/asm-generic/bitops/non-atomic.h | 34 +- tools/include/linux/bitmap.h | 12 +- tools/include/linux/bitops.h | 16 + tools/lib/bitmap.c | 6 +- 45 files changed, 1091 insertions(+), 799 deletions(-) create mode 100644 include/asm-generic/bitops/generic-non-atomic.h create mode 100644 include/asm-generic/bitops/non-instrumented-non-atomic.h create mode 100644 include/linux/gfp_types.h