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 84A05CCD18E for ; Fri, 10 Oct 2025 15:10:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1456510EC49; Fri, 10 Oct 2025 15:10:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="k5IVefFh"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1448110EC4B; Fri, 10 Oct 2025 15:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760109054; x=1791645054; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3bq+lll4selOwzI1mzp5ZL0CdqpCdCpTxCSOWeZ+iEU=; b=k5IVefFhDljtKUomTgMS8VuHmYHKNhT6Ud+wZvyeNlJiiwudDtuE8LeQ PGmV0J4B6sUlU4Gwqp0QoRQBy2IYXa+zJC21cnbeRlUXpxebvipdqmq5s ilg25cJ21ue0EE70GpDpWMA6qMKpGkfPRSpscRwyCVkDdgP+DbOl74Zpj nB/nV3YqEXzV2uaijpo8ksiUdzGx5DVR8UGJ+r+uHlHqXe3BEB3swJUgs bW/oi11dHHk7O8BB8Sb2F/tDrVzsT0r0/dq5aoUnfRy6wy6paey5QP0nK mYSG4gLbjXRQsNUNOG/PIh+UpXUJj/eeF1eKd3ysvJe0YEzXxQOXmqmBQ Q==; X-CSE-ConnectionGUID: mK7jiFAiTp6hHygGJJnXlw== X-CSE-MsgGUID: A0IAWMr4RY2wyIQiGAWhLQ== X-IronPort-AV: E=McAfee;i="6800,10657,11578"; a="61538623" X-IronPort-AV: E=Sophos;i="6.19,219,1754982000"; d="scan'208";a="61538623" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2025 08:10:53 -0700 X-CSE-ConnectionGUID: 8AIej7TsQ7a7dKDVguZulg== X-CSE-MsgGUID: XkdFaoXqRjKmjW8GIcRLPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,219,1754982000"; d="scan'208";a="181425613" Received: from lkp-server01.sh.intel.com (HELO 6a630e8620ab) ([10.239.97.150]) by fmviesa009.fm.intel.com with ESMTP; 10 Oct 2025 08:10:52 -0700 Received: from kbuild by 6a630e8620ab with local (Exim 4.96) (envelope-from ) id 1v7Eld-0002t1-1w; Fri, 10 Oct 2025 15:10:49 +0000 Date: Fri, 10 Oct 2025 23:10:32 +0800 From: kernel test robot To: Tvrtko Ursulin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: oe-kbuild-all@lists.linux.dev, kernel-dev@igalia.com, Tvrtko Ursulin , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , Thomas =?iso-8859-1?Q?Hellstr=F6m?= Subject: Re: [PATCH v3 2/5] drm/ttm: Replace multiple booleans with flags in pool init Message-ID: <202510102220.inEYOJoK-lkp@intel.com> References: <20251008115314.55438-3-tvrtko.ursulin@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251008115314.55438-3-tvrtko.ursulin@igalia.com> X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Hi Tvrtko, kernel test robot noticed the following build errors: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-i915/for-linux-next drm-i915/for-linux-next-fixes drm-xe/drm-xe-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.17 next-20251009] [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/Tvrtko-Ursulin/drm-ttm-Add-getter-for-some-pool-properties/20251010-052711 base: git://anongit.freedesktop.org/drm/drm drm-next patch link: https://lore.kernel.org/r/20251008115314.55438-3-tvrtko.ursulin%40igalia.com patch subject: [PATCH v3 2/5] drm/ttm: Replace multiple booleans with flags in pool init config: sh-randconfig-002-20251010 (https://download.01.org/0day-ci/archive/20251010/202510102220.inEYOJoK-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251010/202510102220.inEYOJoK-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/202510102220.inEYOJoK-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/gpu/drm/ttm/tests/ttm_pool_test.c: In function 'ttm_pool_alloc_basic': >> drivers/gpu/drm/ttm/tests/ttm_pool_test.c:167:21: error: implicit declaration of function 'ttm_pool_uses_dma_alloc'; did you mean 'ttm_pool_restore_and_alloc'? [-Wimplicit-function-declaration] 167 | if (ttm_pool_uses_dma_alloc(pool)) { | ^~~~~~~~~~~~~~~~~~~~~~~ | ttm_pool_restore_and_alloc -- drivers/gpu/drm/ttm/tests/ttm_device_test.c: In function 'ttm_device_init_pools': >> drivers/gpu/drm/ttm/tests/ttm_device_test.c:177:37: error: implicit declaration of function 'ttm_pool_uses_dma_alloc'; did you mean 'ttm_pool_restore_and_alloc'? [-Wimplicit-function-declaration] 177 | if (ttm_pool_uses_dma_alloc(pool)) | ^~~~~~~~~~~~~~~~~~~~~~~ | ttm_pool_restore_and_alloc vim +167 drivers/gpu/drm/ttm/tests/ttm_pool_test.c 130 131 KUNIT_ARRAY_PARAM(ttm_pool_alloc_basic, ttm_pool_basic_cases, 132 ttm_pool_alloc_case_desc); 133 134 static void ttm_pool_alloc_basic(struct kunit *test) 135 { 136 struct ttm_pool_test_priv *priv = test->priv; 137 struct ttm_test_devices *devs = priv->devs; 138 const struct ttm_pool_test_case *params = test->param_value; 139 struct ttm_tt *tt; 140 struct ttm_pool *pool; 141 struct page *fst_page, *last_page; 142 enum ttm_caching caching = ttm_uncached; 143 unsigned int expected_num_pages = 1 << params->order; 144 size_t size = expected_num_pages * PAGE_SIZE; 145 int err; 146 147 tt = ttm_tt_kunit_init(test, 0, caching, size); 148 KUNIT_ASSERT_NOT_NULL(test, tt); 149 150 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); 151 KUNIT_ASSERT_NOT_NULL(test, pool); 152 153 ttm_pool_init(pool, devs->dev, NUMA_NO_NODE, params->flags); 154 155 KUNIT_ASSERT_PTR_EQ(test, pool->dev, devs->dev); 156 KUNIT_ASSERT_EQ(test, pool->nid, NUMA_NO_NODE); 157 KUNIT_ASSERT_EQ(test, pool->flags, params->flags); 158 159 err = ttm_pool_alloc(pool, tt, &simple_ctx); 160 KUNIT_ASSERT_EQ(test, err, 0); 161 KUNIT_ASSERT_EQ(test, tt->num_pages, expected_num_pages); 162 163 fst_page = tt->pages[0]; 164 last_page = tt->pages[tt->num_pages - 1]; 165 166 if (params->order <= MAX_PAGE_ORDER) { > 167 if (ttm_pool_uses_dma_alloc(pool)) { 168 KUNIT_ASSERT_NOT_NULL(test, (void *)fst_page->private); 169 KUNIT_ASSERT_NOT_NULL(test, (void *)last_page->private); 170 } else { 171 KUNIT_ASSERT_EQ(test, fst_page->private, params->order); 172 } 173 } else { 174 if (ttm_pool_uses_dma_alloc(pool)) { 175 KUNIT_ASSERT_NOT_NULL(test, (void *)fst_page->private); 176 KUNIT_ASSERT_NULL(test, (void *)last_page->private); 177 } else { 178 /* 179 * We expect to alloc one big block, followed by 180 * order 0 blocks 181 */ 182 KUNIT_ASSERT_EQ(test, fst_page->private, 183 min_t(unsigned int, MAX_PAGE_ORDER, 184 params->order)); 185 KUNIT_ASSERT_EQ(test, last_page->private, 0); 186 } 187 } 188 189 ttm_pool_free(pool, tt); 190 ttm_tt_fini(tt); 191 ttm_pool_fini(pool); 192 } 193 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki