[radeon-alex:drm-next-4.9-si 117/127] drivers/gpu/drm/amd/amdgpu/si.c:1017:8-9: WARNING: return of 0/1 in function 'si_read_disabled_bios' with return type bool

2016-08-02 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.9-si
head:   80c6bf7b975077c63b6506d7dd6cb895d72afab2
commit: d1f7ef0f00bbbc985bf5ce8bdecf1944df11681a [117/127] drm/amdgpu: add all 
the components for si into Makefile/kconfig v3


coccinelle warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdgpu/si.c:1017:8-9: WARNING: return of 0/1 in function 
>> 'si_read_disabled_bios' with return type bool

Please review and possibly fold the followup patch.

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


[PATCH] drm/amdgpu: fix boolreturn.cocci warnings

2016-08-02 Thread kbuild test robot
drivers/gpu/drm/amd/amdgpu/si.c:1017:8-9: WARNING: return of 0/1 in function 
'si_read_disabled_bios' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

CC: Ken Wang 
Signed-off-by: Fengguang Wu 
---

 si.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpu/drm/amd/amdgpu/si.c
+++ b/drivers/gpu/drm/amd/amdgpu/si.c
@@ -1014,7 +1014,7 @@ static int si_read_register(struct amdgp

 static bool si_read_disabled_bios(struct amdgpu_device *adev)
 {
-   return 0;
+   return false;
 }
 //xxx: not implemented
 static int si_asic_reset(struct amdgpu_device *adev)


[radeon-alex:drm-next-4.9-si 117/127] drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1584:40: error: 'EVERGREEN_GRPH_ENDIAN_8IN16' undeclared

2016-08-02 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.9-si
head:   80c6bf7b975077c63b6506d7dd6cb895d72afab2
commit: d1f7ef0f00bbbc985bf5ce8bdecf1944df11681a [117/127] drm/amdgpu: add all 
the components for si into Makefile/kconfig v3
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d1f7ef0f00bbbc985bf5ce8bdecf1944df11681a
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:34:0:
   drivers/gpu/drm/amd/amdgpu/dce_v6_0.c: In function 
'dce_v6_0_crtc_do_set_base':
>> drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1584:40: error: 
>> 'EVERGREEN_GRPH_ENDIAN_8IN16' undeclared (first use in this function)
  fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
   ^
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/si/sid.h:2154:53: note: in 
definition of macro 'EVERGREEN_GRPH_ENDIAN_SWAP'
#define EVERGREEN_GRPH_ENDIAN_SWAP(x)(((x) & 0x3) << 0)
^
   drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1584:40: note: each undeclared 
identifier is reported only once for each function it appears in
  fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
   ^
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/si/sid.h:2154:53: note: in 
definition of macro 'EVERGREEN_GRPH_ENDIAN_SWAP'
#define EVERGREEN_GRPH_ENDIAN_SWAP(x)(((x) & 0x3) << 0)
^
>> drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1615:40: error: 
>> 'EVERGREEN_GRPH_ENDIAN_8IN32' undeclared (first use in this function)
  fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN32);
   ^
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/si/sid.h:2154:53: note: in 
definition of macro 'EVERGREEN_GRPH_ENDIAN_SWAP'
#define EVERGREEN_GRPH_ENDIAN_SWAP(x)(((x) & 0x3) << 0)
^

vim +/EVERGREEN_GRPH_ENDIAN_8IN16 +1584 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c

e594a630 Ken Wang 2016-01-19  1578  break;
e594a630 Ken Wang 2016-01-19  1579  case DRM_FORMAT_XRGB:
e594a630 Ken Wang 2016-01-19  1580  case DRM_FORMAT_ARGB:
e594a630 Ken Wang 2016-01-19  1581  fb_format = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
e594a630 Ken Wang 2016-01-19  1582   
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB));
e594a630 Ken Wang 2016-01-19  1583  #ifdef __BIG_ENDIAN
e594a630 Ken Wang 2016-01-19 @1584  fb_swap = 
EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
e594a630 Ken Wang 2016-01-19  1585  #endif
e594a630 Ken Wang 2016-01-19  1586  break;
e594a630 Ken Wang 2016-01-19  1587  case DRM_FORMAT_XRGB1555:
e594a630 Ken Wang 2016-01-19  1588  case DRM_FORMAT_ARGB1555:
e594a630 Ken Wang 2016-01-19  1589  fb_format = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
e594a630 Ken Wang 2016-01-19  1590   
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB1555));
e594a630 Ken Wang 2016-01-19  1591  #ifdef __BIG_ENDIAN
e594a630 Ken Wang 2016-01-19  1592  fb_swap = 
EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
e594a630 Ken Wang 2016-01-19  1593  #endif
e594a630 Ken Wang 2016-01-19  1594  break;
e594a630 Ken Wang 2016-01-19  1595  case DRM_FORMAT_BGRX5551:
e594a630 Ken Wang 2016-01-19  1596  case DRM_FORMAT_BGRA5551:
e594a630 Ken Wang 2016-01-19  1597  fb_format = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
e594a630 Ken Wang 2016-01-19  1598   
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_BGRA5551));
e594a630 Ken Wang 2016-01-19  1599  #ifdef __BIG_ENDIAN
e594a630 Ken Wang 2016-01-19  1600  fb_swap = 
EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
e594a630 Ken Wang 2016-01-19  1601  #endif
e594a630 Ken Wang 2016-01-19  1602  break;
e594a630 Ken Wang 2016-01-19  1603  case DRM_FORMAT_RGB565:
e594a630 Ken Wang 2016-01-19  1604  fb_format = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
e594a630 Ken Wang 2016-01-19  1605   
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB565));
e594a630 Ken Wang 2016-01-19  1606  #ifdef __BIG_ENDIAN
e594a630 Ken Wang 2016-01-19  1607  fb_swap = 
EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
e594a630 Ken Wang 2016-01-19  1608  #endif
e594a630 Ken Wang 2016-01-19  1609  break;
e594a630 Ken W

[radeon-alex:drm-next-4.9-si 123/127] (.text+0x4feb0): multiple definition of `si_get_xclk'

2016-08-02 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.9-si
head:   80c6bf7b975077c63b6506d7dd6cb895d72afab2
commit: 2fe46efde5fa1e4cfd900b0a3fb6edf52657b0f1 [123/127] drm/amdgpu: enable 
SI DPM
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 2fe46efde5fa1e4cfd900b0a3fb6edf52657b0f1
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/built-in.o: In function 
`si_get_mclk_frequency_ratio':
>> (.text+0x6a750): multiple definition of `si_get_mclk_frequency_ratio'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xc0560): first defined here
>> drivers/gpu/drm/amd/amdgpu/built-in.o:(.rodata+0x12aa0): multiple definition 
>> of `r600_dtc'
   drivers/gpu/drm/radeon/built-in.o:(.rodata+0x1df40): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `ni_get_pi':
>> (.text+0x6a680): multiple definition of `ni_get_pi'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xb7210): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_read_smc_sram_dword':
>> (.text+0x6ad00): multiple definition of `si_read_smc_sram_dword'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbb2e0): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_get_xclk':
>> (.text+0x4feb0): multiple definition of `si_get_xclk'
   drivers/gpu/drm/radeon/built-in.o:(.text+0x87990): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `rv770_get_pi':
>> (.text+0x6a670): multiple definition of `rv770_get_pi'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xa40a0): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_stop_smc_clock':
>> (.text+0x6aa50): multiple definition of `si_stop_smc_clock'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbafd0): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_write_smc_sram_dword':
>> (.text+0x6ad60): multiple definition of `si_write_smc_sram_dword'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbb370): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function 
`btc_get_max_clock_from_voltage_dependency_table':
>> (.text+0x6a6b0): multiple definition of 
>> `btc_get_max_clock_from_voltage_dependency_table'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xac0f0): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_reset_smc':
>> (.text+0x6a9b0): multiple definition of `si_reset_smc'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbaf40): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function 
`si_get_ddr3_mclk_frequency_ratio':
>> (.text+0x6a700): multiple definition of `si_get_ddr3_mclk_frequency_ratio'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xc0510): first defined here
>> drivers/gpu/drm/amd/amdgpu/built-in.o:(.data+0x1420): multiple definition of 
>> `cac_weights_oland'
   drivers/gpu/drm/radeon/built-in.o:(.data+0x8780): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `evergreen_get_pi':
>> (.text+0x6a6a0): multiple definition of `evergreen_get_pi'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xa40b0): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_is_smc_running':
>> (.text+0x6aab0): multiple definition of `si_is_smc_running'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbb030): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function 
`si_program_jump_on_start':
>> (.text+0x6aa20): multiple definition of `si_program_jump_on_start'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbafa0): first defined here
>> drivers/gpu/drm/amd/amdgpu/built-in.o:(.rodata+0x12ae0): multiple definition 
>> of `r600_utc'
   drivers/gpu/drm/radeon/built-in.o:(.rodata+0x1df80): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_start_smc_clock':
>> (.text+0x6aa80): multiple definition of `si_start_smc_clock'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbb000): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_start_smc':
>> (.text+0x6a980): multiple definition of `si_start_smc'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbaf10): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_copy_bytes_to_smc':
>> (.text+0x6a820): multiple definition of `si_copy_bytes_to_smc'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbad10): first defined here
   drivers/gpu/drm/amd/amdgpu/built-in.o: In function `si_send_msg_to_smc':
>> (.text+0x6aaf0): multiple definition of `si_send_msg_to_smc'
   drivers/gpu/drm/radeon/built-in.o:(.text+0xbb060): first defined here

---
0-DAY kernel test infrastructureOpen 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:

[drm-intel:topic/drm-misc 4/18] DocBook: drivers/gpu/drm/drm_plane_helper.c:248: warning: No description found for parameter 'dst'

2016-08-09 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   cfc5adea1955ee8ddb62cc0d20ee454472033b6a
commit: df86af9133b4958a04c44828d29617eb1a6ff31c [4/18] drm/plane-helper: Add 
drm_plane_helper_check_state()
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_plane_helper.c:248: warning: No description found for 
>> parameter 'dst'
>> drivers/gpu/drm/drm_plane_helper.c:248: warning: Excess function parameter 
>> 'dest' description in 'drm_plane_helper_check_update'
   drivers/gpu/drm/drm_plane_helper.c:247: warning: No description found for 
parameter 'dst'
   drivers/gpu/drm/drm_plane_helper.c:247: warning: Excess function parameter 
'dest' description in 'drm_plane_helper_check_update'
   drivers/gpu/drm/i915/i915_vgpu.c:105: warning: No description found for 
parameter 'dev_priv'
   drivers/gpu/drm/i915/i915_vgpu.c:184: warning: No description found for 
parameter 'dev_priv'
   drivers/gpu/drm/i915/i915_vgpu.c:184: warning: Excess function parameter 
'dev' description in 'intel_vgt_balloon'
   drivers/gpu/drm/i915/i915_vgpu.c:106: warning: No description found for 
parameter 'dev_priv'
   drivers/gpu/drm/i915/i915_vgpu.c:185: warning: No description found for 
parameter 'dev_priv'
   drivers/gpu/drm/i915/i915_vgpu.c:185: warning: Excess function parameter 
'dev' description in 'intel_vgt_balloon'
   drivers/gpu/drm/i915/i915_gem.c:929: warning: No description found for 
parameter 'i915'
   drivers/gpu/drm/i915/i915_gem.c:929: warning: Excess function parameter 
'dev' description in 'i915_gem_gtt_pwrite_fast'
   drivers/gpu/drm/i915/intel_hotplug.c:543: warning: Excess function parameter 
'enabled' description in 'intel_hpd_poll_init'
   drivers/gpu/drm/i915/intel_hotplug.c:544: warning: Excess function parameter 
'enabled' description in 'intel_hpd_poll_init'
   drivers/gpu/drm/i915/intel_fbc.c:1087: warning: No description found for 
parameter 'crtc_state'
   drivers/gpu/drm/i915/intel_fbc.c:1087: warning: No description found for 
parameter 'plane_state'
   drivers/gpu/drm/i915/intel_fbc.c:1088: warning: No description found for 
parameter 'crtc_state'
   drivers/gpu/drm/i915/intel_fbc.c:1088: warning: No description found for 
parameter 'plane_state'
   drivers/gpu/drm/drm_crtc.c:1272: WARNING: Inline literal start-string 
without end-string.
   drivers/gpu/drm/drm_crtc.c:1387: WARNING: Inline literal start-string 
without end-string.
   include/drm/drm_crtc.h:1202: WARNING: Inline literal start-string without 
end-string.
   include/drm/drm_crtc.h:1255: WARNING: Inline literal start-string without 
end-string.
   include/drm/drm_crtc.h:1268: WARNING: Inline literal start-string without 
end-string.
   include/drm/drm_crtc.h:1272: WARNING: Inline literal start-string without 
end-string.
   drivers/gpu/drm/drm_irq.c:718: WARNING: Option list ends without a blank 
line; unexpected unindent.
   drivers/gpu/drm/drm_fb_helper.c:2196: WARNING: Inline emphasis start-string 
without end-string.
   drivers/gpu/drm/drm_simple_kms_helper.c:156: WARNING: Inline literal 
start-string without end-string.
   include/drm/drm_gem.h:212: WARNING: Inline emphasis start-string without 
end-string.
   drivers/gpu/drm/i915/intel_uncore.c:1622: ERROR: Unexpected indentation.
   drivers/gpu/drm/i915/intel_uncore.c:1623: WARNING: Block quote ends without 
a blank line; unexpected unindent.
   drivers/gpu/drm/i915/intel_uncore.c:1656: ERROR: Unexpected indentation.
   drivers/gpu/drm/i915/intel_uncore.c:1657: WARNING: Block quote ends without 
a blank line; unexpected unindent.
   drivers/gpu/drm/i915/i915_vgpu.c:178: WARNING: Literal block ends without a 
blank line; unexpected unindent.
   drivers/gpu/drm/i915/intel_audio.c:54: WARNING: Inline emphasis start-string 
without end-string.
   drivers/gpu/drm/i915/intel_audio.c:54: WARNING: Inline emphasis start-string 
without end-string.
   drivers/gpu/drm/i915/intel_lrc.c:1166: ERROR: Unexpected indentation.
   drivers/gpu/drm/i915/intel_lrc.c:1167: WARNING: Block quote ends without a 
blank line; unexpected unindent.
   drivers/gpu/drm/i915/intel_guc_fwif.h:159: WARNING: Block quote ends without 
a blank line; unexpected unindent.
   drivers/gpu/drm/i915/intel_guc_fwif.h:178: WARNING: Enumerated list ends 
without a blank line; unexpected unindent.
   Documentation/gpu/drm-kms.rst:13: WARNING: Could not lex literal_block as 
"C". Highlighting skipped.
   Documentation/gpu/drm-kms-helpers.rst:16: WARNING: Could not lex 
literal_block as "C". Highlighting skipped.
   Documentation/gpu/i915.rst:58: WARNING: Could not lex literal_block as "C". 
Highlighting skipped.

vim +/dst +248 drivers/gpu/drm/drm_plane_helper.c

   232   * RETURNS:
   233   * Zero if update appears valid, error code on failure
   234   */
   235  int drm_plane_helper_check_update(struct drm_plane *plane,
   236struct drm_crtc *crtc,
   237struct drm_framebuffer *fb,
   238

[drm-intel:topic/drm-misc 5/18] drivers/gpu/drm/i915/intel_display.c:14148:23: error: 'struct drm_plane_state' has no member named 'clip'

2016-08-09 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   cfc5adea1955ee8ddb62cc0d20ee454472033b6a
commit: 936e71e314d393cd74c42c81b00b2092330c802d [5/18] drm/i915: Use 
drm_plane_state.{src,dst,visible}
config: i386-randconfig-s0-201632 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 936e71e314d393cd74c42c81b00b2092330c802d
# save the attached .config to linux build tree
make ARCH=i386 

Note: the drm-intel/topic/drm-misc HEAD 
cfc5adea1955ee8ddb62cc0d20ee454472033b6a builds fine.
  It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_display.c: In function 
'intel_check_primary_plane':
>> drivers/gpu/drm/i915/intel_display.c:14148:23: error: 'struct 
>> drm_plane_state' has no member named 'clip'
  &state->base.clip,
  ^
   drivers/gpu/drm/i915/intel_display.c: In function 'intel_check_cursor_plane':
   drivers/gpu/drm/i915/intel_display.c:14341:22: error: 'struct 
drm_plane_state' has no member named 'clip'
 &state->base.clip,
 ^
   drivers/gpu/drm/i915/intel_display.c: In function 
'intel_check_primary_plane':
>> drivers/gpu/drm/i915/intel_display.c:14153:1: warning: control reaches end 
>> of non-void function [-Wreturn-type]
}
^

vim +14148 drivers/gpu/drm/i915/intel_display.c

 14142  can_position = true;
 14143  }
 14144  
 14145  return drm_plane_helper_check_update(plane, crtc, fb,
 14146   &state->base.src,
 14147   &state->base.dst,
 14148   &state->base.clip,
 14149   state->base.rotation,
 14150   min_scale, max_scale,
 14151   can_position, true,
 14152   &state->base.visible);
 14153  }
 14154  
 14155  static void intel_begin_crtc_commit(struct drm_crtc *crtc,
 14156  struct drm_crtc_state 
*old_crtc_state)

---
0-DAY kernel test infrastructureOpen 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: 34064 bytes
Desc: not available
URL: 



[PATCH] PM / devfreq: rockchip: fix semicolon.cocci warnings

2016-08-10 Thread kbuild test robot
drivers/devfreq/rk3399_dmc.c:393:2-3: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

CC: Lin Huang 
Signed-off-by: Fengguang Wu 
---

 rk3399_dmc.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/devfreq/rk3399_dmc.c
+++ b/drivers/devfreq/rk3399_dmc.c
@@ -390,7 +390,7 @@ static int rk3399_dmcfreq_probe(struct p
if (IS_ERR(data->dmc_clk)) {
dev_err(dev, "Cannot get the clk dmc_clk\n");
return PTR_ERR(data->dmc_clk);
-   };
+   }

data->irq = irq;
ret = devm_request_irq(dev, irq, rk3399_dmc_irq, 0,


[PATCH v5 7/8] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-10 Thread kbuild test robot
Hi Lin,

[auto build test WARNING on v4.8-rc1]
[also build test WARNING on next-20160809]
[cannot apply to rockchip/for-next devfreq/for-rafael linux/master]
[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/Lin-Huang/rk3399-support-ddr-frequency-scaling/20160810-114433


coccinelle warnings: (new ones prefixed by >>)

>> drivers/devfreq/rk3399_dmc.c:393:2-3: Unneeded semicolon

Please review and possibly fold the followup patch.

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


[PATCH v5 8/8] drm/rockchip: Add dmc notifier in vop driver

2016-08-10 Thread kbuild test robot
Hi Lin,

[auto build test ERROR on v4.8-rc1]
[also build test ERROR on next-20160809]
[cannot apply to rockchip/for-next devfreq/for-rafael linux/master]
[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/Lin-Huang/rk3399-support-ddr-frequency-scaling/20160810-114433
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/rockchip/rockchip_drm_vop.c:16:0:
>> include/linux/devfreq-event.h:190:21: error: redefinition of 
>> 'devfreq_event_get_drvdata'
static inline void *devfreq_event_get_drvdata(struct devfreq_event_dev 
*edev)
^
   include/linux/devfreq-event.h:151:21: note: previous definition of 
'devfreq_event_get_drvdata' was here
static inline void *devfreq_event_get_drvdata(struct devfreq_event_dev 
*edev)
^
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c: In function 'vop_bind':
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1586:5: error: 'struct vop' has 
>> no member named 'psr_enabled'
 vop->psr_enabled = false;
^
   In file included from include/linux/kobject.h:29:0,
from include/linux/device.h:17,
from include/linux/devfreq.h:16,
from drivers/gpu/drm/rockchip/rockchip_drm_vop.c:15:
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:24: error: 'struct vop' has 
>> no member named 'psr_work'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
   ^
   include/linux/workqueue.h:216:16: note: in definition of macro '__INIT_WORK'
  __init_work((_work), _onstack);\
   ^
>> include/linux/workqueue.h:231:3: note: in expansion of macro 'INIT_WORK'
  INIT_WORK(&(_work)->work, (_func));   \
  ^
>> include/linux/workqueue.h:247:2: note: in expansion of macro 
>> '__INIT_DELAYED_WORK'
 __INIT_DELAYED_WORK(_work, _func, 0)
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:2: note: in expansion of 
>> macro 'INIT_DELAYED_WORK'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:24: error: 'struct vop' has 
>> no member named 'psr_work'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
   ^
   include/linux/workqueue.h:217:4: note: in definition of macro '__INIT_WORK'
  (_work)->data = (atomic_long_t) WORK_DATA_INIT(); \
   ^
>> include/linux/workqueue.h:231:3: note: in expansion of macro 'INIT_WORK'
  INIT_WORK(&(_work)->work, (_func));   \
  ^
>> include/linux/workqueue.h:247:2: note: in expansion of macro 
>> '__INIT_DELAYED_WORK'
 __INIT_DELAYED_WORK(_work, _func, 0)
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:2: note: in expansion of 
>> macro 'INIT_DELAYED_WORK'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:24: error: 'struct vop' has 
>> no member named 'psr_work'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
   ^
   include/linux/workqueue.h:218:20: note: in definition of macro '__INIT_WORK'
  INIT_LIST_HEAD(&(_work)->entry);   \
   ^
>> include/linux/workqueue.h:231:3: note: in expansion of macro 'INIT_WORK'
  INIT_WORK(&(_work)->work, (_func));   \
  ^
>> include/linux/workqueue.h:247:2: note: in expansion of macro 
>> '__INIT_DELAYED_WORK'
 __INIT_DELAYED_WORK(_work, _func, 0)
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:2: note: in expansion of 
>> macro 'INIT_DELAYED_WORK'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:24: error: 'struct vop' has 
>> no member named 'psr_work'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
   ^
   include/linux/workqueue.h:219:4: note: in definition of macro '__INIT_WORK'
  (_work)->func = (_func);\
   ^
>> include/linux/workqueue.h:231:3: note: in expansion of macro 'INIT_WORK'
  INIT_WORK(&(_work)->work, (_func));   \
  ^
>> include/linux/workqueue.h:247:2: note: in expansion of macro 
>> '__INIT_DELAYED_WORK'
 __INIT_DELAYED_WORK(_work, _func, 0)
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:2: note: in expansion of 
>> macro 'INIT_DELAYED_WORK'
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work);
 ^
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1587:36: error: 'vop_psr_work' 
>> undeclared (first use in this function)
 INIT_DELAYED_WORK(&vop->psr_work, vop_psr_work)

[PATCH v5 7/8] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-10 Thread kbuild test robot
Hi Lin,

[auto build test ERROR on v4.8-rc1]
[also build test ERROR on next-20160809]
[cannot apply to rockchip/for-next devfreq/for-rafael linux/master]
[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/Lin-Huang/rk3399-support-ddr-frequency-scaling/20160810-114433
config: i386-allyesconfig (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=i386 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `rk3399_dmc_irq':
>> rk3399_dmc.c:(.text+0x27e5a15): undefined reference to `arm_smccc_smc'
   drivers/built-in.o: In function `rk3399_dmcfreq_probe':
   rk3399_dmc.c:(.text+0x27e62a7): undefined reference to `arm_smccc_smc'
   rk3399_dmc.c:(.text+0x27e6332): undefined reference to `arm_smccc_smc'

---
0-DAY kernel test infrastructureOpen 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: 55145 bytes
Desc: not available
URL: 



[PATCH v5 7/8] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-10 Thread kbuild test robot
Hi Lin,

