[Intel-gfx] [PATCH] drm/i915: Replace some more busy waits with normal ones

kbuild test robot lkp at intel.com
Wed Mar 23 14:58:54 UTC 2016


Hi Tvrtko,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v4.5 next-20160323]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Tvrtko-Ursulin/drm-i915-Replace-some-more-busy-waits-with-normal-ones/20160323-224126
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x000-201612 (attached as .config)
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/list.h:4,
                    from include/linux/dmi.h:4,
                    from drivers/gpu/drm/i915/intel_display.c:27:
   drivers/gpu/drm/i915/intel_display.c: In function 'lpt_reset_fdi_mphy':
   drivers/gpu/drm/i915/intel_display.c:8386:6: error: implicit declaration of function 'wait_for_us' [-Werror=implicit-function-declaration]
     if (wait_for_us(I915_READ(SOUTH_CHICKEN2) &
         ^
   include/linux/compiler.h:147:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^
>> drivers/gpu/drm/i915/intel_display.c:8386:2: note: in expansion of macro 'if'
     if (wait_for_us(I915_READ(SOUTH_CHICKEN2) &
     ^
   cc1: some warnings being treated as errors

vim +/if +8386 drivers/gpu/drm/i915/intel_display.c

  8370			I915_WRITE(PCH_DREF_CONTROL, val);
  8371			POSTING_READ(PCH_DREF_CONTROL);
  8372			udelay(200);
  8373		}
  8374	
  8375		BUG_ON(val != final);
  8376	}
  8377	
  8378	static void lpt_reset_fdi_mphy(struct drm_i915_private *dev_priv)
  8379	{
  8380		uint32_t tmp;
  8381	
  8382		tmp = I915_READ(SOUTH_CHICKEN2);
  8383		tmp |= FDI_MPHY_IOSFSB_RESET_CTL;
  8384		I915_WRITE(SOUTH_CHICKEN2, tmp);
  8385	
> 8386		if (wait_for_us(I915_READ(SOUTH_CHICKEN2) &
  8387				FDI_MPHY_IOSFSB_RESET_STATUS, 100))
  8388			DRM_ERROR("FDI mPHY reset assert timeout\n");
  8389	
  8390		tmp = I915_READ(SOUTH_CHICKEN2);
  8391		tmp &= ~FDI_MPHY_IOSFSB_RESET_CTL;
  8392		I915_WRITE(SOUTH_CHICKEN2, tmp);
  8393	
  8394		if (wait_for_us((I915_READ(SOUTH_CHICKEN2) &

---
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/octet-stream
Size: 33925 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160323/dd36dc20/attachment-0001.obj>


More information about the Intel-gfx mailing list