Re: [PATCH v2] Revert "drm/i915/chv: Set min freq to efficient frequency on chv"

kbuild test robot
2016-08-12T06:15:46Z

[-- Attachment #1: Type: text/plain, Size: 2794 bytes --]

Hi Deepak,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v4.8-rc1 next-20160811]
[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/deepak-s-linux-intel-com/Revert-drm-i915-chv-Set-min-freq-to-efficient-frequency-on-chv/20160812-135320
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x019-201632 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
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 'cherryview_rps_min_freq':
drivers/gpu/drm/i915/intel_pm.c:5610:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
struct pci_device *pdev = dev_priv->drm.pdev;
^~~~~~~~
In file included from include/linux/err.h:4:0,
from include/linux/clk.h:15,
from include/linux/cpufreq.h:14,
from drivers/gpu/drm/i915/intel_pm.c:28:
drivers/gpu/drm/i915/intel_pm.c:5613:10: error: dereferencing pointer to incomplete type 'struct pci_device'
if (pdev->revision >= 0x20) {
^
include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/gpu/drm/i915/intel_pm.c:5613:2: note: in expansion of macro 'if'
if (pdev->revision >= 0x20) {
^~
cc1: some warnings being treated as errors

vim +/if +5613 drivers/gpu/drm/i915/intel_pm.c

5597
5598 static int cherryview_rps_guar_freq(struct drm_i915_private *dev_priv)
5599 {
5600 u32 val, rp1;
5601
5602 val = vlv_punit_read(dev_priv, FB_GFX_FMAX_AT_VMAX_FUSE);
5603 rp1 = (val & FB_GFX_FREQ_FUSE_MASK);
5604
5605 return rp1;
5606 }
5607
5608 static u32 cherryview_rps_min_freq(struct drm_i915_private *dev_priv)
5609 {
5610 struct pci_device *pdev = dev_priv->drm.pdev;
5611 u32 val, rpn;
5612
> 5613 if (pdev->revision >= 0x20) {
5614 val = vlv_punit_read(dev_priv, FB_GFX_FMIN_AT_VMIN_FUSE);
5615 rpn = ((val >> FB_GFX_FMIN_AT_VMIN_FUSE_SHIFT) &
5616 FB_GFX_FREQ_FUSE_MASK);
5617 } else { /* For pre-production hardware */
5618 val = vlv_punit_read(dev_priv, PUNIT_GPU_STATUS_REG);
5619 rpn = ((val >> PUNIT_GPU_STATIS_GFX_MIN_FREQ_SHIFT) &
5620 PUNIT_GPU_STATUS_GFX_MIN_FREQ_MASK);
5621 }

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 25980 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]