[Intel-gfx] [drm-tip:drm-tip 4/8] drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:200:45: error: 'struct ttm_range_mgr_node' has no member named 'tbo'
kernel test robot
lkp at intel.com
Tue Mar 29 20:09:51 UTC 2022
tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip
head: a8459e73b79b7c55405331f36fe8a48e1bad5c33
commit: 752f483905202334e91d2d5b87a3904df72aa147 [4/8] Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip
config: parisc-randconfig-r003-20220327 (https://download.01.org/0day-ci/archive/20220330/202203300408.sl8G1bQn-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.2.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
git remote add drm-tip git://anongit.freedesktop.org/drm/drm-tip
git fetch --no-tags drm-tip drm-tip
git checkout 752f483905202334e91d2d5b87a3904df72aa147
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c: In function 'amdgpu_gtt_mgr_recover':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:200:45: error: 'struct ttm_range_mgr_node' has no member named 'tbo'
200 | amdgpu_ttm_recover_gart(node->tbo);
| ^~
vim +200 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
bb990bb09235a3 Christian König 2016-09-09 182
a614b336f1c16d Christian König 2021-02-11 183 /**
a614b336f1c16d Christian König 2021-02-11 184 * amdgpu_gtt_mgr_recover - re-init gart
a614b336f1c16d Christian König 2021-02-11 185 *
1dd8b1b987fad9 Nirmoy Das 2022-01-07 186 * @mgr: amdgpu_gtt_mgr pointer
a614b336f1c16d Christian König 2021-02-11 187 *
a614b336f1c16d Christian König 2021-02-11 188 * Re-init the gart for each known BO in the GTT.
a614b336f1c16d Christian König 2021-02-11 189 */
1b08dfb889b2c5 Christian König 2022-01-18 190 void amdgpu_gtt_mgr_recover(struct amdgpu_gtt_mgr *mgr)
c1c7ce8f5687bb Christian König 2017-10-16 191 {
77ef271faee9c3 Christian König 2021-07-16 192 struct ttm_range_mgr_node *node;
c1c7ce8f5687bb Christian König 2017-10-16 193 struct drm_mm_node *mm_node;
1dd8b1b987fad9 Nirmoy Das 2022-01-07 194 struct amdgpu_device *adev;
c1c7ce8f5687bb Christian König 2017-10-16 195
19a1d9350be632 Nirmoy Das 2021-05-28 196 adev = container_of(mgr, typeof(*adev), mman.gtt_mgr);
c1c7ce8f5687bb Christian König 2017-10-16 197 spin_lock(&mgr->lock);
c1c7ce8f5687bb Christian König 2017-10-16 198 drm_mm_for_each_node(mm_node, &mgr->mm) {
77ef271faee9c3 Christian König 2021-07-16 199 node = container_of(mm_node, typeof(*node), mm_nodes[0]);
1b08dfb889b2c5 Christian König 2022-01-18 @200 amdgpu_ttm_recover_gart(node->tbo);
c1c7ce8f5687bb Christian König 2017-10-16 201 }
c1c7ce8f5687bb Christian König 2017-10-16 202 spin_unlock(&mgr->lock);
c1c7ce8f5687bb Christian König 2017-10-16 203
19a1d9350be632 Nirmoy Das 2021-05-28 204 amdgpu_gart_invalidate_tlb(adev);
c1c7ce8f5687bb Christian König 2017-10-16 205 }
c1c7ce8f5687bb Christian König 2017-10-16 206
:::::: The code at line 200 was first introduced by commit
:::::: 1b08dfb889b2c584b444538c9500af24ba0a6dc7 drm/amdgpu: remove gart.ready flag
:::::: TO: Christian König <christian.koenig at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the Intel-gfx
mailing list