From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 907B5E7E0DB for ; Mon, 9 Feb 2026 19:24:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9BC410E469; Mon, 9 Feb 2026 19:23:59 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="XMB4FAw0"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7D5C810E188; Mon, 9 Feb 2026 19:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770665038; x=1802201038; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6nuLVSOEgrXcCvXO6+OEZIe+6ktmKPWOCc/zYfPu12U=; b=XMB4FAw0ockSB1fR8EI2MS7PF7LpffHpriA/cB0eqyYOItp1LAq71PjJ cMtZ6xwkakLhjnCGq2adzaoMiDeYYzmqKIJiG6RqHcMaG+gkciFwqfuPw eSvDOEO/ZDrBBXvu23s9PjJqC18mwCG1Du5X0HjBP9LK7AiWvhrs84CSJ zlP3zcnlPzg4b5uLIQ15TGcXN51gDaS9hlr6IxPl2BtuFx11p0YlTxMrv NvXp6sNJ31tkprbQPXhMPx6TBNOqVAzYBfo/mcjmiIkZ7ociNdbO/e6Ci L38a/8xNQjb1U7HZdhAZDV7nuoovFgW0gX4IFwOL8PtXQtj3mQ0fvj9Ar w==; X-CSE-ConnectionGUID: kgUVBTmmSP21Rse38QA+BQ== X-CSE-MsgGUID: U4fFJjlOTFeJqekp9RCD9w== X-IronPort-AV: E=McAfee;i="6800,10657,11696"; a="70995393" X-IronPort-AV: E=Sophos;i="6.21,282,1763452800"; d="scan'208";a="70995393" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2026 11:23:57 -0800 X-CSE-ConnectionGUID: +yBxpWfVQ6a/oh5e3aKwsA== X-CSE-MsgGUID: FnSbfczqQnSIDYg5SXMEcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,282,1763452800"; d="scan'208";a="210817340" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 09 Feb 2026 11:23:54 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vpWrQ-00000000oGa-2xCQ; Mon, 09 Feb 2026 19:23:52 +0000 Date: Tue, 10 Feb 2026 03:23:43 +0800 From: kernel test robot To: Arunpravin Paneer Selvam , matthew.auld@intel.com, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: oe-kbuild-all@lists.linux.dev, alexander.deucher@amd.com, Arunpravin Paneer Selvam Subject: Re: [PATCH v3 2/2] drm/buddy: Add KUnit test for offset-aligned allocations Message-ID: <202602100334.WD4wuI8R-lkp@intel.com> References: <20260209083051.13376-2-Arunpravin.PaneerSelvam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260209083051.13376-2-Arunpravin.PaneerSelvam@amd.com> X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Hi Arunpravin, kernel test robot noticed the following build errors: [auto build test ERROR on 9d757669b2b22cd224c334924f798393ffca537c] url: https://github.com/intel-lab-lkp/linux/commits/Arunpravin-Paneer-Selvam/drm-buddy-Add-KUnit-test-for-offset-aligned-allocations/20260209-163512 base: 9d757669b2b22cd224c334924f798393ffca537c patch link: https://lore.kernel.org/r/20260209083051.13376-2-Arunpravin.PaneerSelvam%40amd.com patch subject: [PATCH v3 2/2] drm/buddy: Add KUnit test for offset-aligned allocations config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260210/202602100334.WD4wuI8R-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100334.WD4wuI8R-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202602100334.WD4wuI8R-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/gpu/tests/gpu_buddy_test.c: In function 'gpu_test_buddy_subtree_offset_alignment_stress': >> drivers/gpu/tests/gpu_buddy_test.c:46:49: error: macro 'KUNIT_ASSERT_FALSE' passed 3 arguments, but takes just 2 46 | "buddy_init failed\n"); | ^ In file included from drivers/gpu/tests/gpu_buddy_test.c:7: include/kunit/test.h:1390:9: note: macro 'KUNIT_ASSERT_FALSE' defined here 1390 | #define KUNIT_ASSERT_FALSE(test, condition) \ | ^~~~~~~~~~~~~~~~~~ >> drivers/gpu/tests/gpu_buddy_test.c:45:9: error: 'KUNIT_ASSERT_FALSE' undeclared (first use in this function); did you mean 'KUNIT_ASSERTION'? 45 | KUNIT_ASSERT_FALSE(test, gpu_buddy_init(&mm, mm_size, SZ_4K), | ^~~~~~~~~~~~~~~~~~ | KUNIT_ASSERTION drivers/gpu/tests/gpu_buddy_test.c:45:9: note: each undeclared identifier is reported only once for each function it appears in vim +/KUNIT_ASSERT_FALSE +46 drivers/gpu/tests/gpu_buddy_test.c 23 24 static void gpu_test_buddy_subtree_offset_alignment_stress(struct kunit *test) 25 { 26 struct gpu_buddy_block *block; 27 struct rb_node *node = NULL; 28 const u64 mm_size = SZ_2M; 29 const u64 alignments[] = { 30 SZ_1M, 31 SZ_512K, 32 SZ_256K, 33 SZ_128K, 34 SZ_64K, 35 SZ_32K, 36 SZ_16K, 37 SZ_8K, 38 }; 39 40 struct list_head allocated[ARRAY_SIZE(alignments)]; 41 unsigned int i, order, max_subtree_align = 0; 42 struct gpu_buddy mm; 43 int ret, tree; 44 > 45 KUNIT_ASSERT_FALSE(test, gpu_buddy_init(&mm, mm_size, SZ_4K), > 46 "buddy_init failed\n"); 47 48 for (i = 0; i < ARRAY_SIZE(allocated); i++) 49 INIT_LIST_HEAD(&allocated[i]); 50 51 /* 52 * Exercise subtree_max_alignment tracking by allocating blocks with descending 53 * alignment constraints and freeing them in reverse order. This verifies that 54 * free-tree augmentation correctly propagates the maximum offset alignment 55 * present in each subtree at every stage. 56 */ 57 58 for (i = 0; i < ARRAY_SIZE(alignments); i++) { 59 struct gpu_buddy_block *root = NULL; 60 unsigned int expected; 61 u64 align; 62 63 align = alignments[i]; 64 expected = ilog2(align) - 1; 65 66 for (;;) { 67 ret = gpu_buddy_alloc_blocks(&mm, 68 0, mm_size, 69 SZ_4K, align, 70 &allocated[i], 71 0); 72 if (ret) 73 break; 74 75 block = list_last_entry(&allocated[i], 76 struct gpu_buddy_block, 77 link); 78 KUNIT_EXPECT_EQ(test, gpu_buddy_block_offset(block) & (align - 1), 0ULL); 79 } 80 81 for (order = mm.max_order + 1; order-- > 0 && !root; ) { 82 for (tree = 0; tree < 2; tree++) { 83 node = mm.free_trees[tree][order].rb_node; 84 if (node) { 85 root = container_of(node, 86 struct gpu_buddy_block, 87 rb); 88 break; 89 } 90 } 91 } 92 93 KUNIT_ASSERT_NOT_NULL(test, root); 94 KUNIT_EXPECT_EQ(test, root->subtree_max_alignment, expected); 95 } 96 97 for (i = ARRAY_SIZE(alignments); i-- > 0; ) { 98 gpu_buddy_free_list(&mm, &allocated[i], 0); 99 100 for (order = 0; order <= mm.max_order; order++) { 101 for (tree = 0; tree < 2; tree++) { 102 node = mm.free_trees[tree][order].rb_node; 103 if (!node) 104 continue; 105 106 block = container_of(node, struct gpu_buddy_block, rb); 107 max_subtree_align = max(max_subtree_align, block->subtree_max_alignment); 108 } 109 } 110 111 KUNIT_EXPECT_GE(test, max_subtree_align, ilog2(alignments[i])); 112 } 113 114 gpu_buddy_fini(&mm); 115 } 116 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki