Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 2026 22:27:10 +0000
From:      Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8f95998393f4 - main - linuxkpi: Define `__GFP_THISNODE`
Message-ID:  <69e7f9be.3811d.904e9f7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=8f95998393f42f368fe22abd9a25c7fa4304e02a

commit 8f95998393f42f368fe22abd9a25c7fa4304e02a
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-04-11 10:23:27 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-04-21 22:18:24 +0000

    linuxkpi: Define `__GFP_THISNODE`
    
    It is used to force the NUMA node to allocate from. This flag is
    unimplemented for now because we don't have an implementation of
    `alloc_pages_node()` yet.
    
    The DRM TTM code started to use this flag in Linux 6.12.
    
    Reviewed by:    bz
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D56436
---
 sys/compat/linuxkpi/common/include/linux/gfp.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h
index af7cdb422fcb..e8380e326eda 100644
--- a/sys/compat/linuxkpi/common/include/linux/gfp.h
+++ b/sys/compat/linuxkpi/common/include/linux/gfp.h
@@ -58,7 +58,8 @@
 #define	__GFP_WAIT	M_WAITOK
 #define	__GFP_DMA32	(1U << 24) /* LinuxKPI only */
 #define	__GFP_NORETRY	(1U << 25) /* LinuxKPI only */
-#define	__GFP_BITS_SHIFT 26
+#define	__GFP_THISNODE	(1U << 26) /* Unimplemented */
+#define	__GFP_BITS_SHIFT	27
 #define	__GFP_BITS_MASK	((1 << __GFP_BITS_SHIFT) - 1)
 #define	__GFP_NOFAIL	M_WAITOK
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e7f9be.3811d.904e9f7>