[Intel-gfx] [PATCH v2] drm/i915/guc: Exclude the upper end of the Global GTT for the GuC

kbuild test robot lkp at intel.com
Wed Dec 28 16:35:34 UTC 2016


Hi Chris,

[auto build test ERROR on drm-intel/for-linux-next]
[cannot apply to v4.10-rc1 next-20161224]
[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/Chris-Wilson/drm-i915-guc-Exclude-the-upper-end-of-the-Global-GTT-for-the-GuC/20161229-001059
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x007-201652 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/mmdebug.h:4:0,
                    from include/linux/gfp.h:4,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:26,
                    from drivers/gpu/drm/i915/i915_drv.c:30:
   drivers/gpu/drm/i915/intel_uc.h: In function 'guc_ggtt_offset':
>> drivers/gpu/drm/i915/intel_uc.h:207:13: error: implicit declaration of function 'range_overflows_t' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(range_overflows_t(u64, offset, vma->size, GUC_GGTT_TOP));
                ^
   include/linux/bug.h:45:63: note: in definition of macro 'BUILD_BUG_ON_INVALID'
    #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
                                                                  ^
>> drivers/gpu/drm/i915/intel_uc.h:207:2: note: in expansion of macro 'GEM_BUG_ON'
     GEM_BUG_ON(range_overflows_t(u64, offset, vma->size, GUC_GGTT_TOP));
     ^~~~~~~~~~
>> drivers/gpu/drm/i915/intel_uc.h:207:31: error: expected expression before 'u64'
     GEM_BUG_ON(range_overflows_t(u64, offset, vma->size, GUC_GGTT_TOP));
                                  ^
   include/linux/bug.h:45:63: note: in definition of macro 'BUILD_BUG_ON_INVALID'
    #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
                                                                  ^
>> drivers/gpu/drm/i915/intel_uc.h:207:2: note: in expansion of macro 'GEM_BUG_ON'
     GEM_BUG_ON(range_overflows_t(u64, offset, vma->size, GUC_GGTT_TOP));
     ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/range_overflows_t +207 drivers/gpu/drm/i915/intel_uc.h

   201	int i915_guc_log_control(struct drm_i915_private *dev_priv, u64 control_val);
   202	
   203	static inline u32 guc_ggtt_offset(struct i915_vma *vma)
   204	{
   205		u32 offset = i915_ggtt_offset(vma);
   206		GEM_BUG_ON(offset < GUC_WOPCM_TOP);
 > 207		GEM_BUG_ON(range_overflows_t(u64, offset, vma->size, GUC_GGTT_TOP));
   208		return offset;
   209	}
   210	

---
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: 25100 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20161229/6059d3c0/attachment-0001.gz>


More information about the Intel-gfx mailing list