[Intel-gfx] [PATCH v9] drm/i915: Modify error handler for per engine hang recovery

kbuild test robot lkp at intel.com
Tue Jun 6 13:03:24 UTC 2017


Hi Michel,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v4.12-rc4 next-20170606]
[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/Michel-Thierry/drm-i915-Modify-error-handler-for-per-engine-hang-recovery/20170606-203011
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x014-201723 (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 >>):

   drivers/gpu/drm/i915/intel_uncore.c: In function 'intel_has_reset_engine':
>> drivers/gpu/drm/i915/intel_uncore.c:1730:14: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare]
      i915.reset >= 2);
                 ^~

vim +/2 +1730 drivers/gpu/drm/i915/intel_uncore.c

  1714		return ret;
  1715	}
  1716	
  1717	bool intel_has_gpu_reset(struct drm_i915_private *dev_priv)
  1718	{
  1719		return intel_get_gpu_reset(dev_priv) != NULL;
  1720	}
  1721	
  1722	/*
  1723	 * When GuC submission is enabled, GuC manages ELSP and can initiate the
  1724	 * engine reset too. For now, fall back to full GPU reset if it is enabled.
  1725	 */
  1726	bool intel_has_reset_engine(struct drm_i915_private *dev_priv)
  1727	{
  1728		return (dev_priv->info.has_reset_engine &&
  1729			!dev_priv->guc.execbuf_client &&
> 1730			i915.reset >= 2);
  1731	}
  1732	
  1733	int intel_guc_reset(struct drm_i915_private *dev_priv)
  1734	{
  1735		int ret;
  1736	
  1737		if (!HAS_GUC(dev_priv))
  1738			return -EINVAL;

---
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: 23065 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170606/eaeca33f/attachment-0001.gz>


More information about the Intel-gfx mailing list