[radeon-alex:drm-next-4.21 136/142] drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:84: undefined reference to `amdgpu_amdkfd_unreserve_memory_limit'

kbuild test robot lkp at intel.com
Sat Dec 8 10:14:22 UTC 2018


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.21
head:   22666cc1481ae3814d9c7718418cc4a3aa7d90c3
commit: 611736d8447c0c48a172db0b968dddae60696a72 [136/142] drm/amdgpu: Add KFD VRAM limit checking
config: x86_64-randconfig-a0-12081604 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 611736d8447c0c48a172db0b968dddae60696a72
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_object.o: In function `amdgpu_bo_destroy':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:84: undefined reference to `amdgpu_amdkfd_unreserve_memory_limit'

vim +84 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

    74	
    75	static void amdgpu_bo_destroy(struct ttm_buffer_object *tbo)
    76	{
    77		struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev);
    78		struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo);
    79	
    80		if (bo->pin_count > 0)
    81			amdgpu_bo_subtract_pin_size(bo);
    82	
    83		if (bo->kfd_bo)
  > 84			amdgpu_amdkfd_unreserve_memory_limit(bo);
    85	
    86		amdgpu_bo_kunmap(bo);
    87	
    88		if (bo->gem_base.import_attach)
    89			drm_prime_gem_destroy(&bo->gem_base, bo->tbo.sg);
    90		drm_gem_object_release(&bo->gem_base);
    91		amdgpu_bo_unref(&bo->parent);
    92		if (!list_empty(&bo->shadow_list)) {
    93			mutex_lock(&adev->shadow_list_lock);
    94			list_del_init(&bo->shadow_list);
    95			mutex_unlock(&adev->shadow_list_lock);
    96		}
    97		kfree(bo->metadata);
    98		kfree(bo);
    99	}
   100	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32683 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181208/7302ea17/attachment-0001.gz>


More information about the dri-devel mailing list