[Intel-gfx] [PATCH] drm/i915: Don't mark an execlists context-switch when idle

kbuild test robot lkp at intel.com
Tue Apr 11 11:04:15 UTC 2017


Hi Chris,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on next-20170411]
[cannot apply to v4.11-rc6]
[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-Don-t-mark-an-execlists-context-switch-when-idle/20170411-183510
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x003-201715 (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 warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/sysrq.h:18,
                    from drivers/gpu/drm/i915/i915_irq.c:31:
   drivers/gpu/drm/i915/i915_irq.c: In function 'gen8_cs_irq_handler':
   drivers/gpu/drm/i915/i915_irq.c:1362:7: error: implicit declaration of function 'port_count' [-Werror=implicit-function-declaration]
      if (port_count(&engine->execlist_port[0])) {
          ^
   include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/i915_irq.c:1362:3: note: in expansion of macro 'if'
      if (port_count(&engine->execlist_port[0])) {
      ^~
   cc1: some warnings being treated as errors

vim +/if +1362 drivers/gpu/drm/i915/i915_irq.c

  1346	
  1347		if (gt_iir & (GT_BLT_CS_ERROR_INTERRUPT |
  1348			      GT_BSD_CS_ERROR_INTERRUPT |
  1349			      GT_RENDER_CS_MASTER_ERROR_INTERRUPT))
  1350			DRM_DEBUG("Command parser error, gt_iir 0x%08x\n", gt_iir);
  1351	
  1352		if (gt_iir & GT_PARITY_ERROR(dev_priv))
  1353			ivybridge_parity_error_irq_handler(dev_priv, gt_iir);
  1354	}
  1355	
  1356	static __always_inline void
  1357	gen8_cs_irq_handler(struct intel_engine_cs *engine, u32 iir, int test_shift)
  1358	{
  1359		bool tasklet = false;
  1360	
  1361		if (iir & (GT_CONTEXT_SWITCH_INTERRUPT << test_shift)) {
> 1362			if (port_count(&engine->execlist_port[0])) {
  1363				set_bit(ENGINE_IRQ_EXECLIST, &engine->irq_posted);
  1364				tasklet = true;
  1365			}
  1366		}
  1367	
  1368		if (iir & (GT_RENDER_USER_INTERRUPT << test_shift)) {
  1369			notify_ring(engine);
  1370			tasklet |= i915.enable_guc_submission;

---
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: 25878 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170411/446099e5/attachment-0001.gz>


More information about the Intel-gfx mailing list