Hi Mahesh,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on next-20170130]
[cannot apply to v4.10-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/Mahesh-Kumar/Enable-IPC-WM-related-WA-s/20170131-230708
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-rhel (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_pm.c: In function 
'skl_compute_memory_bandwidth_wm_wa':
>> drivers/gpu/drm/i915/intel_pm.c:4118:56: warning: argument to 'sizeof' in 
>> 'memcpy' call is the same expression as the destination; did you mean to 
>> dereference it? [-Wsizeof-pointer-memaccess]
     memcpy(mem_attr, &dev_priv->wm.skl_hw.mem_attr, sizeof(mem_attr));
                                                           ^

vim +4118 drivers/gpu/drm/i915/intel_pm.c

  4102                  mem_attr->mem_wa = WATERMARK_WA_NONE;
  4103                  return 0;
  4104          }
  4105  
  4106          if (!memdev_info->valid)
  4107                  goto exit;
  4108  
  4109          /*
  4110           * We hold wm_mutex lock, so any other flip can't proceed 
beyond WM
  4111           * calculation step until this flip writes modified WM values.
  4112           * So it's safe to read plane_state of other pipes without 
taking CRTC lock
  4113           */
  4114          ret = drm_modeset_lock(&dev_priv->wm.wm_ww_mutex, 
state->acquire_ctx);
  4115          if (ret)
  4116                  return ret;
  4117  
> 4118          memcpy(mem_attr, &dev_priv->wm.skl_hw.mem_attr, 
> sizeof(mem_attr));
  4119  
  4120          for_each_crtc_in_state(state, crtc, cstate, i) {
  4121                  struct drm_plane *plane;
  4122                  const struct drm_plane_state *pstate;
  4123                  int active_planes = 0;
  4124                  uint32_t max_plane_bw_kbps = 0;
  4125  
  4126                  mem_attr->pipe_y_tiled[i] = false;

---
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