Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
	matthew.brost@intel.com, thomas.hellstrom@linux.intel.com,
	dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH] drm/ttm: rename ttm_bo_put to _fini v2
Date: Thu, 17 Jul 2025 14:08:38 +0800	[thread overview]
Message-ID: <202507171307.fakdJF1K-lkp@intel.com> (raw)
In-Reply-To: <20250716121522.3340-1-christian.koenig@amd.com>

Hi Christian,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-xe/drm-xe-next]
[also build test ERROR on drm-exynos/exynos-drm-next next-20250716]
[cannot apply to linus/master v6.16-rc6]
[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/Christian-K-nig/drm-ttm-rename-ttm_bo_put-to-_fini-v2/20250716-201605
base:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link:    https://lore.kernel.org/r/20250716121522.3340-1-christian.koenig%40amd.com
patch subject: [PATCH] drm/ttm: rename ttm_bo_put to _fini v2
config: i386-buildonly-randconfig-002-20250717 (https://download.01.org/0day-ci/archive/20250717/202507171307.fakdJF1K-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250717/202507171307.fakdJF1K-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/202507171307.fakdJF1K-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c: In function 'ttm_bo_validate_swapout':
>> drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c:804:9: error: implicit declaration of function 'ttm_bo_put'; did you mean 'ttm_bo_pin'? [-Werror=implicit-function-declaration]
     804 |         ttm_bo_put(bo_big);
         |         ^~~~~~~~~~
         |         ttm_bo_pin
   cc1: some warnings being treated as errors


vim +804 drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c

8eda41dfc9b2f04 Karolina Stolarek 2024-06-12  759  
5fe3943385c987f Karolina Stolarek 2024-06-12  760  static void ttm_bo_validate_swapout(struct kunit *test)
5fe3943385c987f Karolina Stolarek 2024-06-12  761  {
5fe3943385c987f Karolina Stolarek 2024-06-12  762  	unsigned long size_big, size = ALIGN(BO_SIZE, PAGE_SIZE);
5fe3943385c987f Karolina Stolarek 2024-06-12  763  	enum ttm_bo_type bo_type = ttm_bo_type_device;
5fe3943385c987f Karolina Stolarek 2024-06-12  764  	struct ttm_buffer_object *bo_small, *bo_big;
5fe3943385c987f Karolina Stolarek 2024-06-12  765  	struct ttm_test_devices *priv = test->priv;
5fe3943385c987f Karolina Stolarek 2024-06-12  766  	struct ttm_operation_ctx ctx = { };
5fe3943385c987f Karolina Stolarek 2024-06-12  767  	struct ttm_placement *placement;
5fe3943385c987f Karolina Stolarek 2024-06-12  768  	u32 mem_type = TTM_PL_TT;
5fe3943385c987f Karolina Stolarek 2024-06-12  769  	struct ttm_place *place;
5fe3943385c987f Karolina Stolarek 2024-06-12  770  	struct sysinfo si;
5fe3943385c987f Karolina Stolarek 2024-06-12  771  	int err;
5fe3943385c987f Karolina Stolarek 2024-06-12  772  
5fe3943385c987f Karolina Stolarek 2024-06-12  773  	si_meminfo(&si);
5fe3943385c987f Karolina Stolarek 2024-06-12  774  	size_big = ALIGN(((u64)si.totalram * si.mem_unit / 2), PAGE_SIZE);
5fe3943385c987f Karolina Stolarek 2024-06-12  775  
5fe3943385c987f Karolina Stolarek 2024-06-12  776  	ttm_mock_manager_init(priv->ttm_dev, mem_type, size_big + size);
5fe3943385c987f Karolina Stolarek 2024-06-12  777  
5fe3943385c987f Karolina Stolarek 2024-06-12  778  	place = ttm_place_kunit_init(test, mem_type, 0);
5fe3943385c987f Karolina Stolarek 2024-06-12  779  	placement = ttm_placement_kunit_init(test, place, 1);
5fe3943385c987f Karolina Stolarek 2024-06-12  780  
5fe3943385c987f Karolina Stolarek 2024-06-12  781  	bo_small = kunit_kzalloc(test, sizeof(*bo_small), GFP_KERNEL);
5fe3943385c987f Karolina Stolarek 2024-06-12  782  	KUNIT_ASSERT_NOT_NULL(test, bo_small);
5fe3943385c987f Karolina Stolarek 2024-06-12  783  
5fe3943385c987f Karolina Stolarek 2024-06-12  784  	drm_gem_private_object_init(priv->drm, &bo_small->base, size);
5fe3943385c987f Karolina Stolarek 2024-06-12  785  
5fe3943385c987f Karolina Stolarek 2024-06-12  786  	err = ttm_bo_init_reserved(priv->ttm_dev, bo_small, bo_type, placement,
5fe3943385c987f Karolina Stolarek 2024-06-12  787  				   PAGE_SIZE, &ctx, NULL, NULL,
5fe3943385c987f Karolina Stolarek 2024-06-12  788  				   &dummy_ttm_bo_destroy);
5fe3943385c987f Karolina Stolarek 2024-06-12  789  	KUNIT_EXPECT_EQ(test, err, 0);
5fe3943385c987f Karolina Stolarek 2024-06-12  790  	dma_resv_unlock(bo_small->base.resv);
5fe3943385c987f Karolina Stolarek 2024-06-12  791  
5fe3943385c987f Karolina Stolarek 2024-06-12  792  	bo_big = ttm_bo_kunit_init(test, priv, size_big, NULL);
5fe3943385c987f Karolina Stolarek 2024-06-12  793  
5fe3943385c987f Karolina Stolarek 2024-06-12  794  	dma_resv_lock(bo_big->base.resv, NULL);
5fe3943385c987f Karolina Stolarek 2024-06-12  795  	err = ttm_bo_validate(bo_big, placement, &ctx);
5fe3943385c987f Karolina Stolarek 2024-06-12  796  	dma_resv_unlock(bo_big->base.resv);
5fe3943385c987f Karolina Stolarek 2024-06-12  797  
5fe3943385c987f Karolina Stolarek 2024-06-12  798  	KUNIT_EXPECT_EQ(test, err, 0);
5fe3943385c987f Karolina Stolarek 2024-06-12  799  	KUNIT_EXPECT_NOT_NULL(test, bo_big->resource);
5fe3943385c987f Karolina Stolarek 2024-06-12  800  	KUNIT_EXPECT_EQ(test, bo_big->resource->mem_type, mem_type);
5fe3943385c987f Karolina Stolarek 2024-06-12  801  	KUNIT_EXPECT_EQ(test, bo_small->resource->mem_type, TTM_PL_SYSTEM);
5fe3943385c987f Karolina Stolarek 2024-06-12  802  	KUNIT_EXPECT_TRUE(test, bo_small->ttm->page_flags & TTM_TT_FLAG_SWAPPED);
5fe3943385c987f Karolina Stolarek 2024-06-12  803  
5fe3943385c987f Karolina Stolarek 2024-06-12 @804  	ttm_bo_put(bo_big);
5fe3943385c987f Karolina Stolarek 2024-06-12  805  	ttm_bo_put(bo_small);
5fe3943385c987f Karolina Stolarek 2024-06-12  806  
5fe3943385c987f Karolina Stolarek 2024-06-12  807  	ttm_mock_manager_fini(priv->ttm_dev, mem_type);
5fe3943385c987f Karolina Stolarek 2024-06-12  808  }
5fe3943385c987f Karolina Stolarek 2024-06-12  809  

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

      parent reply	other threads:[~2025-07-17  6:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-16 12:15 [PATCH] drm/ttm: rename ttm_bo_put to _fini v2 Christian König
2025-07-16 16:56 ` ✗ CI.checkpatch: warning for " Patchwork
2025-07-16 16:57 ` ✓ CI.KUnit: success " Patchwork
2025-07-17  6:08 ` kernel test robot [this message]

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=202507171307.fakdJF1K-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ckoenig.leichtzumerken@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thomas.hellstrom@linux.intel.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