All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luigi Rizzo <lrizzo@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC: DMA_PMD 09/22] iommu/dma: Add DMA_PMD arena allocator
Date: Thu, 8 Oct 2026 19:25:54 +0800	[thread overview]
Message-ID: <202610081920.PAsvlocm-lkp@intel.com> (raw)
In-Reply-To: <20261003212241.3432303-10-lrizzo@google.com>

Hi Luigi,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on tnguy-next-queue/dev-queue tnguy-net-queue/dev-queue linus/master v7.3-rc6 next-20261006]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Luigi-Rizzo/iommu-dma-introduce-CONFIG_DMA_PMD-and-metadata-table/20261003-212220
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20261003212241.3432303-10-lrizzo%40google.com
patch subject: [RFC: DMA_PMD 09/22] iommu/dma: Add DMA_PMD arena allocator
config: x86_64-randconfig-1007-20261008 (https://download.01.org/0day-ci/archive/20261008/202610081920.PAsvlocm-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261008/202610081920.PAsvlocm-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610081920.PAsvlocm-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/iommu/dma-pmd-kunit.c: In function 'test_arena_alloc_and_free':
   drivers/iommu/dma-pmd-kunit.c:171:32: error: 'struct device' has no member named 'numa_node'
     171 |         struct device dev = { .numa_node = NUMA_NO_NODE };
         |                                ^~~~~~~~~
   In file included from include/linux/nodemask.h:93,
                    from include/linux/numa.h:6,
                    from include/linux/cpumask.h:15,
                    from arch/x86/include/asm/paravirt.h:19,
                    from arch/x86/include/asm/irqflags.h:100,
                    from include/linux/irqflags.h:18,
                    from include/linux/spinlock.h:59,
                    from include/linux/kref.h:16,
                    from include/kunit/test.h:22,
                    from drivers/iommu/dma-pmd-kunit.c:5:
   include/linux/nodemask_types.h:15:25: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      15 | #define NUMA_NO_NODE    (-1)
         |                         ^
   drivers/iommu/dma-pmd-kunit.c:171:44: note: in expansion of macro 'NUMA_NO_NODE'
     171 |         struct device dev = { .numa_node = NUMA_NO_NODE };
         |                                            ^~~~~~~~~~~~
   include/linux/nodemask_types.h:15:25: note: (near initialization for 'dev.kobj.name')
      15 | #define NUMA_NO_NODE    (-1)
         |                         ^
   drivers/iommu/dma-pmd-kunit.c:171:44: note: in expansion of macro 'NUMA_NO_NODE'
     171 |         struct device dev = { .numa_node = NUMA_NO_NODE };
         |                                            ^~~~~~~~~~~~
>> drivers/iommu/dma-pmd-kunit.c:171:29: warning: missing braces around initializer [-Wmissing-braces]
     171 |         struct device dev = { .numa_node = NUMA_NO_NODE };
         |                             ^


vim +171 drivers/iommu/dma-pmd-kunit.c

   168	
   169	static void test_arena_alloc_and_free(struct kunit *test)
   170	{
 > 171		struct device dev = { .numa_node = NUMA_NO_NODE };
   172		void *v1, *v2, *v3, *vl1;
   173		dma_addr_t d1, d2, d3, dl1;
   174	
   175		KUNIT_EXPECT_NULL(test,
   176				  dma_pmd_arena_alloc(NULL, SZ_4K, &d1, NUMA_NO_NODE));
   177	
   178		v1 = dma_pmd_arena_alloc(&dev, SZ_64K, &d1, NUMA_NO_NODE);
   179		KUNIT_ASSERT_NOT_NULL(test, v1);
   180		v2 = dma_pmd_arena_alloc(&dev, SZ_64K, &d2, NUMA_NO_NODE);
   181		KUNIT_ASSERT_NOT_NULL(test, v2);
   182		KUNIT_EXPECT_PTR_EQ(test, v2, v1 + SZ_64K);
   183		KUNIT_EXPECT_EQ(test, d2, d1 + SZ_64K);
   184	
   185		/* Freeing v1 unreserves [0, 64K); next 64K alloc reuses it. */
   186		KUNIT_EXPECT_TRUE(test, dma_pmd_arena_free(&dev, SZ_64K, v1, d1));
   187		v3 = dma_pmd_arena_alloc(&dev, SZ_64K, &d3, NUMA_NO_NODE);
   188		KUNIT_EXPECT_PTR_EQ(test, v3, v1);
   189		KUNIT_EXPECT_EQ(test, d3, d1);
   190	
   191		/*
   192		 * Allocate 3MB (spans 2 contiguous fully_empty slots in ARENA_REGION);
   193		 * the trailing 1MB in the second slot is marked partial_empty and can
   194		 * satisfy a <= 1MB allocation before both are freed.
   195		 */
   196		vl1 = dma_pmd_arena_alloc(&dev, SZ_2M + SZ_1M, &dl1, NUMA_NO_NODE);
   197		KUNIT_ASSERT_NOT_NULL(test, vl1);
   198		KUNIT_EXPECT_TRUE(test, dma_pmd_arena_free(&dev, SZ_2M + SZ_1M, vl1, dl1));
   199		KUNIT_EXPECT_TRUE(test, dma_pmd_arena_free(&dev, SZ_64K, v2, d2));
   200		KUNIT_EXPECT_TRUE(test, dma_pmd_arena_free(&dev, SZ_64K, v3, d3));
   201	}
   202	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2026-10-08 11:26 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03 21:22 [RFC: DMA_PMD 00/22] DMA_PMD: PMD_SIZE-backed IO buffer pools Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 01/22] iommu/dma: introduce CONFIG_DMA_PMD and metadata table Luigi Rizzo
