Hi Shawn,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v4.8-rc7 next-20160916]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for 
convenience) to record what (public, well-known) commit your patch series was 
built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    
https://github.com/0day-ci/linux/commits/Lee-Shawn-C/drm-i915-Restore-PWM_GRANULARITY-after-resume/20160919-180644
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x008-201638 (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 drivers/gpu/drm/i915/intel_drv.h:32:0,
                    from drivers/gpu/drm/i915/intel_panel.c:36:
   drivers/gpu/drm/i915/intel_panel.c: In function 'lpt_enable_backlight':
>> drivers/gpu/drm/i915/intel_panel.c:874:78: warning: left shift count >= 
>> width of type [-Wshift-count-overflow]
      I915_WRITE(SOUTH_CHICKEN2, mul | 
(panel->backlight.pwm_alternate_increment << LPT_PWM_GRANULARITY));
                                                                                
 ^
   drivers/gpu/drm/i915/i915_drv.h:3735:83: note: in definition of macro 
'I915_WRITE'
    #define I915_WRITE(reg, val) dev_priv->uncore.funcs.mmio_writel(dev_priv, 
(reg), (val), true)
                                                                                
      ^~~

vim +874 drivers/gpu/drm/i915/intel_panel.c

   858                  pch_ctl1 |= BLM_PCH_POLARITY;
   859  
   860          /* After LPT, override is the default. */
   861          if (HAS_PCH_LPT(dev_priv))
   862                  pch_ctl1 |= BLM_PCH_OVERRIDE_ENABLE;
   863  
   864          I915_WRITE(BLC_PWM_PCH_CTL1, pch_ctl1);
   865          POSTING_READ(BLC_PWM_PCH_CTL1);
   866          I915_WRITE(BLC_PWM_PCH_CTL1, pch_ctl1 | BLM_PCH_PWM_ENABLE);
   867  
   868          /* This won't stick until the above enable. */
   869          intel_panel_actually_set_backlight(connector, 
panel->backlight.level);
   870  
   871          if (HAS_PCH_LPT(dev_priv)) {
   872                  mul = I915_READ(SOUTH_CHICKEN2);
   873                  mul &= ~LPT_PWM_GRANULARITY;
 > 874                  I915_WRITE(SOUTH_CHICKEN2, mul | 
 > (panel->backlight.pwm_alternate_increment << LPT_PWM_GRANULARITY));
   875          } else {
   876                  mul = I915_READ(SOUTH_CHICKEN1);
   877                  mul &= ~SPT_PWM_GRANULARITY;
   878                  I915_WRITE(SOUTH_CHICKEN1, mul | 
(panel->backlight.pwm_alternate_increment << SPT_PWM_GRANULARITY));
   879          }
   880  }
   881  
   882  static void pch_enable_backlight(struct intel_connector *connector)

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to