[auto build test ERROR on v4.8-rc1]
[also build test ERROR on next-20160809]
[cannot apply to rockchip/for-next devfreq/for-rafael linux/master]
[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/Lin-Huang/rk3399-support-ddr-frequency-scaling/20160810-114433
config: x86_64-allmodconfig (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 errors (new ones prefixed by >>):

>> ERROR: "arm_smccc_smc" [drivers/devfreq/rk3399_dmc.ko] undefined!

---
0-DAY kernel test infrastructureOpen 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: 55524 bytes
Desc: not available
URL: 



[drm-intel:drm-intel-next-queued 7/33] drivers/gpu/drm/i915/i915_debugfs.c:392: error: 'mapped_count' may be used uninitialized in this function

2016-08-15 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   21a2c58a9c122151080ecbdddc115257cd7c30d8
commit: 2bd160a131ac617fc2441bfb4a02964c964a5da6 [7/33] drm/i915: Reduce 
i915_gem_objects to only show object information
config: x86_64-randconfig-s2-08151903 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout 2bd160a131ac617fc2441bfb4a02964c964a5da6
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All errors (new ones prefixed by >>):

   cc1: warnings being treated as errors
   drivers/gpu/drm/i915/i915_debugfs.c: In function 'i915_gem_object_info':
>> drivers/gpu/drm/i915/i915_debugfs.c:392: error: 'mapped_count' may be used 
>> uninitialized in this function
>> drivers/gpu/drm/i915/i915_debugfs.c:393: error: 'mapped_size' may be used 
>> uninitialized in this function

vim +/mapped_count +392 drivers/gpu/drm/i915/i915_debugfs.c

   386  static int i915_gem_object_info(struct seq_file *m, void* data)
   387  {
   388  struct drm_info_node *node = m->private;
   389  struct drm_device *dev = node->minor->dev;
   390  struct drm_i915_private *dev_priv = to_i915(dev);
   391  struct i915_ggtt *ggtt = &dev_priv->ggtt;
 > 392  u32 count, mapped_count, purgeable_count, dpy_count;
 > 393  u64 size, mapped_size, purgeable_size, dpy_size;
   394  struct drm_i915_gem_object *obj;
   395  struct drm_file *file;
   396  int ret;

---
0-DAY kernel test infrastructureOpen 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: 26098 bytes
Desc: not available
URL: 



[radeon-alex:amd-staging-4.7 1/1127] drivers/dma-buf/sync_file.c:85:60: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64 {aka long long unsigned int}'

2016-08-17 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head:   10423439fa96a45bea44c8a1a237cf78ea898df2
commit: d23f001fa55c71c5514b9f2b0e55257fa4ca867d [1/1127] dma-buf/fence: make 
fence context 64 bit v2
config: i386-randconfig-s0-201633 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout d23f001fa55c71c5514b9f2b0e55257fa4ca867d
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/dma-buf/sync_file.c: In function 'sync_file_create':
>> drivers/dma-buf/sync_file.c:85:60: warning: format '%d' expects argument of 
>> type 'int', but argument 6 has type 'u64 {aka long long unsigned int}' 
>> [-Wformat=]
 snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%d-%d",
   ^

vim +85 drivers/dma-buf/sync_file.c

d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  69   * 
@fence: fence to add to the sync_fence
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  70   *
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  71   * 
Creates a sync_file containg @fence. Once this is called, the sync_file
c240a714 drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  72   * 
takes ownership of @fence. The sync_file can be released with
c240a714 drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  73   * 
fput(sync_file->file). Returns the sync_file or NULL in case of error.
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  74   */
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  75  
struct sync_file *sync_file_create(struct fence *fence)
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  76  {
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  77 
struct sync_file *sync_file;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  78  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  79 
sync_file = sync_file_alloc(offsetof(struct sync_file, cbs[1]));
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  80 
if (!sync_file)
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  81 
return NULL;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  82  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  83 
sync_file->num_fences = 1;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  84 
atomic_set(&sync_file->status, 1);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28 @85 
snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%d-%d",
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  86 
 fence->ops->get_driver_name(fence),
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  87 
 fence->ops->get_timeline_name(fence), fence->context,
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  88 
 fence->seqno);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  89  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  90 
sync_file->cbs[0].fence = fence;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  91 
sync_file->cbs[0].sync_file = sync_file;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  92 
if (fence_add_callback(fence, &sync_file->cbs[0].cb,
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  93 
   fence_check_cb_func))

:: The code at line 85 was first introduced by commit
:: d4cab38e153d62ecd502645390c0289c1b8337df staging/android: prepare 
sync_file for de-staging

:: TO: Gustavo Padovan 
:: CC: Greg Kroah-Hartman 

---
0-DAY kernel test infrastructureOpen 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: 31352 bytes
Desc: not available
URL: 



[drm-intel:topic/drm-misc 10/25] drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c:140:18: error: passing argument 1 of 'dc_ops->cleanup' from incompatible pointer type

2016-08-17 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   5ee4c8f064719f5c62ea53f304845f75f87f2804
commit: d25bcfb8c2e18b9b36f037f38be4d4792ebf8d57 [10/25] drm/hisilicon: Don't 
set drm_device->platformdev
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d25bcfb8c2e18b9b36f037f38be4d4792ebf8d57
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/list.h:8:0,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/of_platform.h:14,
from drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c:18:
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c: In function 
'kirin_drm_kms_init':
   include/linux/kernel.h:831:48: error: initialization from incompatible 
pointer type [-Werror=incompatible-pointer-types]
 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
   ^
>> include/linux/platform_device.h:43:31: note: in expansion of macro 
>> 'container_of'
#define to_platform_device(x) container_of((x), struct platform_device, dev)
  ^
>> drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c:106:21: note: in expansion 
>> of macro 'to_platform_device'
 ret = dc_ops->init(to_platform_device(dev));
^
>> drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c:140:18: error: passing 
>> argument 1 of 'dc_ops->cleanup' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
 dc_ops->cleanup(dev);
 ^
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c:140:18: note: expected 
'struct platform_device *' but argument is of type 'struct drm_device *'
   cc1: some warnings being treated as errors
--
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c: In function 'ade_drm_init':
>> drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:994:52: error: 'dev' 
>> undeclared (first use in this function)
 struct drm_device *drm_dev = platform_get_drvdata(dev);
   ^
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:994:52: note: each 
undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:994:21: warning: unused 
>> variable 'drm_dev' [-Wunused-variable]
 struct drm_device *drm_dev = platform_get_drvdata(dev);
^
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c: In function 
'ade_drm_cleanup':
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:1055:52: error: 'dev' 
undeclared (first use in this function)
 struct drm_device *drm_dev = platform_get_drvdata(dev);
   ^
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:1055:21: warning: unused 
variable 'drm_dev' [-Wunused-variable]
 struct drm_device *drm_dev = platform_get_drvdata(dev);
^
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c: At top level:
>> drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:1065:1: error: expected '}' 
>> before ';' token
;
^

vim +140 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c

23e7b2ab9 Xinliang Liu  2015-10-09   12   * This program is free software; you 
can redistribute it and/or modify
23e7b2ab9 Xinliang Liu  2015-10-09   13   * it under the terms of the GNU 
General Public License version 2 as
23e7b2ab9 Xinliang Liu  2015-10-09   14   * published by the Free Software 
Foundation.
23e7b2ab9 Xinliang Liu  2015-10-09   15   *
23e7b2ab9 Xinliang Liu  2015-10-09   16   */
23e7b2ab9 Xinliang Liu  2015-10-09   17  
23e7b2ab9 Xinliang Liu  2015-10-09  @18  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   19  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   20  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   21  
23e7b2ab9 Xinliang Liu  2015-10-09   22  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   23  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   24  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   25  #include 
6b7a59654 Xinliang Liu  2015-10-10   26  #include 
23e7b2ab9 Xinliang Liu  2015-10-09   27  
23e7b2ab9 Xinliang Liu  2015-10-09   28  #include "kirin_drm_drv.h"
23e7b2ab9 Xinliang Liu  2015-10-09   29  
23e7b2ab9 Xinliang Liu  2015-10-09   30  static struct kirin_dc_ops *dc_ops;
23e7b2ab9 Xinliang Liu  2015-10-09   31  
23e7b2ab9 Xinliang Liu  2015-10-09   32  static int 
kirin_drm_kms_cleanup(struct drm_device *dev)
23e7b2ab9 Xinliang Liu  2015-10-09   33  {
783ad972c Xinliang Liu  2015-10-10   34 struct kirin_drm_private *priv 
= dev->dev_private;
783ad972c Xinliang Liu  2015-10-10   3

[radeon-alex:amd-staging-4.7 1/1127] drivers/dma-buf/sync_file.c:88:4: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64'

2016-08-17 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head:   10423439fa96a45bea44c8a1a237cf78ea898df2
commit: d23f001fa55c71c5514b9f2b0e55257fa4ca867d [1/1127] dma-buf/fence: make 
fence context 64 bit v2
config: i386-randconfig-i1-201633 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
git checkout d23f001fa55c71c5514b9f2b0e55257fa4ca867d
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/dma-buf/sync_file.c: In function 'sync_file_create':
>> drivers/dma-buf/sync_file.c:88:4: warning: format '%d' expects argument of 
>> type 'int', but argument 6 has type 'u64' [-Wformat=]
   fence->seqno);
   ^

vim +88 drivers/dma-buf/sync_file.c

c240a714 drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  72   * 
takes ownership of @fence. The sync_file can be released with
c240a714 drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  73   * 
fput(sync_file->file). Returns the sync_file or NULL in case of error.
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  74   */
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  75  
struct sync_file *sync_file_create(struct fence *fence)
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  76  {
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  77 
struct sync_file *sync_file;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  78  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  79 
sync_file = sync_file_alloc(offsetof(struct sync_file, cbs[1]));
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  80 
if (!sync_file)
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  81 
return NULL;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  82  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  83 
sync_file->num_fences = 1;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  84 
atomic_set(&sync_file->status, 1);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  85 
snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%d-%d",
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  86 
 fence->ops->get_driver_name(fence),
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  87 
 fence->ops->get_timeline_name(fence), fence->context,
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28 @88 
 fence->seqno);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  89  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  90 
sync_file->cbs[0].fence = fence;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  91 
sync_file->cbs[0].sync_file = sync_file;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  92 
if (fence_add_callback(fence, &sync_file->cbs[0].cb,
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  93 
   fence_check_cb_func))
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  94 
atomic_dec(&sync_file->status);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  95  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  96 
return sync_file;

:: The code at line 88 was first introduced by commit
:: d4cab38e153d62ecd502645390c0289c1b8337df staging/android: prepare 
sync_file for de-staging

:: TO: Gustavo Padovan 
:: CC: Greg Kroah-Hartman 

---
0-DAY kernel test infrastructureOpen 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: 21001 bytes
Desc: not available
URL: 



[drm-intel:drm-intel-next-queued 2/12] drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: i915_get_ggtt_vma_pages()+0x425: function has unreachable instruction

2016-08-17 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   8d970654b767ebe8aeb524d30e27b37c0cb8eaed
commit: 6687c9062c46c83e5a07df65015eb4fc9dc76524 [2/12] drm/i915: Rewrite fb 
rotation GTT handling
config: x86_64-randconfig-s3-08172039 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 6687c9062c46c83e5a07df65015eb4fc9dc76524
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: 
>> i915_get_ggtt_vma_pages()+0x425: function has unreachable instruction

---
0-DAY kernel test infrastructureOpen 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: 26651 bytes
Desc: not available
URL: 



[PATCH 1/1] drm/gma500: dont expose stack, mrst_lvds_find_best_pll

2016-08-22 Thread kbuild test robot
Hi Heinrich,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.8-rc3 next-20160822]
[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= (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/Heinrich-Schuchardt/drm-gma500-dont-expose-stack-mrst_lvds_find_best_pll/20160822-040114
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-randconfig-n0-08221935 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:18,
from include/uapi/linux/uuid.h:21,
from include/linux/uuid.h:19,
from include/linux/mod_devicetable.h:12,
from include/linux/i2c.h:29,
from drivers/gpu/drm/gma500/oaktrail_crtc.c:18:
   drivers/gpu/drm/gma500/oaktrail_crtc.c: In function 
'mrst_lvds_find_best_pll':
>> drivers/gpu/drm/gma500/oaktrail_crtc.c:197:33: error: incompatible type for 
>> argument 1 of '__memset'
 memset(clock, 0, sizeof(struct gma_clock_t));
^
   arch/x86/include/asm/string_64.h:78:40: note: in definition of macro 'memset'
#define memset(s, c, n) __memset(s, c, n)
   ^
   arch/x86/include/asm/string_64.h:56:7: note: expected 'void *' but argument 
is of type 'struct gma_clock_t'
void *__memset(void *s, int c, size_t n);
  ^

vim +/__memset +197 drivers/gpu/drm/gma500/oaktrail_crtc.c

12   *
13   * You should have received a copy of the GNU General Public License 
along with
14   * this program; if not, write to the Free Software Foundation, Inc.,
15   * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
16   */
17  
  > 18  #include 
19  #include 
20  
21  #include 
22  #include "framebuffer.h"
23  #include "psb_drv.h"
24  #include "psb_intel_drv.h"
25  #include "psb_intel_reg.h"
26  #include "gma_display.h"
27  #include "power.h"
28  
29  #define MRST_LIMIT_LVDS_100L0
30  #define MRST_LIMIT_LVDS_83  1
31  #define MRST_LIMIT_LVDS_100 2
32  #define MRST_LIMIT_SDVO 3
33  
34  #define MRST_DOT_MIN  19750
35  #define MRST_DOT_MAX  12
36  #define MRST_M_MIN_100L 20
37  #define MRST_M_MIN_100  10
38  #define MRST_M_MIN_83   12
39  #define MRST_M_MAX_100L 34
40  #define MRST_M_MAX_100  17
41  #define MRST_M_MAX_83   20
42  #define MRST_P1_MIN 2
43  #define MRST_P1_MAX_0   7
44  #define MRST_P1_MAX_1   8
45  
46  static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,
47  struct drm_crtc *crtc, int target,
48  int refclk, struct gma_clock_t 
*best_clock);
49  
50  static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,
51  struct drm_crtc *crtc, int target,
52  int refclk, struct gma_clock_t 
*best_clock);
53  
54  static const struct gma_limit_t mrst_limits[] = {
55  {   /* MRST_LIMIT_LVDS_100L */
56   .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
57   .m = {.min = MRST_M_MIN_100L, .max = MRST_M_MAX_100L},
58   .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
59   .find_pll = mrst_lvds_find_best_pll,
60   },
61  {   /* MRST_LIMIT_LVDS_83L */
62   .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
63   .m = {.min = MRST_M_MIN_83, .max = MRST_M_MAX_83},
64   .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_0},
65   .find_pll = mrst_lvds_find_best_pll,
66   },
67  {   /* MRST_LIMIT_LVDS_100 */
68   .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
69   .m = {.min = MRST_M_MIN_100, .max = MRST_M_MAX_100},
70   .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
71   .find_pll = mrst_lvds_find_best_pll,
72   },
73  {   /* MRST_LIMIT_SDVO */
74   .vco = {.min = 140, .max = 280},
75   .n = {.min = 3, .max = 7},
76   .m = {.min = 80, .max = 137}

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-22 Thread kbuild test robot
Hi Heinrich,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.8-rc3 next-20160822]
[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= (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/Heinrich-Schuchardt/drm-gma500-dont-expose-bytes-from-kernel-stack/20160822-024132
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-randconfig-x015-201634 (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 errors (new ones prefixed by >>):

   drivers/gpu/drm/gma500/oaktrail_crtc.c: In function 
'mrst_sdvo_find_best_pll':
>> drivers/gpu/drm/gma500/oaktrail_crtc.c:141:9: error: incompatible type for 
>> argument 1 of 'memset'
 memset(clock, 0, sizeof(struct gma_clock_t));
^
   In file included from arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:18,
from include/uapi/linux/uuid.h:21,
from include/linux/uuid.h:19,
from include/linux/mod_devicetable.h:12,
from include/linux/i2c.h:29,
from drivers/gpu/drm/gma500/oaktrail_crtc.c:18:
   arch/x86/include/asm/string_64.h:55:7: note: expected 'void *' but argument 
is of type 'struct gma_clock_t'
void *memset(void *s, int c, size_t n);
  ^~

vim +/memset +141 drivers/gpu/drm/gma500/oaktrail_crtc.c

   135  int refclk, struct gma_clock_t 
*best_clock)
   136  {
   137  struct gma_clock_t clock;
   138  u32 target_vco, actual_freq;
   139  s32 freq_error, min_error = 10;
   140  
 > 141  memset(clock, 0, sizeof(struct gma_clock_t));
   142  memset(best_clock, 0, sizeof(*best_clock));
   143  
   144  for (clock.m = limit->m.min; clock.m <= limit->m.max; 
clock.m++) {

---
0-DAY kernel test infrastructureOpen 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: 31106 bytes
Desc: not available
URL: 



[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-23 Thread kbuild test robot
Hi Heinrich,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.8-rc3 next-20160822]
[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= (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/Heinrich-Schuchardt/drm-gma500-dont-expose-bytes-from-kernel-stack/20160822-024132
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: i386-randconfig-i0-08220007 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/string.h:2:0,
from include/linux/string.h:18,
from include/uapi/linux/uuid.h:21,
from include/linux/uuid.h:19,
from include/linux/mod_devicetable.h:12,
from include/linux/i2c.h:29,
from drivers/gpu/drm/gma500/oaktrail_crtc.c:18:
   drivers/gpu/drm/gma500/oaktrail_crtc.c: In function 
'mrst_sdvo_find_best_pll':
>> drivers/gpu/drm/gma500/oaktrail_crtc.c:141:33: error: incompatible type for 
>> argument 1 of '__builtin_memset'
 memset(clock, 0, sizeof(struct gma_clock_t));
^
   arch/x86/include/asm/string_32.h:325:52: note: in definition of macro 
'memset'
#define memset(s, c, count) __builtin_memset(s, c, count)
   ^
   drivers/gpu/drm/gma500/oaktrail_crtc.c:141:33: note: expected 'void *' but 
argument is of type 'struct gma_clock_t'
 memset(clock, 0, sizeof(struct gma_clock_t));
^
   arch/x86/include/asm/string_32.h:325:52: note: in definition of macro 
'memset'
#define memset(s, c, count) __builtin_memset(s, c, count)
   ^

vim +/__builtin_memset +141 drivers/gpu/drm/gma500/oaktrail_crtc.c

12   *
13   * You should have received a copy of the GNU General Public License 
along with
14   * this program; if not, write to the Free Software Foundation, Inc.,
15   * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
16   */
17  
  > 18  #include 
19  #include 
20  
21  #include 
22  #include "framebuffer.h"
23  #include "psb_drv.h"
24  #include "psb_intel_drv.h"
25  #include "psb_intel_reg.h"
26  #include "gma_display.h"
27  #include "power.h"
28  
29  #define MRST_LIMIT_LVDS_100L0
30  #define MRST_LIMIT_LVDS_83  1
31  #define MRST_LIMIT_LVDS_100 2
32  #define MRST_LIMIT_SDVO 3
33  
34  #define MRST_DOT_MIN  19750
35  #define MRST_DOT_MAX  12
36  #define MRST_M_MIN_100L 20
37  #define MRST_M_MIN_100  10
38  #define MRST_M_MIN_83   12
39  #define MRST_M_MAX_100L 34
40  #define MRST_M_MAX_100  17
41  #define MRST_M_MAX_83   20
42  #define MRST_P1_MIN 2
43  #define MRST_P1_MAX_0   7
44  #define MRST_P1_MAX_1   8
45  
46  static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,
47  struct drm_crtc *crtc, int target,
48  int refclk, struct gma_clock_t 
*best_clock);
49  
50  static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,
51  struct drm_crtc *crtc, int target,
52  int refclk, struct gma_clock_t 
*best_clock);
53  
54  static const struct gma_limit_t mrst_limits[] = {
55  {   /* MRST_LIMIT_LVDS_100L */
56   .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
57   .m = {.min = MRST_M_MIN_100L, .max = MRST_M_MAX_100L},
58   .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
59   .find_pll = mrst_lvds_find_best_pll,
60   },
61  {   /* MRST_LIMIT_LVDS_83L */
62   .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
63   .m = {.min = MRST_M_MIN_83, .max = MRST_M_MAX_83},
64   .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_0},
65   .find_pll = mrst_lvds_find_best_pll,
66   },
67  {   /* MRST_LIMIT_LVDS_100 */
68   .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
69   .m = {.min = MRST_M_MIN_100, .max = MRST_M_MAX_100},
70   .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
71

[drm-intel:for-linux-next 14/16] htmldocs: drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for parameter 'dev_priv'

2016-08-23 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel for-linux-next
head:   62e0fb880123c98793e5c3ba8355501b0305e92e
commit: 85cb48a1651ee7cbc49468776d3078418f7827c5 [14/16] drm/i915: Convert 
intel_dp to use atomic state
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_modes.c:693: warning: No description found for parameter 
'bus_flags'
   drivers/gpu/drm/drm_plane_helper.c:248: warning: No description found for 
parameter 'dst'
   drivers/gpu/drm/drm_plane_helper.c:248: warning: Excess function parameter 
'dest' description in 'drm_plane_helper_check_update'
   drivers/gpu/drm/drm_plane_helper.c:247: warning: No description found for 
parameter 'dst'
   drivers/gpu/drm/drm_plane_helper.c:247: warning: Excess function parameter 
'dest' description in 'drm_plane_helper_check_update'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'dev_priv'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: Excess function parameter 
>> 'dev' description in 'intel_dp_set_drrs_state'
   drivers/gpu/drm/i915/intel_dp.c:5158: warning: No description found for 
parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5188: warning: No description found for 
>> parameter 'old_crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'dev_priv'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: Excess function parameter 
>> 'dev' description in 'intel_dp_set_drrs_state'
   drivers/gpu/drm/i915/intel_dp.c:5158: warning: No description found for 
parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5188: warning: No description found for 
>> parameter 'old_crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'dev_priv'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: Excess function parameter 
>> 'dev' description in 'intel_dp_set_drrs_state'
   drivers/gpu/drm/i915/intel_dp.c:5158: warning: No description found for 
parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5188: warning: No description found for 
>> parameter 'old_crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'dev_priv'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: Excess function parameter 
>> 'dev' description in 'intel_dp_set_drrs_state'
   drivers/gpu/drm/i915/intel_dp.c:5158: warning: No description found for 
parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5188: warning: No description found for 
>> parameter 'old_crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'dev_priv'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: No description found for 
>> parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5063: warning: Excess function parameter 
>> 'dev' description in 'intel_dp_set_drrs_state'
   drivers/gpu/drm/i915/intel_dp.c:5158: warning: No description found for 
parameter 'crtc_state'
>> drivers/gpu/drm/i915/intel_dp.c:5188: warning: No description found for 
>> parameter 'old_crtc_state'

vim +/dev_priv +5063 drivers/gpu/drm/i915/intel_dp.c

b33a2815 Vandana Kannan  2015-02-13  5057   *
b33a2815 Vandana Kannan  2015-02-13  5058   * The caller of this 
function needs to take a lock on dev_priv->drrs.
b33a2815 Vandana Kannan  2015-02-13  5059   */
85cb48a1 Maarten Lankhorst   2016-08-09  5060  static void 
intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,
85cb48a1 Maarten Lankhorst   2016-08-09  5061   
struct intel_crtc_state *crtc_state,
85cb48a1 Maarten Lankhorst   2016-08-09  5062   
int refresh_rate)
439d7ac0 Pradeep Bhat2014-04-05 @5063  {
439d7ac0 Pradeep Bhat2014-04-05  5064   struct intel_encoder 
*encoder;
96178eeb Vandana Kannan  2015-01-10  5065   struct 
intel_digital_port *dig_port = NULL;
96178eeb Vandana Kannan  2015-01-10  5066   struct intel_dp 
*intel_dp = dev_priv->drrs.dp;
85cb48a1 Maarten Lankhorst   2016-08-09  5067   struct intel_crtc 
*intel_crtc = to_intel_crtc(crtc_state->base.crtc);
96178eeb Vandana Kannan  2015-01-10  5068   enum 
drrs_refresh_rate_type index = DRRS_HIGH_RR;
439d7ac0 Pradeep Bhat2014-04-05  5069  
439d7ac0 Pradeep Bhat2014-04-05  5070   if (refresh_rate <= 0) {
439d7ac0 Pradeep Bhat2014-04-05  5071   
DRM_DEBUG_KMS("Refresh rate should be positive non-zero.\n");

[PATCH 1/1] drm/vmwgfx: avoid possible NULL pointer dereference

2016-08-23 Thread kbuild test robot
Hi Heinrich,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.8-rc3 next-20160823]
[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= (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/Heinrich-Schuchardt/drm-vmwgfx-avoid-possible-NULL-pointer-dereference/20160822-051807
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-randconfig-x016-201634 (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/vmwgfx/vmwgfx_execbuf.c: In function 'vmw_cmd_res_reloc_add':
>> drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:656:3: warning: 'return' with no 
>> value, in function returning non-void [-Wreturn-type]
  return;
  ^~
   drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:646:12: note: declared here
static int vmw_cmd_res_reloc_add(struct vmw_private *dev_priv,
   ^

vim +/return +656 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c

   640   * @sw_context: Pointer to the software context.
   641   * @id_loc: Pointer to where the id that needs translation is located.
   642   * @res: Valid pointer to a struct vmw_resource.
   643   * @p_val: If non null, a pointer to the struct 
vmw_resource_validate_node
   644   * used for this resource is returned here.
   645   */
   646  static int vmw_cmd_res_reloc_add(struct vmw_private *dev_priv,
   647   struct vmw_sw_context *sw_context,
   648   uint32_t *id_loc,
   649   struct vmw_resource *res,
   650   struct vmw_resource_val_node **p_val)
   651  {
   652  int ret;
   653  struct vmw_resource_val_node *node;
   654  
   655  if (!p_val)
 > 656  return;
   657  
   658  *p_val = NULL;
   659  
   660  ret = vmw_resource_relocation_add(&sw_context->res_relocations,
   661res,
   662id_loc - 
sw_context->buf_start);
   663  if (unlikely(ret != 0))
   664  return ret;

---
0-DAY kernel test infrastructureOpen 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: 32267 bytes
Desc: not available
URL: 



[drm-tip:drm-tip 4/9] htmldocs: drivers/gpu/drm/scheduler/sched_main.c:364: warning: Function parameter or member 'bad' not described in 'drm_sched_stop'

2019-05-02 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   6f67b24f2fc7b90a94e4163ae4cd01bc2783fbfd
commit: fb4f0930305e60c480c86c0e2ba9bc8683179bd9 [4/9] Merge remote-tracking 
branch 'origin/drm-misc-next' into drm-tip
reproduce: make htmldocs

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>):

   WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick 
(https://www.imagemagick.org)
   include/linux/generic-radix-tree.h:1: warning: no structured comments found
   kernel/rcu/tree_plugin.h:1: warning: no structured comments found
   kernel/rcu/tree_plugin.h:1: warning: no structured comments found
   include/linux/firmware/intel/stratix10-svc-client.h:1: warning: no 
structured comments found
   include/linux/gpio/driver.h:371: warning: Function parameter or member 
'init_valid_mask' not described in 'gpio_chip'
   include/linux/i2c.h:343: warning: Function parameter or member 'init_irq' 
not described in 'i2c_client'
   include/linux/iio/hw-consumer.h:1: warning: no structured comments found
   include/linux/input/sparse-keymap.h:46: warning: Function parameter or 
member 'sw' not described in 'key_entry'
   include/linux/regulator/machine.h:199: warning: Function parameter or member 
'max_uV_step' not described in 'regulation_constraints'
   include/linux/regulator/driver.h:228: warning: Function parameter or member 
'resume' not described in 'regulator_ops'
   drivers/slimbus/stream.c:1: warning: no structured comments found
   include/linux/spi/spi.h:188: warning: Function parameter or member 
'driver_override' not described in 'spi_device'
   drivers/target/target_core_device.c:1: warning: no structured comments found
   drivers/usb/typec/bus.c:1: warning: no structured comments found
   drivers/usb/typec/class.c:1: warning: no structured comments found
   include/linux/w1.h:281: warning: Function parameter or member 
'of_match_table' not described in 'w1_family'
   fs/direct-io.c:257: warning: Excess function parameter 'offset' description 
in 'dio_complete'
   fs/file_table.c:1: warning: no structured comments found
   fs/libfs.c:477: warning: Excess function parameter 'available' description 
in 'simple_write_end'
   fs/posix_acl.c:646: warning: Function parameter or member 'inode' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:646: warning: Function parameter or member 'mode_p' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:646: warning: Function parameter or member 'acl' not 
described in 'posix_acl_update_mode'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'start' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'end' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:343: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_end'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:343: warning: Excess function 
parameter 'start' description in 'amdgpu_mn_invalidate_range_end'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:343: warning: Excess function 
parameter 'end' description in 'amdgpu_mn_invalidate_range_end'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:183: warning: Function parameter or 
member 'blockable' not described in 'amdgpu_mn_read_lock'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:295: warning: Function parameter or 
member 'range' not described in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:295: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:295: warning: Excess function 
parameter 'start' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:295: warning: Excess function 
parameter 'end' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:344: warning: Function parameter or 
member 'range' not described in 'amdgpu_mn_invalidate_range_end'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:344: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_end'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:344: warn

[radeon-alex:drm-next-5.2-wip 47/78] drivers/gpu//drm/panfrost/panfrost_job.c:388:3: error: too few arguments to function 'drm_sched_stop'

2019-05-02 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.2-wip
head:   ad636d2a1cb80ed84030892630a6159c0e34dd85
commit: d88e20633f0308bf17e954f4e71b44c16252e4f0 [47/78] drm/scheduler: rework 
job destruction
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d88e20633f0308bf17e954f4e71b44c16252e4f0
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/panfrost/panfrost_job.c: In function 
'panfrost_job_timedout':
>> drivers/gpu//drm/panfrost/panfrost_job.c:388:3: error: too few arguments to 
>> function 'drm_sched_stop'
  drm_sched_stop(&pfdev->js->queue[i].sched);
  ^~
   In file included from drivers/gpu//drm/panfrost/panfrost_job.c:10:
   include/drm/gpu_scheduler.h:295:6: note: declared here
void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job 
*bad);
 ^~

vim +/drm_sched_stop +388 drivers/gpu//drm/panfrost/panfrost_job.c

f3ba9122 Rob Herring 2018-09-10  365  
f3ba9122 Rob Herring 2018-09-10  366  static void panfrost_job_timedout(struct 
drm_sched_job *sched_job)
f3ba9122 Rob Herring 2018-09-10  367  {
f3ba9122 Rob Herring 2018-09-10  368struct panfrost_job *job = 
to_panfrost_job(sched_job);
f3ba9122 Rob Herring 2018-09-10  369struct panfrost_device *pfdev = 
job->pfdev;
f3ba9122 Rob Herring 2018-09-10  370int js = panfrost_job_get_slot(job);
f3ba9122 Rob Herring 2018-09-10  371int i;
f3ba9122 Rob Herring 2018-09-10  372  
f3ba9122 Rob Herring 2018-09-10  373/*
f3ba9122 Rob Herring 2018-09-10  374 * If the GPU managed to complete this 
jobs fence, the timeout is
f3ba9122 Rob Herring 2018-09-10  375 * spurious. Bail out.
f3ba9122 Rob Herring 2018-09-10  376 */
f3ba9122 Rob Herring 2018-09-10  377if 
(dma_fence_is_signaled(job->done_fence))
f3ba9122 Rob Herring 2018-09-10  378return;
f3ba9122 Rob Herring 2018-09-10  379  
f3ba9122 Rob Herring 2018-09-10  380dev_err(pfdev->dev, "gpu sched timeout, 
js=%d, status=0x%x, head=0x%x, tail=0x%x, sched_job=%p",
f3ba9122 Rob Herring 2018-09-10  381js,
f3ba9122 Rob Herring 2018-09-10  382job_read(pfdev, JS_STATUS(js)),
f3ba9122 Rob Herring 2018-09-10  383job_read(pfdev, JS_HEAD_LO(js)),
f3ba9122 Rob Herring 2018-09-10  384job_read(pfdev, JS_TAIL_LO(js)),
f3ba9122 Rob Herring 2018-09-10  385sched_job);
f3ba9122 Rob Herring 2018-09-10  386  
f3ba9122 Rob Herring 2018-09-10  387for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring 2018-09-10 @388
drm_sched_stop(&pfdev->js->queue[i].sched);
f3ba9122 Rob Herring 2018-09-10  389  
f3ba9122 Rob Herring 2018-09-10  390if (sched_job)
f3ba9122 Rob Herring 2018-09-10  391
drm_sched_increase_karma(sched_job);
f3ba9122 Rob Herring 2018-09-10  392  
f3ba9122 Rob Herring 2018-09-10  393/* panfrost_core_dump(pfdev); */
f3ba9122 Rob Herring 2018-09-10  394  
f3ba9122 Rob Herring 2018-09-10  395
panfrost_devfreq_record_transition(pfdev, js);
f3ba9122 Rob Herring 2018-09-10  396panfrost_gpu_soft_reset(pfdev);
f3ba9122 Rob Herring 2018-09-10  397  
f3ba9122 Rob Herring 2018-09-10  398/* TODO: Re-enable all other address 
spaces */
f3ba9122 Rob Herring 2018-09-10  399panfrost_mmu_enable(pfdev, 0);
f3ba9122 Rob Herring 2018-09-10  400panfrost_gpu_power_on(pfdev);
f3ba9122 Rob Herring 2018-09-10  401panfrost_job_enable_interrupts(pfdev);
f3ba9122 Rob Herring 2018-09-10  402  
f3ba9122 Rob Herring 2018-09-10  403for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring 2018-09-10  404
drm_sched_resubmit_jobs(&pfdev->js->queue[i].sched);
f3ba9122 Rob Herring 2018-09-10  405  
f3ba9122 Rob Herring 2018-09-10  406/* restart scheduler after GPU is 
usable again */
f3ba9122 Rob Herring 2018-09-10  407for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring 2018-09-10  408
drm_sched_start(&pfdev->js->queue[i].sched, true);
f3ba9122 Rob Herring 2018-09-10  409  }
f3ba9122 Rob Herring 2018-09-10  410  

:: The code at line 388 was first introduced by commit
:: f3ba91228e8e917e5bd6c4b72bfe846933d17370 drm/panfrost: Add initial 
panfrost driver

:: TO: Rob Herring 
:: CC: Rob Herring 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-tip:drm-tip 5/8] drivers/gpu/drm/i915/i915_request.c:827:1: error: redefinition of 'i915_request_await_start'

2019-05-07 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   73db4ec12f05160528884c0b2c845b1c6b7c6718
commit: b9a2acf7709f52c77dc752ec99e3873e392d8df6 [5/8] Merge remote-tracking 
branch 'drm-intel/drm-intel-next-queued' into drm-tip
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout b9a2acf7709f52c77dc752ec99e3873e392d8df6
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_request.c:827:1: error: redefinition of 
>> 'i915_request_await_start'
i915_request_await_start(struct i915_request *rq, struct i915_request 
*signal)
^~~~
   drivers/gpu/drm/i915/i915_request.c:794:1: note: previous definition of 
'i915_request_await_start' was here
i915_request_await_start(struct i915_request *rq, struct i915_request 
*signal)
^~~~
   drivers/gpu/drm/i915/i915_request.c:794:1: warning: 
'i915_request_await_start' defined but not used [-Wunused-function]

vim +/i915_request_await_start +827 drivers/gpu/drm/i915/i915_request.c

ca6e56f65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-04  825  
a2bc4695b drivers/gpu/drm/i915/i915_gem_request.c Chris Wilson 2016-09-09  826  
static int
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01 @827  
i915_request_await_start(struct i915_request *rq, struct i915_request *signal)
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  828  
{
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  829  
if (list_is_first(&signal->ring_link, &signal->ring->request_list))
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  830  
return 0;
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  831  
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  832  
signal = list_prev_entry(signal, ring_link);
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  833  
if (i915_timeline_sync_is_later(rq->timeline, &signal->fence))
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  834  
return 0;
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  835  
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  836  
return i915_sw_fence_await_dma_fence(&rq->submit,
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  837  
 &signal->fence, 0,
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  838  
 I915_FENCE_GFP);
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  839  
}
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson 2019-05-01  840  

:: The code at line 827 was first introduced by commit
:: e766fde6511e2be83acbca1d603035e08de23f3b drm/i915: Delay semaphore 
submission until the start of the signaler

:: TO: Chris Wilson 
:: CC: Joonas Lahtinen 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-tip:drm-tip /8] drivers/gpu/drm/i915/i915_request.c:842:1: error: redefinition of 'already_busywaiting'

2019-05-07 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   ae28cc6cf80a2e8cbb58f255ef7cac6b2923c98a
commit: 47f4a14297839cb4cedd725fb916a5da5eb9b5ba [/8] Merge remote-tracking 
branch 'drm-intel/drm-intel-next-queued' into drm-tip
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 47f4a14297839cb4cedd725fb916a5da5eb9b5ba
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

Note: the drm-tip/drm-tip HEAD ae28cc6cf80a2e8cbb58f255ef7cac6b2923c98a builds 
fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_request.c:827:1: error: redefinition of 
'i915_request_await_start'
i915_request_await_start(struct i915_request *rq, struct i915_request 
*signal)
^~~~
   drivers/gpu/drm/i915/i915_request.c:794:1: note: previous definition of 
'i915_request_await_start' was here
i915_request_await_start(struct i915_request *rq, struct i915_request 
*signal)
^~~~
>> drivers/gpu/drm/i915/i915_request.c:842:1: error: redefinition of 
>> 'already_busywaiting'
already_busywaiting(struct i915_request *rq)
^~~
   drivers/gpu/drm/i915/i915_request.c:809:1: note: previous definition of 
'already_busywaiting' was here
already_busywaiting(struct i915_request *rq)
^~~
   drivers/gpu/drm/i915/i915_request.c:809:1: warning: 'already_busywaiting' 
defined but not used [-Wunused-function]
   drivers/gpu/drm/i915/i915_request.c:794:1: warning: 
'i915_request_await_start' defined but not used [-Wunused-function]
i915_request_await_start(struct i915_request *rq, struct i915_request 
*signal)
^~~~

vim +/already_busywaiting +842 drivers/gpu/drm/i915/i915_request.c

47f4a1429 drivers/gpu/drm/i915/i915_request.c Joonas Lahtinen 2019-05-07  
825  
a2bc4695b drivers/gpu/drm/i915/i915_gem_request.c Chris Wilson2016-09-09  
826  static int
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01 
@827  i915_request_await_start(struct i915_request *rq, struct i915_request 
*signal)
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
828  {
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
829   if (list_is_first(&signal->ring_link, &signal->ring->request_list))
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
830   return 0;
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
831  
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
832   signal = list_prev_entry(signal, ring_link);
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
833   if (i915_timeline_sync_is_later(rq->timeline, &signal->fence))
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
834   return 0;
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
835  
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
836   return i915_sw_fence_await_dma_fence(&rq->submit,
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
837&signal->fence, 0,
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
838I915_FENCE_GFP);
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
839  }
e766fde65 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-01  
840  
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
841  static intel_engine_mask_t
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04 
@842  already_busywaiting(struct i915_request *rq)
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
843  {
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
844   /*
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
845* Polling a semaphore causes bus traffic, delaying other users of
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
846* both the GPU and CPU. We want to limit the impact on others,
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
847* while taking advantage of early submission to reduce GPU
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris Wilson2019-05-04  
848* latency. Therefore we restrict ourselves to not using more
2564fe708 drivers/gpu/drm/i915/i915_request.c Chris 

[RFC PATCH drm-intel] drm: drm_hdcp_request_srm() can be static

2019-05-09 Thread kbuild test robot

Fixes: 6498bf5800a3 ("drm: revocation check at drm subsystem")
Signed-off-by: kbuild test robot 
---
 drm_hdcp.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_hdcp.c b/drivers/gpu/drm/drm_hdcp.c
index 5e54095..dc0beb3 100644
--- a/drivers/gpu/drm/drm_hdcp.c
+++ b/drivers/gpu/drm/drm_hdcp.c
@@ -232,7 +232,7 @@ static void drm_hdcp_srm_update(const u8 *buf, size_t count)
drm_hdcp_parse_hdcp2_srm(buf, count);
 }
 
-void drm_hdcp_request_srm(struct drm_device *drm_dev)
+static void drm_hdcp_request_srm(struct drm_device *drm_dev)
 {
char fw_name[36] = "display_hdcp_srm.bin";
const struct firmware *fw;
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-intel:drm-intel-next-queued 4/6] drivers/gpu/drm/drm_hdcp.c:27:3: sparse: sparse: symbol 'srm_data' was not declared. Should it be static?

2019-05-09 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   c16fd9be70faf3c49a61700efd16018dd910e390
commit: 6498bf5800a302ef69e7f4914e727893f278bb2f [4/6] drm: revocation check at 
drm subsystem
reproduce:
# apt-get install sparse
git checkout 6498bf5800a302ef69e7f4914e727893f278bb2f
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/drm_hdcp.c:27:3: sparse: sparse: symbol 'srm_data' was not 
>> declared. Should it be static?
>> drivers/gpu/drm/drm_hdcp.c:235:6: sparse: sparse: symbol 
>> 'drm_hdcp_request_srm' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[radeon-alex:drm-next-5.2-wip 94/126] drivers/gpu/drm/panfrost/panfrost_job.c:388:3: error: too few arguments to function 'drm_sched_stop'

2019-05-10 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.2-wip
head:   a6be3268e01a878e00f88555d16d65f88471d9e9
commit: 13688847c9d85d358d30dc4d6b128a42c6448106 [94/126] drm/scheduler: rework 
job destruction
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 13688847c9d85d358d30dc4d6b128a42c6448106
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/panfrost/panfrost_job.c: In function 'panfrost_job_timedout':
>> drivers/gpu/drm/panfrost/panfrost_job.c:388:3: error: too few arguments to 
>> function 'drm_sched_stop'
  drm_sched_stop(&pfdev->js->queue[i].sched);
  ^~
   In file included from drivers/gpu/drm/panfrost/panfrost_job.c:10:0:
   include/drm/gpu_scheduler.h:295:6: note: declared here
void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job 
*bad);
 ^~

vim +/drm_sched_stop +388 drivers/gpu/drm/panfrost/panfrost_job.c

f3ba9122 Rob Herring 2018-09-10  365  
f3ba9122 Rob Herring 2018-09-10  366  static void panfrost_job_timedout(struct 
drm_sched_job *sched_job)
f3ba9122 Rob Herring 2018-09-10  367  {
f3ba9122 Rob Herring 2018-09-10  368struct panfrost_job *job = 
to_panfrost_job(sched_job);
f3ba9122 Rob Herring 2018-09-10  369struct panfrost_device *pfdev = 
job->pfdev;
f3ba9122 Rob Herring 2018-09-10  370int js = panfrost_job_get_slot(job);
f3ba9122 Rob Herring 2018-09-10  371int i;
f3ba9122 Rob Herring 2018-09-10  372  
f3ba9122 Rob Herring 2018-09-10  373/*
f3ba9122 Rob Herring 2018-09-10  374 * If the GPU managed to complete this 
jobs fence, the timeout is
f3ba9122 Rob Herring 2018-09-10  375 * spurious. Bail out.
f3ba9122 Rob Herring 2018-09-10  376 */
f3ba9122 Rob Herring 2018-09-10  377if 
(dma_fence_is_signaled(job->done_fence))
f3ba9122 Rob Herring 2018-09-10  378return;
f3ba9122 Rob Herring 2018-09-10  379  
f3ba9122 Rob Herring 2018-09-10  380dev_err(pfdev->dev, "gpu sched timeout, 
js=%d, status=0x%x, head=0x%x, tail=0x%x, sched_job=%p",
f3ba9122 Rob Herring 2018-09-10  381js,
f3ba9122 Rob Herring 2018-09-10  382job_read(pfdev, JS_STATUS(js)),
f3ba9122 Rob Herring 2018-09-10  383job_read(pfdev, JS_HEAD_LO(js)),
f3ba9122 Rob Herring 2018-09-10  384job_read(pfdev, JS_TAIL_LO(js)),
f3ba9122 Rob Herring 2018-09-10  385sched_job);
f3ba9122 Rob Herring 2018-09-10  386  
f3ba9122 Rob Herring 2018-09-10  387for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring 2018-09-10 @388
drm_sched_stop(&pfdev->js->queue[i].sched);
f3ba9122 Rob Herring 2018-09-10  389  
f3ba9122 Rob Herring 2018-09-10  390if (sched_job)
f3ba9122 Rob Herring 2018-09-10  391
drm_sched_increase_karma(sched_job);
f3ba9122 Rob Herring 2018-09-10  392  
f3ba9122 Rob Herring 2018-09-10  393/* panfrost_core_dump(pfdev); */
f3ba9122 Rob Herring 2018-09-10  394  
f3ba9122 Rob Herring 2018-09-10  395
panfrost_devfreq_record_transition(pfdev, js);
f3ba9122 Rob Herring 2018-09-10  396panfrost_gpu_soft_reset(pfdev);
f3ba9122 Rob Herring 2018-09-10  397  
f3ba9122 Rob Herring 2018-09-10  398/* TODO: Re-enable all other address 
spaces */
f3ba9122 Rob Herring 2018-09-10  399panfrost_mmu_enable(pfdev, 0);
f3ba9122 Rob Herring 2018-09-10  400panfrost_gpu_power_on(pfdev);
f3ba9122 Rob Herring 2018-09-10  401panfrost_job_enable_interrupts(pfdev);
f3ba9122 Rob Herring 2018-09-10  402  
f3ba9122 Rob Herring 2018-09-10  403for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring 2018-09-10  404
drm_sched_resubmit_jobs(&pfdev->js->queue[i].sched);
f3ba9122 Rob Herring 2018-09-10  405  
f3ba9122 Rob Herring 2018-09-10  406/* restart scheduler after GPU is 
usable again */
f3ba9122 Rob Herring 2018-09-10  407for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring 2018-09-10  408
drm_sched_start(&pfdev->js->queue[i].sched, true);
f3ba9122 Rob Herring 2018-09-10  409  }
f3ba9122 Rob Herring 2018-09-10  410  

:: The code at line 388 was first introduced by commit
:: f3ba91228e8e917e5bd6c4b72bfe846933d17370 drm/panfrost: Add initial 
panfrost driver

:: TO: Rob Herring 
:: CC: Rob Herring 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/mediatek: add dsi module reset driver

2019-05-19 Thread kbuild test robot
Hi Jitao,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1 next-20190517]
[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/Jitao-Shi/drm-mediatek-add-dsi-module-reset-driver/20190519-214457
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu//drm/mediatek/mtk_dsi.c:29:0:
   drivers/gpu//drm/mediatek/mtk_dsi.c: In function 'mtk_dsi_reset_all':
>> drivers/gpu//drm/mediatek/mtk_dsi.c:250:27: warning: large integer 
>> implicitly truncated to unsigned type [-Woverflow]
  MMSYS_SW_RST_DSI_B, ~MMSYS_SW_RST_DSI_B);
  ^
   include/linux/regmap.h:77:42: note: in definition of macro 
'regmap_update_bits'
 regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
 ^~~

vim +250 drivers/gpu//drm/mediatek/mtk_dsi.c

   246  
   247  static void mtk_dsi_reset_all(struct mtk_dsi *dsi)
   248  {
   249  regmap_update_bits(dsi->mmsys_sw_rst_b, dsi->sw_rst_b,
 > 250 MMSYS_SW_RST_DSI_B, ~MMSYS_SW_RST_DSI_B);
   251  usleep_range(1000, 1100);
   252  
   253  regmap_update_bits(dsi->mmsys_sw_rst_b, dsi->sw_rst_b,
   254 MMSYS_SW_RST_DSI_B, MMSYS_SW_RST_DSI_B);
   255  }
   256  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [v3 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-05-19 Thread kbuild test robot
Hi Jitao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.1 next-20190517]
[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/Jitao-Shi/Support-dsi-for-mt8183/20190519-231001
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

>> ERROR: "__aeabi_uldivmod" [drivers/gpu/drm/mediatek/mediatek-drm.ko] 
>> undefined!

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 18/33] fbdev: make unregister/unlink functions not fail

2019-05-20 Thread kbuild test robot
Hi Daniel,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.2-rc1 next-20190520]
[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/Daniel-Vetter/fbcon-notifier-begone/20190521-021841
config: x86_64-randconfig-x004-201920 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/neofb.c: In function 'neofb_remove':
>> drivers/video/fbdev/neofb.c:2130:7: error: void value not ignored as it 
>> ought to be
  if (unregister_framebuffer(info))
  ^~

vim +2130 drivers/video/fbdev/neofb.c

^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2117  
48c68c4f drivers/video/neofb.c Greg Kroah-Hartman 2012-12-21  2118  static void 
neofb_remove(struct pci_dev *dev)
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2119  {
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2120  struct 
fb_info *info = pci_get_drvdata(dev);
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2121  
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2122  
DBG("neofb_remove");
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2123  
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2124  if 
(info) {
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2125  
/*
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2126  
 * If unregister_framebuffer fails, then
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2127  
 * we will be leaving hooks that could cause
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2128  
 * oopsen laying around.
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2129  
 */
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16 @2130  
if (unregister_framebuffer(info))
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2131  
printk(KERN_WARNING
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2132  
   "neofb: danger danger!  Oopsen imminent!\n");
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2133  
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2134  
neo_unmap_video(info);
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2135  
fb_destroy_modedb(info->monspecs.modedb);
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2136  
neo_unmap_mmio(info);
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2137  
neo_free_fb_info(info);
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2138  }
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2139  }
^1da177e drivers/video/neofb.c Linus Torvalds 2005-04-16  2140  

:: The code at line 2130 was first introduced by commit
:: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:: TO: Linus Torvalds 
:: CC: Linus Torvalds 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 21/33] fbdev: directly call fbcon_suspended/resumed

2019-05-20 Thread kbuild test robot
Hi Daniel,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.2-rc1 next-20190520]
[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/Daniel-Vetter/fbcon-notifier-begone/20190521-021841
config: x86_64-randconfig-x006-201920 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/core/fbmem.c: In function 'fb_set_suspend':
>> drivers/video/fbdev/core/fbmem.c:1908:3: error: too many arguments to 
>> function 'fbcon_suspended'
  fbcon_suspended(info);
  ^~~
   In file included from drivers/video/fbdev/core/fbmem.c:35:0:
   include/linux/fbcon.h:18:20: note: declared here
static inline void fbcon_suspended(void) {}
   ^~~
>> drivers/video/fbdev/core/fbmem.c:1912:3: error: too many arguments to 
>> function 'fbcon_resumed'
  fbcon_resumed(info);
  ^
   In file included from drivers/video/fbdev/core/fbmem.c:35:0:
   include/linux/fbcon.h:19:20: note: declared here
static inline void fbcon_resumed(void) {}
   ^

vim +/fbcon_suspended +1908 drivers/video/fbdev/core/fbmem.c

  1893  
  1894  /**
  1895   *  fb_set_suspend - low level driver signals suspend
  1896   *  @info: framebuffer affected
  1897   *  @state: 0 = resuming, !=0 = suspending
  1898   *
  1899   *  This is meant to be used by low level drivers to
  1900   *  signal suspend/resume to the core & clients.
  1901   *  It must be called with the console semaphore held
  1902   */
  1903  void fb_set_suspend(struct fb_info *info, int state)
  1904  {
  1905  WARN_CONSOLE_UNLOCKED();
  1906  
  1907  if (state) {
> 1908  fbcon_suspended(info);
  1909  info->state = FBINFO_STATE_SUSPENDED;
  1910  } else {
  1911  info->state = FBINFO_STATE_RUNNING;
> 1912  fbcon_resumed(info);
  1913  }
  1914  }
  1915  EXPORT_SYMBOL(fb_set_suspend);
  1916  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 18/33] fbdev: make unregister/unlink functions not fail

2019-05-20 Thread kbuild test robot
Hi Daniel,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.2-rc1 next-20190520]
[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/Daniel-Vetter/fbcon-notifier-begone/20190521-021841
config: x86_64-randconfig-x003-201920 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/savage/savagefb_driver.c: In function 'savagefb_remove':
>> drivers/video/fbdev/savage/savagefb_driver.c:2341:7: error: void value not 
>> ignored as it ought to be
  if (unregister_framebuffer(info))
  ^~

vim +2341 drivers/video/fbdev/savage/savagefb_driver.c

^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2328  
48c68c4f drivers/video/savage/savagefb_driver.c Greg Kroah-Hartman 2012-12-21  
2329  static void savagefb_remove(struct pci_dev *dev)
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2330  {
b8901b09 drivers/video/savage/savagefb_driver.c Antonino A. Daplas 2006-01-09  
2331 struct fb_info *info = pci_get_drvdata(dev);
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2332  
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2333 DBG("savagefb_remove");
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2334  
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2335 if (info) {
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2336 /*
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2337  * If unregister_framebuffer fails, then
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2338  * we will be leaving hooks that could cause
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2339  * oopsen laying around.
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2340  */
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16 
@2341 if (unregister_framebuffer(info))
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2342 printk(KERN_WARNING "savagefb: danger danger! "
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2343"Oopsen imminent!\n");
^1da177e drivers/video/savage/savagefb_driver.c Linus Torvalds 2005-04-16  
2344  

:: The code at line 2341 was first introduced by commit
:: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:: TO: Linus Torvalds 
:: CC: Linus Torvalds 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 31/33] fbcon: Call con2fb_map functions directly

2019-05-20 Thread kbuild test robot
Hi Daniel,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.2-rc1 next-20190520]
[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/Daniel-Vetter/fbcon-notifier-begone/20190521-021841
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/core/fbcon.c: In function 'fbcon_set_con2fb_map_ioctl':
>> drivers/video/fbdev/core/fbcon.c:3323:6: error: implicit declaration of 
>> function 'copy_from_user'; did you mean 'copy_creds'? 
>> [-Werror=implicit-function-declaration]
 if (copy_from_user(&con2fb, argp, sizeof(con2fb)))
 ^~
 copy_creds
   drivers/video/fbdev/core/fbcon.c: In function 'fbcon_get_con2fb_map_ioctl':
>> drivers/video/fbdev/core/fbcon.c:3356:9: error: implicit declaration of 
>> function 'copy_to_user'; did you mean 'cpu_to_mem'? 
>> [-Werror=implicit-function-declaration]
 return copy_to_user(argp, &con2fb, sizeof(con2fb)) ? -EFAULT : 0;
^~~~
cpu_to_mem
   cc1: some warnings being treated as errors

vim +3323 drivers/video/fbdev/core/fbcon.c

  3317  
  3318  int fbcon_set_con2fb_map_ioctl(void __user *argp)
  3319  {
  3320  struct fb_con2fbmap con2fb;
  3321  int ret;
  3322  
> 3323  if (copy_from_user(&con2fb, argp, sizeof(con2fb)))
  3324  return -EFAULT;
  3325  if (con2fb.console < 1 || con2fb.console > MAX_NR_CONSOLES)
  3326  return -EINVAL;
  3327  if (con2fb.framebuffer >= FB_MAX)
  3328  return -EINVAL;
  3329  if (!registered_fb[con2fb.framebuffer])
  3330  request_module("fb%d", con2fb.framebuffer);
  3331  if (!registered_fb[con2fb.framebuffer]) {
  3332  return -EINVAL;
    }
  3334  
  3335  console_lock();
  3336  ret = set_con2fb_map(con2fb.console - 1,
  3337   con2fb.framebuffer, 1);
  3338  console_unlock();
  3339  
  3340  return ret;
  3341  }
  3342  
  3343  int fbcon_get_con2fb_map_ioctl(void __user *argp)
  3344  {
  3345  struct fb_con2fbmap con2fb;
  3346  
  3347  if (copy_from_user(&con2fb, argp, sizeof(con2fb)))
  3348  return -EFAULT;
  3349  if (con2fb.console < 1 || con2fb.console > MAX_NR_CONSOLES)
  3350  return -EINVAL;
  3351  
  3352  console_lock();
  3353  con2fb.framebuffer = con2fb_map[con2fb.console - 1];
  3354  console_unlock();
  3355  
> 3356  return copy_to_user(argp, &con2fb, sizeof(con2fb)) ? -EFAULT : 
> 0;
  3357  }
  3358  

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


.config.gz
Description: application/gzip


Re: [Intel-gfx] [PATCH 31/33] fbcon: Call con2fb_map functions directly

2019-05-20 Thread kbuild test robot
Hi Daniel,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.2-rc1 next-20190520]
[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/Daniel-Vetter/fbcon-notifier-begone/20190521-021841
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/core/fbcon.c: In function 'fbcon_set_con2fb_map_ioctl':
>> drivers/video/fbdev/core/fbcon.c:3323:6: error: implicit declaration of 
>> function 'copy_from_user'; did you mean 'sg_copy_from_buffer'? 
>> [-Werror=implicit-function-declaration]
 if (copy_from_user(&con2fb, argp, sizeof(con2fb)))
 ^~
 sg_copy_from_buffer
   drivers/video/fbdev/core/fbcon.c: In function 'fbcon_get_con2fb_map_ioctl':
   drivers/video/fbdev/core/fbcon.c:3356:9: error: implicit declaration of 
function 'copy_to_user'; did you mean 'cpu_to_mem'? 
[-Werror=implicit-function-declaration]
 return copy_to_user(argp, &con2fb, sizeof(con2fb)) ? -EFAULT : 0;
^~~~
cpu_to_mem
   cc1: some warnings being treated as errors

vim +3323 drivers/video/fbdev/core/fbcon.c

  3317  
  3318  int fbcon_set_con2fb_map_ioctl(void __user *argp)
  3319  {
  3320  struct fb_con2fbmap con2fb;
  3321  int ret;
  3322  
> 3323  if (copy_from_user(&con2fb, argp, sizeof(con2fb)))
  3324  return -EFAULT;
  3325  if (con2fb.console < 1 || con2fb.console > MAX_NR_CONSOLES)
  3326  return -EINVAL;
  3327  if (con2fb.framebuffer >= FB_MAX)
  3328  return -EINVAL;
  3329  if (!registered_fb[con2fb.framebuffer])
  3330  request_module("fb%d", con2fb.framebuffer);
  3331  if (!registered_fb[con2fb.framebuffer]) {
  3332  return -EINVAL;
    }
  3334  
  3335  console_lock();
  3336  ret = set_con2fb_map(con2fb.console - 1,
  3337   con2fb.framebuffer, 1);
  3338  console_unlock();
  3339  
  3340  return ret;
  3341  }
  3342  

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


.config.gz
Description: application/gzip


Re: [Intel-gfx] [PATCH 18/33] fbdev: make unregister/unlink functions not fail

2019-05-20 Thread kbuild test robot
Hi Daniel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc1 next-20190520]
[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/Daniel-Vetter/fbcon-notifier-begone/20190521-021841
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> drivers/staging/fbtft/fbtft-core.c:894:38: sparse: sparse: incorrect type in 
>> return expression (different base types) @@expected int @@got vint @@
>> drivers/staging/fbtft/fbtft-core.c:894:38: sparse:expected int
>> drivers/staging/fbtft/fbtft-core.c:894:38: sparse:got void
--
>> drivers/media/pci/ivtv/ivtvfb.c:1261:43: sparse: sparse: incorrect type in 
>> conditional (non-scalar type)
>> drivers/media/pci/ivtv/ivtvfb.c:1261:43: sparse:got void
--
>> drivers/video/fbdev/neofb.c:2130:43: sparse: sparse: incorrect type in 
>> conditional (non-scalar type)
>> drivers/video/fbdev/neofb.c:2130:43: sparse:got void
--
>> drivers/video/fbdev/savage/savagefb_driver.c:2341:43: sparse: sparse: 
>> incorrect type in conditional (non-scalar type)
>> drivers/video/fbdev/savage/savagefb_driver.c:2341:43: sparse:got void

vim +894 drivers/staging/fbtft/fbtft-core.c

c296d5f9 Thomas Petazzoni 2014-12-31  877  
c296d5f9 Thomas Petazzoni 2014-12-31  878  /**
c296d5f9 Thomas Petazzoni 2014-12-31  879   *   fbtft_unregister_framebuffer - 
releases a tft frame buffer device
c296d5f9 Thomas Petazzoni 2014-12-31  880   *   @fb_info: frame buffer info 
structure
c296d5f9 Thomas Petazzoni 2014-12-31  881   *
c296d5f9 Thomas Petazzoni 2014-12-31  882   *  Frees SPI driverdata if needed
c296d5f9 Thomas Petazzoni 2014-12-31  883   *  Frees gpios.
c296d5f9 Thomas Petazzoni 2014-12-31  884   *   Unregisters frame buffer device.
c296d5f9 Thomas Petazzoni 2014-12-31  885   *
c296d5f9 Thomas Petazzoni 2014-12-31  886   */
c296d5f9 Thomas Petazzoni 2014-12-31  887  int 
fbtft_unregister_framebuffer(struct fb_info *fb_info)
c296d5f9 Thomas Petazzoni 2014-12-31  888  {
c296d5f9 Thomas Petazzoni 2014-12-31  889   struct fbtft_par *par = 
fb_info->par;
c296d5f9 Thomas Petazzoni 2014-12-31  890  
c296d5f9 Thomas Petazzoni 2014-12-31  891   if 
(par->fbtftops.unregister_backlight)
c296d5f9 Thomas Petazzoni 2014-12-31  892   
par->fbtftops.unregister_backlight(par);
c296d5f9 Thomas Petazzoni 2014-12-31  893   fbtft_sysfs_exit(par);
11107ffe Aya Mahfouz  2015-02-27 @894   return 
unregister_framebuffer(fb_info);
c296d5f9 Thomas Petazzoni 2014-12-31  895  }
c296d5f9 Thomas Petazzoni 2014-12-31  896  
EXPORT_SYMBOL(fbtft_unregister_framebuffer);
c296d5f9 Thomas Petazzoni 2014-12-31  897  

:: The code at line 894 was first introduced by commit
:: 11107ffe2cd1c1dc5948713fc08a1372185be0d5 staging: fbtft: remove unused 
variable

:: TO: Aya Mahfouz 
:: CC: Greg Kroah-Hartman 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[radeon-alex:drm-next-5.3-wip 159/169] drivers/gpu/drm/panfrost/panfrost_job.c:390:3: error: too few arguments to function 'drm_sched_stop'

2019-05-20 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.3-wip
head:   8dcf1d70d7d7058b54e1356297f201cb7ba6d14f
commit: 399abb79bbdece4bdcb35a5f2983b2335410eeec [159/169] drm/scheduler: 
rework job destruction
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 399abb79bbdece4bdcb35a5f2983b2335410eeec
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/panfrost/panfrost_job.c: In function 'panfrost_job_timedout':
>> drivers/gpu/drm/panfrost/panfrost_job.c:390:3: error: too few arguments to 
>> function 'drm_sched_stop'
  drm_sched_stop(&pfdev->js->queue[i].sched);
  ^~
   In file included from drivers/gpu/drm/panfrost/panfrost_job.c:10:
   include/drm/gpu_scheduler.h:295:6: note: declared here
void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job 
*bad);
 ^~

vim +/drm_sched_stop +390 drivers/gpu/drm/panfrost/panfrost_job.c

f3ba9122 Rob Herring  2018-09-10  365  
f3ba9122 Rob Herring  2018-09-10  366  static void panfrost_job_timedout(struct 
drm_sched_job *sched_job)
f3ba9122 Rob Herring  2018-09-10  367  {
f3ba9122 Rob Herring  2018-09-10  368   struct panfrost_job *job = 
to_panfrost_job(sched_job);
f3ba9122 Rob Herring  2018-09-10  369   struct panfrost_device *pfdev = 
job->pfdev;
f3ba9122 Rob Herring  2018-09-10  370   int js = panfrost_job_get_slot(job);
f3ba9122 Rob Herring  2018-09-10  371   int i;
f3ba9122 Rob Herring  2018-09-10  372  
f3ba9122 Rob Herring  2018-09-10  373   /*
f3ba9122 Rob Herring  2018-09-10  374* If the GPU managed to complete this 
jobs fence, the timeout is
f3ba9122 Rob Herring  2018-09-10  375* spurious. Bail out.
f3ba9122 Rob Herring  2018-09-10  376*/
f3ba9122 Rob Herring  2018-09-10  377   if 
(dma_fence_is_signaled(job->done_fence))
f3ba9122 Rob Herring  2018-09-10  378   return;
f3ba9122 Rob Herring  2018-09-10  379  
f3ba9122 Rob Herring  2018-09-10  380   dev_err(pfdev->dev, "gpu sched timeout, 
js=%d, status=0x%x, head=0x%x, tail=0x%x, sched_job=%p",
f3ba9122 Rob Herring  2018-09-10  381   js,
f3ba9122 Rob Herring  2018-09-10  382   job_read(pfdev, JS_STATUS(js)),
f3ba9122 Rob Herring  2018-09-10  383   job_read(pfdev, JS_HEAD_LO(js)),
f3ba9122 Rob Herring  2018-09-10  384   job_read(pfdev, JS_TAIL_LO(js)),
f3ba9122 Rob Herring  2018-09-10  385   sched_job);
f3ba9122 Rob Herring  2018-09-10  386  
aa202367 Tomeu Vizoso 2019-04-18  387   mutex_lock(&pfdev->reset_lock);
aa202367 Tomeu Vizoso 2019-04-18  388  
f3ba9122 Rob Herring  2018-09-10  389   for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring  2018-09-10 @390   
drm_sched_stop(&pfdev->js->queue[i].sched);
f3ba9122 Rob Herring  2018-09-10  391  
f3ba9122 Rob Herring  2018-09-10  392   if (sched_job)
f3ba9122 Rob Herring  2018-09-10  393   
drm_sched_increase_karma(sched_job);
f3ba9122 Rob Herring  2018-09-10  394  
f3ba9122 Rob Herring  2018-09-10  395   /* panfrost_core_dump(pfdev); */
f3ba9122 Rob Herring  2018-09-10  396  
f3ba9122 Rob Herring  2018-09-10  397   
panfrost_devfreq_record_transition(pfdev, js);
f3ba9122 Rob Herring  2018-09-10  398   panfrost_gpu_soft_reset(pfdev);
f3ba9122 Rob Herring  2018-09-10  399  
f3ba9122 Rob Herring  2018-09-10  400   /* TODO: Re-enable all other address 
spaces */
f3ba9122 Rob Herring  2018-09-10  401   panfrost_mmu_enable(pfdev, 0);
f3ba9122 Rob Herring  2018-09-10  402   panfrost_gpu_power_on(pfdev);
f3ba9122 Rob Herring  2018-09-10  403   panfrost_job_enable_interrupts(pfdev);
f3ba9122 Rob Herring  2018-09-10  404  
f3ba9122 Rob Herring  2018-09-10  405   for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring  2018-09-10  406   
drm_sched_resubmit_jobs(&pfdev->js->queue[i].sched);
f3ba9122 Rob Herring  2018-09-10  407  
f3ba9122 Rob Herring  2018-09-10  408   /* restart scheduler after GPU is 
usable again */
f3ba9122 Rob Herring  2018-09-10  409   for (i = 0; i < NUM_JOB_SLOTS; i++)
f3ba9122 Rob Herring  2018-09-10  410   
drm_sched_start(&pfdev->js->queue[i].sched, true);
aa202367 Tomeu Vizoso 2019-04-18  411  
aa202367 Tomeu Vizoso 2019-04-18  412   mutex_unlock(&pfdev->reset_lock);
f3ba9122 Rob Herring  2018-09-10  413  }
f3ba9122 Rob Herring  2018-09-10  414  

:: The code at line 390 was first introduced by commit
:: f3ba91228e8e917e5bd6c4b72bfe846933d17370 drm/panfrost: Add initial 
panfrost driver

:: TO: Rob Herring 
:: CC: Rob Herring 

---

Re: [PATCH 2/2] video: fbdev: pvr2fb: add COMPILE_TEST support

2019-05-24 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc1 next-20190524]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-pvr2fb-remove-function-prototypes/20190524-145925
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>):

   drivers/video//fbdev/pvr2fb.c: In function 'pvr2_get_param':
>> drivers/video//fbdev/pvr2fb.c:737:12: warning: cast from pointer to integer 
>> of different size [-Wpointer-to-int-cast]
return (int)p[i].name;
   ^
   In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/video//fbdev/pvr2fb.c:48:
   drivers/video//fbdev/pvr2fb.c: In function 'pvr2fb_common_init':
>> drivers/video//fbdev/pvr2fb.c:823:3: warning: cast to pointer from integer 
>> of different size [-Wint-to-pointer-cast]
  (char *)pvr2_get_param(cables, NULL, cable_type, 3),
  ^
   include/linux/printk.h:311:34: note: in definition of macro 'pr_info'
 printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
 ^~~
>> drivers/video//fbdev/pvr2fb.c:819:2: note: in expansion of macro 'fb_info'
 fb_info(fb_info, "Mode %dx%d-%d pitch = %ld cable: %s video output: %s\n",
 ^~~
   drivers/video//fbdev/pvr2fb.c:824:3: warning: cast to pointer from integer 
of different size [-Wint-to-pointer-cast]
  (char *)pvr2_get_param(outputs, NULL, video_output, 3));
  ^
   include/linux/printk.h:311:34: note: in definition of macro 'pr_info'
 printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
 ^~~
>> drivers/video//fbdev/pvr2fb.c:819:2: note: in expansion of macro 'fb_info'
 fb_info(fb_info, "Mode %dx%d-%d pitch = %ld cable: %s video output: %s\n",
 ^~~

sparse warnings: (new ones prefixed by >>)

>> drivers/video/fbdev/pvr2fb.c:1050:11: sparse: sparse: Using plain integer as 
>> NULL pointer
>> drivers/video/fbdev/pvr2fb.c:737:46: sparse: sparse: non size-preserving 
>> pointer to integer cast
>> drivers/video/fbdev/pvr2fb.c:819:9: sparse: sparse: non size-preserving 
>> integer to pointer cast
>> drivers/video/fbdev/pvr2fb.c:819:9: sparse: sparse: non size-preserving 
>> integer to pointer cast

vim +/fb_info +819 drivers/video//fbdev/pvr2fb.c

970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  725 
 
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  726 
 static int pvr2_get_param(const struct pvr2_params *p, const char *s, int val,
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  727 
  int size)
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  728 
 {
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  729 
int i;
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  730 
 
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  731 
for (i = 0 ; i < size ; i++ ) {
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  732 
if (s != NULL) {
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  733 
if (!strncasecmp(p[i].name, s, strlen(s)))
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  734 
return p[i].val;
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  735 
} else {
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  736 
if (p[i].val == val)
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22 @737 
return (int)p[i].name;
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  738 
}
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  739 
}
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  740 
return -1;
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  741 
 }
970866e8 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-05-22  742 
 
^1da177e drivers/video/pvr2fb.c   Linus Torvalds   

Re: [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support

2019-05-24 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc1 next-20190524]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-atmel_lcdfb-add-COMPILE_TEST-support/20190524-184331
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>):

   drivers/video//fbdev/atmel_lcdfb.c: In function 'atmel_lcdfb_set_par':
>> drivers/video//fbdev/atmel_lcdfb.c:71:51: warning: large integer implicitly 
>> truncated to unsigned type [-Woverflow]
#define lcdc_writel(sinfo, reg, val) __raw_writel((val), 
(sinfo)->mmio+(reg))
  ^
>> drivers/video//fbdev/atmel_lcdfb.c:676:2: note: in expansion of macro 
>> 'lcdc_writel'
 lcdc_writel(sinfo, ATMEL_LCDC_IDR, ~0UL);
 ^~~
   drivers/video//fbdev/atmel_lcdfb.c: In function 'atmel_lcdfb_suspend':
>> drivers/video//fbdev/atmel_lcdfb.c:71:51: warning: large integer implicitly 
>> truncated to unsigned type [-Woverflow]
#define lcdc_writel(sinfo, reg, val) __raw_writel((val), 
(sinfo)->mmio+(reg))
  ^
   drivers/video//fbdev/atmel_lcdfb.c:1294:2: note: in expansion of macro 
'lcdc_writel'
 lcdc_writel(sinfo, ATMEL_LCDC_IDR, ~0UL);
 ^~~

vim +71 drivers/video//fbdev/atmel_lcdfb.c

b985172b drivers/video/atmel_lcdfb.c Jean-Christophe PLAGNIOL-VILLARD 
2013-03-29  69  
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre
2007-05-10  70  #define lcdc_readl(sinfo, reg)
__raw_readl((sinfo)->mmio+(reg))
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre
2007-05-10 @71  #define lcdc_writel(sinfo, reg, val)  __raw_writel((val), 
(sinfo)->mmio+(reg))
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre
2007-05-10  72  

:: The code at line 71 was first introduced by commit
:: 14340586148e7c88d7b1b752876f5b5227b200b9 atmel_lcdfb: AT91/AT32 LCD 
Controller framebuffer driver

:: TO: Nicolas Ferre 
:: CC: Linus Torvalds 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support

2019-05-24 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc1 next-20190524]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-atmel_lcdfb-add-COMPILE_TEST-support/20190524-184331
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> drivers/video/fbdev/atmel_lcdfb.c:354:27: sparse: sparse: incorrect type in 
>> assignment (different address spaces) @@expected char [noderef]  
>> *screen_base @@got n:2> *screen_base @@
>> drivers/video/fbdev/atmel_lcdfb.c:354:27: sparse:expected char [noderef] 
>>  *screen_base
>> drivers/video/fbdev/atmel_lcdfb.c:354:27: sparse:got void *
>> drivers/video/fbdev/atmel_lcdfb.c:362:9: sparse: sparse: incorrect type in 
>> argument 1 (different address spaces) @@expected void *s @@got char 
>> [noderef] > drivers/video/fbdev/atmel_lcdfb.c:362:9: sparse:expected void *s
>> drivers/video/fbdev/atmel_lcdfb.c:362:9: sparse:got char [noderef] 
>>  *screen_base
>> drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: sparse: incorrect type in 
>> argument 3 (different address spaces) @@expected void *cpu_addr @@
>> got char [noderef] > drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse:expected void *cpu_addr
   drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse:got char [noderef] 
 *screen_base
>> drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: sparse: incorrect type in 
>> argument 3 (different address spaces) @@expected void *cpu_addr @@
>> got char [noderef] > drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse:expected void *cpu_addr
   drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse:got char [noderef] 
 *screen_base

vim +354 drivers/video/fbdev/atmel_lcdfb.c

14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  328  
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  329  
static inline void atmel_lcdfb_free_video_memory(struct atmel_lcdfb_info *sinfo)
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  330  {
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  331   
struct fb_info *info = sinfo->info;
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  332  
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez  2016-01-22 @333   
dma_free_wc(info->device, info->fix.smem_len, info->screen_base,
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez  2016-01-22  334   
info->fix.smem_start);
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  335  }
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  336  
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  337  
/**
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  338   
*   atmel_lcdfb_alloc_video_memory - Allocate framebuffer memory
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  339   
*   @sinfo: the frame buffer to allocate memory for
1d01e835 drivers/video/atmel_lcdfb.c   Krzysztof Helt 2009-07-08  340   
*   
1d01e835 drivers/video/atmel_lcdfb.c   Krzysztof Helt 2009-07-08  341   
*   This function is called only from the atmel_lcdfb_probe()
1d01e835 drivers/video/atmel_lcdfb.c   Krzysztof Helt 2009-07-08  342   
*   so no locking by fb_info->mm_lock around smem_len setting is needed.
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  343   
*/
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  344  
static int atmel_lcdfb_alloc_video_memory(struct atmel_lcdfb_info *sinfo)
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  345  {
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  346   
struct fb_info *info = sinfo->info;
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  347   
struct fb_var_screeninfo *var = &info->var;
ea757aca drivers/video/atmel_lcdfb.c   Haavard Skinnemoen 2008-08-12  348   
unsigned int smem_len;
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  349  
ea757aca drivers/video/atmel_lcdfb.c   Haavard Skinnemoen 2008-08-12  350   
smem_len = (var->xres_virtual * var->yres_virtual
14340586 drivers/video/atmel_lcdfb.c   Nicolas Ferre  2007-05-10  351  

Re: [Intel-gfx] [PATCH] drm/i915/dsi: Use a fuzzy check for burst mode clock check

2019-05-24 Thread kbuild test robot
Hi Hans,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v5.2-rc1 next-20190524]
[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/Hans-de-Goede/drm-i915-dsi-Use-a-fuzzy-check-for-burst-mode-clock-check/20190525-045136
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-x001-201920 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:5:0,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/gpio/consumer.h:5,
from drivers/gpu/drm/i915/intel_dsi_vbt.c:27:
   drivers/gpu/drm/i915/intel_dsi_vbt.c: In function 'intel_dsi_vbt_init':
   drivers/gpu/drm/i915/intel_dsi_vbt.c:867:8: error: implicit declaration of 
function 'intel_fuzzy_clock_check'; did you mean 'intel_guc_log_create'? 
[-Werror=implicit-function-declaration]
   intel_fuzzy_clock_check(
   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers/gpu/drm/i915/intel_dsi_vbt.c:866:4: note: in expansion of macro 'if'
   if (mipi_config->target_burst_mode_freq < bitrate &&
   ^~
   cc1: some warnings being treated as errors

vim +/if +866 drivers/gpu/drm/i915/intel_dsi_vbt.c

   803  
   804  bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id)
   805  {
   806  struct drm_device *dev = intel_dsi->base.base.dev;
   807  struct drm_i915_private *dev_priv = to_i915(dev);
   808  struct mipi_config *mipi_config = dev_priv->vbt.dsi.config;
   809  struct mipi_pps_data *pps = dev_priv->vbt.dsi.pps;
   810  struct drm_display_mode *mode = dev_priv->vbt.lfp_lvds_vbt_mode;
   811  u16 burst_mode_ratio;
   812  enum port port;
   813  
   814  DRM_DEBUG_KMS("\n");
   815  
   816  intel_dsi->eotp_pkt = mipi_config->eot_pkt_disabled ? 0 : 1;
   817  intel_dsi->clock_stop = mipi_config->enable_clk_stop ? 1 : 0;
   818  intel_dsi->lane_count = mipi_config->lane_cnt + 1;
   819  intel_dsi->pixel_format =
   820  pixel_format_from_register_bits(
   821  mipi_config->videomode_color_format << 
7);
   822  
   823  intel_dsi->dual_link = mipi_config->dual_link;
   824  intel_dsi->pixel_overlap = mipi_config->pixel_overlap;
   825  intel_dsi->operation_mode = mipi_config->is_cmd_mode;
   826  intel_dsi->video_mode_format = mipi_config->video_transfer_mode;
   827  intel_dsi->escape_clk_div = mipi_config->byte_clk_sel;
   828  intel_dsi->lp_rx_timeout = mipi_config->lp_rx_timeout;
   829  intel_dsi->hs_tx_timeout = mipi_config->hs_tx_timeout;
   830  intel_dsi->turn_arnd_val = mipi_config->turn_around_timeout;
   831  intel_dsi->rst_timer_val = mipi_config->device_reset_timer;
   832  intel_dsi->init_count = mipi_config->master_init_timer;
   833  intel_dsi->bw_timer = mipi_config->dbi_bw_timer;
   834  intel_dsi->video_frmt_cfg_bits =
   835  mipi_config->bta_enabled ? DISABLE_VIDEO_BTA : 0;
   836  intel_dsi->bgr_enabled = mipi_config->rgb_flip;
   837  
   838  /* Starting point, adjusted depending on dual link and burst 
mode */
   839  intel_dsi->pclk = mode->clock;
   840  
   841  /* In dual link mode each port needs half of pixel clock */
   842  if (intel_dsi->dual_link) {
   843  intel_dsi->pclk /= 2;
   844  
   845  /* we can enable pixel_overlap if needed by panel. In 
this
   846   * case we need to increase the pixelclock for extra 
pixels
   847   */
   848  if (intel_dsi->dual_link == DSI_DUAL_LINK_FRONT_BACK) {
   849  intel_dsi->pclk += DIV_ROUND_UP(mode->vtotal * 
intel_dsi->pixel_overlap * 60, 1000);
   850  }
   851  }
   852  
   853  /* Burst Mode Ratio
   854   * Target ddr frequency from VBT / non burst ddr freq
   855   * multiply by 100 to preserve remainder
   856   */
   857  if (intel_dsi->v

Re: [Intel-gfx] [PATCH] drm/i915/dsi: Use a fuzzy check for burst mode clock check

2019-05-24 Thread kbuild test robot
Hi Hans,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.2-rc1 next-20190524]
[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/Hans-de-Goede/drm-i915-dsi-Use-a-fuzzy-check-for-burst-mode-clock-check/20190525-045136
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):


vim +867 drivers/gpu/drm/i915/intel_dsi_vbt.c

   803  
   804  bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id)
   805  {
   806  struct drm_device *dev = intel_dsi->base.base.dev;
   807  struct drm_i915_private *dev_priv = to_i915(dev);
   808  struct mipi_config *mipi_config = dev_priv->vbt.dsi.config;
   809  struct mipi_pps_data *pps = dev_priv->vbt.dsi.pps;
   810  struct drm_display_mode *mode = dev_priv->vbt.lfp_lvds_vbt_mode;
   811  u16 burst_mode_ratio;
   812  enum port port;
   813  
   814  DRM_DEBUG_KMS("\n");
   815  
   816  intel_dsi->eotp_pkt = mipi_config->eot_pkt_disabled ? 0 : 1;
   817  intel_dsi->clock_stop = mipi_config->enable_clk_stop ? 1 : 0;
   818  intel_dsi->lane_count = mipi_config->lane_cnt + 1;
   819  intel_dsi->pixel_format =
   820  pixel_format_from_register_bits(
   821  mipi_config->videomode_color_format << 
7);
   822  
   823  intel_dsi->dual_link = mipi_config->dual_link;
   824  intel_dsi->pixel_overlap = mipi_config->pixel_overlap;
   825  intel_dsi->operation_mode = mipi_config->is_cmd_mode;
   826  intel_dsi->video_mode_format = mipi_config->video_transfer_mode;
   827  intel_dsi->escape_clk_div = mipi_config->byte_clk_sel;
   828  intel_dsi->lp_rx_timeout = mipi_config->lp_rx_timeout;
   829  intel_dsi->hs_tx_timeout = mipi_config->hs_tx_timeout;
   830  intel_dsi->turn_arnd_val = mipi_config->turn_around_timeout;
   831  intel_dsi->rst_timer_val = mipi_config->device_reset_timer;
   832  intel_dsi->init_count = mipi_config->master_init_timer;
   833  intel_dsi->bw_timer = mipi_config->dbi_bw_timer;
   834  intel_dsi->video_frmt_cfg_bits =
   835  mipi_config->bta_enabled ? DISABLE_VIDEO_BTA : 0;
   836  intel_dsi->bgr_enabled = mipi_config->rgb_flip;
   837  
   838  /* Starting point, adjusted depending on dual link and burst 
mode */
   839  intel_dsi->pclk = mode->clock;
   840  
   841  /* In dual link mode each port needs half of pixel clock */
   842  if (intel_dsi->dual_link) {
   843  intel_dsi->pclk /= 2;
   844  
   845  /* we can enable pixel_overlap if needed by panel. In 
this
   846   * case we need to increase the pixelclock for extra 
pixels
   847   */
   848  if (intel_dsi->dual_link == DSI_DUAL_LINK_FRONT_BACK) {
   849  intel_dsi->pclk += DIV_ROUND_UP(mode->vtotal * 
intel_dsi->pixel_overlap * 60, 1000);
   850  }
   851  }
   852  
   853  /* Burst Mode Ratio
   854   * Target ddr frequency from VBT / non burst ddr freq
   855   * multiply by 100 to preserve remainder
   856   */
   857  if (intel_dsi->video_mode_format == VIDEO_MODE_BURST) {
   858  if (mipi_config->target_burst_mode_freq) {
   859  u32 bitrate = intel_dsi_bitrate(intel_dsi);
   860  
   861  /*
   862   * Sometimes the VBT contains a slightly lower 
clock,
   863   * then the bitrate we have calculated, in this 
case
   864   * just replace it with the calculated bitrate.
   865   */
   866  if (mipi_config->target_burst_mode_freq < 
bitrate &&
 > 867  intel_fuzzy_clock_check(

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 2/2] video: fbdev: pvr2fb: add COMPILE_TEST support

2019-05-26 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc2 next-20190524]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-pvr2fb-remove-function-prototypes/20190524-145925

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

smatch warnings:
drivers/video/fbdev/pvr2fb.c:467 pvr2fb_check_var() warn: unsigned 
'var->xoffset' is never less than zero.
drivers/video/fbdev/pvr2fb.c:467 pvr2fb_check_var() warn: unsigned 
'var->yoffset' is never less than zero.

vim +467 drivers/video/fbdev/pvr2fb.c

^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  430  
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  431  static int 
pvr2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  432  {
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  433  struct 
pvr2fb_par *par = (struct pvr2fb_par *)info->par;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  434  
unsigned int vtotal, hsync_total;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  435  
unsigned long line_length;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  436  
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  437  if 
(var->pixclock != TV_CLK && var->pixclock != VGA_CLK) {
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  438  
pr_debug("Invalid pixclock value %d\n", var->pixclock);
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  439  
return -EINVAL;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  440  }
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  441  
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  442  if 
(var->xres < 320)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  443  
var->xres = 320;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  444  if 
(var->yres < 240)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  445  
var->yres = 240;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  446  if 
(var->xres_virtual < var->xres)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  447  
var->xres_virtual = var->xres;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  448  if 
(var->yres_virtual < var->yres)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  449  
var->yres_virtual = var->yres;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  450  
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  451  if 
(var->bits_per_pixel <= 16)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  452  
var->bits_per_pixel = 16;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  453  else if 
(var->bits_per_pixel <= 24)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  454  
var->bits_per_pixel = 24;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  455  else if 
(var->bits_per_pixel <= 32)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  456  
var->bits_per_pixel = 32;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  457  
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  458  
set_color_bitfields(var);
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  459  
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  460  if 
(var->vmode & FB_VMODE_YWRAP) {
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  461  
if (var->xoffset || var->yoffset < 0 ||
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  462  
var->yoffset >= var->yres_virtual) {
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  463  
var->xoffset = var->yoffset = 0;
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  464  
} else {
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  465  
if (var->xoffset > var->xres_virtual - var->xres ||
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  466  
var->yoffset > var->yres_virtual - var->yres ||
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16 @467  
var->xoffset < 0 || var->yoffset < 0)
^1da177e drivers/video/pvr2fb.c Linus Torvalds 2005-04-16  468  
var->xoffset = var

[gabbayo:habanalabs-next 24/32] drivers/misc/habanalabs/habanalabs_ioctl.c:143:10-17: WARNING opportunity for memdup_user

2019-04-07 Thread kbuild test robot
tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   19b649b1933c3ed065426d612345115d15d90f23
commit: e4d7235a3c44a17cb0a70e8dde768b6345ba5dd4 [24/32] habanalabs: add new 
IOCTL for debug, tracing and profiling


coccinelle warnings: (new ones prefixed by >>)

>> drivers/misc/habanalabs/habanalabs_ioctl.c:143:10-17: WARNING opportunity 
>> for memdup_user

vim +143 drivers/misc/habanalabs/habanalabs_ioctl.c

   127  
   128  static int debug_coresight(struct hl_device *hdev, struct hl_debug_args 
*args)
   129  {
   130  struct hl_debug_params *params;
   131  void *input = NULL, *output = NULL;
   132  int rc;
   133  
   134  params = kzalloc(sizeof(*params), GFP_KERNEL);
   135  if (!params)
   136  return -ENOMEM;
   137  
   138  params->reg_idx = args->reg_idx;
   139  params->enable = args->enable;
   140  params->op = args->op;
   141  
   142  if (args->input_ptr && args->input_size) {
 > 143  input = kzalloc(args->input_size, GFP_KERNEL);
   144  if (!input) {
   145  rc = -ENOMEM;
   146  goto out;
   147  }
   148  
   149  if (copy_from_user(input,
   150  (void __user *) (uintptr_t) 
args->input_ptr,
   151  args->input_size)) {
   152  dev_err(hdev->dev,
   153  "copy from user failed in debug 
ioctl\n");
   154  rc = -EFAULT;
   155  goto out;
   156  }
   157  
   158  params->input = input;
   159  }
   160  
   161  if (args->output_ptr && args->output_size) {
   162  output = kzalloc(args->output_size, GFP_KERNEL);
   163  if (!output) {
   164  rc = -ENOMEM;
   165  goto out;
   166  }
   167  
   168  params->output = output;
   169  params->output_size = args->output_size;
   170  }
   171  
   172  rc = hdev->asic_funcs->debug_coresight(hdev, params);
   173  if (rc) {
   174  dev_err(hdev->dev,
   175  "debug coresight operation failed %d\n", rc);
   176  goto out;
   177  }
   178  
   179  if (output) {
   180  if (copy_to_user((void __user *) (uintptr_t) 
args->output_ptr,
   181  output,
   182  args->output_size)) {
   183  dev_err(hdev->dev,
   184  "copy to user failed in debug ioctl\n");
   185  rc = -EFAULT;
   186  goto out;
   187  }
   188  }
   189  
   190  out:
   191  kfree(params);
   192  kfree(output);
   193  kfree(input);
   194  
   195  return rc;
   196  }
   197  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-intel:topic/core-for-CI 15/15] drivers/acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' undeclared here (not in a function)

2019-04-10 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel topic/core-for-CI
head:   b573fba52f339dc4fadef7282af4a9413fd6173d
commit: b573fba52f339dc4fadef7282af4a9413fd6173d [15/15] ICL HACK: Disable ACPI 
idle driver
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b573fba52f339dc4fadef7282af4a9413fd6173d
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers/acpi/processor_driver.c:67:23: error: 'X86_VENDOR_INTEL' undeclared 
here (not in a function); did you mean 'X86_VENDOR_ANY'?
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
  ^
   drivers/acpi/processor_driver.c:69:2: note: in expansion of macro 'ICPU'
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
 ^~~~
>> drivers/acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' 
>> undeclared here (not in a function)
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
  ^
   drivers/acpi/processor_driver.c:67:44: note: in definition of macro 'ICPU'
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
   ^
   drivers/acpi/processor_driver.c: In function '__acpi_processor_start':
>> drivers/acpi/processor_driver.c:256:7: error: implicit declaration of 
>> function 'x86_match_cpu'; did you mean 'on_each_cpu'? 
>> [-Werror=implicit-function-declaration]
 id = x86_match_cpu(intel_cpu_ids);
  ^
  on_each_cpu
   drivers/acpi/processor_driver.c:256:5: warning: assignment makes pointer 
from integer without a cast [-Wint-conversion]
 id = x86_match_cpu(intel_cpu_ids);
^
   cc1: some warnings being treated as errors

vim +/INTEL_FAM6_ICELAKE_MOBILE +69 drivers/acpi/processor_driver.c

66  
  > 67  #define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
68  static const struct x86_cpu_id intel_cpu_ids[] = {
  > 69  ICPU(INTEL_FAM6_ICELAKE_MOBILE),/* ICL */
70  {}
71  };
72  MODULE_DEVICE_TABLE(x86cpu, intel_cpu_ids);
73  
74  static struct device_driver acpi_processor_driver = {
75  .name = "processor",
76  .bus = &cpu_subsys,
77  .acpi_match_table = processor_device_ids,
78  .probe = acpi_processor_start,
79  .remove = acpi_processor_stop,
80  };
81  
82  static void acpi_processor_notify(acpi_handle handle, u32 event, void 
*data)
83  {
84  struct acpi_device *device = data;
85  struct acpi_processor *pr;
86  int saved;
87  
88  if (device->handle != handle)
89  return;
90  
91  pr = acpi_driver_data(device);
92  if (!pr)
93  return;
94  
95  switch (event) {
96  case ACPI_PROCESSOR_NOTIFY_PERFORMANCE:
97  saved = pr->performance_platform_limit;
98  acpi_processor_ppc_has_changed(pr, 1);
99  if (saved == pr->performance_platform_limit)
   100  break;
   101  
acpi_bus_generate_netlink_event(device->pnp.device_class,
   102
dev_name(&device->dev), event,
   103
pr->performance_platform_limit);
   104  break;
   105  case ACPI_PROCESSOR_NOTIFY_POWER:
   106  acpi_processor_power_state_has_changed(pr);
   107  
acpi_bus_generate_netlink_event(device->pnp.device_class,
   108
dev_name(&device->dev), event, 0);
   109  break;
   110  case ACPI_PROCESSOR_NOTIFY_THROTTLING:
   111  acpi_processor_tstate_has_changed(pr);
   112  
acpi_bus_generate_netlink_event(device->pnp.device_class,
   113
dev_name(&device->dev), event, 0);
   114  break;
   115  default:
   116  ACPI_DEBUG_PRINT((ACPI_DB_INFO,
   117"Unsupported event [0x%x]\n", event));
   118  break;
   119  }
   120  
   121  return;
   122  }
   123  
   124  static int __acpi_processor_start(struct acpi_device *device);
   125  
   126  static int acpi_soft_cpu_online(unsigned int cpu)
   127  {
   128  struct acpi_processor *pr = per_cpu(processors, cpu);
   129  struct acpi_device *device;
   130  
   131  if (!pr || acpi_bus_get_device(pr->handle, &device))
   132  return 0;
   1

[drm-intel:topic/core-for-CI 15/15] drivers/acpi/processor_driver.c:67:23: error: 'X86_VENDOR_INTEL' undeclared here (not in a function); did you mean 'X86_VENDOR_ANY'?

2019-04-10 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel topic/core-for-CI
head:   b573fba52f339dc4fadef7282af4a9413fd6173d
commit: b573fba52f339dc4fadef7282af4a9413fd6173d [15/15] ICL HACK: Disable ACPI 
idle driver
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b573fba52f339dc4fadef7282af4a9413fd6173d
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

>> drivers/acpi/processor_driver.c:67:23: error: 'X86_VENDOR_INTEL' undeclared 
>> here (not in a function); did you mean 'X86_VENDOR_ANY'?
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
  ^~~~
   drivers/acpi/processor_driver.c:69:2: note: in expansion of macro 'ICPU'
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
 ^~~~
>> drivers/acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' 
>> undeclared here (not in a function); did you mean 
>> 'CONFIG_PINCTRL_ICELAKE_MODULE'?
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
  ^
   drivers/acpi/processor_driver.c:67:44: note: in definition of macro 'ICPU'
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
   ^
   drivers/acpi/processor_driver.c: In function '__acpi_processor_start':
   drivers/acpi/processor_driver.c:256:7: error: implicit declaration of 
function 'x86_match_cpu'; did you mean 'on_each_cpu'? 
[-Werror=implicit-function-declaration]
 id = x86_match_cpu(intel_cpu_ids);
  ^
  on_each_cpu
   drivers/acpi/processor_driver.c:256:5: warning: assignment to 'const struct 
x86_cpu_id *' from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 id = x86_match_cpu(intel_cpu_ids);
^
   cc1: some warnings being treated as errors

vim +67 drivers/acpi/processor_driver.c

66  
  > 67  #define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
68  static const struct x86_cpu_id intel_cpu_ids[] = {
  > 69  ICPU(INTEL_FAM6_ICELAKE_MOBILE),/* ICL */
70  {}
71  };
72  MODULE_DEVICE_TABLE(x86cpu, intel_cpu_ids);
73  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 5/5] drm/selftests: Add command line parser selftests

2019-04-12 Thread kbuild test robot
Hi Maxime,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc4 next-20190411]
[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/Maxime-Ripard/drm-modes-Rewrite-the-command-line-parser/20190412-122837
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:20:44: sparse: Using 
>> plain integer as NULL pointer
>> drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:21:42: sparse: missing 
>> braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:45:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:46:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:70:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:71:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:95:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:96:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:120:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:121:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:146:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:147:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:172:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:173:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:199:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:200:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:226:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:227:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:253:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:254:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:280:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:281:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:292:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:293:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:319:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:320:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:346:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:347:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:374:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:375:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:401:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:402:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:426:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:427:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:451:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:452:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:463:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:464:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:475:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:476:42: sparse: missing 
braces around initializer
   drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:490:44: sparse: Using 
plain integer as NULL pointer
   drivers/gpu/drm/selftests/test-drm_cmdline

Re: [PATCH v2 5/5] drm/selftests: Add command line parser selftests

2019-04-12 Thread kbuild test robot
Hi Maxime,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.1-rc4 next-20190411]
[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/Maxime-Ripard/drm-modes-Rewrite-the-command-line-parser/20190412-122837
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/selftests/test-drm_cmdline_parser.o: In function 
`test_drm_cmdline_init':
>> test-drm_cmdline_parser.c:(.init.text+0x0): multiple definition of 
>> `init_module'
   
drivers/gpu/drm/selftests/test-drm_modeset_common.o:test-drm_modeset_common.c:(.init.text+0x0):
 first defined here

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 1/5] drm/modes: Rewrite the command line parser

2019-04-12 Thread kbuild test robot
Hi Maxime,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.1-rc4 next-20190412]
[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/Maxime-Ripard/drm-modes-Rewrite-the-command-line-parser/20190412-122837
config: x86_64-randconfig-s1-04121728 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the 
linux-review/Maxime-Ripard/drm-modes-Rewrite-the-command-line-parser/20190412-122837
 HEAD 6993bfc971bbb32a70c38ec6e89a92c658f21f74 builds fine.
  It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:11:0,
from include/linux/list.h:9,
from drivers/gpu//drm/drm_modes.c:34:
   drivers/gpu//drm/drm_modes.c: In function 
'drm_mode_parse_command_line_for_connector':
>> drivers/gpu//drm/drm_modes.c:1591:7: error: 'named_mode' undeclared (first 
>> use in this function)
  if (named_mode)
  ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers/gpu//drm/drm_modes.c:1591:3: note: in expansion of macro 'if'
  if (named_mode)
  ^~
   drivers/gpu//drm/drm_modes.c:1591:7: note: each undeclared identifier is 
reported only once for each function it appears in
  if (named_mode)
  ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers/gpu//drm/drm_modes.c:1591:3: note: in expansion of macro 'if'
  if (named_mode)
  ^~

vim +/named_mode +1591 drivers/gpu//drm/drm_modes.c

  1571  
  1572  if (!mode_option) {
  1573  mode->specified = false;
  1574  return false;
  1575  }
  1576  
  1577  name = mode_option;
  1578  
  1579  if (!isdigit(name[0]))
  1580  return false;
  1581  
  1582  /* Try to locate the bpp and refresh specifiers, if any */
  1583  bpp_ptr = strchr(name, '-');
  1584  if (bpp_ptr) {
  1585  bpp_off = bpp_ptr - name;
  1586  mode->bpp_specified = true;
  1587  }
  1588  
  1589  refresh_ptr = strchr(name, '@');
  1590  if (refresh_ptr) {
> 1591  if (named_mode)
  1592  return false;
  1593  
  1594  refresh_off = refresh_ptr - name;
  1595  mode->refresh_specified = true;
  1596  }
  1597  
  1598  /* Locate the end of the name / resolution, and parse it */
  1599  if (bpp_ptr && refresh_ptr) {
  1600  mode_end = min(bpp_off, refresh_off);
  1601  } else if (bpp_ptr) {
  1602  mode_end = bpp_off;
  1603  } else if (refresh_ptr) {
  1604  mode_end = refresh_off;
  1605  } else {
  1606  mode_end = strlen(name);
  1607  parse_extras = true;
  1608  }
  1609  
  1610  ret = drm_mode_parse_cmdline_res_mode(name, mode_end,
  1611parse_extras,
  1612connector,
  1613mode);
  1614  if (ret)
  1615  return false;
  1616  mode->specified = true;
  1617  
  1618  if (bpp_ptr) {
  1619  ret = drm_mode_parse_cmdline_bpp(bpp_ptr, &bpp_end_ptr, 
mode);
  1620  if (ret)
  1621  return false;
  1622  }
  1623  
  1624  if (refresh_ptr) {
  1625  ret = drm_mode_parse_cmdline_refresh(refresh_ptr,
  1626   &refresh_end_ptr, 
mode);
  1627  if (ret)
  1628  return false;
  1629  }
  1630  
  1631  /*
  1632   * Locate the end of the bpp / refresh, and parse the extras
  1633   * if relevant
  1634   */
  1635  if (bpp_ptr && refresh_ptr)
  1636  extra_ptr = max(bpp_end_ptr, refresh_end_ptr);
  1637  else if (bpp_ptr)
  1638  extra_ptr = bpp_end_ptr;
  1639  else if (refresh_ptr)
  1640  extra_ptr = refresh_end_ptr;
  1641  
  1642  if (extra_ptr) {
  1643  int remaining = strlen(name) - (extra_ptr - name);
  1644  
  1645  /*
  1646   * We still have characters to process, while
  1647   * we shouldn't have any
  1648   *

Re: [PATCH] video: fbdev: pxa168fb: add COMPILE_TEST support

2019-04-12 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc4 next-20190412]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-pxa168fb-add-COMPILE_TEST-support/20190413-043546
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'


sparse warnings: (new ones prefixed by >>)

>> drivers/video/fbdev/pxa168fb.c:175:29: sparse: expression using sizeof(void)
>> drivers/video/fbdev/pxa168fb.c:175:29: sparse: expression using sizeof(void)
   drivers/video/fbdev/pxa168fb.c:180:37: sparse: expression using sizeof(void)
   drivers/video/fbdev/pxa168fb.c:180:37: sparse: expression using sizeof(void)
>> drivers/video/fbdev/pxa168fb.c:603:32: sparse: Using plain integer as NULL 
>> pointer
   drivers/video/fbdev/pxa168fb.c:604:37: sparse: Using plain integer as NULL 
pointer
>> drivers/video/fbdev/pxa168fb.c:680:27: sparse: incorrect type in assignment 
>> (different address spaces) @@expected char [noderef] *screen_base 
>> @@got sn:2>*screen_base @@
   drivers/video/fbdev/pxa168fb.c:680:27:expected char [noderef] 
*screen_base
   drivers/video/fbdev/pxa168fb.c:680:27:got void *
>> drivers/video/fbdev/pxa168fb.c:770:29: sparse: incorrect type in argument 3 
>> (different address spaces) @@expected void *cpu_addr @@got char 
>> [noderef] *screen_base
   drivers/video/fbdev/pxa168fb.c:805:25: sparse: incorrect type in argument 3 
(different address spaces) @@expected void *cpu_addr @@got char 
[noderef] *screen_base

vim +175 drivers/video/fbdev/pxa168fb.c

638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  165  
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  166  static 
void set_mode(struct pxa168fb_info *fbi, struct fb_var_screeninfo *var,
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  167 
 struct fb_videomode *mode, int pix_fmt, int ystretch)
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  168  {
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  169 struct 
fb_info *info = fbi->info;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  170  
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  171 
set_pix_fmt(var, pix_fmt);
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  172  
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  173 
var->xres = mode->xres;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  174 
var->yres = mode->yres;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11 @175 
var->xres_virtual = max(var->xres, var->xres_virtual);
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  176 if 
(ystretch)
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  177 
var->yres_virtual = info->fix.smem_len /
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  178 
(var->xres_virtual * (var->bits_per_pixel >> 3));
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  179 else
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  180 
var->yres_virtual = max(var->yres, var->yres_virtual);
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  181 
var->grayscale = 0;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  182 
var->accel_flags = FB_ACCEL_NONE;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  183 
var->pixclock = mode->pixclock;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  184 
var->left_margin = mode->left_margin;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  185 
var->right_margin = mode->right_margin;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  186 
var->upper_margin = mode->upper_margin;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  187 
var->lower_margin = mode->lower_margin;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  188 
var->hsync_len = mode->hsync_len;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  189 
var->vsync_len = mode->vsync_len;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  190 
var->sync = mode->sync;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  191 
var->vmode = FB_VMODE_NONINTERLACED;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  192 
var->rotate = FB_ROTATE_UR;
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  193  }
638772c7 drivers/video/pxa168fb.c Lennert Buytenhek 2009-02-11  194  

:: The code at line 175 was first introduced by commit
:: 638772c7553f6893f7b346bfee4d46851af59afc f

Re: [PATCH] video: fbdev: imxfb: add COMPILE_TEST support

2019-04-12 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc4 next-20190412]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-imxfb-add-COMPILE_TEST-support/20190413-050928
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'


sparse warnings: (new ones prefixed by >>)

>> drivers/video/fbdev/imxfb.c:380:35: sparse: expression using sizeof(void)
>> drivers/video/fbdev/imxfb.c:380:35: sparse: expression using sizeof(void)
   drivers/video/fbdev/imxfb.c:381:35: sparse: expression using sizeof(void)
   drivers/video/fbdev/imxfb.c:381:35: sparse: expression using sizeof(void)
   include/linux/slab.h:666:13: sparse: undefined identifier 
'__builtin_mul_overflow'
   drivers/video/fbdev/imxfb.c:926:38: sparse: expression using sizeof(void)
   drivers/video/fbdev/imxfb.c:926:38: sparse: expression using sizeof(void)
>> drivers/video/fbdev/imxfb.c:977:27: sparse: incorrect type in assignment 
>> (different address spaces) @@expected char [noderef] *screen_base 
>> @@got sn:2>*screen_base @@
   drivers/video/fbdev/imxfb.c:977:27:expected char [noderef] 
*screen_base
   drivers/video/fbdev/imxfb.c:977:27:got void *
>> drivers/video/fbdev/imxfb.c:1049:52: sparse: incorrect type in argument 3 
>> (different address spaces) @@expected void *cpu_addr @@got char 
>> [noderef] *screen_base
   drivers/video/fbdev/imxfb.c:1080:52: sparse: incorrect type in argument 3 
(different address spaces) @@expected void *cpu_addr @@got char 
[noderef] *screen_base
   include/linux/slab.h:666:13: sparse: call with no type!

vim +380 drivers/video/fbdev/imxfb.c

343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  344  
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  345  /*
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  346   *  
imxfb_check_var():
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  347   *
Round up in the following order: bits_per_pixel, xres,
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  348   *
yres, xres_virtual, yres_virtual, xoffset, yoffset, grayscale,
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  349   *
bitfields, horizontal timing, vertical timing.
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  350   */
66c8719b2 drivers/video/imxfb.c   Sascha Hauer  2008-12-16  351  static int 
imxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  352  {
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  353 struct 
imxfb_info *fbi = info->par;
80eee6bca drivers/video/imxfb.c   Sascha Hauer  2008-12-16  354 struct 
imxfb_rgb *rgb;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  355 const 
struct imx_fb_videomode *imxfb_mode;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  356 
unsigned long lcd_clk;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  357 
unsigned long long tmp;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  358 u32 pcr 
= 0;
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  359  
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  360 if 
(var->xres < MIN_XRES)
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  361 
var->xres = MIN_XRES;
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  362 if 
(var->yres < MIN_YRES)
7c2f891cb drivers/video/imxfb.c   Sascha Hauer  2005-05-01  363 
var->yres = MIN_YRES;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  364  
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  365 
imxfb_mode = imxfb_find_mode(fbi);
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  366 if 
(!imxfb_mode)
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  367 
return -EINVAL;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  368  
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  369 
var->xres   = imxfb_mode->mode.xres;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  370 
var->yres   = imxfb_mode->mode.yres;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  371 
var->bits_per_pixel = imxfb_mode->bpp;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  372 
var->pixclock   = imxfb_mode->mode.pixclock;
343684ffb drivers/video/imxfb.c   Sascha Hauer  2009-03-19  373 
var->hsync_len  = imxfb_mode->mode.hsync_len;
343684ffb drivers/video/imxfb.c   Sascha Hauer 

Re: [PATCH] video: fbdev: gbefb: add COMPILE_TEST support

2019-04-13 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.1-rc4 next-20190412]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-gbefb-add-COMPILE_TEST-support/20190413-072821
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/gbefb.o: In function `gbe_turn_off':
>> gbefb.c:(.text+0x9b8): undefined reference to `__bad_udelay'
   gbefb.c:(.text+0xa0c): undefined reference to `__bad_udelay'
   drivers/video/fbdev/gbefb.o: In function `gbe_turn_on':
   gbefb.c:(.text+0xb64): undefined reference to `__bad_udelay'
   gbefb.c:(.text+0xbb0): undefined reference to `__bad_udelay'
   drivers/video/fbdev/gbefb.o: In function `gbefb_set_par':
   gbefb.c:(.text+0xda4): undefined reference to `__bad_udelay'

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] video: fbdev: da8xx-fb: add COMPILE_TEST support

2019-04-15 Thread kbuild test robot
Hi Bartlomiej,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc5 next-20190415]
[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/Bartlomiej-Zolnierkiewicz/video-fbdev-da8xx-fb-add-COMPILE_TEST-support/20190415-184308
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'


sparse warnings: (new ones prefixed by >>)


vim +1159 drivers/video/fbdev/da8xx-fb.c

1f9c3e1f drivers/video/da8xx-fb.c Martin Ambrose2010-05-24  1144  
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1145  
static int fb_ioctl(struct fb_info *info, unsigned int cmd,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1146
  unsigned long arg)
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1147  {
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1148
struct lcd_sync_arg sync_arg;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1149  
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1150
switch (cmd) {
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1151
case FBIOGET_CONTRAST:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1152
case FBIOPUT_CONTRAST:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1153
case FBIGET_BRIGHTNESS:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1154
case FBIPUT_BRIGHTNESS:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1155
case FBIGET_COLOR:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1156
case FBIPUT_COLOR:
2f93e8f4 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1157
return -ENOTTY;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1158
case FBIPUT_HSYNC:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22 @1159
if (copy_from_user(&sync_arg, (char *)arg,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1160
sizeof(struct lcd_sync_arg)))
2f93e8f4 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1161
return -EFAULT;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1162
lcd_cfg_horizontal_sync(sync_arg.back_porch,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1163
sync_arg.pulse_width,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1164
sync_arg.front_porch);
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1165
break;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1166
case FBIPUT_VSYNC:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1167
if (copy_from_user(&sync_arg, (char *)arg,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1168
sizeof(struct lcd_sync_arg)))
2f93e8f4 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1169
return -EFAULT;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1170
lcd_cfg_vertical_sync(sync_arg.back_porch,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1171
sync_arg.pulse_width,
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1172
sync_arg.front_porch);
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1173
break;
1f9c3e1f drivers/video/da8xx-fb.c Martin Ambrose2010-05-24  1174
case FBIO_WAITFORVSYNC:
1f9c3e1f drivers/video/da8xx-fb.c Martin Ambrose2010-05-24  1175
return fb_wait_for_vsync(info);
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1176
default:
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1177
return -EINVAL;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1178
}
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1179
return 0;
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1180  }
4ed824d9 drivers/video/da8xx-fb.c Sudhakar Rajashekhara 2009-09-22  1181  

:: The code at line 1159 was first introduced by commit
:: 4ed824d9aead77a6a4eb1e89c3b3d270ba386fad davinci: fb: Frame Buffer 
driver for TI DA8xx/OMAP-L1xx

:: TO: Sudhakar Rajashekhara 
:: CC: Linus Torvalds 

---
0-DAY kernel test in

Re: [v2 2/5] drm/mediatek: CMDQ reg address of mt8173 is different with mt2701

2019-04-16 Thread kbuild test robot
Hi Jitao,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc5 next-20190416]
[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/Jitao-Shi/drm-mediatek-move-mipi_dsi_host_register-to-probe/20190417-100619
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/gpu//drm/mediatek/mtk_dsi.c: In function 'mtk_dsi_probe':
>> drivers/gpu//drm/mediatek/mtk_dsi.c:1129:19: warning: assignment discards 
>> 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 dsi->driver_data = of_id->data;
  ^

vim +/const +1129 drivers/gpu//drm/mediatek/mtk_dsi.c

  1099  
  1100  static int mtk_dsi_probe(struct platform_device *pdev)
  1101  {
  1102  struct mtk_dsi *dsi;
  1103  struct device *dev = &pdev->dev;
  1104  const struct of_device_id *of_id;
  1105  struct resource *regs;
  1106  int irq_num;
  1107  int comp_id;
  1108  int ret;
  1109  
  1110  dsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL);
    if (!dsi)
  1112  return -ENOMEM;
  1113  
  1114  dsi->host.ops = &mtk_dsi_ops;
  1115  dsi->host.dev = dev;
  1116  dsi->dev = dev;
  1117  ret = mipi_dsi_host_register(&dsi->host);
  1118  if (ret < 0) {
  1119  dev_err(dev, "failed to register DSI host: %d\n", ret);
  1120  return ret;
  1121  }
  1122  
  1123  ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0,
  1124&dsi->panel, &dsi->bridge);
  1125  if (ret)
  1126  goto err_unregister_host;
  1127  
  1128  of_id = of_match_device(mtk_dsi_of_match, &pdev->dev);
> 1129  dsi->driver_data = of_id->data;
  1130  
  1131  dsi->engine_clk = devm_clk_get(dev, "engine");
  1132  if (IS_ERR(dsi->engine_clk)) {
  1133  ret = PTR_ERR(dsi->engine_clk);
  1134  dev_err(dev, "Failed to get engine clock: %d\n", ret);
  1135  goto err_unregister_host;
  1136  }
  1137  
  1138  dsi->digital_clk = devm_clk_get(dev, "digital");
  1139  if (IS_ERR(dsi->digital_clk)) {
  1140  ret = PTR_ERR(dsi->digital_clk);
  1141  dev_err(dev, "Failed to get digital clock: %d\n", ret);
  1142  goto err_unregister_host;
  1143  }
  1144  
  1145  dsi->hs_clk = devm_clk_get(dev, "hs");
  1146  if (IS_ERR(dsi->hs_clk)) {
  1147  ret = PTR_ERR(dsi->hs_clk);
  1148  dev_err(dev, "Failed to get hs clock: %d\n", ret);
  1149  goto err_unregister_host;
  1150  }
  1151  
  1152  regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  1153  dsi->regs = devm_ioremap_resource(dev, regs);
  1154  if (IS_ERR(dsi->regs)) {
  1155  ret = PTR_ERR(dsi->regs);
  1156  dev_err(dev, "Failed to ioremap memory: %d\n", ret);
  1157  goto err_unregister_host;
  1158  }
  1159  
  1160  dsi->phy = devm_phy_get(dev, "dphy");
  1161  if (IS_ERR(dsi->phy)) {
  1162  ret = PTR_ERR(dsi->phy);
  1163  dev_err(dev, "Failed to get MIPI-DPHY: %d\n", ret);
  1164  goto err_unregister_host;
  1165  }
  1166  
  1167  comp_id = mtk_ddp_comp_get_id(dev->of_node, MTK_DSI);
  1168  if (comp_id < 0) {
  1169  dev_err(dev, "Failed to identify by alias: %d\n", 
comp_id);
  1170  ret = comp_id;
  1171  goto err_unregister_host;
  1172  }
  1173  
  1174  ret = mtk_ddp_comp_init(dev, dev->of_node, &dsi->ddp_comp, 
comp_id,
  1175  &mtk_dsi_funcs);
  1176  if (ret) {
  1177  dev_err(dev, "Failed to initialize component: %d\n", 
ret);
  1178  goto err_unregister_host;
  1179  }
  1180  
  1181  irq_num = platform_get_irq(pdev, 0);
  1182  if (irq_num < 0) {
  1183  dev_err(&pdev->dev, "failed to get dsi irq_num: %d\n", 
irq_num);
  1184  ret = irq_num;
  1185  goto err_unregister_host;
  1186  }
  1187  
  1188  irq_set_status_flags(irq_num, IRQ_TYPE_LEVEL_LOW);
  1189  ret = devm_request_irq(&pdev->dev, irq_

[radeon-alex:drm-next-5.2-wip 64/66] drivers/gpu/drm/ttm/ttm_bo.c:52:10: sparse: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?

2019-04-19 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.2-wip
head:   a70be09f90c0b211b45bae50eb98617d75713297
commit: 5c4923919f015e80e76d3d88d5743d422d105ff2 [64/66] drm/ttm: fix re-init 
of global structures
reproduce:
# apt-get install sparse
git checkout 5c4923919f015e80e76d3d88d5743d422d105ff2
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 



sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/ttm/ttm_bo.c:51:1: sparse: symbol 'ttm_global_mutex' was not 
declared. Should it be static?
>> drivers/gpu/drm/ttm/ttm_bo.c:52:10: sparse: symbol 'ttm_bo_glob_use_count' 
>> was not declared. Should it be static?
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   drivers/gpu/drm/ttm/ttm_bo.c:559:28: sparse: context imbalance in 
'ttm_bo_cleanup_refs' - unexpected unlock
   drivers/gpu/drm/ttm/ttm_bo.c:619:27: sparse: context imbalance in 
'ttm_bo_delayed_delete' - different lock contexts for basic block
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   drivers/gpu/drm/ttm/ttm_bo.c:787:12: sparse: context imbalance in 
'ttm_mem_evict_first' - different lock contexts for basic block
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression
   drivers/gpu/drm/ttm/ttm_bo.c:1765:5: sparse: context imbalance in 
'ttm_bo_swapout' - different lock contexts for basic block
   include/linux/reservation.h:220:20: sparse: dereference of noderef expression
   include/linux/reservation.h:220:45: sparse: dereference of noderef expression

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[RFC PATCH radeon-alex] drm/ttm: ttm_bo_glob_use_count can be static

2019-04-19 Thread kbuild test robot

Fixes: 5c4923919f01 ("drm/ttm: fix re-init of global structures")
Signed-off-by: kbuild test robot 
---
 ttm_bo.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 2845fce..a7bb5a2 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -49,7 +49,7 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj);
  * ttm_global_mutex - protecting the global BO state
  */
 DEFINE_MUTEX(ttm_global_mutex);
-unsigned ttm_bo_glob_use_count;
+static unsigned ttm_bo_glob_use_count;
 struct ttm_bo_global ttm_bo_glob;
 
 static struct attribute ttm_bo_count = {
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-tip:drm-tip 9/9] drivers/acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' undeclared here (not in a function); did you mean 'CONFIG_PINCTRL_ICELAKE_MODULE'?

2019-04-20 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   c5fdcd8bd5c596bfc70b6be93e6f04d910c51308
commit: c5fdcd8bd5c596bfc70b6be93e6f04d910c51308 [9/9] drm-tip: 
2019y-04m-19d-20h-56m-16s UTC integration manifest
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c5fdcd8bd5c596bfc70b6be93e6f04d910c51308
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


All errors (new ones prefixed by >>):

   drivers/acpi/processor_driver.c:67:23: error: 'X86_VENDOR_INTEL' undeclared 
here (not in a function); did you mean 'X86_VENDOR_ANY'?
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
  ^~~~
   drivers/acpi/processor_driver.c:69:2: note: in expansion of macro 'ICPU'
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
 ^~~~
>> drivers/acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' 
>> undeclared here (not in a function); did you mean 
>> 'CONFIG_PINCTRL_ICELAKE_MODULE'?
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
  ^
   drivers/acpi/processor_driver.c:67:44: note: in definition of macro 'ICPU'
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
   ^
   drivers/acpi/processor_driver.c: In function '__acpi_processor_start':
   drivers/acpi/processor_driver.c:256:7: error: implicit declaration of 
function 'x86_match_cpu'; did you mean 'on_each_cpu'? 
[-Werror=implicit-function-declaration]
 id = x86_match_cpu(intel_cpu_ids);
  ^
  on_each_cpu
   drivers/acpi/processor_driver.c:256:5: warning: assignment to 'const struct 
x86_cpu_id *' from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 id = x86_match_cpu(intel_cpu_ids);
^
   cc1: some warnings being treated as errors

vim +69 drivers/acpi/processor_driver.c

1ba90e3a drivers/acpi/processor_core.c   Thomas Renninger 2007-07-23  66  
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09 @67  
#define ICPU(model)   { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09  68  
static const struct x86_cpu_id intel_cpu_ids[] = {
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09 @69
ICPU(INTEL_FAM6_ICELAKE_MOBILE),/* ICL */
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09  70
{}
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09  71  };
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09  72  
MODULE_DEVICE_TABLE(x86cpu, intel_cpu_ids);
b573fba5 drivers/acpi/processor_driver.c Anshuman Gupta   2019-04-09  73  

:: The code at line 69 was first introduced by commit
:: b573fba52f339dc4fadef7282af4a9413fd6173d ICL HACK: Disable ACPI idle 
driver

:: TO: Anshuman Gupta 
:: CC: Chris Wilson 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm:drm-legacy-cleanup 13/24] drivers/gpu/drm/drm_vm.c:483:10: error: implicit declaration of function 'pte_wrprotect'

2019-04-22 Thread kbuild test robot
tree:   git://people.freedesktop.org/~airlied/linux.git drm-legacy-cleanup
head:   7b7678e3949f22d2442179f27d219b4b09ef1730
commit: 739d8489bcb277a1a27e56d0ef529f41c46425b4 [13/24] drm/nouveau: add 
kconfig option to turn off nouveau legacy contexts. (v2)
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 739d8489bcb277a1a27e56d0ef529f41c46425b4
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=c6x 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


All errors (new ones prefixed by >>):

   In file included from arch/c6x/include/asm/page.h:10,
from arch/c6x/include/asm/thread_info.h:18,
from include/linux/thread_info.h:38,
from include/asm-generic/current.h:5,
from ./arch/c6x/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from include/drm/drmP.h:36,
from drivers/gpu/drm/drm_vm.c:36:
   drivers/gpu/drm/drm_vm.c: In function 'drm_mmap_dma':
>> drivers/gpu/drm/drm_vm.c:483:10: error: implicit declaration of function 
>> 'pte_wrprotect' [-Werror=implicit-function-declaration]
(pte_wrprotect
 ^
   include/asm-generic/page.h:59:36: note: in definition of macro '__pgprot'
#define __pgprot(x) ((pgprot_t) { (x) } )
   ^
   drivers/gpu/drm/drm_vm.c:482:16: note: in expansion of macro 'pte_val'
  __pgprot(pte_val
   ^~~
>> include/asm-generic/page.h:51:24: error: request for member 'pte' in 
>> something not a structure or union
#define pte_val(x) ((x).pte)
   ^
   include/asm-generic/page.h:59:36: note: in definition of macro '__pgprot'
#define __pgprot(x) ((pgprot_t) { (x) } )
   ^
   drivers/gpu/drm/drm_vm.c:482:16: note: in expansion of macro 'pte_val'
  __pgprot(pte_val
   ^~~
   drivers/gpu/drm/drm_vm.c: In function 'drm_mmap_locked':
>> include/asm-generic/page.h:51:24: error: request for member 'pte' in 
>> something not a structure or union
#define pte_val(x) ((x).pte)
   ^
   include/asm-generic/page.h:59:36: note: in definition of macro '__pgprot'
#define __pgprot(x) ((pgprot_t) { (x) } )
   ^
   drivers/gpu/drm/drm_vm.c:566:16: note: in expansion of macro 'pte_val'
  __pgprot(pte_val
   ^~~
   cc1: some warnings being treated as errors
--
   In file included from arch/c6x/include/asm/page.h:10,
from arch/c6x/include/asm/thread_info.h:18,
from include/linux/thread_info.h:38,
from include/asm-generic/current.h:5,
from ./arch/c6x/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from include/drm/drmP.h:36,
from drivers/gpu//drm/drm_vm.c:36:
   drivers/gpu//drm/drm_vm.c: In function 'drm_mmap_dma':
   drivers/gpu//drm/drm_vm.c:483:10: error: implicit declaration of function 
'pte_wrprotect' [-Werror=implicit-function-declaration]
(pte_wrprotect
 ^
   include/asm-generic/page.h:59:36: note: in definition of macro '__pgprot'
#define __pgprot(x) ((pgprot_t) { (x) } )
   ^
   drivers/gpu//drm/drm_vm.c:482:16: note: in expansion of macro 'pte_val'
  __pgprot(pte_val
   ^~~
>> include/asm-generic/page.h:51:24: error: request for member 'pte' in 
>> something not a structure or union
#define pte_val(x) ((x).pte)
   ^
   include/asm-generic/page.h:59:36: note: in definition of macro '__pgprot'
#define __pgprot(x) ((pgprot_t) { (x) } )
   ^
   drivers/gpu//drm/drm_vm.c:482:16: note: in expansion of macro 'pte_val'
  __pgprot(pte_val
   ^~~
   drivers/gpu//drm/drm_vm.c: In function 'drm_mmap_locked&#

[drm:drm-legacy-cleanup 13/24] drivers/gpu//drm/drm_vm.c:482:16: note: in expansion of macro 'pte_val'

2019-04-23 Thread kbuild test robot
tree:   git://people.freedesktop.org/~airlied/linux.git drm-legacy-cleanup
head:   7b7678e3949f22d2442179f27d219b4b09ef1730
commit: 739d8489bcb277a1a27e56d0ef529f41c46425b4 [13/24] drm/nouveau: add 
kconfig option to turn off nouveau legacy contexts. (v2)
config: arm-lpc18xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 739d8489bcb277a1a27e56d0ef529f41c46425b4
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


All warnings (new ones prefixed by >>):

   In file included from arch/arm/include/asm/page.h:22:0,
from arch/arm/include/asm/thread_info.h:17,
from include/linux/thread_info.h:38,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from include/drm/drmP.h:36,
from drivers/gpu//drm/drm_vm.c:36:
   drivers/gpu//drm/drm_vm.c: In function 'drm_mmap_dma':
   drivers/gpu//drm/drm_vm.c:483:10: error: implicit declaration of function 
'pte_wrprotect' [-Werror=implicit-function-declaration]
(pte_wrprotect
 ^
   arch/arm/include/asm/page-nommu.h:35:26: note: in definition of macro 
'__pgprot'
#define __pgprot(x) (x)
 ^
>> drivers/gpu//drm/drm_vm.c:482:16: note: in expansion of macro 'pte_val'
  __pgprot(pte_val
   ^~~
   cc1: some warnings being treated as errors

vim +/pte_val +482 drivers/gpu//drm/drm_vm.c

^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  444  
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  445  /**
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  446   * 
mmap DMA memory.
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  447   *
6c340eac drivers/char/drm/drm_vm.c Eric Anholt   2007-08-25  448   * 
\param file_priv DRM file private.
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  449   * 
\param vma virtual memory area.
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  450   * 
\return zero on success or a negative number on failure.
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  451   *
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  452   * 
Sets the virtual memory area operations structure to vm_dma_ops, the file
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  453   * 
pointer, and calls vm_open().
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  454   */
c94f7029 drivers/char/drm/drm_vm.c Dave Airlie   2005-07-07  455  
static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma)
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  456  {
84b1fd10 drivers/char/drm/drm_vm.c Dave Airlie   2007-07-11  457
struct drm_file *priv = filp->private_data;
84b1fd10 drivers/char/drm/drm_vm.c Dave Airlie   2007-07-11  458
struct drm_device *dev;
cdd55a29 drivers/char/drm/drm_vm.c Dave Airlie   2007-07-11  459
struct drm_device_dma *dma;
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  460
unsigned long length = vma->vm_end - vma->vm_start;
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  461  
2c14f28b drivers/char/drm/drm_vm.c Dave Airlie   2008-04-21  462
dev = priv->minor->dev;
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  463
dma = dev->dma;
1545085a drivers/char/drm/drm_vm.c Thomas Hellstrom  2007-02-08  464
DRM_DEBUG("start = 0x%lx, end = 0x%lx, page offset = 0x%lx\n",
1545085a drivers/char/drm/drm_vm.c Thomas Hellstrom  2007-02-08  465
  vma->vm_start, vma->vm_end, vma->vm_pgoff);
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  466  
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  467
/* Length must match exact page count */
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  468
if (!dma || (length >> PAGE_SHIFT) != dma->page_count) {
^1da177e drivers/char/drm/drm_vm.c Linus Torvalds2005-04-16  469
return -EINVAL;
^1da177e drivers/char/drm/drm_vm.c

[drm-tip:drm-tip 3/9] drivers/gpu/drm/virtio/virtgpu_prime.c:43:18: error: redefinition of 'virtgpu_gem_prime_get_sg_table'

2019-04-24 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   575436c338f413c032e3accde7933e67f44261fb
commit: 3a6142185c17293159dec428c56f7f1f0ec53f61 [3/9] Merge remote-tracking 
branch 'drm/drm-next' into drm-tip
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 3a6142185c17293159dec428c56f7f1f0ec53f61
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 
All errors (new ones prefixed by >>):

>> drivers/gpu/drm/virtio/virtgpu_prime.c:43:18: error: redefinition of 
>> 'virtgpu_gem_prime_get_sg_table'
struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
 ^~
   drivers/gpu/drm/virtio/virtgpu_prime.c:31:18: note: previous definition of 
'virtgpu_gem_prime_get_sg_table' was here
struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
 ^~

vim +/virtgpu_gem_prime_get_sg_table +43 drivers/gpu/drm/virtio/virtgpu_prime.c

11a8f280 Dave Airlie 2015-01-23  42  
a0cecc23 Dave Airlie 2019-04-24 @43  struct sg_table 
*virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
a0cecc23 Dave Airlie 2019-04-24  44  {
a0cecc23 Dave Airlie 2019-04-24  45 return ERR_PTR(-ENODEV);
a0cecc23 Dave Airlie 2019-04-24  46  }
a0cecc23 Dave Airlie 2019-04-24  47  

:: The code at line 43 was first introduced by commit
:: a0cecc23cfcbf2626497a8c8770856dd56b67917 Revert "drm/virtio: drop prime 
import/export callbacks"

:: TO: Dave Airlie 
:: CC: Dave Airlie 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-tip:drm-tip 3/9] drivers/gpu/drm/virtio/virtgpu_prime.c:31:17: sparse: the previous one is here

2019-04-24 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   575436c338f413c032e3accde7933e67f44261fb
commit: 3a6142185c17293159dec428c56f7f1f0ec53f61 [3/9] Merge remote-tracking 
branch 'drm/drm-next' into drm-tip
reproduce:
# apt-get install sparse
git checkout 3a6142185c17293159dec428c56f7f1f0ec53f61
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/virtio/virtgpu_prime.c:43:17: sparse: sparse: multiple 
definitions for function 'virtgpu_gem_prime_get_sg_table'
>> drivers/gpu/drm/virtio/virtgpu_prime.c:31:17: sparse:  the previous one is 
>> here

vim +31 drivers/gpu/drm/virtio/virtgpu_prime.c

11a8f280 Dave Airlie  2015-01-23  26  
11a8f280 Dave Airlie  2015-01-23  27  /* Empty Implementations as there 
should not be any other driver for a virtual
5d883850 Rodrigo Siqueira 2018-02-22  28   * device that might share buffers 
with virtgpu
5d883850 Rodrigo Siqueira 2018-02-22  29   */
11a8f280 Dave Airlie  2015-01-23  30  
98f41dc3 Gerd Hoffmann2019-02-27 @31  struct sg_table 
*virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
11a8f280 Dave Airlie  2015-01-23  32  {
98f41dc3 Gerd Hoffmann2019-02-27  33struct virtio_gpu_object *bo = 
gem_to_virtio_gpu_obj(obj);
11a8f280 Dave Airlie  2015-01-23  34  
98f41dc3 Gerd Hoffmann2019-02-27  35if (!bo->tbo.ttm->pages || 
!bo->tbo.ttm->num_pages)
98f41dc3 Gerd Hoffmann2019-02-27  36/* should not happen */
98f41dc3 Gerd Hoffmann2019-02-27  37return ERR_PTR(-EINVAL);
98f41dc3 Gerd Hoffmann2019-02-27  38  
98f41dc3 Gerd Hoffmann2019-02-27  39return 
drm_prime_pages_to_sg(bo->tbo.ttm->pages,
98f41dc3 Gerd Hoffmann2019-02-27  40 
bo->tbo.ttm->num_pages);
11a8f280 Dave Airlie  2015-01-23  41  }
11a8f280 Dave Airlie  2015-01-23  42  
a0cecc23 Dave Airlie  2019-04-24 @43  struct sg_table 
*virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
a0cecc23 Dave Airlie  2019-04-24  44  {
a0cecc23 Dave Airlie  2019-04-24  45return ERR_PTR(-ENODEV);
a0cecc23 Dave Airlie  2019-04-24  46  }
a0cecc23 Dave Airlie  2019-04-24  47  

:: The code at line 31 was first introduced by commit
:: 98f41dc3b3eeabfc80d5d5eb1c1a6294ff59b4ec drm/virtio: implement prime 
export

:: TO: Gerd Hoffmann 
:: CC: Gerd Hoffmann 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[radeon-alex:amd-19.10 2196/2588] drivers/gpu//drm/rcar-du/rcar_du_crtc.c:861:20: error: initialization from incompatible pointer type

2019-04-26 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-19.10
head:   5243d576a3bba97121d5671260d67de785d150b7
commit: 8bbc49ebffd58f39911ec28a8d6f2f9611391824 [2196/2588] drm/crc: Cleanup 
crtc_crc_open function
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8bbc49ebffd58f39911ec28a8d6f2f9611391824
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

>> drivers/gpu//drm/rcar-du/rcar_du_crtc.c:861:20: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
 .set_crc_source = rcar_du_crtc_set_crc_source,
   ^~~
   drivers/gpu//drm/rcar-du/rcar_du_crtc.c:861:20: note: (near initialization 
for 'crtc_funcs_gen3.set_crc_source')
   cc1: some warnings being treated as errors

vim +861 drivers/gpu//drm/rcar-du/rcar_du_crtc.c

47a52d024 Laurent Pinchart 2017-12-01  851  
47a52d024 Laurent Pinchart 2017-12-01  852  static const struct drm_crtc_funcs 
crtc_funcs_gen3 = {
47a52d024 Laurent Pinchart 2017-12-01  853  .reset = rcar_du_crtc_reset,
4bf8e1962 Laurent Pinchart 2013-06-19  854  .destroy = drm_crtc_cleanup,
cf1cc6f24 Laurent Pinchart 2015-02-20  855  .set_config = 
drm_atomic_helper_set_config,
d5746642f Laurent Pinchart 2015-02-23  856  .page_flip = 
drm_atomic_helper_page_flip,
47a52d024 Laurent Pinchart 2017-12-01  857  .atomic_duplicate_state = 
rcar_du_crtc_atomic_duplicate_state,
47a52d024 Laurent Pinchart 2017-12-01  858  .atomic_destroy_state = 
rcar_du_crtc_atomic_destroy_state,
20c8a288a Shawn Guo2017-02-07  859  .enable_vblank = 
rcar_du_crtc_enable_vblank,
20c8a288a Shawn Guo2017-02-07  860  .disable_vblank = 
rcar_du_crtc_disable_vblank,
47a52d024 Laurent Pinchart 2017-12-01 @861  .set_crc_source = 
rcar_du_crtc_set_crc_source,
4bf8e1962 Laurent Pinchart 2013-06-19  862  };
4bf8e1962 Laurent Pinchart 2013-06-19  863  

:: The code at line 861 was first introduced by commit
:: 47a52d024e89be114df910d8331c5cabd229da98 media: drm: rcar-du: Add 
support for CRC computation

:: TO: Laurent Pinchart 
:: CC: Mauro Carvalho Chehab 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[drm-intel:topic/core-for-CI 16/16] drivers//acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' undeclared here (not in a function)

2019-04-29 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel topic/core-for-CI
head:   5172ea7b473b47bf94d78cabdce3dc8eb6c4e976
commit: 5172ea7b473b47bf94d78cabdce3dc8eb6c4e976 [16/16] ICL HACK: Disable ACPI 
idle driver
config: ia64-gensparse_defconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5172ea7b473b47bf94d78cabdce3dc8eb6c4e976
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers//acpi/processor_driver.c:67:23: error: 'X86_VENDOR_INTEL' undeclared 
here (not in a function); did you mean 'X86_VENDOR_ANY'?
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
  ^~~~
   drivers//acpi/processor_driver.c:69:2: note: in expansion of macro 'ICPU'
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
 ^~~~
>> drivers//acpi/processor_driver.c:69:7: error: 'INTEL_FAM6_ICELAKE_MOBILE' 
>> undeclared here (not in a function)
 ICPU(INTEL_FAM6_ICELAKE_MOBILE), /* ICL */
  ^
   drivers//acpi/processor_driver.c:67:44: note: in definition of macro 'ICPU'
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
   ^
   drivers//acpi/processor_driver.c: In function '__acpi_processor_start':
   drivers//acpi/processor_driver.c:256:7: error: implicit declaration of 
function 'x86_match_cpu'; did you mean 'on_each_cpu'? 
[-Werror=implicit-function-declaration]
 id = x86_match_cpu(intel_cpu_ids);
  ^
  on_each_cpu
   drivers//acpi/processor_driver.c:256:5: warning: assignment to 'const struct 
x86_cpu_id *' from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 id = x86_match_cpu(intel_cpu_ids);
^
   cc1: some warnings being treated as errors

vim +/INTEL_FAM6_ICELAKE_MOBILE +69 drivers//acpi/processor_driver.c

66  
  > 67  #define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
68  static const struct x86_cpu_id intel_cpu_ids[] = {
  > 69  ICPU(INTEL_FAM6_ICELAKE_MOBILE),/* ICL */
70  {}
71  };
72  MODULE_DEVICE_TABLE(x86cpu, intel_cpu_ids);
73  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH] dma-buf: add struct dma_buf_attach_info v2

2019-04-30 Thread kbuild test robot
Hi "Christian,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.1-rc7 next-20190429]
[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/Christian-K-nig/dma-buf-add-struct-dma_buf_attach_info-v2/20190430-221017
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/staging/media/tegra-vde/tegra-vde.c: In function 
'tegra_vde_attach_dmabuf':
>> drivers/staging/media/tegra-vde/tegra-vde.c:573:13: error: 'dmabuf' 
>> undeclared (first use in this function); did you mean 'dma_buf'?
  .dmabuf = dmabuf
^~
dma_buf
   drivers/staging/media/tegra-vde/tegra-vde.c:573:13: note: each undeclared 
identifier is reported only once for each function it appears in

vim +573 drivers/staging/media/tegra-vde/tegra-vde.c

   559  
   560  static int tegra_vde_attach_dmabuf(struct device *dev,
   561 int fd,
   562 unsigned long offset,
   563 size_t min_size,
   564 size_t align_size,
   565 struct dma_buf_attachment **a,
   566 dma_addr_t *addr,
   567 struct sg_table **s,
   568 size_t *size,
   569 enum dma_data_direction dma_dir)
   570  {
   571  struct dma_buf_attach_info attach_info = {
   572  .dev = dev,
 > 573  .dmabuf = dmabuf
   574  };
   575  struct dma_buf_attachment *attachment;
   576  struct dma_buf *dmabuf;
   577  struct sg_table *sgt;
   578  int err;
   579  
   580  dmabuf = dma_buf_get(fd);
   581  if (IS_ERR(dmabuf)) {
   582  dev_err(dev, "Invalid dmabuf FD\n");
   583  return PTR_ERR(dmabuf);
   584  }
   585  
   586  if (dmabuf->size & (align_size - 1)) {
   587  dev_err(dev, "Unaligned dmabuf 0x%zX, should be aligned 
to 0x%zX\n",
   588  dmabuf->size, align_size);
   589  return -EINVAL;
   590  }
   591  
   592  if ((u64)offset + min_size > dmabuf->size) {
   593  dev_err(dev, "Too small dmabuf size %zu @0x%lX, should 
be at least %zu\n",
   594  dmabuf->size, offset, min_size);
   595  return -EINVAL;
   596  }
   597  
   598  attachment = dma_buf_attach(&attach_info);
   599  if (IS_ERR(attachment)) {
   600  dev_err(dev, "Failed to attach dmabuf\n");
   601  err = PTR_ERR(attachment);
   602  goto err_put;
   603  }
   604  
   605  sgt = dma_buf_map_attachment(attachment, dma_dir);
   606  if (IS_ERR(sgt)) {
   607  dev_err(dev, "Failed to get dmabufs sg_table\n");
   608  err = PTR_ERR(sgt);
   609  goto err_detach;
   610  }
   611  
   612  if (sgt->nents != 1) {
   613  dev_err(dev, "Sparse DMA region is unsupported\n");
   614  err = -EINVAL;
   615  goto err_unmap;
   616  }
   617  
   618  *addr = sg_dma_address(sgt->sgl) + offset;
   619  *a = attachment;
   620  *s = sgt;
   621  
   622  if (size)
   623  *size = dmabuf->size - offset;
   624  
   625  return 0;
   626  
   627  err_unmap:
   628  dma_buf_unmap_attachment(attachment, sgt, dma_dir);
   629  err_detach:
   630  dma_buf_detach(dmabuf, attachment);
   631  err_put:
   632  dma_buf_put(dmabuf);
   633  
   634  return err;
   635  }
   636  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH] dma-buf: add struct dma_buf_attach_info v2

2019-04-30 Thread kbuild test robot
Hi "Christian,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc7 next-20190430]
[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/Christian-K-nig/dma-buf-add-struct-dma_buf_attach_info-v2/20190430-221017
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> drivers/xen/gntdev-dmabuf.c:634:33: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@expected struct dma_buf_attach_info 
>> const *info @@got dma_buf_attach_info const *info @@
>> drivers/xen/gntdev-dmabuf.c:634:33: sparse:expected struct 
>> dma_buf_attach_info const *info
>> drivers/xen/gntdev-dmabuf.c:634:33: sparse:got struct dma_buf 
>> *[assigned] dma_buf
>> drivers/xen/gntdev-dmabuf.c:634:32: sparse: sparse: too many arguments for 
>> function dma_buf_attach

vim +634 drivers/xen/gntdev-dmabuf.c

bf8dc55b Oleksandr Andrushchenko 2018-07-20  605  
932d6562 Oleksandr Andrushchenko 2018-07-20  606  static struct gntdev_dmabuf *
932d6562 Oleksandr Andrushchenko 2018-07-20  607  dmabuf_imp_to_refs(struct 
gntdev_dmabuf_priv *priv, struct device *dev,
932d6562 Oleksandr Andrushchenko 2018-07-20  608   int fd, int 
count, int domid)
932d6562 Oleksandr Andrushchenko 2018-07-20  609  {
bf8dc55b Oleksandr Andrushchenko 2018-07-20  610struct gntdev_dmabuf 
*gntdev_dmabuf, *ret;
e648feab Christian König 2019-04-30  611struct 
dma_buf_attach_info attach_info;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  612struct dma_buf *dma_buf;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  613struct 
dma_buf_attachment *attach;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  614struct sg_table *sgt;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  615struct sg_page_iter 
sg_iter;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  616int i;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  617  
bf8dc55b Oleksandr Andrushchenko 2018-07-20  618dma_buf = 
dma_buf_get(fd);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  619if (IS_ERR(dma_buf))
bf8dc55b Oleksandr Andrushchenko 2018-07-20  620return 
ERR_CAST(dma_buf);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  621  
bf8dc55b Oleksandr Andrushchenko 2018-07-20  622gntdev_dmabuf = 
dmabuf_imp_alloc_storage(count);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  623if 
(IS_ERR(gntdev_dmabuf)) {
bf8dc55b Oleksandr Andrushchenko 2018-07-20  624ret = 
gntdev_dmabuf;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  625goto fail_put;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  626}
bf8dc55b Oleksandr Andrushchenko 2018-07-20  627  
bf8dc55b Oleksandr Andrushchenko 2018-07-20  628gntdev_dmabuf->priv = 
priv;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  629gntdev_dmabuf->fd = fd;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  630  
e648feab Christian König 2019-04-30  631memset(&attach_info, 0, 
sizeof(attach_info));
e648feab Christian König 2019-04-30  632attach_info.dev = dev;
e648feab Christian König 2019-04-30  633attach_info.dmabuf = 
dma_buf;
bf8dc55b Oleksandr Andrushchenko 2018-07-20 @634attach = 
dma_buf_attach(dma_buf, dev);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  635if (IS_ERR(attach)) {
bf8dc55b Oleksandr Andrushchenko 2018-07-20  636ret = 
ERR_CAST(attach);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  637goto 
fail_free_obj;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  638}
bf8dc55b Oleksandr Andrushchenko 2018-07-20  639  
bf8dc55b Oleksandr Andrushchenko 2018-07-20  640
gntdev_dmabuf->u.imp.attach = attach;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  641  
bf8dc55b Oleksandr Andrushchenko 2018-07-20  642sgt = 
dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  643if (IS_ERR(sgt)) {
bf8dc55b Oleksandr Andrushchenko 2018-07-20  644ret = 
ERR_CAST(sgt);
bf8dc55b Oleksandr Andrushchenko 2018-07-20  645goto 
fail_detach;
bf8dc55b Oleksandr Andrushchenko 2018-07-20  646}
bf8dc55b Oleksandr Andrushchenko 2018-07-20  647  
bf8dc55b Oleksandr Andrushchenko 2018-07-20  648/* Check number of 
pages that imported buffer has. */
bf8dc55b Oleksandr Andrushchenko 2018-07-20  649if 
(attach->dmabuf->size != gntdev_dmabuf->nr_pages << PAGE_SHIFT) {
bf8dc55b Oleksandr Andrushchenko 2018-07-20  650ret = 

Re: [PATCH v8] arm64: dts: sdm845: Add gpu and gmu device nodes

2019-01-20 Thread kbuild test robot
Hi Jordan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v5.0-rc2]
[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/Jordan-Crouse/arm64-dts-sdm845-Add-gpu-and-gmu-device-nodes/20190118-051651
config: arm64-allyesconfig
compiler: aarch64-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
GCC_VERSION=8.2.0 make.cross ARCH=arm64  allyesconfig
GCC_VERSION=8.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[drm-intel:drm-intel-next-queued 2/2] drivers/gpu//drm/i915/i915_reset.c:689:13: error: format '%lld' expects argument of type 'long long int', but argument 5 has type 'unsigned int'

2019-01-21 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   9f58892ea9962002399132fd3f40c6a273f8d9e1
commit: 9f58892ea9962002399132fd3f40c6a273f8d9e1 [2/2] drm/i915: Pull all the 
reset functionality together into i915_reset.c
config: i386-randconfig-x007-201903 (attached as .config)
compiler: gcc-8 (Debian 8.2.0-14) 8.2.0
reproduce:
git checkout 9f58892ea9962002399132fd3f40c6a273f8d9e1
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from include/linux/sched/mm.h:5,
from drivers/gpu//drm/i915/i915_reset.c:7:
   drivers/gpu//drm/i915/i915_reset.c: In function 'reset_request':
>> drivers/gpu//drm/i915/i915_reset.c:689:13: error: format '%lld' expects 
>> argument of type 'long long int', but argument 5 has type 'unsigned int' 
>> [-Werror=format=]
  GEM_TRACE("%s pardoned global=%d (fence %llx:%lld), current %d\n",
^~~
   drivers/gpu//drm/i915/i915_reset.c:691:25:
 rq->fence.context, rq->fence.seqno,
~~~
   include/linux/kernel.h:683:33: note: in definition of macro 
'__trace_printk_check_format'
  trace_printk_check_format(fmt, ##args);  \
^~~
   include/linux/kernel.h:720:3: note: in expansion of macro 'do_trace_printk'
  do_trace_printk(fmt, ##__VA_ARGS__); \
  ^~~
   drivers/gpu//drm/i915/i915_gem.h:66:24: note: in expansion of macro 
'trace_printk'
#define GEM_TRACE(...) trace_printk(__VA_ARGS__)
   ^~~~
   drivers/gpu//drm/i915/i915_reset.c:689:3: note: in expansion of macro 
'GEM_TRACE'
  GEM_TRACE("%s pardoned global=%d (fence %llx:%lld), current %d\n",
  ^
   drivers/gpu//drm/i915/i915_reset.c:689:13: error: format '%lld' expects 
argument of type 'long long int', but argument 6 has type 'unsigned int' 
[-Werror=format=]
  GEM_TRACE("%s pardoned global=%d (fence %llx:%lld), current %d\n",
^~~
   drivers/gpu//drm/i915/i915_reset.c:691:25:
 rq->fence.context, rq->fence.seqno,
~~~
   include/linux/kernel.h:736:29: note: in definition of macro 'do_trace_printk'
  __trace_printk(_THIS_IP_, fmt, ##args);   \
^~~
   drivers/gpu//drm/i915/i915_gem.h:66:24: note: in expansion of macro 
'trace_printk'
#define GEM_TRACE(...) trace_printk(__VA_ARGS__)
   ^~~~
   drivers/gpu//drm/i915/i915_reset.c:689:3: note: in expansion of macro 
'GEM_TRACE'
  GEM_TRACE("%s pardoned global=%d (fence %llx:%lld), current %d\n",
  ^
   drivers/gpu//drm/i915/i915_reset.c: In function 'nop_submit_request':
   drivers/gpu//drm/i915/i915_reset.c:804:12: error: format '%lld' expects 
argument of type 'long long int', but argument 4 has type 'unsigned int' 
[-Werror=format=]
 GEM_TRACE("%s fence %llx:%lld -> -EIO\n",
   ^~
   drivers/gpu//drm/i915/i915_reset.c:806:29:
request->fence.context, request->fence.seqno);

   include/linux/kernel.h:683:33: note: in definition of macro 
'__trace_printk_check_format'
  trace_printk_check_format(fmt, ##args);  \
^~~
   include/linux/kernel.h:720:3: note: in expansion of macro 'do_trace_printk'
  do_trace_printk(fmt, ##__VA_ARGS__); \
  ^~~
   drivers/gpu//drm/i915/i915_gem.h:66:24: note: in expansion of macro 
'trace_printk'
#define GEM_TRACE(...) trace_printk(__VA_ARGS__)
   ^~~~
   drivers/gpu//drm/i915/i915_reset.c:804:2: note: in expansion of macro 
'GEM_TRACE'
 GEM_TRACE("%s fence %llx:%lld -> -EIO\n",
 ^
   drivers/gpu//drm/i915/i915_reset.c:804:12: error: format '%lld' expects 
argument of type 'long long int', but argument 5 has type 'unsigned int' 
[-Werror=format=]
 GEM_TRACE("%s fence %llx:%lld -> -EIO\n",
   ^~
   drivers/gpu//drm/i915/i915_reset.c:806:29:
request->fence.context, request->fence.seqno);

   include/linux/kernel.h:736:29: note: in definition of macro 'do_trace_printk'
  __trace_printk(_THIS_IP_, fmt, ##args);   \
^~~
   drivers/gpu//drm/i915/i915_gem.h:66:24: note: in expansion of macro 
'trace_printk'
#define GEM_TRACE(...) trace_printk(__VA_ARGS__)
   ^~~~
   drivers/gpu//drm/i915/i915_reset.c:804:2: note: in expansion of macro 
'GEM_TRACE'
 GEM_TRACE("%s fence %llx:%lld -> -EIO\n",
 ^
   cc1: all warnings being treated as errors

vim +689 drivers/gpu//drm/i915/i915_reset.c

   659  
   660  

Re: [PATCH 1/2] drm: Add DRM_DEV_INFO_RATELIMITED

2019-01-21 Thread kbuild test robot
Hi Kristian,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.0-rc2 next-20190116]
[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/Kristian-H-Kristensen/drm-Add-DRM_DEV_INFO_RATELIMITED/20190121-162608
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.ack_signal_filled' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.avg_ack_signal' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.packets' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.bytes' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.last_rate' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.msdu' not described in 'sta_info'
   kernel/rcu/tree.c:711: warning: Excess function parameter 'irq' description 
in 'rcu_nmi_exit'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.cb' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.poll' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.active' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.cb' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.poll' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.active' not described in 'dma_buf'
   include/linux/dma-fence-array.h:54: warning: Function parameter or member 
'work' not described in 'dma_fence_array'
   include/linux/firmware/intel/stratix10-svc-client.h:1: warning: no 
structured comments found
   include/linux/gpio/driver.h:371: warning: Function parameter or member 
'init_valid_mask' not described in 'gpio_chip'
   include/linux/iio/hw-consumer.h:1: warning: no structured comments found
   include/linux/input/sparse-keymap.h:46: warning: Function parameter or 
member 'sw' not described in 'key_entry'
   drivers/mtd/nand/raw/nand_base.c:420: warning: Function parameter or member 
'chip' not described in 'nand_fill_oob'
   drivers/mtd/nand/raw/nand_bbt.c:173: warning: Function parameter or member 
'this' not described in 'read_bbt'
   drivers/mtd/nand/raw/nand_bbt.c:173: warning: Excess function parameter 
'chip' description in 'read_bbt'
   include/linux/regulator/machine.h:199: warning: Function parameter or member 
'max_uV_step' not described in 'regulation_constraints'
   include/linux/regulator/driver.h:228: warning: Function parameter or member 
'resume' not described in 'regulator_ops'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw0' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw1' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw2' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw3' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.eadm' not described in 'irb'
   drivers/slimbus/stream.c:1: warning: no structured comments found
   include/linux/spi/spi.h:180: warning: Function parameter or member 
'driver_override' not described in 'spi_device'
   drivers/target/target_core_device.c:1: warning: no structured comments found
   drivers/usb/typec/bus.c:1: warning: no structured comments found
   drivers/usb/typec/class.c:1: warning: no structured comments found
   include/linux/w1.h:281: warning: Function parameter or member 
'of_match_table' not described in 'w1_family'
   fs/direct-io.c:257: warning: Excess function parameter 'offset' description 
in 'dio_complete'
   fs/file_table.c:1: warning: no structured comments found
   fs/libfs.c:477: warning: Excess function parameter 'available' description 
in 'simple_write_end'
   fs/posix_acl.c:646: warning: Function parameter or member 'inode' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:646: warning: Function parameter or member 'mode_p' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:646: warning: Function parameter or member 'acl' not 
described in 'posix_acl_update_mode'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'start' description in

Re: [PATCH v2 2/2] drm/msm: Cleanup A6XX opp-level reading

2019-01-21 Thread kbuild test robot
Hi Douglas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v5.0-rc2]
[also build test ERROR on next-20190116]
[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/Douglas-Anderson/drm-msm-Fix-A6XX-support-for-opp-level/20190118-042538
config: arm-imx_v6_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/msm/adreno/a6xx_gmu.c: In function 'a6xx_gmu_get_arc_level':
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.c:944:8: error: implicit declaration of 
>> function 'dev_pm_opp_get_level'; did you mean 'dev_pm_opp_get_freq'? 
>> [-Werror=implicit-function-declaration]
 val = dev_pm_opp_get_level(opp);
   ^~~~
   dev_pm_opp_get_freq
   cc1: some warnings being treated as errors

vim +944 drivers/gpu/drm/msm/adreno/a6xx_gmu.c

   929  
   930  /* Return the 'arc-level' for the given frequency */
   931  static unsigned int a6xx_gmu_get_arc_level(struct device *dev,
   932 unsigned long freq)
   933  {
   934  struct dev_pm_opp *opp;
   935  unsigned int val;
   936  
   937  if (!freq)
   938  return 0;
   939  
   940  opp = dev_pm_opp_find_freq_exact(dev, freq, true);
   941  if (IS_ERR(opp))
   942  return 0;
   943  
 > 944  val = dev_pm_opp_get_level(opp);
   945  
   946  dev_pm_opp_put(opp);
   947  
   948  return val;
   949  }
   950  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:drm-next-5.1-wip 174/192] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:50:8: warning: missing braces around initializer

2019-01-29 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.1-wip
head:   5daa9c4d3d3cf0da1520ad5a814c7f970160194a
commit: 3cec41769d2182e629692a3262cc8b24ec972b04 [174/192] drm/amd/display: Fix 
use of uninitialized union
config: i386-randconfig-h1-01290401 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 3cec41769d2182e629692a3262cc8b24ec972b04
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function 
'wait_for_training_aux_rd_interval':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:50:8: warning: 
>> missing braces around initializer [-Wmissing-braces]
 union training_aux_rd_interval training_rd_interval = {0};
   ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:50:8: warning: 
(near initialization for 'training_rd_interval.bits') [-Wmissing-braces]

vim +50 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c

37  
38  static bool decide_fallback_link_setting(
39  struct dc_link_settings initial_link_settings,
40  struct dc_link_settings *current_link_setting,
41  enum link_training_result training_result);
42  static struct dc_link_settings get_common_supported_link_settings(
43  struct dc_link_settings link_setting_a,
44  struct dc_link_settings link_setting_b);
45  
46  static void wait_for_training_aux_rd_interval(
47  struct dc_link *link,
48  uint32_t default_wait_in_micro_secs)
49  {
  > 50  union training_aux_rd_interval training_rd_interval = {0};
51  
52  /* overwrite the delay if rev > 1.1*/
53  if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) {
54  /* DP 1.2 or later - retrieve delay through
55   * "DPCD_ADDR_TRAINING_AUX_RD_INTERVAL" register */
56  core_link_read_dpcd(
57  link,
58  DP_TRAINING_AUX_RD_INTERVAL,
59  (uint8_t *)&training_rd_interval,
60  sizeof(training_rd_interval));
61  
62  if (training_rd_interval.bits.TRAINIG_AUX_RD_INTERVAL)
63  default_wait_in_micro_secs =
64  
training_rd_interval.bits.TRAINIG_AUX_RD_INTERVAL * 4000;
65  }
66  
67  udelay(default_wait_in_micro_secs);
68  
69  DC_LOG_HW_LINK_TRAINING("%s:\n wait = %d\n",
70  __func__,
71  default_wait_in_micro_secs);
72  }
73  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[drm-tip:drm-tip 891/897] drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:160:9: warning: #pragma pack (pop) encountered without matching #pragma pack (push)

2019-01-31 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   3f287cb6d4ae4689eb7c53e4c25f0fba3df16438
commit: 0a2fe4901d16d28bb8ad5f7032e9579f85e7e594 [891/897] Merge 
remote-tracking branch 'drm/drm-next' into drm-tip
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 0a2fe4901d16d28bb8ad5f7032e9579f85e7e594
# save the attached .config to linux build tree
GCC_VERSION=8.2.0 make.cross ARCH=riscv 

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:160:9: 
>> warning: #pragma pack (pop) encountered without matching #pragma pack (push) 
>> [-Wpragmas]
#pragma pack(pop)
^~~~

vim +160 drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c

bf75572a Josip Pavic   2019-01-08  117  
bf75572a Josip Pavic   2019-01-08  118  struct iram_table_v_2_2 {
bf75572a Josip Pavic   2019-01-08  119  /* flags  */
bf75572a Josip Pavic   2019-01-08  120  uint16_t flags; 
/* 0x00 U16  */
bf75572a Josip Pavic   2019-01-08  121  
bf75572a Josip Pavic   2019-01-08  122  /* parameters for ABM2.2 
algorithm */
bf75572a Josip Pavic   2019-01-08  123  uint8_t 
min_reduction[NUM_AMBI_LEVEL][NUM_AGGR_LEVEL];  /* 0x02 U0.8 */
bf75572a Josip Pavic   2019-01-08  124  uint8_t 
max_reduction[NUM_AMBI_LEVEL][NUM_AGGR_LEVEL];  /* 0x16 U0.8 */
bf75572a Josip Pavic   2019-01-08  125  uint8_t 
bright_pos_gain[NUM_AMBI_LEVEL][NUM_AGGR_LEVEL];/* 0x2a U2.6 */
bf75572a Josip Pavic   2019-01-08  126  uint8_t 
dark_pos_gain[NUM_AMBI_LEVEL][NUM_AGGR_LEVEL];  /* 0x3e U2.6 */
bf75572a Josip Pavic   2019-01-08  127  uint8_t 
hybridFactor[NUM_AGGR_LEVEL];   /* 0x52 
U0.8 */
bf75572a Josip Pavic   2019-01-08  128  uint8_t 
contrastFactor[NUM_AGGR_LEVEL]; /* 0x56 
U0.8 */
bf75572a Josip Pavic   2019-01-08  129  uint8_t 
deviation_gain[NUM_AGGR_LEVEL]; /* 0x5a 
U0.8 */
bf75572a Josip Pavic   2019-01-08  130  uint8_t 
iir_curve[NUM_AMBI_LEVEL];  
/* 0x5e U0.8 */
bf75572a Josip Pavic   2019-01-08  131  uint8_t pad[29];
/* 0x63 
U0.8 */
bf75572a Josip Pavic   2019-01-08  132  
bf75572a Josip Pavic   2019-01-08  133  /* parameters for crgb 
conversion */
bf75572a Josip Pavic   2019-01-08  134  uint16_t 
crgb_thresh[NUM_POWER_FN_SEGS];/* 0x80 
U3.13 */
bf75572a Josip Pavic   2019-01-08  135  uint16_t 
crgb_offset[NUM_POWER_FN_SEGS];/* 0x90 
U1.15 */
bf75572a Josip Pavic   2019-01-08  136  uint16_t 
crgb_slope[NUM_POWER_FN_SEGS]; /* 0xa0 
U4.12 */
bf75572a Josip Pavic   2019-01-08  137  
bf75572a Josip Pavic   2019-01-08  138  /* parameters for custom curve 
*/
bf75572a Josip Pavic   2019-01-08  139  /* thresholds for brightness 
--> backlight */
bf75572a Josip Pavic   2019-01-08  140  uint16_t 
backlight_thresholds[NUM_BL_CURVE_SEGS];   /* 0xb0 U16.0 */
bf75572a Josip Pavic   2019-01-08  141  /* offsets for brightness --> 
backlight */
bf75572a Josip Pavic   2019-01-08  142  uint16_t 
backlight_offsets[NUM_BL_CURVE_SEGS];  /* 0xd0 U16.0 */
bf75572a Josip Pavic   2019-01-08  143  
bf75572a Josip Pavic   2019-01-08  144  /* For reading PSR State 
directly from IRAM */
bf75572a Josip Pavic   2019-01-08  145  uint8_t psr_state;  
/* 0xf0 
  */
bf75572a Josip Pavic   2019-01-08  146  uint8_t 
dmcu_mcp_interface_version; 
/* 0xf1   */
bf75572a Josip Pavic   2019-01-08  147  uint8_t 
dmcu_abm_feature_version;   
/* 0xf2   */
bf75572a Josip Pavic   2019-01-08  148  uint8_t 
dmcu_psr_feature_version;   
/* 0xf3   */
bf75572a Josip Pavic   2019-01-08  149  uint16_t dmcu_version;  
/* 0xf4   */
bbf854dc David Francis 2018-11-26  150  uint8_t dmcu_state; 
/* 0xf6 
  */
bbf854dc David Francis 2018-11-26  151  
bbf854

[radeon-alex:drm-next-5.1-wip 17/212] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_module.c:79:18: sparse: warning: non-ANSI function declaration of function 'kgd2kfd_init'

2019-01-31 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.1-wip
head:   8054c54a6169ca26157d2bed0b52f63d472dbd34
commit: 308176d6f625bc782a34ec316beaefcfa7ad75f3 [17/212] drm/amdgpu: Remove 
kgd2kfd function pointers
reproduce:
# apt-get install sparse
git checkout 308176d6f625bc782a34ec316beaefcfa7ad75f3
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_module.c:79:18: sparse: warning: 
>> non-ANSI function declaration of function 'kgd2kfd_init'

vim +/kgd2kfd_init +79 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_module.c

78  
  > 79  int kgd2kfd_init()
80  {
81  return kfd_init();
82  }
83  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH 1/5] drm: Add reservation_object to drm_gem_object

2019-02-01 Thread kbuild test robot
Hi Rob,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.0-rc4]
[cannot apply to next-20190131]
[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/Rob-Herring/Add-reservation_object-to-drm_gem_object/20190201-160738
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.bytes' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.last_rate' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.msdu' not described in 'sta_info'
   kernel/rcu/tree.c:711: warning: Excess function parameter 'irq' description 
in 'rcu_nmi_exit'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.cb' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.poll' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.active' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.cb' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.poll' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.active' not described in 'dma_buf'
   include/linux/dma-fence-array.h:54: warning: Function parameter or member 
'work' not described in 'dma_fence_array'
   include/linux/firmware/intel/stratix10-svc-client.h:1: warning: no 
structured comments found
   include/linux/gpio/driver.h:371: warning: Function parameter or member 
'init_valid_mask' not described in 'gpio_chip'
   include/linux/iio/hw-consumer.h:1: warning: no structured comments found
   include/linux/input/sparse-keymap.h:46: warning: Function parameter or 
member 'sw' not described in 'key_entry'
   drivers/mtd/nand/raw/nand_base.c:420: warning: Function parameter or member 
'chip' not described in 'nand_fill_oob'
   drivers/mtd/nand/raw/nand_bbt.c:173: warning: Function parameter or member 
'this' not described in 'read_bbt'
   drivers/mtd/nand/raw/nand_bbt.c:173: warning: Excess function parameter 
'chip' description in 'read_bbt'
   include/linux/regulator/machine.h:199: warning: Function parameter or member 
'max_uV_step' not described in 'regulation_constraints'
   include/linux/regulator/driver.h:228: warning: Function parameter or member 
'resume' not described in 'regulator_ops'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw0' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw1' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw2' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.esw3' not described in 'irb'
   arch/s390/include/asm/cio.h:245: warning: Function parameter or member 
'esw.eadm' not described in 'irb'
   drivers/slimbus/stream.c:1: warning: no structured comments found
   include/linux/spi/spi.h:180: warning: Function parameter or member 
'driver_override' not described in 'spi_device'
   drivers/target/target_core_device.c:1: warning: no structured comments found
   drivers/usb/typec/bus.c:1: warning: no structured comments found
   drivers/usb/typec/class.c:1: warning: no structured comments found
   include/linux/w1.h:281: warning: Function parameter or member 
'of_match_table' not described in 'w1_family'
   fs/direct-io.c:257: warning: Excess function parameter 'offset' description 
in 'dio_complete'
   fs/file_table.c:1: warning: no structured comments found
   fs/libfs.c:477: warning: Excess function parameter 'available' description 
in 'simple_write_end'
   fs/posix_acl.c:646: warning: Function parameter or member 'inode' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:646: warning: Function parameter or member 'mode_p' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:646: warning: Function parameter or member 'acl' not 
described in 'posix_acl_update_mode'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'start' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:294: warning: Excess function 
parameter 'end' description in 'amdgpu_mn_invalidate_range_start_hsa'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:343: warning: Excess function 
parameter 'mm' description in 'amdgpu_mn_invalidate_range_end'
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:343: warning:

[tegra-drm:drm/tegra/for-next 10/24] drivers/gpu/host1x/cdma.c:253:13: error: 'struct host1x_cdma' has no member named 'sem'

2019-02-01 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
head:   e01c78172871cc703e6228fe2b195a3876e1a0a9
commit: db5652be58a96bdde402cabebc0567ee08631276 [10/24] gpu: host1x: Introduce 
support for wide opcodes
config: arm-tegra_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout db5652be58a96bdde402cabebc0567ee08631276
# save the attached .config to linux build tree
GCC_VERSION=8.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/gpu/host1x/cdma.c: In function 'host1x_cdma_wait_pushbuffer_space':
>> drivers/gpu/host1x/cdma.c:253:13: error: 'struct host1x_cdma' has no member 
>> named 'sem'
  down(&cdma->sem);
^~

vim +253 drivers/gpu/host1x/cdma.c

   219  
   220  /*
   221   * Sleep (if necessary) until the push buffer has enough free space.
   222   *
   223   * Must be called with the cdma lock held.
   224   */
   225  int host1x_cdma_wait_pushbuffer_space(struct host1x *host1x,
   226struct host1x_cdma *cdma,
   227unsigned int needed)
   228  {
   229  while (true) {
   230  struct push_buffer *pb = &cdma->push_buffer;
   231  unsigned int space;
   232  
   233  space = host1x_pushbuffer_space(pb);
   234  if (space >= needed)
   235  break;
   236  
   237  
trace_host1x_wait_cdma(dev_name(cdma_to_channel(cdma)->dev),
   238 CDMA_EVENT_PUSH_BUFFER_SPACE);
   239  
   240  host1x_hw_cdma_flush(host1x, cdma);
   241  
   242  /* If somebody has managed to already start waiting, 
yield */
   243  if (cdma->event != CDMA_EVENT_NONE) {
   244  mutex_unlock(&cdma->lock);
   245  schedule();
   246  mutex_lock(&cdma->lock);
   247  continue;
   248  }
   249  
   250  cdma->event = CDMA_EVENT_PUSH_BUFFER_SPACE;
   251  
   252  mutex_unlock(&cdma->lock);
 > 253  down(&cdma->sem);
   254  mutex_lock(&cdma->lock);
   255  }
   256  
   257  return 0;
   258  }
   259  /*
   260   * Start timer that tracks the time spent by the job.
   261   * Must be called with the cdma lock held.
   262   */
   263  static void cdma_start_timer_locked(struct host1x_cdma *cdma,
   264  struct host1x_job *job)
   265  {
   266  struct host1x *host = cdma_to_host1x(cdma);
   267  
   268  if (cdma->timeout.client) {
   269  /* timer already started */
   270  return;
   271  }
   272  
   273  cdma->timeout.client = job->client;
   274  cdma->timeout.syncpt = host1x_syncpt_get(host, job->syncpt_id);
   275  cdma->timeout.syncpt_val = job->syncpt_end;
   276  cdma->timeout.start_ktime = ktime_get();
   277  
   278  schedule_delayed_work(&cdma->timeout.wq,
   279msecs_to_jiffies(job->timeout));
   280  }
   281  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:drm-next-5.1-wip 197/225] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5173:4: note: in expansion of macro 'amdgpu_dm_crtc_set_crc_source'

2019-02-01 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.1-wip
head:   f9028b9278422fdf186f1b88662e28ed24e13df8
commit: 43a6a02eb3558d1f3a0618f9bf02328662fb06e3 [197/225] drm/amd/display: 
Re-enable CRC capture following modeset
config: x86_64-randconfig-s2-02021031 (attached as .config)
compiler: gcc-6 (Debian 6.5.0-2) 6.5.0 20181026
reproduce:
git checkout 43a6a02eb3558d1f3a0618f9bf02328662fb06e3
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:5:0,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/uapi/linux/byteorder/little_endian.h:12,
from include/linux/byteorder/little_endian.h:5,
from arch/x86/include/uapi/asm/byteorder.h:5,
from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:29,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29,
from 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 
'amdgpu_dm_atomic_commit_tail':
>> include/linux/stddef.h:8:14: error: called object is not a function or 
>> function pointer
#define NULL ((void *)0)
 ^
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.h:340:39: note: in 
>> expansion of macro 'NULL'
#define amdgpu_dm_crtc_set_crc_source NULL
  ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5173:4: note: in 
>> expansion of macro 'amdgpu_dm_crtc_set_crc_source'
   amdgpu_dm_crtc_set_crc_source(crtc, "auto");
   ^

vim +/amdgpu_dm_crtc_set_crc_source +5173 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

  4949  
  4950  /**
  4951   * amdgpu_dm_atomic_commit_tail() - AMDgpu DM's commit tail 
implementation.
  4952   * @state: The atomic state to commit
  4953   *
  4954   * This will tell DC to commit the constructed DC state from 
atomic_check,
  4955   * programming the hardware. Any failures here implies a hardware 
failure, since
  4956   * atomic check should have filtered anything non-kosher.
  4957   */
  4958  static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
  4959  {
  4960  struct drm_device *dev = state->dev;
  4961  struct amdgpu_device *adev = dev->dev_private;
  4962  struct amdgpu_display_manager *dm = &adev->dm;
  4963  struct dm_atomic_state *dm_state;
  4964  struct dc_state *dc_state = NULL, *dc_state_temp = NULL;
  4965  uint32_t i, j;
  4966  struct drm_crtc *crtc;
  4967  struct drm_crtc_state *old_crtc_state, *new_crtc_state;
  4968  unsigned long flags;
  4969  bool wait_for_vblank = true;
  4970  struct drm_connector *connector;
  4971  struct drm_connector_state *old_con_state, *new_con_state;
  4972  struct dm_crtc_state *dm_old_crtc_state, *dm_new_crtc_state;
  4973  int crtc_disable_count = 0;
  4974  
  4975  drm_atomic_helper_update_legacy_modeset_state(dev, state);
  4976  
  4977  dm_state = dm_atomic_get_new_state(state);
  4978  if (dm_state && dm_state->context) {
  4979  dc_state = dm_state->context;
  4980  } else {
  4981  /* No state changes, retain current state. */
  4982  dc_state_temp = dc_create_state();
  4983  ASSERT(dc_state_temp);
  4984  dc_state = dc_state_temp;
  4985  dc_resource_state_copy_construct_current(dm->dc, 
dc_state);
  4986  }
  4987  
  4988  /* update changed items */
  4989  for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, 
new_crtc_state, i) {
  4990  struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc);
  4991  
  4992  dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
  4993  dm_old_crtc_state = to_dm_crtc_state(old_crtc_state);
  4994  
  4995  DRM_DEBUG_DRIVER(
  4996  "amdgpu_crtc id:%d crtc_state_flags: enable:%d, 
active:%d, "
  4997  "planes_changed:%d, 
mode_changed:%d,active_changed:%d,"
  4998  "connectors_changed:%d\n",
  4999  acrtc->crtc_id,
  5000  new_crtc_state->enable,
  5001  new_crtc_state->active,
  5002  new_crtc_state->planes_changed,
  5003  new_crtc_state->mode_changed,
  5004  new_crtc_state->active_changed,
  5005  new_crtc_state->connectors_changed);
  5006  
  5007  /* Copy all transient state flag

Re: [PATCH v2 3/3] phy: Add driver for mixel dphy found on imx8

2019-02-03 Thread kbuild test robot
Hi Guido,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on phy/next]
[also build test ERROR on next-20190201]
[cannot apply to v5.0-rc4]
[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/Guido-G-nther/Mixel-DPHY-support-for-i-MX8/20190202-015852
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git 
next
config: um-allyesconfig (attached as .config)
compiler: gcc-8 (Debian 8.2.0-14) 8.2.0
reproduce:
# save the attached .config to linux build tree
make ARCH=um 

All errors (new ones prefixed by >>):

   /usr/bin/ld: arch/um/drivers/vde.o: in function `vde_open_real':
   (.text+0x7d1): warning: Using 'getgrnam' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   /usr/bin/ld: (.text+0x61c): warning: Using 'getpwuid' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   /usr/bin/ld: arch/um/drivers/vector_user.o: in function 
`user_init_socket_fds':
   vector_user.c:(.text+0x29d): warning: Using 'getaddrinfo' in statically 
linked applications requires at runtime the shared libraries from the glibc 
version used for linking
   /usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametoaddr':
   (.text+0xde75): warning: Using 'gethostbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   /usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametonetaddr':
   (.text+0xdf15): warning: Using 'getnetbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   /usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametoproto':
   (.text+0xe135): warning: Using 'getprotobyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   /usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametoport':
   (.text+0xdf67): warning: Using 'getservbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   /usr/bin/ld: drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.o: in function 
`mixel_dphy_probe':
>> phy-fsl-imx8-mipi-dphy.c:(.text+0x3d0): undefined reference to `devm_ioremap'
>> /usr/bin/ld: phy-fsl-imx8-mipi-dphy.c:(.text+0x440): undefined reference to 
>> `__devm_regmap_init_mmio_clk'
   collect2: error: ld returned 1 exit status

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[drm-tip:drm-tip 2/8] drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:2: error: unknown field 'driver_features' specified in initializer

2019-02-08 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   d4794b009ccd1ef8816e15c833f07ab696911a8d
commit: bd6ee5d2d2032416ba36ec6c24bf513f4ff0d338 [2/8] Merge remote-tracking 
branch 'drm-misc/drm-misc-next' into drm-tip
config: i386-randconfig-h0-02082357 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout bd6ee5d2d2032416ba36ec6c24bf513f4ff0d338
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm//arm/display/komeda/komeda_dev.c: In function 
'komeda_parse_pipe_dt':
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c:27:3: error: implicit 
declaration of function 'DRM_ERROR' [-Werror=implicit-function-declaration]
  DRM_ERROR("get aclk for pipeline %d failed!\n", pipe_id);
  ^
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c: In function 
'komeda_dev_create':
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c:127:2: error: implicit 
declaration of function 'DRM_INFO' [-Werror=implicit-function-declaration]
 DRM_INFO("Found ARM Mali-D%x version r%dp%d\n",
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c: In function 
'komeda_dev_destroy':
>> drivers/gpu/drm//arm/display/komeda/komeda_dev.c:170:3: error: implicit 
>> declaration of function 'devm_iounmap' 
>> [-Werror=implicit-function-declaration]
  devm_iounmap(dev, mdev->reg_base);
  ^
   cc1: some warnings being treated as errors
--
   drivers/gpu/drm//arm/display/komeda/komeda_framebuffer.c: In function 
'komeda_fb_create':
>> drivers/gpu/drm//arm/display/komeda/komeda_framebuffer.c:99:31: error: 
>> dereferencing pointer to incomplete type
 struct komeda_dev *mdev = dev->dev_private;
  ^
--
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:32:15: error: variable 
'komeda_kms_driver' has initializer but incomplete type
static struct drm_driver komeda_kms_driver = {
  ^
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:2: error: unknown field 
>> 'driver_features' specified in initializer
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:21: error: 'DRIVER_GEM' 
undeclared here (not in a function)
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
^
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:34: error: 
>> 'DRIVER_MODESET' undeclared here (not in a function)
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:51: error: 
'DRIVER_ATOMIC' undeclared here (not in a function)
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
  ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:34:7: error: 'DRIVER_PRIME' 
undeclared here (not in a function)
  DRIVER_PRIME,
  ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:34:7: warning: excess 
elements in struct initializer
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:34:7: warning: (near 
initialization for 'komeda_kms_driver')
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:35:2: error: unknown field 
>> 'lastclose' specified in initializer
 .lastclose   = drm_fb_helper_lastclose,
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:35:2: warning: excess 
elements in struct initializer
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:35:2: warning: (near 
initialization for 'komeda_kms_driver')
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:36:2: error: unknown field 
>> 'gem_free_object_unlocked' specified in initializer
 .gem_free_object_unlocked = drm_gem_cma_free_object,
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:36:2: warning: excess 
elements in struct initializer
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:36:2: warning: (near 
initialization for 'komeda_kms_driver')
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:37:2: error: unknown field 
>> 'gem_vm_ops' specified in initializer
 .gem_vm_ops   = &drm_gem_cma_vm_ops,
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:37:2: warning: excess 
elements in struct initializer
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:37:2: warning: (near 
initialization for 'komeda_kms_driver')
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:38:2: error: unknown field 
>> 'dumb_create' specified in initializer
 .dumb_create   = komeda_gem_cma_dumb_create,
 ^
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:38:2: warning: excess 
elements in struct initializer
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:38:2: warning: (near 
initialization for 'komeda_kms_driver')
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:39:2: error: unknown field 
>> 'prime_handle_to_fd' specified in initializer
 .prime_handle_

[radeon-alex:amd-staging-drm-next 332/333] htmldocs: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:376: warning: Function parameter or member 'ih' not described in 'amdgpu_irq_dispatch'

2019-02-08 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   0bf64b0a9f7850809c4da2fafce36d1504cc28d9
commit: 65631c9dcd427612004c1f10e4c12fcb67587db3 [332/333] drm/amdgpu: cleanup 
amdgpu_ih_process a bit more
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   include/net/mac80211.h:1004: warning: Function parameter or member 
'status.status_driver_data' not described in 'ieee80211_tx_info'
   include/net/mac80211.h:1004: warning: Function parameter or member 
'driver_rates' not described in 'ieee80211_tx_info'
   include/net/mac80211.h:1004: warning: Function parameter or member 'pad' not 
described in 'ieee80211_tx_info'
   include/net/mac80211.h:1004: warning: Function parameter or member 
'rate_driver_data' not described in 'ieee80211_tx_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'rx_stats_avg' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'rx_stats_avg.signal' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'rx_stats_avg.chain_signal' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.filtered' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.retry_failed' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.retry_count' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.lost_packets' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.last_tdls_pkt_time' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.msdu_retries' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.msdu_failed' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.last_ack' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.last_ack_signal' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.ack_signal_filled' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'status_stats.avg_ack_signal' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.packets' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.bytes' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.last_rate' not described in 'sta_info'
   net/mac80211/sta_info.h:590: warning: Function parameter or member 
'tx_stats.msdu' not described in 'sta_info'
   kernel/rcu/tree.c:711: warning: Excess function parameter 'irq' description 
in 'rcu_nmi_exit'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.cb' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.poll' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_excl.active' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.cb' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.poll' not described in 'dma_buf'
   include/linux/dma-buf.h:304: warning: Function parameter or member 
'cb_shared.active' not described in 'dma_buf'
   include/linux/dma-fence-array.h:54: warning: Function parameter or member 
'work' not described in 'dma_fence_array'
   include/linux/firmware/intel/stratix10-svc-client.h:1: warning: no 
structured comments found
   include/linux/gpio/driver.h:371: warning: Function parameter or member 
'init_valid_mask' not described in 'gpio_chip'
   include/linux/iio/hw-consumer.h:1: warning: no structured comments found
   include/linux/input/sparse-keymap.h:46: warning: Function parameter or 
member 'sw' not described in 'key_entry'
   drivers/mtd/nand/raw/nand_base.c:420: warning: Function parameter or member 
'chip' not described in 'nand_fill_oob'
   drivers/mtd/nand/raw/nand_bbt.c:173: warning: Function parameter or member 
'this' not described in 'read_bbt'
   drivers/mtd/nand/raw/nand_bbt.c:173: warning: Excess function parameter 
'chip' description in 'read_bbt'
   include/linux/regulator/machine.h:199: warning: Function parameter or member 
'max_uV_step' not described in 'regulation_constraints'
   include/linux/regulator/driver.h:228: warning: Function parameter or member 
'resume' not described in 'regulator_ops'
   arch/s390/include/asm/cio.h:245: warning: Funct

[drm-tip:drm-tip 2/8] drivers/gpu/drm//arm/display/komeda/komeda_dev.c:27:3: error: implicit declaration of function 'DRM_ERROR'; did you mean 'DRM_IOR'?

2019-02-09 Thread kbuild test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   d4794b009ccd1ef8816e15c833f07ab696911a8d
commit: bd6ee5d2d2032416ba36ec6c24bf513f4ff0d338 [2/8] Merge remote-tracking 
branch 'drm-misc/drm-misc-next' into drm-tip
config: x86_64-randconfig-s5-02041749 (attached as .config)
compiler: gcc-8 (Debian 8.2.0-14) 8.2.0
reproduce:
git checkout bd6ee5d2d2032416ba36ec6c24bf513f4ff0d338
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm//arm/display/komeda/komeda_dev.c: In function 
'komeda_parse_pipe_dt':
>> drivers/gpu/drm//arm/display/komeda/komeda_dev.c:27:3: error: implicit 
>> declaration of function 'DRM_ERROR'; did you mean 'DRM_IOR'? 
>> [-Werror=implicit-function-declaration]
  DRM_ERROR("get aclk for pipeline %d failed!\n", pipe_id);
  ^
  DRM_IOR
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c: In function 
'komeda_dev_create':
>> drivers/gpu/drm//arm/display/komeda/komeda_dev.c:127:2: error: implicit 
>> declaration of function 'DRM_INFO'; did you mean 'DRM_IO'? 
>> [-Werror=implicit-function-declaration]
 DRM_INFO("Found ARM Mali-D%x version r%dp%d\n",
 ^~~~
 DRM_IO
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c: In function 
'komeda_dev_destroy':
   drivers/gpu/drm//arm/display/komeda/komeda_dev.c:170:3: error: implicit 
declaration of function 'devm_iounmap'; did you mean 'pci_iounmap'? 
[-Werror=implicit-function-declaration]
  devm_iounmap(dev, mdev->reg_base);
  ^~~~
  pci_iounmap
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 1 include/linux/device.h:devm_kzalloc
   Cyclomatic Complexity 2 include/linux/of.h:of_property_read_u32_array
   Cyclomatic Complexity 1 include/linux/of.h:of_property_read_u32
   Cyclomatic Complexity 3 include/linux/clk.h:clk_prepare_enable
   Cyclomatic Complexity 1 include/linux/clk.h:clk_disable_unprepare
   Cyclomatic Complexity 1 
drivers/gpu/drm//arm/display/komeda/komeda_dev.h:komeda_product_match
   Cyclomatic Complexity 5 
drivers/gpu/drm//arm/display/komeda/komeda_dev.c:komeda_parse_pipe_dt
   Cyclomatic Complexity 5 
drivers/gpu/drm//arm/display/komeda/komeda_dev.c:komeda_parse_dt
   Cyclomatic Complexity 7 
drivers/gpu/drm//arm/display/komeda/komeda_dev.c:komeda_dev_destroy
   Cyclomatic Complexity 9 
drivers/gpu/drm//arm/display/komeda/komeda_dev.c:komeda_dev_create
   cc1: some warnings being treated as errors
--
   drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c: In function 
'komeda_pipeline_add':
>> drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:18:3: error: implicit 
>> declaration of function 'DRM_ERROR'; did you mean 'DRM_IOR'? 
>> [-Werror=implicit-function-declaration]
  DRM_ERROR("Exceed max support %d pipelines.\n",
  ^
  DRM_IOR
   Cyclomatic Complexity 1 include/linux/device.h:devm_kzalloc
   Cyclomatic Complexity 4 
drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:komeda_pipeline_add
   Cyclomatic Complexity 9 
drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:komeda_pipeline_get_component_pos
   Cyclomatic Complexity 2 
drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:komeda_pipeline_get_component
   Cyclomatic Complexity 12 
drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:komeda_component_add
   Cyclomatic Complexity 1 
drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:komeda_component_destroy
   Cyclomatic Complexity 2 
drivers/gpu/drm//arm/display/komeda/komeda_pipeline.c:komeda_pipeline_destroy
   cc1: some warnings being treated as errors
--
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:32:15: error: variable 
'komeda_kms_driver' has initializer but incomplete type
static struct drm_driver komeda_kms_driver = {
  ^~
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:3: error: 'struct 
drm_driver' has no member named 'driver_features'
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
  ^~~
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:21: error: 'DRIVER_GEM' 
undeclared here (not in a function)
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
^~
   drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:34: error: 
'DRIVER_MODESET' undeclared here (not in a function); did you mean 
'HRTIMER_MODE_SOFT'?
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
 ^~
 HRTIMER_MODE_SOFT
>> drivers/gpu/drm//arm/display/komeda/komeda_kms.c:33:51: error: 
>> 'DRIVER_ATOMIC' undeclared here (not in a function); did you mean 
>> 'DRM_UT_ATOMIC'?
 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
   

Re: [PATCH] drm/panel: rpi-touchscreen: Add backlight support

2018-12-18 Thread kbuild test robot
Hi Nicolas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc7 next-20181218]
[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/Nicolas-Saenz-Julienne/drm-panel-rpi-touchscreen-Add-backlight-support/20181215-164117
config: x86_64-randconfig-s3-12190437 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> ERROR: "devm_backlight_device_register" 
>> [drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.ko] undefined!

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v4 3/3] drm/msm/dpu: add display port support in DPU

2018-12-18 Thread kbuild test robot
Hi Jeykumar,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robclark/msm-next]
[also build test ERROR on v4.20-rc7 next-20181218]
[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/Jeykumar-Sankaran/drm-msm-dpu-fix-documentation-for-intf_type/20181218-070519
base:   git://people.freedesktop.org/~robclark/linux msm-next
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c: In function 
'_dpu_kms_initialize_displayport':
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:449:13: error: 'struct 
>> msm_drm_private' has no member named 'dp'; did you mean 'edp'?
 if (!priv->dp)
^~
edp
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:458:7: error: implicit declaration 
>> of function 'msm_dp_modeset_init'; did you mean 'msm_edp_modeset_init'? 
>> [-Werror=implicit-function-declaration]
 rc = msm_dp_modeset_init(priv->dp, dev, encoder);
  ^~~
  msm_edp_modeset_init
   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:458:33: error: 'struct 
msm_drm_private' has no member named 'dp'; did you mean 'edp'?
 rc = msm_dp_modeset_init(priv->dp, dev, encoder);
^~
edp
   cc1: some warnings being treated as errors

vim +449 drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c

   441  
   442  static int _dpu_kms_initialize_displayport(struct drm_device *dev,
   443  struct msm_drm_private 
*priv,
   444  struct dpu_kms *dpu_kms)
   445  {
   446  struct drm_encoder *encoder = NULL;
   447  int rc;
   448  
 > 449  if (!priv->dp)
   450  return 0;
   451  
   452  encoder = dpu_encoder_init(dev, DRM_MODE_ENCODER_TMDS);
   453  if (IS_ERR(encoder)) {
   454  DPU_ERROR("encoder init failed for dsi display\n");
   455  return PTR_ERR(encoder);
   456  }
   457  
 > 458  rc = msm_dp_modeset_init(priv->dp, dev, encoder);
   459  if (rc) {
   460  DPU_ERROR("modeset_init failed for DP, rc = %d\n", rc);
   461  drm_encoder_cleanup(encoder);
   462  }
   463  
   464  return rc;
   465  }
   466  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:amd-staging-drm-next 563/616] ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

2018-12-18 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   0050e1bd9b509dc764c0180ad5010d4591755abf
commit: 6378ef012ddce949a60c9c3742816a9c3c9ff3bf [563/616] drm/amd/display: Add 
below the range support for FreeSync
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 6378ef012ddce949a60c9c3742816a9c3c9ff3bf
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type 
without #include 
>> ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
   make[2]: *** [__modpost] Error 1
   make[2]: Target '_modpost' not remade because of errors.
   make[1]: *** [modules] Error 2
   make[1]: Target '_all' not remade because of errors.

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:amd-staging-drm-next 597/616] ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

2018-12-18 Thread kbuild test robot
Hi Ken,

First bad commit (maybe != root cause):

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   0050e1bd9b509dc764c0180ad5010d4591755abf
commit: 1d752442f3d6275b40bace55d022e792167f7fca [597/616] drm/amd/display: Use 
100 Hz precision for pipe pixel clocks
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 1d752442f3d6275b40bace55d022e792167f7fca
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>> ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] staging: android: ion: add buffer flag update ioctl

2018-12-19 Thread kbuild test robot
Hi Zeng,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v4.20-rc7 next-20181219]
[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/Zeng-Tao/staging-android-ion-add-buffer-flag-update-ioctl/20181219-231147
config: i386-randconfig-x079-201850 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/staging/android/ion/ion.h:22:0,
from drivers/staging/android/ion/ion.c:30:
>> drivers/staging/android/ion/../uapi/ion.h:99:1: error: expected ';', 
>> identifier or '(' before 'struct'
struct ion_heap_data {
^~

vim +99 drivers/staging/android/ion/../uapi/ion.h

02b23803 Laura Abbott 2016-09-07   92  
02b23803 Laura Abbott 2016-09-07   93  /**
02b23803 Laura Abbott 2016-09-07   94   * struct ion_heap_data - data about a 
heap
02b23803 Laura Abbott 2016-09-07   95   * @name - first 32 characters of the 
heap name
02b23803 Laura Abbott 2016-09-07   96   * @type - heap type
02b23803 Laura Abbott 2016-09-07   97   * @heap_id - heap id for the heap
02b23803 Laura Abbott 2016-09-07   98   */
02b23803 Laura Abbott 2016-09-07  @99  struct ion_heap_data {
02b23803 Laura Abbott 2016-09-07  100   char name[MAX_HEAP_NAME];
02b23803 Laura Abbott 2016-09-07  101   __u32 type;
02b23803 Laura Abbott 2016-09-07  102   __u32 heap_id;
02b23803 Laura Abbott 2016-09-07  103   __u32 reserved0;
02b23803 Laura Abbott 2016-09-07  104   __u32 reserved1;
02b23803 Laura Abbott 2016-09-07  105   __u32 reserved2;
02b23803 Laura Abbott 2016-09-07  106  };
02b23803 Laura Abbott 2016-09-07  107  

:: The code at line 99 was first introduced by commit
:: 02b23803c6af399473703e26703f74cfff3f22f8 staging: android: ion: Add 
ioctl to query available heaps

:: TO: Laura Abbott 
:: CC: Greg Kroah-Hartman 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v3 10/10] drm/bridge: cdns: Convert to phy framework

2018-12-20 Thread kbuild test robot
Hi Maxime,

I love your patch! Yet something to improve:

[auto build test ERROR on phy/next]
[cannot apply to v4.20-rc7 next-20181220]
[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/Maxime-Ripard/phy-Add-MIPI-D-PHY-mode/20181208-034527
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git 
next
config: i386-randconfig-a2-12191846 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> ERROR: "phy_mipi_dphy_get_default_config" 
>> [drivers/gpu/drm/bridge/cdns-dsi.ko] undefined!

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:amd-18.50 1/1] drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: error: expected ; at end of declaration

2018-12-20 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-18.50
head:   88a0039cb034176ee3416dd0c3a49feea2f446ab
commit: 88a0039cb034176ee3416dd0c3a49feea2f446ab [1/1] drm/amdgpu/powerplay: 
Apply avfs cks-off voltages on VI
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 88a0039cb034176ee3416dd0c3a49feea2f446ab
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: error: expected ; at end of 
>> declaration
   In file included from 
drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
from :0:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: warning: no semicolon at end of 
struct or union
};
^
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: error: expected ; at end of 
>> declaration
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:127:1: error: directive in argument 
list
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:129:1: error: directive in argument 
list
   In file included from 
drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
from :0:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: warning: no semicolon at end of 
struct or union
};
^
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: error: expected ; at end of 
>> declaration
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu8_smumgr.c:878:29: 
warning: symbol 'smu8_smu_funcs' was not declared. Should it be static?
   In file included from 
drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
from :0:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: warning: no semicolon at end of 
struct or union
};
^
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:854:1: error: expected ; at end of 
>> declaration
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:310:49: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:310:49:
expected unsigned short [unsigned] [short] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:310:49:got 
restricted __be16 [usertype] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:313:17: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:313:17:
expected unsigned int [unsigned] [usertype] VddcLevelCount
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:313:17:got 
restricted __be32 [usertype] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:327:51: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:327:51:
expected unsigned short [unsigned] [short] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:327:51:got 
restricted __be16 [usertype] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:330:17: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:330:17:
expected unsigned int [unsigned] [usertype] VddGfxLevelCount
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:330:17:got 
restricted __be32 [usertype] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:344:50: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:344:50:
expected unsigned short [unsigned] [short] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:344:50:got 
restricted __be16 [usertype] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:347:66: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:347:66:
expected unsigned short [unsigned] [usertype] Voltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:347:66:got 
restricted __be16 [usertype] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:354:50: 
warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:354:50:
expected unsigned short [unsigned] [short] 
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:354:50

[radeon-alex:amd-18.50 1052/1415] drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of struct or union

2018-12-20 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-18.50
head:   88a0039cb034176ee3416dd0c3a49feea2f446ab
commit: 6bd58b7143eee9bc0567f78b5ef67b4164b02d62 [1052/1415] drm/amdkcl: [4.16] 
fix for devm_memremap_pages change
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 6bd58b7143eee9bc0567f78b5ef67b4164b02d62
# 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/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
from :0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of 
>> struct or union
};
^
--
   In file included from 
drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
from :0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of 
>> struct or union
};
^
   In file included from include/linux/list.h:9:0,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/kref.h:18,
from include/kcl/kcl_kref.h:5,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
from :0:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 
'get_fb_info':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2013:66: 
warning: passing argument 1 of 'kcl_drm_fb_get_gem_obj' discards 'const' 
qualifier from pointer target type [-Wdiscarded-qualifiers]
 struct amdgpu_bo *rbo = 
gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
 ^
   include/linux/kernel.h:963:26: note: in definition of macro 'container_of'
 void *__mptr = (void *)(ptr); \
 ^~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2013:26: note: 
in expansion of macro 'gem_to_amdgpu_bo'
 struct amdgpu_bo *rbo = 
gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
 ^
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:56:0,
from 
drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
from :0:
   drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:322:1: note: expected 'struct 
drm_framebuffer *' but argument is of type 'const struct drm_framebuffer *'
kcl_drm_fb_get_gem_obj(struct drm_framebuffer * fb,int index)
^~
   In file included from include/linux/kernel.h:10:0,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/kref.h:18,
from include/kcl/kcl_kref.h:5,
from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
from :0:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2013:66: 
warning: passing argument 1 of 'kcl_drm_fb_get_gem_obj' discards 'const' 
qualifier from pointer target type [-Wdiscarded-qualifiers]
 struct amdgpu_bo *rbo = 
gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
 ^
   include/linux/compiler.h:316:19: note: in definition of macro 
'__compiletime_assert'
  bool __cond = !(condition);\
  ^
   include/linux/compiler.h:339:2: note: in expansion of macro 
'_compiletime_assert'
 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
 ^~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 
'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~
   include/linux/kernel.h:964:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
 ^~~~
   include/linux/kernel.h:964:20: note: in expansion of macro '__same_type'
 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h:34:32: note: in expansion of macro 
'container_of'
#define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, 
gem_base)
   ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2013:26: note: 
in expansion of macro 'gem_to_amdgpu_bo'
 struct amdgpu_bo *rbo = 
gem_to_amdgpu_bo(kcl_drm_fb_get_gem_

Re: [PATCH] drm/doc: Move bridge link target to the right place

2018-12-20 Thread kbuild test robot
Hi Daniel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.20-rc7 next-20181220]
[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/Daniel-Vetter/drm-doc-Move-bridge-link-target-to-the-right-place/20181221-021521
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/i915_trace.h:11:0,
from drivers/gpu/drm/i915/i915_drv.h:2563,
from drivers/gpu/drm/i915/i915_gem_execbuffer.c:38:
>> drivers/gpu/drm/i915/intel_drv.h:382:1: error: version control conflict 
>> marker in file
<<< HEAD
^~~
>> drivers/gpu/drm/i915/intel_drv.h:414:9: error: invalid suffix 
>> "f9e07e71945..." on integer constant
>>> 4f9e07e71945... drm/doc: Move bridge link target to the right place
^~~

vim +382 drivers/gpu/drm/i915/intel_drv.h

   309  
   310  /*
   311   * This structure serves as a translation layer between the generic 
HDCP code
   312   * and the bus-specific code. What that means is that HDCP over HDMI 
differs
   313   * from HDCP over DP, so to account for these differences, we need to
   314   * communicate with the receiver through this shim.
   315   *
   316   * For completeness, the 2 buses differ in the following ways:
   317   *  - DP AUX vs. DDC
   318   *  HDCP registers on the receiver are set via DP AUX for 
DP, and
   319   *  they are set via DDC for HDMI.
   320   *  - Receiver register offsets
   321   *  The offsets of the registers are different for DP vs. 
HDMI
   322   *  - Receiver register masks/offsets
   323   *  For instance, the ready bit for the KSV fifo is in a 
different
   324   *  place on DP vs HDMI
   325   *  - Receiver register names
   326   *  Seriously. In the DP spec, the 16-bit register 
containing
   327   *  downstream information is called BINFO, on HDMI it's 
called
   328   *  BSTATUS. To confuse matters further, DP has a BSTATUS 
register
   329   *  with a completely different definition.
   330   *  - KSV FIFO
   331   *  On HDMI, the ksv fifo is read all at once, whereas on 
DP it must
   332   *  be read 3 keys at a time
   333   *  - Aksv output
   334   *  Since Aksv is hidden in hardware, there's different 
procedures
   335   *  to send it over DP AUX vs DDC
   336   */
   337  struct intel_hdcp_shim {
   338  /* Outputs the transmitter's An and Aksv values to the 
receiver. */
   339  int (*write_an_aksv)(struct intel_digital_port *intel_dig_port, 
u8 *an);
   340  
   341  /* Reads the receiver's key selection vector */
   342  int (*read_bksv)(struct intel_digital_port *intel_dig_port, u8 
*bksv);
   343  
   344  /*
   345   * Reads BINFO from DP receivers and BSTATUS from HDMI 
receivers. The
   346   * definitions are the same in the respective specs, but the 
names are
   347   * different. Call it BSTATUS since that's the name the HDMI 
spec
   348   * uses and it was there first.
   349   */
   350  int (*read_bstatus)(struct intel_digital_port *intel_dig_port,
   351  u8 *bstatus);
   352  
   353  /* Determines whether a repeater is present downstream */
   354  int (*repeater_present)(struct intel_digital_port 
*intel_dig_port,
   355  bool *repeater_present);
   356  
   357  /* Reads the receiver's Ri' value */
   358  int (*read_ri_prime)(struct intel_digital_port *intel_dig_port, 
u8 *ri);
   359  
   360  /* Determines if the receiver's KSV FIFO is ready for 
consumption */
   361  int (*read_ksv_ready)(struct intel_digital_port *intel_dig_port,
   362bool *ksv_ready);
   363  
   364  /* Reads the ksv fifo for num_downstream devices */
   365  int (*read_ksv_fifo)(struct intel_digital_port *intel_dig_port,
   366   int num_downstream, u8 *ksv_fifo);
   367  
   368  /* Reads a 32-bit part of V' from the receiver */
   369  int (*read_v_prime_part)(struct intel_digital_port 
*intel_dig_port,
   370   int i, u32 *part);
   371  
   372  /* Enables HDCP signalling on the port */
   373  int (*toggle_signalling)(struct intel_digital_port 
*intel_dig_port,
   374   bool enable);
   375 

Re: [PATCH] gpu: anx7808: fix a missing check of return value

2018-12-20 Thread kbuild test robot
Hi Kangjie,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc7 next-20181220]
[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/Kangjie-Lu/gpu-anx7808-fix-a-missing-check-of-return-value/20181221-054313
config: x86_64-randconfig-x013-201850 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/analogix-anx78xx.c: In function 'anx78xx_poweron':
>> drivers/gpu/drm/bridge/analogix-anx78xx.c:646:3: error: implicit declaration 
>> of function 'anx78xx_poweroff'; did you mean 'anx78xx_poweron'? 
>> [-Werror=implicit-function-declaration]
  anx78xx_poweroff(anx78xx);
  ^~~~
  anx78xx_poweron
   drivers/gpu/drm/bridge/analogix-anx78xx.c: At top level:
>> drivers/gpu/drm/bridge/analogix-anx78xx.c:655:13: warning: conflicting types 
>> for 'anx78xx_poweroff'
static void anx78xx_poweroff(struct anx78xx *anx78xx)
^~~~
>> drivers/gpu/drm/bridge/analogix-anx78xx.c:655:13: error: static declaration 
>> of 'anx78xx_poweroff' follows non-static declaration
   drivers/gpu/drm/bridge/analogix-anx78xx.c:646:3: note: previous implicit 
declaration of 'anx78xx_poweroff' was here
  anx78xx_poweroff(anx78xx);
  ^~~~
   cc1: some warnings being treated as errors

vim +646 drivers/gpu/drm/bridge/analogix-anx78xx.c

   612  
   613  static int anx78xx_poweron(struct anx78xx *anx78xx)
   614  {
   615  struct anx78xx_platform_data *pdata = &anx78xx->pdata;
   616  int err = 0;
   617  
   618  if (WARN_ON(anx78xx->powered))
   619  return err;
   620  
   621  if (pdata->dvdd10) {
   622  err = regulator_enable(pdata->dvdd10);
   623  if (err) {
   624  DRM_ERROR("Failed to enable DVDD10 regulator: 
%d\n",
   625err);
   626  return err;
   627  }
   628  
   629  usleep_range(1000, 2000);
   630  }
   631  
   632  gpiod_set_value_cansleep(pdata->gpiod_reset, 1);
   633  usleep_range(1000, 2000);
   634  
   635  gpiod_set_value_cansleep(pdata->gpiod_pd, 0);
   636  usleep_range(1000, 2000);
   637  
   638  gpiod_set_value_cansleep(pdata->gpiod_reset, 0);
   639  
   640  /* Power on registers module */
   641  err = anx78xx_set_bits(anx78xx->map[I2C_IDX_TX_P2], 
SP_POWERDOWN_CTRL_REG,
   642   SP_HDCP_PD | SP_AUDIO_PD | SP_VIDEO_PD | 
SP_LINK_PD);
   643  err |= anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2], 
SP_POWERDOWN_CTRL_REG,
   644 SP_REGISTER_PD | SP_TOTAL_PD);
   645  if (err) { 
 > 646  anx78xx_poweroff(anx78xx);
   647  return err;
   648  }
   649  
   650  anx78xx->powered = true;
   651  
   652  return err;
   653  }
   654  
 > 655  static void anx78xx_poweroff(struct anx78xx *anx78xx)
   656  {
   657  struct anx78xx_platform_data *pdata = &anx78xx->pdata;
   658  int err;
   659  
   660  if (WARN_ON(!anx78xx->powered))
   661  return;
   662  
   663  gpiod_set_value_cansleep(pdata->gpiod_reset, 1);
   664  usleep_range(1000, 2000);
   665  
   666  gpiod_set_value_cansleep(pdata->gpiod_pd, 1);
   667  usleep_range(1000, 2000);
   668  
   669  if (pdata->dvdd10) {
   670  err = regulator_disable(pdata->dvdd10);
   671  if (err) {
   672  DRM_ERROR("Failed to disable DVDD10 regulator: 
%d\n",
   673err);
   674  return;
   675  }
   676  
   677  usleep_range(1000, 2000);
   678  }
   679  
   680  anx78xx->powered = false;
   681  }
   682  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] gpu: anx7808: fix a missing check of return value

2018-12-20 Thread kbuild test robot
Hi Kangjie,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc7 next-20181220]
[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/Kangjie-Lu/gpu-anx7808-fix-a-missing-check-of-return-value/20181221-054313
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=6.4.0 make.cross ARCH=nds32 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/bridge/analogix-anx78xx.c: In function 'anx78xx_poweron':
>> drivers/gpu/drm/bridge/analogix-anx78xx.c:646:3: error: implicit declaration 
>> of function 'anx78xx_poweroff' [-Werror=implicit-function-declaration]
  anx78xx_poweroff(anx78xx);
  ^~~~
   drivers/gpu/drm/bridge/analogix-anx78xx.c: At top level:
   drivers/gpu/drm/bridge/analogix-anx78xx.c:655:13: warning: conflicting types 
for 'anx78xx_poweroff'
static void anx78xx_poweroff(struct anx78xx *anx78xx)
^~~~
   drivers/gpu/drm/bridge/analogix-anx78xx.c:655:13: error: static declaration 
of 'anx78xx_poweroff' follows non-static declaration
   drivers/gpu/drm/bridge/analogix-anx78xx.c:646:3: note: previous implicit 
declaration of 'anx78xx_poweroff' was here
  anx78xx_poweroff(anx78xx);
  ^~~~
   cc1: some warnings being treated as errors

vim +/anx78xx_poweroff +646 drivers/gpu/drm/bridge/analogix-anx78xx.c

   612  
   613  static int anx78xx_poweron(struct anx78xx *anx78xx)
   614  {
   615  struct anx78xx_platform_data *pdata = &anx78xx->pdata;
   616  int err = 0;
   617  
   618  if (WARN_ON(anx78xx->powered))
   619  return err;
   620  
   621  if (pdata->dvdd10) {
   622  err = regulator_enable(pdata->dvdd10);
   623  if (err) {
   624  DRM_ERROR("Failed to enable DVDD10 regulator: 
%d\n",
   625err);
   626  return err;
   627  }
   628  
   629  usleep_range(1000, 2000);
   630  }
   631  
   632  gpiod_set_value_cansleep(pdata->gpiod_reset, 1);
   633  usleep_range(1000, 2000);
   634  
   635  gpiod_set_value_cansleep(pdata->gpiod_pd, 0);
   636  usleep_range(1000, 2000);
   637  
   638  gpiod_set_value_cansleep(pdata->gpiod_reset, 0);
   639  
   640  /* Power on registers module */
   641  err = anx78xx_set_bits(anx78xx->map[I2C_IDX_TX_P2], 
SP_POWERDOWN_CTRL_REG,
   642   SP_HDCP_PD | SP_AUDIO_PD | SP_VIDEO_PD | 
SP_LINK_PD);
   643  err |= anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2], 
SP_POWERDOWN_CTRL_REG,
   644 SP_REGISTER_PD | SP_TOTAL_PD);
   645  if (err) { 
 > 646  anx78xx_poweroff(anx78xx);
   647  return err;
   648  }
   649  
   650  anx78xx->powered = true;
   651  
   652  return err;
   653  }
   654  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] drm/doc: Move bridge link target to the right place

2018-12-20 Thread kbuild test robot
Hi Daniel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.20-rc7 next-20181220]
[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/Daniel-Vetter/drm-doc-Move-bridge-link-target-to-the-right-place/20181221-021521
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/selftests/../i915_trace.h:11:0,
from drivers/gpu/drm/i915/selftests/../i915_drv.h:2563,
from drivers/gpu/drm/i915/selftests/i915_selftest.c:26:
>> drivers/gpu/drm/i915/selftests/../intel_drv.h:382:1: error: version control 
>> conflict marker in file
<<< HEAD
^~~
>> drivers/gpu/drm/i915/selftests/../intel_drv.h:414:9: error: invalid suffix 
>> "f9e07e71945..." on integer constant
>>> 4f9e07e71945... drm/doc: Move bridge link target to the right place
^~~

vim +382 drivers/gpu/drm/i915/selftests/../intel_drv.h

   309  
   310  /*
   311   * This structure serves as a translation layer between the generic 
HDCP code
   312   * and the bus-specific code. What that means is that HDCP over HDMI 
differs
   313   * from HDCP over DP, so to account for these differences, we need to
   314   * communicate with the receiver through this shim.
   315   *
   316   * For completeness, the 2 buses differ in the following ways:
   317   *  - DP AUX vs. DDC
   318   *  HDCP registers on the receiver are set via DP AUX for 
DP, and
   319   *  they are set via DDC for HDMI.
   320   *  - Receiver register offsets
   321   *  The offsets of the registers are different for DP vs. 
HDMI
   322   *  - Receiver register masks/offsets
   323   *  For instance, the ready bit for the KSV fifo is in a 
different
   324   *  place on DP vs HDMI
   325   *  - Receiver register names
   326   *  Seriously. In the DP spec, the 16-bit register 
containing
   327   *  downstream information is called BINFO, on HDMI it's 
called
   328   *  BSTATUS. To confuse matters further, DP has a BSTATUS 
register
   329   *  with a completely different definition.
   330   *  - KSV FIFO
   331   *  On HDMI, the ksv fifo is read all at once, whereas on 
DP it must
   332   *  be read 3 keys at a time
   333   *  - Aksv output
   334   *  Since Aksv is hidden in hardware, there's different 
procedures
   335   *  to send it over DP AUX vs DDC
   336   */
   337  struct intel_hdcp_shim {
   338  /* Outputs the transmitter's An and Aksv values to the 
receiver. */
   339  int (*write_an_aksv)(struct intel_digital_port *intel_dig_port, 
u8 *an);
   340  
   341  /* Reads the receiver's key selection vector */
   342  int (*read_bksv)(struct intel_digital_port *intel_dig_port, u8 
*bksv);
   343  
   344  /*
   345   * Reads BINFO from DP receivers and BSTATUS from HDMI 
receivers. The
   346   * definitions are the same in the respective specs, but the 
names are
   347   * different. Call it BSTATUS since that's the name the HDMI 
spec
   348   * uses and it was there first.
   349   */
   350  int (*read_bstatus)(struct intel_digital_port *intel_dig_port,
   351  u8 *bstatus);
   352  
   353  /* Determines whether a repeater is present downstream */
   354  int (*repeater_present)(struct intel_digital_port 
*intel_dig_port,
   355  bool *repeater_present);
   356  
   357  /* Reads the receiver's Ri' value */
   358  int (*read_ri_prime)(struct intel_digital_port *intel_dig_port, 
u8 *ri);
   359  
   360  /* Determines if the receiver's KSV FIFO is ready for 
consumption */
   361  int (*read_ksv_ready)(struct intel_digital_port *intel_dig_port,
   362bool *ksv_ready);
   363  
   364  /* Reads the ksv fifo for num_downstream devices */
   365  int (*read_ksv_fifo)(struct intel_digital_port *intel_dig_port,
   366   int num_downstream, u8 *ksv_fifo);
   367  
   368  /* Reads a 32-bit part of V' from the receiver */
   369  int (*read_v_prime_part)(struct intel_digital_port 
*intel_dig_port,
   370   int i, u32 *part);
   371  
   372  /* Enables HDCP signalling on the port */
   373  int (*toggle_signalling)(struct intel_digital_port 
*intel_

[radeon-alex:amd-staging-drm-next 500/630] drivers/gpu/drm/etnaviv/etnaviv_dump.c:138:21: error: 'sched' undeclared; did you mean 'cred'?

2018-12-21 Thread kbuild test robot
Hi Sharat,

FYI, the error/warning still remains.

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   7db9c45feec5ae730138e68b64eb945bd54891ca
commit: b411997efe8f34b22824461b118a6eacae232b9b [500/630] drm/scheduler: Add 
drm_sched_suspend/resume_timeout()
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b411997efe8f34b22824461b118a6eacae232b9b
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from include/linux/radix-tree.h:29:0,
from include/linux/idr.h:15,
from include/linux/kernfs.h:14,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/devcoredump.h:23,
from drivers/gpu/drm/etnaviv/etnaviv_dump.c:6:
   drivers/gpu/drm/etnaviv/etnaviv_dump.c: In function 'etnaviv_core_dump':
>> drivers/gpu/drm/etnaviv/etnaviv_dump.c:138:21: error: 'sched' undeclared 
>> (first use in this function); did you mean 'cred'?
 spin_lock_irqsave(&sched->job_list_lock, flags);
^
   include/linux/spinlock.h:241:34: note: in definition of macro 
'raw_spin_lock_irqsave'
  flags = _raw_spin_lock_irqsave(lock); \
 ^~~~
   drivers/gpu/drm/etnaviv/etnaviv_dump.c:138:2: note: in expansion of macro 
'spin_lock_irqsave'
 spin_lock_irqsave(&sched->job_list_lock, flags);
 ^
   drivers/gpu/drm/etnaviv/etnaviv_dump.c:138:21: note: each undeclared 
identifier is reported only once for each function it appears in
 spin_lock_irqsave(&sched->job_list_lock, flags);
^
   include/linux/spinlock.h:241:34: note: in definition of macro 
'raw_spin_lock_irqsave'
  flags = _raw_spin_lock_irqsave(lock); \
 ^~~~
   drivers/gpu/drm/etnaviv/etnaviv_dump.c:138:2: note: in expansion of macro 
'spin_lock_irqsave'
 spin_lock_irqsave(&sched->job_list_lock, flags);
 ^

vim +138 drivers/gpu/drm/etnaviv/etnaviv_dump.c

   > 6  #include 
 7  #include "etnaviv_cmdbuf.h"
 8  #include "etnaviv_dump.h"
 9  #include "etnaviv_gem.h"
10  #include "etnaviv_gpu.h"
11  #include "etnaviv_mmu.h"
12  #include "etnaviv_sched.h"
13  #include "state.xml.h"
14  #include "state_hi.xml.h"
15  
16  static bool etnaviv_dump_core = true;
17  module_param_named(dump_core, etnaviv_dump_core, bool, 0600);
18  
19  struct core_dump_iterator {
20  void *start;
21  struct etnaviv_dump_object_header *hdr;
22  void *data;
23  };
24  
25  static const unsigned short etnaviv_dump_registers[] = {
26  VIVS_HI_AXI_STATUS,
27  VIVS_HI_CLOCK_CONTROL,
28  VIVS_HI_IDLE_STATE,
29  VIVS_HI_AXI_CONFIG,
30  VIVS_HI_INTR_ENBL,
31  VIVS_HI_CHIP_IDENTITY,
32  VIVS_HI_CHIP_FEATURE,
33  VIVS_HI_CHIP_MODEL,
34  VIVS_HI_CHIP_REV,
35  VIVS_HI_CHIP_DATE,
36  VIVS_HI_CHIP_TIME,
37  VIVS_HI_CHIP_MINOR_FEATURE_0,
38  VIVS_HI_CACHE_CONTROL,
39  VIVS_HI_AXI_CONTROL,
40  VIVS_PM_POWER_CONTROLS,
41  VIVS_PM_MODULE_CONTROLS,
42  VIVS_PM_MODULE_STATUS,
43  VIVS_PM_PULSE_EATER,
44  VIVS_MC_MMU_FE_PAGE_TABLE,
45  VIVS_MC_MMU_TX_PAGE_TABLE,
46  VIVS_MC_MMU_PE_PAGE_TABLE,
47  VIVS_MC_MMU_PEZ_PAGE_TABLE,
48  VIVS_MC_MMU_RA_PAGE_TABLE,
49  VIVS_MC_DEBUG_MEMORY,
50  VIVS_MC_MEMORY_BASE_ADDR_RA,
51  VIVS_MC_MEMORY_BASE_ADDR_FE,
52  VIVS_MC_MEMORY_BASE_ADDR_TX,
53  VIVS_MC_MEMORY_BASE_ADDR_PEZ,
54  VIVS_MC_MEMORY_BASE_ADDR_PE,
55  VIVS_MC_MEMORY_TIMING_CONTROL,
56  VIVS_MC_BUS_CONFIG,
57  VIVS_FE_DMA_STATUS,
58  VIVS_FE_DMA_DEBUG_STATE,
59  VIVS_FE_DMA_ADDRESS,
60  VIVS_FE_DMA_LOW,
61  VIVS_FE_DMA_HIGH,
62  VIVS_FE_AUTO_FLUSH,
63  };
64  
65  static void etnaviv_core_dump_header(struct core_dump_iterator *iter,
66  u32 type, void *data_end)
67  {
68  struct etnaviv_dump_object_header *hdr = iter->hdr;
69  
70  hdr->magic = cpu_to_le32(ETDUMP_MAGIC);
71  hdr->type = cpu_to_le32(type);
72  hdr->file_offset = cpu_to_le32(iter->data - iter->start);
73  hdr->file_

Re: [PATCH v2 1/7] drm: msm: Cleanup drm_display_mode print str

2018-12-21 Thread kbuild test robot
Hi Shayenne,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robclark/msm-next]
[also build test ERROR on v4.20-rc7 next-20181221]
[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/Shayenne-Moura/drm-Remove-drm_mode_object-dependency-from-drm_display_mode/20181221-161831
base:   git://people.freedesktop.org/~robclark/linux msm-next
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

   In file included from include/drm/drm_mm.h:49:0,
from include/drm/drmP.h:72,
from include/drm/drm_modeset_helper.h:26,
from include/drm/drm_crtc_helper.h:44,
from drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:22:
   drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c: In function 
'mdp5_crtc_mode_set_nofb':
>> drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:387:23: error: expected ')' before 
>> 'DMR_MODE_FMT'
 DBG("%s: set mode: " DMR_MODE_FMT, crtc->name, DRM_MODE_ARG(mode));
  ^
   include/drm/drm_print.h:357:25: note: in definition of macro 
'DRM_DEBUG_DRIVER'
 drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~
>> drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:387:2: note: in expansion of macro 
>> 'DBG'
 DBG("%s: set mode: " DMR_MODE_FMT, crtc->name, DRM_MODE_ARG(mode));
 ^~~
>> drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:387:6: warning: format '%s' 
>> expects a matching 'char *' argument [-Wformat=]
 DBG("%s: set mode: " DMR_MODE_FMT, crtc->name, DRM_MODE_ARG(mode));
 ^
   include/drm/drm_print.h:357:25: note: in definition of macro 
'DRM_DEBUG_DRIVER'
 drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~
>> drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:387:2: note: in expansion of macro 
>> 'DBG'
 DBG("%s: set mode: " DMR_MODE_FMT, crtc->name, DRM_MODE_ARG(mode));
 ^~~
--
   In file included from include/drm/drm_crtc.h:40:0,
from drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c:20:
   drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c: In function 
'mdp4_dsi_encoder_mode_set':
>> include/drm/drm_modes.h:439:4: error: expected expression before ')' token
 (m)->base.id, (m)->name, (m)->vrefresh, (m)->clock, \
   ^
>> include/drm/drm_print.h:357:32: note: in expansion of macro 'DRM_MODE_ARG'
 drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
   ^~~
>> drivers/gpu/drm/msm/msm_drv.h:433:23: note: in expansion of macro 
>> 'DRM_DEBUG_DRIVER'
#define DBG(fmt, ...) DRM_DEBUG_DRIVER(fmt"\n", ##__VA_ARGS__)
  ^~~~
>> drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c:61:2: note: in expansion of 
>> macro 'DBG'
 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG()):
 ^~~

vim +387 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c

   369  
   370  static void mdp5_crtc_mode_set_nofb(struct drm_crtc *crtc)
   371  {
   372  struct mdp5_crtc *mdp5_crtc = to_mdp5_crtc(crtc);
   373  struct mdp5_crtc_state *mdp5_cstate = 
to_mdp5_crtc_state(crtc->state);
   374  struct mdp5_kms *mdp5_kms = get_kms(crtc);
   375  struct mdp5_hw_mixer *mixer = mdp5_cstate->pipeline.mixer;
   376  struct mdp5_hw_mixer *r_mixer = mdp5_cstate->pipeline.r_mixer;
   377  uint32_t lm = mixer->lm;
   378  u32 mixer_width, val;
   379  unsigned long flags;
   380  struct drm_display_mode *mode;
   381  
   382  if (WARN_ON(!crtc->state))
   383  return;
   384  
   385  mode = &crtc->state->adjusted_mode;
   386  
 > 387  DBG("%s: set mode: " DMR_MODE_FMT, crtc->name, 
 > DRM_MODE_ARG(mode));
   388  
   389  mixer_width = mode->hdisplay;
   390  if (r_mixer)
   391  mixer_width /= 2;
   392  
   393  spin_lock_irqsave(&mdp5_crtc->lm_lock, flags);
   394  mdp5_write(mdp5_kms, REG_MDP5_LM_OUT_SIZE(lm),
   395  MDP5_LM_OUT_SIZE_WIDTH(mixer_width) |
   396  MDP5_LM_OUT_SIZE_HEIGHT(mode->vdisplay));
   397  
   398  /* Assign mixer to LEFT side in source split mode */
   399  val = mdp5_read(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm));
   400  val &= ~MDP5_LM_BLEND_COLOR_OUT_SPLIT_LEFT_RIGHT;
   401  mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm), val);
   402  
   403  if (r_mixer) {
   404  u32 r_lm = r_mixer->lm;
   405  
   406  mdp5_write(mdp5_kms, RE

Re: [PATCH 7/7] drm: Complete remove drm_mode_object dependency

2018-12-21 Thread kbuild test robot
Hi Shayenne,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robclark/msm-next]
[also build test ERROR on v4.20-rc7 next-20181221]
[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/Shayenne-Moura/drm-Remove-drm_mode_object-dependency-from-drm_display_mode/20181222-065838
base:   git://people.freedesktop.org/~robclark/linux msm-next
config: x86_64-randconfig-x008-201850 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_modes.c: In function 'drm_mode_destroy':
>> drivers/gpu/drm/drm_modes.c:90:41: error: 'struct drm_display_mode' has no 
>> member named 'base'; did you mean 'name'?
 drm_mode_object_unregister(dev, &mode->base);
^~~~
name
   drivers/gpu/drm/drm_modes.c: In function 'drm_mode_copy':
   drivers/gpu/drm/drm_modes.c:909:16: error: 'struct drm_display_mode' has no 
member named 'base'; did you mean 'name'?
 int id = dst->base.id;
   ^~~~
   name
   drivers/gpu/drm/drm_modes.c:913:7: error: 'struct drm_display_mode' has no 
member named 'base'; did you mean 'name'?
 dst->base.id = id;
  ^~~~
  name

vim +90 drivers/gpu/drm/drm_modes.c

8bd441b2 Daniel Vetter 2014-01-23  77  
8bd441b2 Daniel Vetter 2014-01-23  78  /**
8bd441b2 Daniel Vetter 2014-01-23  79   * drm_mode_destroy - remove a mode
8bd441b2 Daniel Vetter 2014-01-23  80   * @dev: DRM device
8bd441b2 Daniel Vetter 2014-01-23  81   * @mode: mode to remove
8bd441b2 Daniel Vetter 2014-01-23  82   *
f5aabb97 Daniel Vetter 2014-01-23  83   * Release @mode's unique ID, then free 
it @mode structure itself using kfree.
8bd441b2 Daniel Vetter 2014-01-23  84   */
8bd441b2 Daniel Vetter 2014-01-23  85  void drm_mode_destroy(struct drm_device 
*dev, struct drm_display_mode *mode)
8bd441b2 Daniel Vetter 2014-01-23  86  {
8bd441b2 Daniel Vetter 2014-01-23  87   if (!mode)
8bd441b2 Daniel Vetter 2014-01-23  88   return;
8bd441b2 Daniel Vetter 2014-01-23  89  
7c8f6d25 Dave Airlie   2016-04-15 @90   drm_mode_object_unregister(dev, 
&mode->base);
8bd441b2 Daniel Vetter 2014-01-23  91  
8bd441b2 Daniel Vetter 2014-01-23  92   kfree(mode);
8bd441b2 Daniel Vetter 2014-01-23  93  }
8bd441b2 Daniel Vetter 2014-01-23  94  EXPORT_SYMBOL(drm_mode_destroy);
8bd441b2 Daniel Vetter 2014-01-23  95  

:: The code at line 90 was first introduced by commit
:: 7c8f6d2577c7565f67ba3f6b9b76f7422710d66e drm/mode: rework 
drm_mode_object_put to drm_mode_object_unregister.

:: TO: Dave Airlie 
:: CC: Dave Airlie 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH 3/3] drm/amd: validate user GEM object size

2018-12-21 Thread kbuild test robot
Hi Yu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc7]
[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/Yu-Zhao/drm-amd-fix-race-in-page-flip-job/20181222-072937
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/cdev.h:8,
from include/drm/drmP.h:36,
from drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:26:
   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function 
'amdgpu_display_user_framebuffer_create':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:556:28: warning: format '%d' 
>> expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long 
>> unsigned int'} [-Wformat=]
  dev_err(&dev->pdev->dev, "Invalid GEM size: expecting %d but got %d\n",
   ^
   include/linux/device.h:1370:22: note: in definition of macro 'dev_fmt'
#define dev_fmt(fmt) fmt
 ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:556:3: note: in expansion of 
macro 'dev_err'
  dev_err(&dev->pdev->dev, "Invalid GEM size: expecting %d but got %d\n",
  ^~~

vim +556 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

   521  
   522  struct drm_framebuffer *
   523  amdgpu_display_user_framebuffer_create(struct drm_device *dev,
   524 struct drm_file *file_priv,
   525 const struct drm_mode_fb_cmd2 
*mode_cmd)
   526  {
   527  struct drm_gem_object *obj;
   528  struct amdgpu_framebuffer *amdgpu_fb;
   529  int ret;
   530  int height;
   531  struct amdgpu_device *adev = dev->dev_private;
   532  int cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0);
   533  int pitch = amdgpu_align_pitch(adev, mode_cmd->width, cpp, 
false);
   534  
   535  if (mode_cmd->pitches[0] != pitch) {
   536  dev_err(&dev->pdev->dev, "Invalid pitch: expecting %d 
but got %d\n",
   537  pitch, mode_cmd->pitches[0]);
   538  return ERR_PTR(-EINVAL);
   539  }
   540  
   541  obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]);
   542  if (obj ==  NULL) {
   543  dev_err(&dev->pdev->dev, "No GEM object associated to 
handle 0x%08X, "
   544  "can't create framebuffer\n", 
mode_cmd->handles[0]);
   545  return ERR_PTR(-ENOENT);
   546  }
   547  
   548  /* Handle is imported dma-buf, so cannot be migrated to VRAM 
for scanout */
   549  if (obj->import_attach) {
   550  DRM_DEBUG_KMS("Cannot create framebuffer from imported 
dma_buf\n");
   551  return ERR_PTR(-EINVAL);
   552  }
   553  
   554  height = ALIGN(mode_cmd->height, 8);
   555  if (obj->size < pitch * height) {
 > 556  dev_err(&dev->pdev->dev, "Invalid GEM size: expecting 
 > %d but got %d\n",
   557  pitch * height, obj->size);
   558  return ERR_PTR(-EINVAL);
   559  }
   560  
   561  amdgpu_fb = kzalloc(sizeof(*amdgpu_fb), GFP_KERNEL);
   562  if (amdgpu_fb == NULL) {
   563  drm_gem_object_put_unlocked(obj);
   564  return ERR_PTR(-ENOMEM);
   565  }
   566  
   567  ret = amdgpu_display_framebuffer_init(dev, amdgpu_fb, mode_cmd, 
obj);
   568  if (ret) {
   569  kfree(amdgpu_fb);
   570  drm_gem_object_put_unlocked(obj);
   571  return ERR_PTR(ret);
   572  }
   573  
   574  return &amdgpu_fb->base;
   575  }
   576  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH 3/3] drm/amd: validate user GEM object size

2018-12-21 Thread kbuild test robot
Hi Yu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc7 next-20181221]
[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/Yu-Zhao/drm-amd-fix-race-in-page-flip-job/20181222-072937
config: x86_64-randconfig-s5-12221153 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/cdev.h:8:0,
from include/drm/drmP.h:36,
from drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:26:
   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function 
'amdgpu_display_user_framebuffer_create':
   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:556:28: warning: format '%d' 
expects argument of type 'int', but argument 4 has type 'size_t {aka long 
unsigned int}' [-Wformat=]
  dev_err(&dev->pdev->dev, "Invalid GEM size: expecting %d but got %d\n",
   ^
   include/linux/device.h:1370:22: note: in definition of macro 'dev_fmt'
#define dev_fmt(fmt) fmt
 ^~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:556:3: note: in expansion of 
>> macro 'dev_err'
  dev_err(&dev->pdev->dev, "Invalid GEM size: expecting %d but got %d\n",
  ^~~

vim +/dev_err +556 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

   521  
   522  struct drm_framebuffer *
   523  amdgpu_display_user_framebuffer_create(struct drm_device *dev,
   524 struct drm_file *file_priv,
   525 const struct drm_mode_fb_cmd2 
*mode_cmd)
   526  {
   527  struct drm_gem_object *obj;
   528  struct amdgpu_framebuffer *amdgpu_fb;
   529  int ret;
   530  int height;
   531  struct amdgpu_device *adev = dev->dev_private;
   532  int cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0);
   533  int pitch = amdgpu_align_pitch(adev, mode_cmd->width, cpp, 
false);
   534  
   535  if (mode_cmd->pitches[0] != pitch) {
   536  dev_err(&dev->pdev->dev, "Invalid pitch: expecting %d 
but got %d\n",
   537  pitch, mode_cmd->pitches[0]);
   538  return ERR_PTR(-EINVAL);
   539  }
   540  
   541  obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]);
   542  if (obj ==  NULL) {
   543  dev_err(&dev->pdev->dev, "No GEM object associated to 
handle 0x%08X, "
   544  "can't create framebuffer\n", 
mode_cmd->handles[0]);
   545  return ERR_PTR(-ENOENT);
   546  }
   547  
   548  /* Handle is imported dma-buf, so cannot be migrated to VRAM 
for scanout */
   549  if (obj->import_attach) {
   550  DRM_DEBUG_KMS("Cannot create framebuffer from imported 
dma_buf\n");
   551  return ERR_PTR(-EINVAL);
   552  }
   553  
   554  height = ALIGN(mode_cmd->height, 8);
   555  if (obj->size < pitch * height) {
 > 556  dev_err(&dev->pdev->dev, "Invalid GEM size: expecting 
 > %d but got %d\n",
   557  pitch * height, obj->size);
   558  return ERR_PTR(-EINVAL);
   559  }
   560  
   561  amdgpu_fb = kzalloc(sizeof(*amdgpu_fb), GFP_KERNEL);
   562  if (amdgpu_fb == NULL) {
   563  drm_gem_object_put_unlocked(obj);
   564  return ERR_PTR(-ENOMEM);
   565  }
   566  
   567  ret = amdgpu_display_framebuffer_init(dev, amdgpu_fb, mode_cmd, 
obj);
   568  if (ret) {
   569  kfree(amdgpu_fb);
   570  drm_gem_object_put_unlocked(obj);
   571  return ERR_PTR(ret);
   572  }
   573  
   574  return &amdgpu_fb->base;
   575  }
   576  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 2/2] drm/amd: validate user GEM object size

2018-12-22 Thread kbuild test robot
Hi Yu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc7 next-20181221]
[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/Yu-Zhao/drm-amd-validate-user-pitch-alignment/20181222-153630
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/drm/drm_mm.h:49:0,
from include/drm/drmP.h:73,
from drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:26:
   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function 
'amdgpu_display_user_framebuffer_create':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:556:17: warning: format '%ld' 
>> expects argument of type 'long int', but argument 4 has type 'size_t {aka 
>> unsigned int}' [-Wformat=]
  DRM_DEBUG_KMS("Invalid GEM size: expecting >= %d but got %ld\n",
^
 pitch * height, obj->size);
 ~~
   include/drm/drm_print.h:362:22: note: in definition of macro 'DRM_DEBUG_KMS'
 drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
 ^~~

vim +556 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

   521  
   522  struct drm_framebuffer *
   523  amdgpu_display_user_framebuffer_create(struct drm_device *dev,
   524 struct drm_file *file_priv,
   525 const struct drm_mode_fb_cmd2 
*mode_cmd)
   526  {
   527  struct drm_gem_object *obj;
   528  struct amdgpu_framebuffer *amdgpu_fb;
   529  int ret;
   530  int height;
   531  struct amdgpu_device *adev = dev->dev_private;
   532  int cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0);
   533  int pitch = amdgpu_align_pitch(adev, mode_cmd->pitches[0], cpp, 
false);
   534  
   535  if (mode_cmd->pitches[0] != pitch) {
   536  DRM_DEBUG_KMS("Invalid pitch: expecting %d but got 
%d\n",
   537pitch, mode_cmd->pitches[0]);
   538  return ERR_PTR(-EINVAL);
   539  }
   540  
   541  obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]);
   542  if (obj ==  NULL) {
   543  dev_err(&dev->pdev->dev, "No GEM object associated to 
handle 0x%08X, "
   544  "can't create framebuffer\n", 
mode_cmd->handles[0]);
   545  return ERR_PTR(-ENOENT);
   546  }
   547  
   548  /* Handle is imported dma-buf, so cannot be migrated to VRAM 
for scanout */
   549  if (obj->import_attach) {
   550  DRM_DEBUG_KMS("Cannot create framebuffer from imported 
dma_buf\n");
   551  return ERR_PTR(-EINVAL);
   552  }
   553  
   554  height = ALIGN(mode_cmd->height, 8);
   555  if (obj->size < pitch * height) {
 > 556  DRM_DEBUG_KMS("Invalid GEM size: expecting >= %d but 
 > got %ld\n",
   557pitch * height, obj->size);
   558  return ERR_PTR(-EINVAL);
   559  }
   560  
   561  amdgpu_fb = kzalloc(sizeof(*amdgpu_fb), GFP_KERNEL);
   562  if (amdgpu_fb == NULL) {
   563  drm_gem_object_put_unlocked(obj);
   564  return ERR_PTR(-ENOMEM);
   565  }
   566  
   567  ret = amdgpu_display_framebuffer_init(dev, amdgpu_fb, mode_cmd, 
obj);
   568  if (ret) {
   569  kfree(amdgpu_fb);
   570  drm_gem_object_put_unlocked(obj);
   571  return ERR_PTR(ret);
   572  }
   573  
   574  return &amdgpu_fb->base;
   575  }
   576  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH 7/7] drm: Complete remove drm_mode_object dependency

2018-12-22 Thread kbuild test robot
Hi Shayenne,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robclark/msm-next]
[also build test ERROR on v4.20-rc7 next-20181221]
[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/Shayenne-Moura/drm-Remove-drm_mode_object-dependency-from-drm_display_mode/20181222-065838
base:   git://people.freedesktop.org/~robclark/linux msm-next
config: i386-randconfig-a3-12211242 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_modes.c: In function 'drm_mode_destroy':
>> drivers/gpu/drm/drm_modes.c:90:39: error: 'struct drm_display_mode' has no 
>> member named 'base'
 drm_mode_object_unregister(dev, &mode->base);
  ^
   drivers/gpu/drm/drm_modes.c: In function 'drm_mode_copy':
   drivers/gpu/drm/drm_modes.c:909:14: error: 'struct drm_display_mode' has no 
member named 'base'
 int id = dst->base.id;
 ^
   drivers/gpu/drm/drm_modes.c:913:5: error: 'struct drm_display_mode' has no 
member named 'base'
 dst->base.id = id;
^

vim +90 drivers/gpu/drm/drm_modes.c

8bd441b2 Daniel Vetter 2014-01-23  77  
8bd441b2 Daniel Vetter 2014-01-23  78  /**
8bd441b2 Daniel Vetter 2014-01-23  79   * drm_mode_destroy - remove a mode
8bd441b2 Daniel Vetter 2014-01-23  80   * @dev: DRM device
8bd441b2 Daniel Vetter 2014-01-23  81   * @mode: mode to remove
8bd441b2 Daniel Vetter 2014-01-23  82   *
f5aabb97 Daniel Vetter 2014-01-23  83   * Release @mode's unique ID, then free 
it @mode structure itself using kfree.
8bd441b2 Daniel Vetter 2014-01-23  84   */
8bd441b2 Daniel Vetter 2014-01-23  85  void drm_mode_destroy(struct drm_device 
*dev, struct drm_display_mode *mode)
8bd441b2 Daniel Vetter 2014-01-23  86  {
8bd441b2 Daniel Vetter 2014-01-23  87   if (!mode)
8bd441b2 Daniel Vetter 2014-01-23  88   return;
8bd441b2 Daniel Vetter 2014-01-23  89  
7c8f6d25 Dave Airlie   2016-04-15 @90   drm_mode_object_unregister(dev, 
&mode->base);
8bd441b2 Daniel Vetter 2014-01-23  91  
8bd441b2 Daniel Vetter 2014-01-23  92   kfree(mode);
8bd441b2 Daniel Vetter 2014-01-23  93  }
8bd441b2 Daniel Vetter 2014-01-23  94  EXPORT_SYMBOL(drm_mode_destroy);
8bd441b2 Daniel Vetter 2014-01-23  95  

:: The code at line 90 was first introduced by commit
:: 7c8f6d2577c7565f67ba3f6b9b76f7422710d66e drm/mode: rework 
drm_mode_object_put to drm_mode_object_unregister.

:: TO: Dave Airlie 
:: CC: Dave Airlie 

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 2/2] drm/amd: validate user GEM object size

2018-12-22 Thread kbuild test robot
Hi Yu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc7 next-20181221]
[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/Yu-Zhao/drm-amd-validate-user-pitch-alignment/20181222-153630
config: i386-randconfig-h1-12231406 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu//drm/amd/amdgpu/amdgpu_display.c: In function 
'amdgpu_display_user_framebuffer_create':
>> drivers/gpu//drm/amd/amdgpu/amdgpu_display.c:556:3: warning: format '%ld' 
>> expects argument of type 'long int', but argument 4 has type 'size_t' 
>> [-Wformat=]
  DRM_DEBUG_KMS("Invalid GEM size: expecting >= %d but got %ld\n",
  ^

vim +556 drivers/gpu//drm/amd/amdgpu/amdgpu_display.c

   521  
   522  struct drm_framebuffer *
   523  amdgpu_display_user_framebuffer_create(struct drm_device *dev,
   524 struct drm_file *file_priv,
   525 const struct drm_mode_fb_cmd2 
*mode_cmd)
   526  {
   527  struct drm_gem_object *obj;
   528  struct amdgpu_framebuffer *amdgpu_fb;
   529  int ret;
   530  int height;
   531  struct amdgpu_device *adev = dev->dev_private;
   532  int cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0);
   533  int pitch = amdgpu_align_pitch(adev, mode_cmd->pitches[0], cpp, 
false);
   534  
   535  if (mode_cmd->pitches[0] != pitch) {
   536  DRM_DEBUG_KMS("Invalid pitch: expecting %d but got 
%d\n",
   537pitch, mode_cmd->pitches[0]);
   538  return ERR_PTR(-EINVAL);
   539  }
   540  
   541  obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]);
   542  if (obj ==  NULL) {
   543  dev_err(&dev->pdev->dev, "No GEM object associated to 
handle 0x%08X, "
   544  "can't create framebuffer\n", 
mode_cmd->handles[0]);
   545  return ERR_PTR(-ENOENT);
   546  }
   547  
   548  /* Handle is imported dma-buf, so cannot be migrated to VRAM 
for scanout */
   549  if (obj->import_attach) {
   550  DRM_DEBUG_KMS("Cannot create framebuffer from imported 
dma_buf\n");
   551  return ERR_PTR(-EINVAL);
   552  }
   553  
   554  height = ALIGN(mode_cmd->height, 8);
   555  if (obj->size < pitch * height) {
 > 556  DRM_DEBUG_KMS("Invalid GEM size: expecting >= %d but 
 > got %ld\n",
   557pitch * height, obj->size);
   558  return ERR_PTR(-EINVAL);
   559  }
   560  
   561  amdgpu_fb = kzalloc(sizeof(*amdgpu_fb), GFP_KERNEL);
   562  if (amdgpu_fb == NULL) {
   563  drm_gem_object_put_unlocked(obj);
   564  return ERR_PTR(-ENOMEM);
   565  }
   566  
   567  ret = amdgpu_display_framebuffer_init(dev, amdgpu_fb, mode_cmd, 
obj);
   568  if (ret) {
   569  kfree(amdgpu_fb);
   570  drm_gem_object_put_unlocked(obj);
   571  return ERR_PTR(ret);
   572  }
   573  
   574  return &amdgpu_fb->base;
   575  }
   576  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:amd-staging-drm-next 597/638] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_timing_generator.c:97: undefined reference to `__udivdi3'

2018-12-24 Thread kbuild test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   d9c54d61df327dc93374b718d7941a09e02e32e1
commit: 1d752442f3d6275b40bace55d022e792167f7fca [597/638] drm/amd/display: Use 
100 Hz precision for pipe pixel clocks
config: i386-randconfig-n0-12220509 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 1d752442f3d6275b40bace55d022e792167f7fca
# save the attached .config to linux build tree
make ARCH=i386 

Note: the radeon-alex/amd-staging-drm-next HEAD 
d9c54d61df327dc93374b718d7941a09e02e32e1 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.o: In function 
`amdgpu_dm_do_flip':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4615: undefined 
reference to `__udivdi3'
   drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.o: In function 
`program_pix_dur':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_timing_generator.c:97: 
>> undefined reference to `__udivdi3'

vim +97 drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_timing_generator.c

86  
87  static void program_pix_dur(struct timing_generator *tg, uint32_t 
pix_clk_100hz)
88  {
89  uint64_t pix_dur;
90  uint32_t addr = mmDMIF_PG0_DPG_PIPE_ARBITRATION_CONTROL1
91  + 
DCE110TG_FROM_TG(tg)->offsets.dmif;
92  uint32_t value = dm_read_reg(tg->ctx, addr);
93  
94  if (pix_clk_100hz == 0)
95  return;
96  
  > 97  pix_dur = 100ull / pix_clk_100hz;
98  
99  set_reg_field_value(
   100  value,
   101  pix_dur,
   102  DPG_PIPE_ARBITRATION_CONTROL1,
   103  PIXEL_DURATION);
   104  
   105  dm_write_reg(tg->ctx, addr, value);
   106  }
   107  

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


.config.gz
Description: application/gzip
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


  1   2   3   4   5   6   7   8   9   10   >