From: kernel test robot <lkp@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: oe-kbuild-all@lists.linux.dev, kernel-dev@igalia.com,
"Tvrtko Ursulin" <tvrtko.ursulin@igalia.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH v3 2/5] drm/ttm: Replace multiple booleans with flags in pool init
Date: Fri, 10 Oct 2025 23:10:32 +0800 [thread overview]
Message-ID: <202510102220.inEYOJoK-lkp@intel.com> (raw)
In-Reply-To: <20251008115314.55438-3-tvrtko.ursulin@igalia.com>
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 <lkp@intel.com>
| 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
next prev parent reply other threads:[~2025-10-10 15:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 11:53 [PATCH v3 0/5] Improving the worst case TTM large allocation latency Tvrtko Ursulin
2025-10-08 11:53 ` [PATCH v3 1/5] drm/ttm: Add getter for some pool properties Tvrtko Ursulin
2025-10-08 11:53 ` [PATCH v3 2/5] drm/ttm: Replace multiple booleans with flags in pool init Tvrtko Ursulin
2025-10-10 15:10 ` kernel test robot [this message]
2025-10-08 11:53 ` [PATCH v3 3/5] drm/ttm: Replace multiple booleans with flags in device init Tvrtko Ursulin
2025-10-08 11:53 ` [PATCH v3 4/5] drm/ttm: Allow drivers to specify maximum beneficial TTM pool size Tvrtko Ursulin
2025-10-08 11:53 ` [PATCH v3 5/5] drm/amdgpu: Configure max beneficial TTM pool allocation order Tvrtko Ursulin
2025-10-08 23:18 ` Matthew Brost
2025-10-09 8:58 ` Tvrtko Ursulin
2025-10-10 14:14 ` Thomas Hellström
2025-10-13 7:03 ` Christian König
2025-10-08 12:35 ` [PATCH v3 0/5] Improving the worst case TTM large allocation latency Christian König
2025-10-08 13:50 ` Tvrtko Ursulin
2025-10-08 14:02 ` Christian König
2025-10-08 14:39 ` Thomas Hellström
2025-10-09 8:53 ` Tvrtko Ursulin
2025-10-10 14:11 ` Thomas Hellström
2025-10-10 14:18 ` Thomas Hellström
2025-10-11 8:00 ` Tvrtko Ursulin
2025-10-13 8:48 ` Thomas Hellström
2025-10-13 9:17 ` Tvrtko Ursulin
2025-10-13 9:23 ` Tvrtko Ursulin
2025-10-08 14:34 ` Matthew Auld
2025-10-09 8:41 ` Tvrtko Ursulin
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=202510102220.inEYOJoK-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-dev@igalia.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=thomas.hellstrom@linux.intel.com \
--cc=tvrtko.ursulin@igalia.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox