Re: [PATCH 1/4] drm/ttm: add page order in page pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Roger,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on next-20171122]
[cannot apply to v4.14]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Roger-He/drm-ttm-add-page-order-in-page-pool/20171124-032341
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/ttm/ttm_page_alloc.c: In function 'ttm_page_alloc_init':
>> drivers/gpu//drm/ttm/ttm_page_alloc.c:979:18: error: call to '__compiletime_assert_979' declared with attribute error: BUILD_BUG failed
   drivers/gpu//drm/ttm/ttm_page_alloc.c:983:20: error: call to '__compiletime_assert_983' declared with attribute error: BUILD_BUG failed

vim +/__compiletime_assert_979 +979 drivers/gpu//drm/ttm/ttm_page_alloc.c

   956	
   957	int ttm_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages)
   958	{
   959		int ret;
   960	
   961		WARN_ON(_manager);
   962	
   963		pr_info("Initializing pool allocator\n");
   964	
   965		_manager = kzalloc(sizeof(*_manager), GFP_KERNEL);
   966	
   967		ttm_page_pool_init_locked(&_manager->wc_pool, GFP_HIGHUSER, "wc", 0);
   968	
   969		ttm_page_pool_init_locked(&_manager->uc_pool, GFP_HIGHUSER, "uc", 0);
   970	
   971		ttm_page_pool_init_locked(&_manager->wc_pool_dma32,
   972					  GFP_USER | GFP_DMA32, "wc dma", 0);
   973	
   974		ttm_page_pool_init_locked(&_manager->uc_pool_dma32,
   975					  GFP_USER | GFP_DMA32, "uc dma", 0);
   976	
   977		ttm_page_pool_init_locked(&_manager->wc_pool_huge,
   978					  GFP_TRANSHUGE	& ~(__GFP_MOVABLE | __GFP_COMP),
 > 979					  "wc huge", HPAGE_PMD_ORDER);
   980	
   981		ttm_page_pool_init_locked(&_manager->uc_pool_huge,
   982					  GFP_TRANSHUGE	& ~(__GFP_MOVABLE | __GFP_COMP)
   983					  , "uc huge", HPAGE_PMD_ORDER);
   984	
   985		_manager->options.max_size = max_pages;
   986		_manager->options.small = SMALL_ALLOCATION;
   987		_manager->options.alloc_size = NUM_PAGES_TO_ALLOC;
   988	
   989		ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type,
   990					   &glob->kobj, "pool");
   991		if (unlikely(ret != 0)) {
   992			kobject_put(&_manager->kobj);
   993			_manager = NULL;
   994			return ret;
   995		}
   996	
   997		ttm_pool_mm_shrink_init(_manager);
   998	
   999		return 0;
  1000	}
  1001	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux