From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 BA8961EB2A for ; Tue, 6 Aug 2024 21:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722978026; cv=none; b=Mq7iNgSRLICu25EU2YtEFbje0RRmLvPwd5lBIk2izVxvdXZOYaHm6x0s6hJVX1oBxnVaGDItTqV9JXHiFCQh5/WWQsm4kKdZkOuMf0jEMh9vFJnG9HUdmnxT2nNHeW7ld7gZQ326bTsgSPcMZI0seEdBsNpNYuxhHsYSO+5bTIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722978026; c=relaxed/simple; bh=IxbRaKUQJiq7P3twWhXauhFMcfPw0ciJw5OkKRoRtlU=; h=Date:To:From:Subject:Message-Id; b=M/I8cHwyofpEiuJRvgDd5K5YNcIDG0NSW8ZuDfhixZl0fzKmERs/2SEW9+UMi/6MCypYGjl3NiBX1NRZMywGl9VLeAo5szkVxe5+RyDex9vHCTggS36onsyp5GOMOQhIGZ9zcASZ52hB/6DNfxBlz+4/EBqLPucN1/4Id2ymtvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=mnP9F+o5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="mnP9F+o5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44CACC32786; Tue, 6 Aug 2024 21:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1722978026; bh=IxbRaKUQJiq7P3twWhXauhFMcfPw0ciJw5OkKRoRtlU=; h=Date:To:From:Subject:From; b=mnP9F+o5LrpY3UdmdTzNq7fjAazjzTILMyN0a6VMDq+OFjEY0QbdIFeJx34v5jr+O pgXsQaIxH/ubevhHzpufammYNQuyV23JCBtWCDqQnqf1cldUAEwR0Nu+oUKC7Jmbkc 8f6jbgsNYu54/jlPK4jtWLUlKeXrboEG/oeHwOgY= Date: Tue, 06 Aug 2024 14:00:25 -0700 To: mm-commits@vger.kernel.org,yury.norov@gmail.com,linux@rasmusvillemoes.dk,arnd@arndb.de,anshuman.khandual@arm.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged] uapi-define-genmask_u128.patch removed from -mm tree Message-Id: <20240806210026.44CACC32786@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: uapi: define GENMASK_U128 has been removed from the -mm tree. Its filename was uapi-define-genmask_u128.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Anshuman Khandual Subject: uapi: define GENMASK_U128 Date: Thu, 25 Jul 2024 11:18:07 +0530 Patch series "uapi: Add support for GENMASK_U128()", v2. This adds support for GENMASK_U128() and some corresponding tests as well. GENMASK_U128() generated 128 bit masks will be required later on the arm64 platform for enabling FEAT_SYSREG128 and FEAT_D128 features. Because GENMAKS_U128() depends on __int128 data type being supported in the compiler, its usage needs to be protected with CONFIG_ARCH_SUPPORTS_INT128. This patch (of 2): This adds GENMASK_U128() and __GENMASK_U128() macros using __BITS_PER_U128 and __int128 data types. These macros will be used in providing support for generating 128 bit masks. Link: https://lkml.kernel.org/r/20240725054808.286708-1-anshuman.khandual@arm.com Link: https://lkml.kernel.org/r/20240725054808.286708-2-anshuman.khandual@arm.com Signed-off-by: Anshuman Khandual Cc: Yury Norov Cc: Rasmus Villemoes Cc: Arnd Bergmann Signed-off-by: Andrew Morton --- include/linux/bits.h | 2 ++ include/uapi/asm-generic/bitsperlong.h | 2 ++ include/uapi/linux/bits.h | 3 +++ include/uapi/linux/const.h | 1 + 4 files changed, 8 insertions(+) --- a/include/linux/bits.h~uapi-define-genmask_u128 +++ a/include/linux/bits.h @@ -35,5 +35,7 @@ (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) #define GENMASK_ULL(h, l) \ (GENMASK_INPUT_CHECK(h, l) + __GENMASK_ULL(h, l)) +#define GENMASK_U128(h, l) \ + (GENMASK_INPUT_CHECK(h, l) + __GENMASK_U128(h, l)) #endif /* __LINUX_BITS_H */ --- a/include/uapi/asm-generic/bitsperlong.h~uapi-define-genmask_u128 +++ a/include/uapi/asm-generic/bitsperlong.h @@ -28,4 +28,6 @@ #define __BITS_PER_LONG_LONG 64 #endif +#define __BITS_PER_U128 128 + #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */ --- a/include/uapi/linux/bits.h~uapi-define-genmask_u128 +++ a/include/uapi/linux/bits.h @@ -12,4 +12,7 @@ (((~_ULL(0)) - (_ULL(1) << (l)) + 1) & \ (~_ULL(0) >> (__BITS_PER_LONG_LONG - 1 - (h)))) +#define __GENMASK_U128(h, l) \ + ((_BIT128((h) + 1)) - (_BIT128(l))) + #endif /* _UAPI_LINUX_BITS_H */ --- a/include/uapi/linux/const.h~uapi-define-genmask_u128 +++ a/include/uapi/linux/const.h @@ -27,6 +27,7 @@ #define _BITUL(x) (_UL(1) << (x)) #define _BITULL(x) (_ULL(1) << (x)) +#define _BIT128(x) ((unsigned __int128)(1) << (x)) #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) _ Patches currently in -mm which might be from anshuman.khandual@arm.com are lib-test_bitsc-add-tests-for-genmask_u128.patch