[Intel-xe] [drm-xe:oak/drm-evictable-lru 8/11] drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:121:61: error: 'VMW_PL_SYSTEM' undeclared; did you mean 'TTM_PL_SYSTEM'?

kernel test robot lkp at intel.com
Fri Nov 3 21:33:45 UTC 2023


tree:   https://gitlab.freedesktop.org/drm/xe/kernel.git oak/drm-evictable-lru
head:   d1f59526925ae851c6abf77af8ae6f8c3cffeebd
commit: 5c7ab6e4b1aea6c20a00aeb0110f82696d5840e3 [8/11] drm: Initialize drm lru manager
config: loongarch-randconfig-002-20231104 (https://download.01.org/0day-ci/archive/20231104/202311040523.0e7IuFDX-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311040523.0e7IuFDX-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311040523.0e7IuFDX-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_init':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:121:61: error: 'VMW_PL_SYSTEM' undeclared (first use in this function); did you mean 'TTM_PL_SYSTEM'?
     121 |         ttm_resource_manager_set_lru_mgr(man, &drm->lru_mgr[VMW_PL_SYSTEM]);
         |                                                             ^~~~~~~~~~~~~
         |                                                             TTM_PL_SYSTEM
   drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:121:61: note: each undeclared identifier is reported only once for each function it appears in


vim +121 drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c

    92	
    93	/**
    94	 * amdgpu_preempt_mgr_init - init PREEMPT manager and DRM MM
    95	 *
    96	 * @adev: amdgpu_device pointer
    97	 *
    98	 * Allocate and initialize the GTT manager.
    99	 */
   100	int amdgpu_preempt_mgr_init(struct amdgpu_device *adev)
   101	{
   102		struct ttm_resource_manager *man = &adev->mman.preempt_mgr;
   103		struct drm_device *drm = adev_to_drm(adev);
   104		int ret;
   105	
   106		man->use_tt = true;
   107		man->func = &amdgpu_preempt_mgr_func;
   108	
   109		ttm_resource_manager_init(man, &adev->mman.bdev, (1 << 30));
   110	
   111		ret = device_create_file(adev->dev, &dev_attr_mem_info_preempt_used);
   112		if (ret) {
   113			DRM_ERROR("Failed to create device file mem_info_preempt_used\n");
   114			return ret;
   115		}
   116	
   117		ttm_set_driver_manager(&adev->mman.bdev, AMDGPU_PL_PREEMPT, man);
   118		ttm_resource_manager_set_used(man, true);
   119	
   120		drm_lru_mgr_init(&drm->lru_mgr[AMDGPU_PL_PREEMPT], (1 << 30), &drm->lru_lock);
 > 121		ttm_resource_manager_set_lru_mgr(man, &drm->lru_mgr[VMW_PL_SYSTEM]);
   122		return 0;
   123	}
   124	

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


More information about the Intel-xe mailing list