From: kernel test robot <lkp@intel.com>
To: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v3 2/3] drm/amd: Convert amdgpu to use suballocation helper.
Date: Fri, 24 Feb 2023 02:10:13 +0800 [thread overview]
Message-ID: <202302240233.19d88V2Y-lkp@intel.com> (raw)
In-Reply-To: <20230223142531.8446-3-thomas.hellstrom@linux.intel.com>
Hi Thomas,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Hellstr-m/drm-suballoc-Extract-amdgpu_sa-c-as-generic-suballocation-helper/20230223-225547
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
patch link: https://lore.kernel.org/r/20230223142531.8446-3-thomas.hellstrom%40linux.intel.com
patch subject: [PATCH v3 2/3] drm/amd: Convert amdgpu to use suballocation helper.
config: m68k-randconfig-r005-20230222 (https://download.01.org/0day-ci/archive/20230224/202302240233.19d88V2Y-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/566352490ef7a031bd23f9d6524057fd7b31330c
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Thomas-Hellstr-m/drm-suballoc-Extract-amdgpu_sa-c-as-generic-suballocation-helper/20230223-225547
git checkout 566352490ef7a031bd23f9d6524057fd7b31330c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302240233.19d88V2Y-lkp@intel.com/
All errors (new ones prefixed by >>):
m68k-linux-ld: drivers/gpu/drm/drm_suballoc.o: in function `drm_suballoc_try_alloc':
>> drivers/gpu/drm/drm_suballoc.c:168: undefined reference to `__umoddi3'
m68k-linux-ld: drivers/gpu/drm/drm_suballoc.o: in function `__drm_suballoc_event':
drivers/gpu/drm/drm_suballoc.c:196: undefined reference to `__umoddi3'
m68k-linux-ld: drivers/media/i2c/tc358746.o: in function `tc358746_setup_mclk_provider':
drivers/media/i2c/tc358746.c:1257: undefined reference to `devm_clk_hw_register'
m68k-linux-ld: drivers/media/i2c/tc358746.c:1263: undefined reference to `of_clk_hw_simple_get'
m68k-linux-ld: drivers/media/i2c/tc358746.c:1263: undefined reference to `devm_of_clk_add_hw_provider'
vim +168 drivers/gpu/drm/drm_suballoc.c
d550f4b8345a4b Maarten Lankhorst 2023-02-23 159
d550f4b8345a4b Maarten Lankhorst 2023-02-23 160 static bool drm_suballoc_try_alloc(struct drm_suballoc_manager *sa_manager,
d550f4b8345a4b Maarten Lankhorst 2023-02-23 161 struct drm_suballoc *sa,
d550f4b8345a4b Maarten Lankhorst 2023-02-23 162 u64 size, u64 align)
d550f4b8345a4b Maarten Lankhorst 2023-02-23 163 {
d550f4b8345a4b Maarten Lankhorst 2023-02-23 164 u64 soffset, eoffset, wasted;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 165
d550f4b8345a4b Maarten Lankhorst 2023-02-23 166 soffset = drm_suballoc_hole_soffset(sa_manager);
d550f4b8345a4b Maarten Lankhorst 2023-02-23 167 eoffset = drm_suballoc_hole_eoffset(sa_manager);
d550f4b8345a4b Maarten Lankhorst 2023-02-23 @168 wasted = (align - (soffset % align)) % align;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 169
d550f4b8345a4b Maarten Lankhorst 2023-02-23 170 if ((eoffset - soffset) >= (size + wasted)) {
d550f4b8345a4b Maarten Lankhorst 2023-02-23 171 soffset += wasted;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 172
d550f4b8345a4b Maarten Lankhorst 2023-02-23 173 sa->manager = sa_manager;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 174 sa->soffset = soffset;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 175 sa->eoffset = soffset + size;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 176 list_add(&sa->olist, sa_manager->hole);
d550f4b8345a4b Maarten Lankhorst 2023-02-23 177 INIT_LIST_HEAD(&sa->flist);
d550f4b8345a4b Maarten Lankhorst 2023-02-23 178 sa_manager->hole = &sa->olist;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 179 return true;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 180 }
d550f4b8345a4b Maarten Lankhorst 2023-02-23 181 return false;
d550f4b8345a4b Maarten Lankhorst 2023-02-23 182 }
d550f4b8345a4b Maarten Lankhorst 2023-02-23 183
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-02-23 18:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-23 14:25 [Intel-gfx] [PATCH v3 0/3] drm/helpers: Make the suballocation manager drm generic Thomas Hellström
2023-02-23 14:25 ` Thomas Hellström
2023-02-23 14:25 ` [Intel-xe] " Thomas Hellström
2023-02-23 14:25 ` [Intel-gfx] [PATCH v3 1/3] drm/suballoc: Extract amdgpu_sa.c as generic suballocation helper Thomas Hellström
2023-02-23 14:25 ` Thomas Hellström
2023-02-23 14:25 ` [Intel-xe] " Thomas Hellström
2023-02-23 14:25 ` [Intel-gfx] [PATCH v3 2/3] drm/amd: Convert amdgpu to use " Thomas Hellström
2023-02-23 14:25 ` Thomas Hellström
2023-02-23 14:25 ` [Intel-xe] " Thomas Hellström
2023-02-23 18:10 ` kernel test robot [this message]
2023-02-23 19:22 ` kernel test robot
2023-02-23 19:43 ` kernel test robot
2023-02-23 14:25 ` [Intel-gfx] [PATCH v3 3/3] drm/radeon: Use the drm suballocation manager implementation Thomas Hellström
2023-02-23 14:25 ` Thomas Hellström
2023-02-23 14:25 ` [Intel-xe] " Thomas Hellström
2023-02-23 16:44 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/helpers: Make the suballocation manager drm generic Patchwork
2023-02-23 17:11 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
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=202302240233.19d88V2Y-lkp@intel.com \
--to=lkp@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 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.