2026-10-03 21:44   ` Randy Dunlap
2026-10-04  9:14     ` Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 02/22] iommu/dma: add DMA_PMD pool lifecycle and page recycle hook Luigi Rizzo
2026-10-10  2:59   ` kernel test robot
2026-10-03 21:22 ` [RFC: DMA_PMD 03/22] mm: Add split_page_compound() Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 04/22] iommu/dma: add DMA_PMD pool block allocation Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 05/22] iommu/dma: Global cap and shrinker for DMA_PMD pool memory Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 06/22] iommu/dma: reserve a per-domain IOVA window for DMA_PMD pages Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 07/22] iommu/dma: release DMA_PMD domain mappings on domain teardown Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 08/22] iommu/dma: use per-domain IOVA window to map DMA_PMD memory Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 09/22] iommu/dma: Add DMA_PMD arena allocator Luigi Rizzo
2026-10-08 11:25   ` kernel test robot [this message]
2026-10-03 21:22 ` [RFC: DMA_PMD 10/22] driver core: Add per-device dma_pmd_* sysfs attributes Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 11/22] dma-mapping: Use DMA_PMD arena for dma_alloc_attrs() Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 12/22] net/core: Use per-CPU DMA_PMD pools for skb_page_frag_refill() Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 13/22] net/core: Use DMA_PMD for page_pool memory Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 14/22] iommu/dma: Support decrypted and pinned DMA_PMD pages Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 15/22] iommu/dma: Add background page scrubber for DMA_PMD pools Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 16/22] iommu/dma: Add per-NUMA-node PMD page reservoir Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 17/22] net/gve: Use DMA_PMD memory for RX buffers Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 18/22] net/gve: Use DMA_PMD memory for tx header bounce buffers Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 19/22] net/mlx5e: " Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 20/22] net/idpf: " Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 21/22] net/bnxt: " Luigi Rizzo
2026-10-03 21:22 ` [RFC: DMA_PMD 22/22] iommu/dma: Add DMA_PMD statistics and debugfs Luigi Rizzo
2026-10-11  9:02 ` [RFC: DMA_PMD 00/22] DMA_PMD: PMD_SIZE-backed IO buffer pools Pranjal Shrivastava
2026-10-12 13:51 ` David Hildenbrand (Arm)
2026-10-12 14:45   ` Luigi Rizzo
2026-10-12 19:43     ` David Hildenbrand (Arm)
2026-10-13 10:42       ` Robin Murphy
2026-10-14 10:47         ` David Hildenbrand (Arm)
2026-10-14 11:05           ` Luigi Rizzo
2026-10-12 14:49   ` Mostafa Saleh
2026-10-12 15:02     ` Luigi Rizzo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610081920.PAsvlocm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=lrizzo@google.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.