Re: [PATCH] drm: of: fix leak of port_node

2020-09-26 Thread kernel test robot
Hi Tobias,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next linus/master v5.9-rc6 next-20200925]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Tobias-Jordan/drm-of-fix-leak-of-port_node/20200926-063854
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-s001-20200925 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
# 
https://github.com/0day-ci/linux/commit/9acba5320ef136e5d4a3b7563f4b5a362922c818
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Tobias-Jordan/drm-of-fix-leak-of-port_node/20200926-063854
git checkout 9acba5320ef136e5d4a3b7563f4b5a362922c818
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/drm_of.c:318:37: sparse: sparse: incorrect type in argument 
>> 1 (different modifiers) @@ expected struct device_node *node @@ got 
>> struct device_node const *port_node @@
>> drivers/gpu/drm/drm_of.c:318:37: sparse: expected struct device_node 
>> *node
>> drivers/gpu/drm/drm_of.c:318:37: sparse: got struct device_node const 
>> *port_node
   drivers/gpu/drm/drm_of.c:335:37: sparse: sparse: incorrect type in argument 
1 (different modifiers) @@ expected struct device_node *node @@ got 
struct device_node const *port_node @@
   drivers/gpu/drm/drm_of.c:335:37: sparse: expected struct device_node 
*node
   drivers/gpu/drm/drm_of.c:335:37: sparse: got struct device_node const 
*port_node

vim +318 drivers/gpu/drm/drm_of.c

   302  
   303  static int drm_of_lvds_get_remote_pixels_type(
   304  const struct device_node *port_node)
   305  {
   306  struct device_node *endpoint = NULL;
   307  int pixels_type = -EPIPE;
   308  
   309  for_each_child_of_node(port_node, endpoint) {
   310  struct device_node *remote_port;
   311  int current_pt;
   312  
   313  if (!of_node_name_eq(endpoint, "endpoint"))
   314  continue;
   315  
   316  remote_port = of_graph_get_remote_port(endpoint);
   317  if (!remote_port) {
 > 318  of_node_put(port_node);
   319  return -EPIPE;
   320  }
   321  
   322  current_pt = 
drm_of_lvds_get_port_pixels_type(remote_port);
   323  of_node_put(remote_port);
   324  if (pixels_type < 0)
   325  pixels_type = current_pt;
   326  
   327  /*
   328   * Sanity check, ensure that all remote endpoints have 
the same
   329   * pixel type. We may lift this restriction later if we 
need to
   330   * support multiple sinks with different dual-link
   331   * configurations by passing the endpoints explicitly to
   332   * drm_of_lvds_get_dual_link_pixel_order().
   333   */
   334  if (!current_pt || pixels_type != current_pt) {
   335  of_node_put(port_node);
   336  return -EINVAL;
   337  }
   338  }
   339  
   340  return pixels_type;
   341  }
   342  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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-vangogh 45/47] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:357:3: error: implicit declaration of function 'ABM_MASK_SH_LIST_DCN301'; did you mean

2020-09-26 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git 
amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: 356e0c5b8e5c7cd698641f3f7605d25ad793b159 [45/47] drm/amd/display: Add 
dcn3.01 support to DC
config: i386-randconfig-s031-20200925 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
git checkout 356e0c5b8e5c7cd698641f3f7605d25ad793b159
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:357:3: 
>> error: implicit declaration of function 'ABM_MASK_SH_LIST_DCN301'; did you 
>> mean 'ABM_MASK_SH_LIST_DCN20'? [-Werror=implicit-function-declaration]
 357 |   ABM_MASK_SH_LIST_DCN301(__SHIFT)
 |   ^~~
 |   ABM_MASK_SH_LIST_DCN20
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:357:27: 
>> error: '__SHIFT' undeclared here (not in a function); did you mean 
>> 'PMD_SHIFT'?
 357 |   ABM_MASK_SH_LIST_DCN301(__SHIFT)
 |   ^~~
 |   PMD_SHIFT
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:361:27: 
>> error: '_MASK' undeclared here (not in a function); did you mean 'PER_MASK'?
 361 |   ABM_MASK_SH_LIST_DCN301(_MASK)
 |   ^
 |   PER_MASK
   In file included from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:68:
   drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:372:52: 
warning: initialized field overwritten [-Woverride-init]
 372 | #define DCN_BASE__INST0_SEG2   0x34C0
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:241:25: 
note: in expansion of macro 'DCN_BASE__INST0_SEG2'
 241 | #define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
 | ^~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:243:19: 
note: in expansion of macro 'BASE_INNER'
 243 | #define BASE(seg) BASE_INNER(seg)
 |   ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:250:14: 
note: in expansion of macro 'BASE'
 250 |  .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + 
\
 |  ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:104:2:
 note: in expansion of macro 'SRI'
 104 |  SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
 |  ^~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:442:2: note: 
in expansion of macro 'SE_DCN3_REG_LIST'
 442 |  SE_DCN3_REG_LIST(id)\
 |  ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:446:2: note: 
in expansion of macro 'stream_enc_regs'
 446 |  stream_enc_regs(0),
 |  ^~~
   drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:372:52: 
note: (near initialization for 
'stream_enc_regs[0].DP_SEC_METADATA_TRANSMISSION')
 372 | #define DCN_BASE__INST0_SEG2   0x34C0
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:241:25: 
note: in expansion of macro 'DCN_BASE__INST0_SEG2'
 241 | #define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
 | ^~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:243:19: 
note: in expansion of macro 'BASE_INNER'
 243 | #define BASE(seg) BASE_INNER(seg)
 |   ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:250:14: 
note: in expansion of macro 'BASE'
 250 |  .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + 
\
 |  ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:104:2:
 note: in expansion of macro 'SRI'
 104 |  SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
 |  ^~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:442:2: note: 
in expansion of macro 'SE_DCN3_REG_LIST'
 442 |  SE_DCN3_REG_LIST(id)\
 |  ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:446:2: note: 
in expansion of macro 'stream_enc_regs'
 446 |  stream_e

[radeon-alex:amd-staging-drm-next-vangogh 35/47] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: warning: initializer overrides prior initialization of this subobject

2020-09-26 Thread kernel test robot
Hi Huang,

First bad commit (maybe != root cause):

tree:   git://people.freedesktop.org/~agd5f/linux.git 
amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: a7479b81da768e2a9022f62c03b51020d59eae6e [35/47] drm/amd/powerplay: add 
vangogh ppt into swSMU
config: arm-randconfig-r021-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
c32e69b2ce7abfb151a87ba363ac9e25abf7d417)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
git checkout a7479b81da768e2a9022f62c03b51020d59eae6e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: warning: 
>> initializer overrides prior initialization of this subobject 
>> [-Winitializer-overrides]
   MSG_MAP(AllowGfxOff,PPSMC_MSG_AllowGfxOff,   
   1),
   
^~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded 
from macro 'MSG_MAP'
   [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 ^~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:64:2: note: 
previous initialization is here
   MSG_MAP(AllowGfxOff,PPSMC_MSG_EnableGfxOff,  
   1),
   
^~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded 
from macro 'MSG_MAP'
   [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 ^~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:90:2: warning: 
initializer overrides prior initialization of this subobject 
[-Winitializer-overrides]
   MSG_MAP(DisallowGfxOff, PPSMC_MSG_DisallowGfxOff,
   1),
   
^~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded 
from macro 'MSG_MAP'
   [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 ^~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:65:2: note: 
previous initialization is here
   MSG_MAP(DisallowGfxOff, PPSMC_MSG_DisableGfxOff, 
   1),
   
^~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded 
from macro 'MSG_MAP'
   [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 ^~~
   2 warnings generated.

vim +89 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c

7bbe7263c3598a3 Xiaojian Du 2020-08-27   44  
7bbe7263c3598a3 Xiaojian Du 2020-08-27   45  #define FEATURE_MASK(feature) 
(1ULL << feature)
7bbe7263c3598a3 Xiaojian Du 2020-08-27   46  #define SMC_DPM_FEATURE ( \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   47 
FEATURE_MASK(FEATURE_CCLK_DPM_BIT) | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   48 
FEATURE_MASK(FEATURE_VCN_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   49 
FEATURE_MASK(FEATURE_FCLK_DPM_BIT)   | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   50 
FEATURE_MASK(FEATURE_SOCCLK_DPM_BIT) | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   51 
FEATURE_MASK(FEATURE_MP0CLK_DPM_BIT) | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   52 
FEATURE_MASK(FEATURE_LCLK_DPM_BIT)   | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   53 
FEATURE_MASK(FEATURE_SHUBCLK_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   54 
FEATURE_MASK(FEATURE_DCFCLK_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   55 
FEATURE_MASK(FEATURE_GFX_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   56 
FEATURE_MASK(FEATURE_ISP_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   57 
FEATURE_MASK(FEATURE_A55_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   58 
FEATURE_MASK(FEATURE_CVIP_DSP_DPM_BIT))
7bbe7263c3598a3 Xiaojian Du 2020-08-27   59  
7bbe7263c3598a3 Xiaojian Du 2020-08-27   60  static struct cmn2asic_msg_mapping 
vangogh_message_map[SMU_MSG_MAX_COUNT] = {
7bbe7263

[radeon-alex:amd-staging-drm-next-vangogh 35/47] drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: warning: initialized field overwritten

2020-09-25 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git 
amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: a7479b81da768e2a9022f62c03b51020d59eae6e [35/47] drm/amd/powerplay: add 
vangogh ppt into swSMU
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
git checkout a7479b81da768e2a9022f62c03b51020d59eae6e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=alpha 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:102,
from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:26:
>> drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: warning: 
>> initialized field overwritten [-Woverride-init]
 646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 |^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: note: in 
expansion of macro 'MSG_MAP'
  89 |  MSG_MAP(AllowGfxOff,PPSMC_MSG_AllowGfxOff,   1),
 |  ^~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: (near 
initialization for 'vangogh_message_map[73]')
 646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 |^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: note: in 
expansion of macro 'MSG_MAP'
  89 |  MSG_MAP(AllowGfxOff,PPSMC_MSG_AllowGfxOff,   1),
 |  ^~~
>> drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: warning: 
>> initialized field overwritten [-Woverride-init]
 646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 |^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:90:2: note: in 
expansion of macro 'MSG_MAP'
  90 |  MSG_MAP(DisallowGfxOff, PPSMC_MSG_DisallowGfxOff,  
1),
 |  ^~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: (near 
initialization for 'vangogh_message_map[74]')
 646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
 |^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:90:2: note: in 
expansion of macro 'MSG_MAP'
  90 |  MSG_MAP(DisallowGfxOff, PPSMC_MSG_DisallowGfxOff,  
1),
 |  ^~~
   In file included from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:28:
   drivers/gpu/drm/amd/amdgpu/../pm/inc/smu_v11_0.h:60:43: warning: 
'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
  60 | static const struct smu_temperature_range smu11_thermal_policy[] =
 |   ^~~~
   In file included from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:26:
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:197:19: warning: 
'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
 197 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:196:19: warning: 
'debug_evictions' defined but not used [-Wunused-const-variable=]
 196 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:18: warning: 
'sched_policy' defined but not used [-Wunused-const-variable=]
 195 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:67,
from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32

[radeon-alex:amd-staging-drm-next-vangogh 494/544] drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous prototype for function 'amdgpu_virt_update_vf2pf_work_item'

2020-09-25 Thread kernel test robot
Hi Bokun,

FYI, the error/warning still remains.

tree:   git://people.freedesktop.org/~agd5f/linux.git 
amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: 614e7ac92979c4fe35cca713fa282609839e1be1 [494/544] drm/amdgpu: 
Implement new guest side VF2PF message transaction
config: x86_64-randconfig-r035-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
c32e69b2ce7abfb151a87ba363ac9e25abf7d417)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
git checkout 614e7ac92979c4fe35cca713fa282609839e1be1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous 
>> prototype for function 'amdgpu_virt_update_vf2pf_work_item' 
>> [-Wmissing-prototypes]
   void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:1: note: declare 'static' if 
the function is not intended to be used outside of this translation unit
   void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:586:12: error: no member named 
'fw_vram_usage' in 'struct amdgpu_device'
   if (adev->fw_vram_usage.va != NULL) {
     ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:591:11: error: no member named 
'fw_vram_usage' in 'struct amdgpu_device'
   (adev->fw_vram_usage.va + 
(AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10));
  ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:594:11: error: no member named 
'fw_vram_usage' in 'struct amdgpu_device'
   (adev->fw_vram_usage.va + 
(AMD_SRIOV_MSG_VF2PF_OFFSET_KB << 10));
  ^
   1 warning and 3 errors generated.

vim +/amdgpu_virt_update_vf2pf_work_item +557 
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

   556  
 > 557  void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   558  {
   559  struct amdgpu_device *adev = container_of(work, struct 
amdgpu_device, virt.vf2pf_work.work);
   560  
   561  amdgpu_virt_read_pf2vf_data(adev);
   562  amdgpu_virt_write_vf2pf_data(adev);
   563  
   564  schedule_delayed_work(&(adev->virt.vf2pf_work), 
adev->virt.vf2pf_update_interval_ms);
   565  }
   566  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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-vangogh 494/544] drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous prototype for function 'amdgpu_virt_update_vf2pf_work_item'

2020-09-25 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git 
amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: 614e7ac92979c4fe35cca713fa282609839e1be1 [494/544] drm/amdgpu: 
Implement new guest side VF2PF message transaction
config: arm-randconfig-r021-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
c32e69b2ce7abfb151a87ba363ac9e25abf7d417)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
git checkout 614e7ac92979c4fe35cca713fa282609839e1be1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous 
>> prototype for function 'amdgpu_virt_update_vf2pf_work_item' 
>> [-Wmissing-prototypes]
   void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:1: note: declare 'static' if 
the function is not intended to be used outside of this translation unit
   void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:586:12: error: no member named 
'fw_vram_usage' in 'struct amdgpu_device'
   if (adev->fw_vram_usage.va != NULL) {
     ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:591:11: error: no member named 
'fw_vram_usage' in 'struct amdgpu_device'
   (adev->fw_vram_usage.va + 
(AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10));
  ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:594:11: error: no member named 
'fw_vram_usage' in 'struct amdgpu_device'
   (adev->fw_vram_usage.va + 
(AMD_SRIOV_MSG_VF2PF_OFFSET_KB << 10));
  ^
   1 warning and 3 errors generated.

vim +/amdgpu_virt_update_vf2pf_work_item +557 
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

   556  
 > 557  void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   558  {
   559  struct amdgpu_device *adev = container_of(work, struct 
amdgpu_device, virt.vf2pf_work.work);
   560  
   561  amdgpu_virt_read_pf2vf_data(adev);
   562  amdgpu_virt_write_vf2pf_data(adev);
   563  
   564  schedule_delayed_work(&(adev->virt.vf2pf_work), 
adev->virt.vf2pf_update_interval_ms);
   565  }
   566  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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: of: fix leak of port_node

2020-09-25 Thread kernel test robot
Hi Tobias,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next linus/master v5.9-rc6 next-20200925]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Tobias-Jordan/drm-of-fix-leak-of-port_node/20200926-063854
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# 
https://github.com/0day-ci/linux/commit/9acba5320ef136e5d4a3b7563f4b5a362922c818
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Tobias-Jordan/drm-of-fix-leak-of-port_node/20200926-063854
git checkout 9acba5320ef136e5d4a3b7563f4b5a362922c818
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=xtensa 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_of.c: In function 'drm_of_lvds_get_remote_pixels_type':
>> drivers/gpu/drm/drm_of.c:318:16: warning: passing argument 1 of 
>> 'of_node_put' discards 'const' qualifier from pointer target type 
>> [-Wdiscarded-qualifiers]
 318 |of_node_put(port_node);
 |^
   In file included from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/linux/i2c.h:13,
from include/drm/drm_crtc.h:28,
from include/drm/drm_atomic.h:31,
from include/drm/drm_bridge.h:30,
from drivers/gpu/drm/drm_of.c:7:
   include/linux/of.h:122:45: note: expected 'struct device_node *' but 
argument is of type 'const struct device_node *'
 122 | extern void of_node_put(struct device_node *node);
 | ^~~~
   drivers/gpu/drm/drm_of.c:335:16: warning: passing argument 1 of 
'of_node_put' discards 'const' qualifier from pointer target type 
[-Wdiscarded-qualifiers]
 335 |of_node_put(port_node);
 |^
   In file included from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/linux/i2c.h:13,
from include/drm/drm_crtc.h:28,
from include/drm/drm_atomic.h:31,
from include/drm/drm_bridge.h:30,
from drivers/gpu/drm/drm_of.c:7:
   include/linux/of.h:122:45: note: expected 'struct device_node *' but 
argument is of type 'const struct device_node *'
 122 | extern void of_node_put(struct device_node *node);
 | ^~~~

vim +318 drivers/gpu/drm/drm_of.c

   302  
   303  static int drm_of_lvds_get_remote_pixels_type(
   304  const struct device_node *port_node)
   305  {
   306  struct device_node *endpoint = NULL;
   307  int pixels_type = -EPIPE;
   308  
   309  for_each_child_of_node(port_node, endpoint) {
   310  struct device_node *remote_port;
   311  int current_pt;
   312  
   313  if (!of_node_name_eq(endpoint, "endpoint"))
   314  continue;
   315  
   316  remote_port = of_graph_get_remote_port(endpoint);
   317  if (!remote_port) {
 > 318  of_node_put(port_node);
   319  return -EPIPE;
   320  }
   321  
   322  current_pt = 
drm_of_lvds_get_port_pixels_type(remote_port);
   323  of_node_put(remote_port);
   324  if (pixels_type < 0)
   325  pixels_type = current_pt;
   326  
   327  /*
   328   * Sanity check, ensure that all remote endpoints have 
the same
   329   * pixel type. We may lift this restriction later if we 
need to
   330   * support multiple sinks with different dual-link
   331   * configurations by passing the endpoints explicitly to
   332   * drm_of_lvds_get_dual_link_pixel_order().
   333   */
   334  if (!current_pt || pixels_type != current_pt) {
   335  of_node_put(port_node);
   336

[radeon-alex:amd-staging-drm-next 494/499] drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous prototype for 'amdgpu_virt_update_vf2pf_work_item'

2020-09-25 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   8f0ba3310c12c3943a8cac39a774e83f55288424
commit: 614e7ac92979c4fe35cca713fa282609839e1be1 [494/499] drm/amdgpu: 
Implement new guest side VF2PF message transaction
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 614e7ac92979c4fe35cca713fa282609839e1be1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=alpha 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous 
>> prototype for 'amdgpu_virt_update_vf2pf_work_item' [-Wmissing-prototypes]
 557 | void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
 |  ^~
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c: In function 
'amdgpu_virt_init_data_exchange':
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:586:10: error: 'struct 
amdgpu_device' has no member named 'fw_vram_usage'
 586 |  if (adev->fw_vram_usage.va != NULL) {
 |  ^~
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:591:9: error: 'struct 
amdgpu_device' has no member named 'fw_vram_usage'
 591 |(adev->fw_vram_usage.va + (AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10));
 | ^~
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:594:9: error: 'struct 
amdgpu_device' has no member named 'fw_vram_usage'
 594 |(adev->fw_vram_usage.va + (AMD_SRIOV_MSG_VF2PF_OFFSET_KB << 10));
 | ^~
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:28:
   At top level:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'no_system_mem_limit' 
defined but not used [-Wunused-const-variable=]
 197 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 196 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 195 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:67,
from drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:28:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~

vim +/amdgpu_virt_update_vf2pf_work_item +557 
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

   556  
 > 557  void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   558  {
   559  struct amdgpu_device *adev = container_of(work, struct 
amdgpu_device, virt.vf2pf_work.work);
   560  
   561  amdgpu_virt_read_pf2vf_data(adev);
   562  amdgpu_virt_write_vf2pf_data(adev);
   563  
  

Re: [PATCH 1/6] drm/atomic: Pass the full state to CRTC atomic enable/disable

2020-09-25 Thread kernel test robot
Hi Maxime,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to shawnguo/for-next drm-intel/for-linux-next linus/master 
anholt/for-next v5.9-rc6 next-20200925]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-vc4-hdmi-Support-the-10-12-bit-output/20200925-151211
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# 
https://github.com/0day-ci/linux/commit/1ceb933c2a3dd89451b7563e66097d05e1df8d2e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Maxime-Ripard/drm-vc4-hdmi-Support-the-10-12-bit-output/20200925-151211
git checkout 1ceb933c2a3dd89451b7563e66097d05e1df8d2e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=arm64 

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

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

   drivers/gpu/drm/imx/dcss/dcss-crtc.c: In function 'dcss_crtc_atomic_enable':
>> drivers/gpu/drm/imx/dcss/dcss-crtc.c:82:42: error: implicit declaration of 
>> function 'drm_atomic_get_old_crtc_state' 
>> [-Werror=implicit-function-declaration]
  82 |  struct drm_crtc_state *old_crtc_state = 
drm_atomic_get_old_crtc_state(state,
 |  
^
>> drivers/gpu/drm/imx/dcss/dcss-crtc.c:82:42: warning: initialization of 
>> 'struct drm_crtc_state *' from 'int' makes pointer from integer without a 
>> cast [-Wint-conversion]
   drivers/gpu/drm/imx/dcss/dcss-crtc.c: In function 'dcss_crtc_atomic_disable':
   drivers/gpu/drm/imx/dcss/dcss-crtc.c:118:42: warning: initialization of 
'struct drm_crtc_state *' from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 118 |  struct drm_crtc_state *old_crtc_state = 
drm_atomic_get_old_crtc_state(state,
 |  
^
   cc1: some warnings being treated as errors

vim +/drm_atomic_get_old_crtc_state +82 drivers/gpu/drm/imx/dcss/dcss-crtc.c

78  
79  static void dcss_crtc_atomic_enable(struct drm_crtc *crtc,
80  struct drm_atomic_state *state)
81  {
  > 82  struct drm_crtc_state *old_crtc_state = 
drm_atomic_get_old_crtc_state(state,
83  
  crtc);
84  struct dcss_crtc *dcss_crtc = container_of(crtc, struct 
dcss_crtc,
85 base);
86  struct dcss_dev *dcss = dcss_crtc->base.dev->dev_private;
87  struct drm_display_mode *mode = >state->adjusted_mode;
88  struct drm_display_mode *old_mode = 
_crtc_state->adjusted_mode;
89  struct videomode vm;
90  
91  drm_display_mode_to_videomode(mode, );
92  
93  pm_runtime_get_sync(dcss->dev);
94  
95  vm.pixelclock = mode->crtc_clock * 1000;
96  
97  dcss_ss_subsam_set(dcss->ss);
98  dcss_dtg_css_set(dcss->dtg);
99  
   100  if (!drm_mode_equal(mode, old_mode) || !old_crtc_state->active) 
{
   101  dcss_dtg_sync_set(dcss->dtg, );
   102  dcss_ss_sync_set(dcss->ss, ,
   103   mode->flags & DRM_MODE_FLAG_PHSYNC,
   104   mode->flags & DRM_MODE_FLAG_PVSYNC);
   105  }
   106  
   107  dcss_enable_dtg_and_ss(dcss);
   108  
   109  dcss_ctxld_enable(dcss->ctxld);
   110  
   111  /* Allow CTXLD kick interrupt to be disabled when VBLANK is 
disabled. */
   112  dcss_crtc->disable_ctxld_kick_irq = true;
   113  }
   114  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


[gabbayo:habanalabs-next 4/5] WARNING: modpost: vmlinux.o(.text+0x1db5e10): Section mismatch in reference from the function tfrc_calc_x() to the variable .init.text:.L0

2020-09-24 Thread kernel test robot
tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   bbfc1bab1edc92023b1e144c1dceb341b31dc834
commit: 6ba70b882d6343bc2c86a6d09fbcad2c8170b6a6 [4/5] habanalabs: add notice 
of device not idle
config: riscv-randconfig-r031-20200923 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6ba70b882d6343bc2c86a6d09fbcad2c8170b6a6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=riscv 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> WARNING: modpost: vmlinux.o(.text+0x1db5e10): Section mismatch in reference 
>> from the function tfrc_calc_x() to the variable .init.text:.L0
The function tfrc_calc_x() references
the variable __init .L0 .
This is often because tfrc_calc_x lacks a __init
annotation or the annotation of .L0 is wrong.
--
>> WARNING: modpost: vmlinux.o(.text+0x1db6194): Section mismatch in reference 
>> from the function tfrc_invert_loss_event_rate() to the variable 
>> .init.text:.L218
The function tfrc_invert_loss_event_rate() references
the variable __init .L218.
This is often because tfrc_invert_loss_event_rate lacks a __init
annotation or the annotation of .L218 is wrong.
--
>> WARNING: modpost: vmlinux.o(__ex_table+0x11b0): Section mismatch in 
>> reference from the (unknown reference) (unknown) to the variable 
>> ___ksymtab_gpl+videobuf_queue_to_vaddr:__ksymtab_videobuf_queue_to_vaddr
FATAL: modpost: The relocation at __ex_table+0x11b0 references
section "___ksymtab_gpl+videobuf_queue_to_vaddr" which is not executable, IOW
it is not possible for the kernel to fault
at that address. Something is seriously wrong
and should be fixed.

The below error/warnings are from parent commit:
<< WARNING: modpost: vmlinux.o(.text+0xdb2e7c): Section mismatch in reference 
from the function qla2xxx_qpair_sp_compl() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(.text+0x1db6134): Section mismatch in reference 
from the function tfrc_invert_loss_event_rate() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(.text+0x1dcb394): Section mismatch in reference 
from the function sctp_assoc_sync_pmtu() to the variable .meminit.text:.L0
<< WARNING: modpost: vmlinux.o(__ex_table+0x11b0): Section mismatch in 
reference from the (unknown reference) (unknown) to the variable 
___ksymtab_gpl+videobuf_iolock:__ksymtab_videobuf_iolock
<< WARNING: modpost: vmlinux.o(.text+0xdb2e7c): Section mismatch in reference 
from the function qla2xxx_qpair_sp_compl() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(.text+0x1db6134): Section mismatch in reference 
from the function tfrc_invert_loss_event_rate() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(.text+0x1dcb394): Section mismatch in reference 
from the function sctp_assoc_sync_pmtu() to the variable .meminit.text:.L0
<< WARNING: modpost: vmlinux.o(__ex_table+0x11b0): Section mismatch in 
reference from the (unknown reference) (unknown) to the variable 
___ksymtab_gpl+videobuf_iolock:__ksymtab_videobuf_iolock
<< WARNING: modpost: vmlinux.o(.text+0xdb2e7c): Section mismatch in reference 
from the function qla2xxx_qpair_sp_compl() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(.text+0x1db6134): Section mismatch in reference 
from the function tfrc_invert_loss_event_rate() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(.text+0x1dcb394): Section mismatch in reference 
from the function sctp_assoc_sync_pmtu() to the variable .meminit.text:.L0
<< WARNING: modpost: vmlinux.o(__ex_table+0x11b0): Section mismatch in 
reference from the (unknown reference) (unknown) to the variable 
___ksymtab_gpl+videobuf_iolock:__ksymtab_videobuf_iolock

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 471/482] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:6: warning: no previous prototype for 'amdgpu_ras_error_status_query'

2020-09-22 Thread kernel test robot
Hi Stanley.Yang,

FYI, the error/warning still remains.

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   6fe4a372821db85834f5522d94d25139ff17e414
commit: 4484ea5dfcbb092d856aee77aee01b36ff76d389 [471/482] drm/amdgpu: update 
athub interrupt harvesting handle
config: ia64-randconfig-r033-20200923 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4484ea5dfcbb092d856aee77aee01b36ff76d389
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:906:5: warning: no previous 
prototype for 'amdgpu_ras_error_cure' [-Wmissing-prototypes]
 906 | int amdgpu_ras_error_cure(struct amdgpu_device *adev,
 | ^
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:6: warning: no previous 
>> prototype for 'amdgpu_ras_error_status_query' [-Wmissing-prototypes]
1502 | void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
 |  ^
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'no_system_mem_limit' 
defined but not used [-Wunused-const-variable=]
 197 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 196 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 195 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:67,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 4484ea5dfcbb092d856aee77aee01b36ff76d389
vim +/amdgpu_ras_error_status_query +1502 
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

  1500  
  1501  /* Parse RdRspStatus and WrRspStatus */
> 1502  void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
  1503  struct ras_query_if *info)
  1504  {
  1505  /*
  1506   * Only two block need to query read/write
  1507   * RspStatus at current state
  1508   */
  1509  switch (info->head.block) {
  1510  case AMDGPU_RAS_BLOCK__GFX:
  1511  if (adev->gfx.funcs->query_ras_error_status)
  1512  adev->gfx.funcs->query_ras_error_status(adev);
  1513  break;
  1514  case AMDGPU_RAS_BLOCK__MMHUB:
  1515  if (adev->mmhub.funcs->query_ras_error_status)
  1516  adev->mmhu

[radeon-alex:amd-staging-drm-next 443/482] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:39:6: sparse: sparse: symbol 'kfd_initialized' was not declared. Should it be

2020-09-22 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   6fe4a372821db85834f5522d94d25139ff17e414
commit: 0b54e1e30e9f201a63922344917e11ab60da0d1b [443/482] drm/amdgpu: Fix 
handling of KFD initialization failures
config: x86_64-randconfig-s021-20200920 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
git checkout 0b54e1e30e9f201a63922344917e11ab60da0d1b
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:39:6: sparse: sparse: symbol 
>> 'kfd_initialized' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


[RFC PATCH radeon-alex] drm/amdgpu: kfd_initialized can be static

2020-09-22 Thread kernel test robot


Fixes: 0b54e1e30e9f ("drm/amdgpu: Fix handling of KFD initialization failures")
Signed-off-by: kernel test robot 
---
 amdgpu_amdkfd.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
index 7f14461f7f402..01780bb8727f6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
@@ -36,7 +36,7 @@
  */
 uint64_t amdgpu_amdkfd_total_mem_size;
 
-bool kfd_initialized;
+static bool kfd_initialized;
 
 int amdgpu_amdkfd_init(void)
 {
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[radeon-alex:amd-staging-drm-next 471/482] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:6: warning: no previous prototype for function 'amdgpu_ras_error_status_query'

2020-09-22 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   6fe4a372821db85834f5522d94d25139ff17e414
commit: 4484ea5dfcbb092d856aee77aee01b36ff76d389 [471/482] drm/amdgpu: update 
athub interrupt harvesting handle
config: x86_64-randconfig-a014-20200922 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
6a6b06f5262bb96523eceef4a42fe8e60ae2a630)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 4484ea5dfcbb092d856aee77aee01b36ff76d389
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:906:5: warning: no previous 
prototype for function 'amdgpu_ras_error_cure' [-Wmissing-prototypes]
   int amdgpu_ras_error_cure(struct amdgpu_device *adev,
   ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:906:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int amdgpu_ras_error_cure(struct amdgpu_device *adev,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:6: warning: no previous 
>> prototype for function 'amdgpu_ras_error_status_query' [-Wmissing-prototypes]
   void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
^
   drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:1: note: declare 'static' if 
the function is not intended to be used outside of this translation unit
   void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
   ^
   static 
   2 warnings generated.

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 4484ea5dfcbb092d856aee77aee01b36ff76d389
vim +/amdgpu_ras_error_status_query +1502 
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

  1500  
  1501  /* Parse RdRspStatus and WrRspStatus */
> 1502  void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
  1503  struct ras_query_if *info)
  1504  {
  1505  /*
  1506   * Only two block need to query read/write
  1507   * RspStatus at current state
  1508   */
  1509  switch (info->head.block) {
  1510  case AMDGPU_RAS_BLOCK__GFX:
  1511  if (adev->gfx.funcs->query_ras_error_status)
  1512  adev->gfx.funcs->query_ras_error_status(adev);
  1513  break;
  1514  case AMDGPU_RAS_BLOCK__MMHUB:
  1515  if (adev->mmhub.funcs->query_ras_error_status)
  1516  adev->mmhub.funcs->query_ras_error_status(adev);
  1517  break;
  1518  default:
  1519  break;
  1520  }
  1521  }
  1522  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 471/482] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:6: warning: no previous prototype for 'amdgpu_ras_error_status_query'

2020-09-22 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   6fe4a372821db85834f5522d94d25139ff17e414
commit: 4484ea5dfcbb092d856aee77aee01b36ff76d389 [471/482] drm/amdgpu: update 
athub interrupt harvesting handle
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4484ea5dfcbb092d856aee77aee01b36ff76d389
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=alpha 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:906:5: warning: no previous 
prototype for 'amdgpu_ras_error_cure' [-Wmissing-prototypes]
 906 | int amdgpu_ras_error_cure(struct amdgpu_device *adev,
 | ^
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1502:6: warning: no previous 
>> prototype for 'amdgpu_ras_error_status_query' [-Wmissing-prototypes]
1502 | void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
 |  ^
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'no_system_mem_limit' 
defined but not used [-Wunused-const-variable=]
 197 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 196 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 195 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:67,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 4484ea5dfcbb092d856aee77aee01b36ff76d389
vim +/amdgpu_ras_error_status_query +1502 
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

  1500  
  1501  /* Parse RdRspStatus and WrRspStatus */
> 1502  void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
  1503  struct ras_query_if *info)
  1504  {
  1505  /*
  1506   * Only two block need to query read/write
  1507   * RspStatus at current state
  1508   */
  1509  switch (info->head.block) {
  1510  case AMDGPU_RAS_BLOCK__GFX:
  1511  if (adev->gfx.funcs->query_ras_error_status)
  1512  adev->gfx.funcs->query_ras_error_status(adev);
  1513  break;
  1514  case AMDGPU_RAS_BLOCK__MMHUB:
  1515  if (adev->mmhub.funcs->query_ras_error_status)
  1516  adev->mmhub.funcs->query_ras_error_status(adev);
  1517

[radeon-alex:amd-staging-drm-next 357/442] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3043:6: warning: no previous prototype for function 'dc_is_plane_eligible_for_idle_optimizaitons'

2020-09-19 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   4589b6459d145ea133422b91be2f55a40fe74463
commit: cf3da8ea14f50741d6ddd3bee410459703036c4c [357/442] drm/amd/display: 
Update idle optimization handling
config: x86_64-randconfig-a002-20200919 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
ed79827aea444e6995fb3d36abc2bfd36331773c)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout cf3da8ea14f50741d6ddd3bee410459703036c4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:777:6: warning: no 
previous prototype for function 'apply_ctx_interdependent_lock' 
[-Wmissing-prototypes]
   void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context, 
struct dc_stream_state *stream, bool lock)
^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:777:1: note: declare 
'static' if the function is not intended to be used outside of this translation 
unit
   void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context, 
struct dc_stream_state *stream, bool lock)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3043:6: warning: no 
>> previous prototype for function 
>> 'dc_is_plane_eligible_for_idle_optimizaitons' [-Wmissing-prototypes]
   bool dc_is_plane_eligible_for_idle_optimizaitons(struct dc *dc,
^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3043:1: note: declare 
'static' if the function is not intended to be used outside of this translation 
unit
   bool dc_is_plane_eligible_for_idle_optimizaitons(struct dc *dc,
   ^
   static 
   2 warnings generated.

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout cf3da8ea14f50741d6ddd3bee410459703036c4c
vim +/dc_is_plane_eligible_for_idle_optimizaitons +3043 
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c

  3042  
> 3043  bool dc_is_plane_eligible_for_idle_optimizaitons(struct dc *dc,

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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] drm/dp: add a number of DP 2.0 DPCD definitions

2020-09-17 Thread kernel test robot
Hi Jani,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on tegra-drm/drm/tegra/for-next drm-tip/drm-tip 
linus/master drm-exynos/exynos-drm-next v5.9-rc5 next-20200917]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jani-Nikula/drm-dp-add-subheadings-to-DPCD-address-definitions/20200917-185206
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: nds32-randconfig-p001-20200917 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=nds32 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/drm_crtc_helper_internal.h:31,
from drivers/gpu/drm/drm_crtc_helper.c:51:
>> include/drm/drm_dp_helper.h:640: warning: 
>> "DP_ADJUST_TX_FFE_PRESET_LANE0_MASK" redefined
 640 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_MASK  (0xf << 4)
 | 
   include/drm/drm_dp_helper.h:638: note: this is the location of the previous 
definition
 638 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_MASK  (0xf << 0)
 | 
>> include/drm/drm_dp_helper.h:641: warning: 
>> "DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT" redefined
 641 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT 4
 | 
   include/drm/drm_dp_helper.h:639: note: this is the location of the previous 
definition
 639 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT 0
 | 
--
   In file included from include/drm/drm_dp_mst_helper.h:26,
from drivers/gpu/drm/drm_dp_mst_topology.c:43:
>> include/drm/drm_dp_helper.h:640: warning: 
>> "DP_ADJUST_TX_FFE_PRESET_LANE0_MASK" redefined
 640 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_MASK  (0xf << 4)
 | 
   include/drm/drm_dp_helper.h:638: note: this is the location of the previous 
definition
 638 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_MASK  (0xf << 0)
 | 
>> include/drm/drm_dp_helper.h:641: warning: 
>> "DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT" redefined
 641 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT 4
 | 
   include/drm/drm_dp_helper.h:639: note: this is the location of the previous 
definition
 639 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT 0
 | 
   drivers/gpu/drm/drm_dp_mst_topology.c: In function 
'drm_dp_send_query_stream_enc_status':
   drivers/gpu/drm/drm_dp_mst_topology.c:3261:6: warning: variable 'len' set 
but not used [-Wunused-but-set-variable]
3261 |  int len, ret;
 |  ^~~
--
   In file included from drivers/gpu/drm/bridge/analogix/analogix_dp_core.h:13,
from drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:17:
>> include/drm/drm_dp_helper.h:640: warning: 
>> "DP_ADJUST_TX_FFE_PRESET_LANE0_MASK" redefined
 640 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_MASK  (0xf << 4)
 | 
   include/drm/drm_dp_helper.h:638: note: this is the location of the previous 
definition
 638 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_MASK  (0xf << 0)
 | 
>> include/drm/drm_dp_helper.h:641: warning: 
>> "DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT" redefined
 641 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT 4
 | 
   include/drm/drm_dp_helper.h:639: note: this is the location of the previous 
definition
 639 | # define DP_ADJUST_TX_FFE_PRESET_LANE0_SHIFT 0
 | 
   drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:527:5: warning: no 
previous prototype for 'analogix_dp_start_aux_transaction' 
[-Wmissing-prototypes]
 527 | int analogix_dp_start_aux_transaction(struct analogix_dp_device *dp)
 | ^
   drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:571:5: warning: no 
previous prototype for 'analogix_dp_write_byte_to_dpcd' [-Wmissing-prototypes]
 571 | int analogix_dp_write_byte_to_dpcd(struct analogix_dp_device *dp,
 | ^~

# 
https://github.com/0day-ci/linux/commit/ee700fcadff2b9f1f941cd4af77242e51a139649
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jani-Nikula/drm-dp-add-subheadings-to-DPCD-address-definitions/20200917-185206
git checkout ee700fcadff2b9f1f941cd4af77242e51a139649
vim +/DP_ADJUST_TX_FFE

Re: [PATCH 2/2] mm: introduce vma_set_file function

2020-09-15 Thread kernel test robot
Hi "Christian,

I love your patch! Yet something to improve:

[auto build test ERROR on hnaz-linux-mm/master]
[also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip linus/master 
v5.9-rc5 next-20200915]
[cannot apply to tegra-drm/drm/tegra/for-next drm-exynos/exynos-drm-next 
drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Christian-K-nig/drm-shmem-helpers-revert-Redirect-mmap-for-imported-dma-buf/20200914-222921
base:   https://github.com/hnaz/linux-mm master
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   sh4-linux-ld: drivers/dma-buf/dma-buf.o: in function `dma_buf_mmap':
>> (.text+0x8dc): undefined reference to `vma_set_file'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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] mm: introduce vma_set_file function

2020-09-15 Thread kernel test robot
Hi "Christian,

I love your patch! Yet something to improve:

[auto build test ERROR on hnaz-linux-mm/master]
[also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip linus/master 
v5.9-rc5 next-20200914]
[cannot apply to tegra-drm/drm/tegra/for-next drm-exynos/exynos-drm-next 
drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Christian-K-nig/drm-shmem-helpers-revert-Redirect-mmap-for-imported-dma-buf/20200914-222921
base:   https://github.com/hnaz/linux-mm master
config: h8300-randconfig-r023-20200914 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=h8300 

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

All errors (new ones prefixed by >>):

   h8300-linux-ld: drivers/dma-buf/dma-buf.o: in function `dma_buf_mmap':
>> drivers/dma-buf/dma-buf.c:1166: undefined reference to `vma_set_file'
>> h8300-linux-ld: drivers/dma-buf/dma-buf.c:1172: undefined reference to 
>> `vma_set_file'
   h8300-linux-ld: drivers/leds/leds-lp55xx-common.o: in function 
`devm_led_classdev_register':
   include/linux/leds.h:200: undefined reference to 
`devm_led_classdev_register_ext'

# 
https://github.com/0day-ci/linux/commit/c558278651bbea7cb67487890a983608764cc7f4
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Christian-K-nig/drm-shmem-helpers-revert-Redirect-mmap-for-imported-dma-buf/20200914-222921
git checkout c558278651bbea7cb67487890a983608764cc7f4
vim +1166 drivers/dma-buf/dma-buf.c

  1127  
  1128  
  1129  /**
  1130   * dma_buf_mmap - Setup up a userspace mmap with the given vma
  1131   * @dmabuf: [in]buffer that should back the vma
  1132   * @vma:[in]vma for the mmap
  1133   * @pgoff:  [in]offset in pages where this mmap should start 
within the
  1134   *  dma-buf buffer.
  1135   *
  1136   * This function adjusts the passed in vma so that it points at the 
file of the
  1137   * dma_buf operation. It also adjusts the starting pgoff and does bounds
  1138   * checking on the size of the vma. Then it calls the exporters mmap 
function to
  1139   * set up the mapping.
  1140   *
  1141   * Can return negative error values, returns 0 on success.
  1142   */
  1143  int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma,
  1144   unsigned long pgoff)
  1145  {
  1146  struct file *oldfile;
  1147  int ret;
  1148  
  1149  if (WARN_ON(!dmabuf || !vma))
  1150  return -EINVAL;
  1151  
  1152  /* check if buffer supports mmap */
  1153  if (!dmabuf->ops->mmap)
  1154  return -EINVAL;
  1155  
  1156  /* check for offset overflow */
  1157  if (pgoff + vma_pages(vma) < pgoff)
  1158  return -EOVERFLOW;
  1159  
  1160  /* check for overflowing the buffer's size */
  1161  if (pgoff + vma_pages(vma) >
  1162  dmabuf->size >> PAGE_SHIFT)
  1163  return -EINVAL;
  1164  
  1165  /* readjust the vma */
> 1166  oldfile = vma_set_file(vma, dmabuf->file);
  1167  vma->vm_pgoff = pgoff;
  1168  
  1169  ret = dmabuf->ops->mmap(dmabuf, vma);
  1170  /* restore old parameters on failure */
  1171  if (ret)
> 1172  vma_set_file(vma, oldfile);
  1173  
  1174  return ret;
  1175  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v10 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-09-14 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.9-rc5 next-20200914]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200914-205242
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fw_activate':
>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:749:10: warning: 
>> conversion from 'long unsigned int' to 'unsigned int' changes value from 
>> '18446744073709551613' to '4294967293' [-Woverflow]
 749 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fill_host_caps':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1359:30: error: 'struct 
phy_attrs' has no member named 'max_link_rate'
1359 |  link_rate = mhdp->phy->attrs.max_link_rate;
 |  ^
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_attach':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1690:10: warning: 
conversion from 'long unsigned int' to 'unsigned int' changes value from 
'18446744073709551613' to '4294967293' [-Woverflow]
1690 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_bridge_hpd_enable':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:2123:10: warning: 
conversion from 'long unsigned int' to 'unsigned int' changes value from 
'18446744073709551613' to '4294967293' [-Woverflow]
2123 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,

# 
https://github.com/0day-ci/linux/commit/747d94aa1dc15ccc7712116aa9161477b0ff3e85
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200914-205242
git checkout 747d94aa1dc15ccc7712116aa9161477b0ff3e85
vim +749 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c

   692  
   693  static int cdns_mhdp_fw_activate(const struct firmware *fw,
   694   struct cdns_mhdp_device *mhdp)
   695  {
   696  unsigned int reg;
   697  int ret;
   698  
   699  /* Release uCPU reset and stall it. */
   700  writel(CDNS_CPU_STALL, mhdp->regs + CDNS_APB_CTRL);
   701  
   702  memcpy_toio(mhdp->regs + CDNS_MHDP_IMEM, fw->data, fw->size);
   703  
   704  /* Leave debug mode, release stall */
   705  writel(0, mhdp->regs + CDNS_APB_CTRL);
   706  
   707  /*
   708   * Wait for the KEEP_ALIVE "message" on the first 8 bits.
   709   * Updated each sched "tick" (~2ms)
   710   */
   711  ret = readl_poll_timeout(mhdp->regs + CDNS_KEEP_ALIVE, reg,
   712   reg & CDNS_KEEP_ALIVE_MASK, 500,
   713   CDNS_KEEP_ALIVE_TIMEOUT);
   714  if (ret) {
   715  dev_err(mhdp->dev,
   716  "device didn't give any life sign: reg %d\n", 
reg);
   717  return ret;
   718  }
   719  
   720  ret = cdns_mhdp_check_fw_version(mhdp);
   721  if (ret)
   722  return ret;
   723  
   724  /* Init events to 0 as it's not cleared by FW at boot but on 
read */
   725  readl(mhdp->regs + CDNS_SW_EVENT0);
   726  readl(mhdp->regs + CDNS_SW_EVENT1);
   727  readl(mhdp->regs + CDNS_SW_EVENT2);
   728  readl(mhdp->regs + CDNS_SW_EVENT3);
   729  
   730  /* Activate uCPU */
   731  ret = cdns_mhdp_set_firmware_active(mhdp, true);
   732  if (ret)
   733  return ret;
   734  
   735  spin_lock(>start_lock);
   736  
   737  mhdp->hw_state = MHDP_HW_READY;
   738  
   739  /*
   740   * Here we must keep the lock while enabling the interrupts
   741   * since it would otherwise be possible that interrupt enable
   742   * code is executed after the bridge is detached. The similar
   743   * situation is not possible in

Re: [PATCH v10 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-09-14 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.9-rc5 next-20200914]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200914-205242
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=s390 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fw_activate':
>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:749:10: warning: 
>> conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes 
>> value from '18446744073709551613' to '4294967293' [-Woverflow]
 749 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fill_host_caps':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1359:30: error: 'struct 
phy_attrs' has no member named 'max_link_rate'
1359 |  link_rate = mhdp->phy->attrs.max_link_rate;
 |  ^
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_attach':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1690:10: warning: 
conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value 
from '18446744073709551613' to '4294967293' [-Woverflow]
1690 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_bridge_hpd_enable':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:2123:10: warning: 
conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value 
from '18446744073709551613' to '4294967293' [-Woverflow]
2123 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,

# 
https://github.com/0day-ci/linux/commit/747d94aa1dc15ccc7712116aa9161477b0ff3e85
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200914-205242
git checkout 747d94aa1dc15ccc7712116aa9161477b0ff3e85
vim +749 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c

   692  
   693  static int cdns_mhdp_fw_activate(const struct firmware *fw,
   694   struct cdns_mhdp_device *mhdp)
   695  {
   696  unsigned int reg;
   697  int ret;
   698  
   699  /* Release uCPU reset and stall it. */
   700  writel(CDNS_CPU_STALL, mhdp->regs + CDNS_APB_CTRL);
   701  
   702  memcpy_toio(mhdp->regs + CDNS_MHDP_IMEM, fw->data, fw->size);
   703  
   704  /* Leave debug mode, release stall */
   705  writel(0, mhdp->regs + CDNS_APB_CTRL);
   706  
   707  /*
   708   * Wait for the KEEP_ALIVE "message" on the first 8 bits.
   709   * Updated each sched "tick" (~2ms)
   710   */
   711  ret = readl_poll_timeout(mhdp->regs + CDNS_KEEP_ALIVE, reg,
   712   reg & CDNS_KEEP_ALIVE_MASK, 500,
   713   CDNS_KEEP_ALIVE_TIMEOUT);
   714  if (ret) {
   715  dev_err(mhdp->dev,
   716  "device didn't give any life sign: reg %d\n", 
reg);
   717  return ret;
   718  }
   719  
   720  ret = cdns_mhdp_check_fw_version(mhdp);
   721  if (ret)
   722  return ret;
   723  
   724  /* Init events to 0 as it's not cleared by FW at boot but on 
read */
   725  readl(mhdp->regs + CDNS_SW_EVENT0);
   726  readl(mhdp->regs + CDNS_SW_EVENT1);
   727  readl(mhdp->regs + CDNS_SW_EVENT2);
   728  readl(mhdp->regs + CDNS_SW_EVENT3);
   729  
   730  /* Activate uCPU */
   731  ret = cdns_mhdp_set_firmware_active(mhdp, true);
   732  if (ret)
   733  return ret;
   734  
   735  spin_lock(>start_lock);
   736  
   737  mhdp->hw_state = MHDP_HW_READY;
   738  
   739  /*
   740   * Here we must keep the lock while enabl

Re: [PATCH 4/5] drm/panfrost: add amlogic reset quirk callback

2020-09-08 Thread kernel test robot
Hi Neil,

I love your patch! Perhaps something to improve:

[auto build test WARNING on iommu/next]
[also build test WARNING on soc/for-next linus/master v5.9-rc4 next-20200908]
[cannot apply to xlnx/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Neil-Armstrong/drm-panfrost-add-Amlogic-integration-quirks/20200908-232205
base:   https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next
config: arm-randconfig-r014-20200908 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
df63eedef64d715ce1f31843f7de9c11fe1e597f)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/panfrost/panfrost_gpu.c:82:6: warning: no previous prototype 
>> for function 'panfrost_gpu_amlogic_quirks' [-Wmissing-prototypes]
   void panfrost_gpu_amlogic_quirks(struct panfrost_device *pfdev)
^
   drivers/gpu/drm/panfrost/panfrost_gpu.c:82:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   void panfrost_gpu_amlogic_quirks(struct panfrost_device *pfdev)
   ^
   static 
   1 warning generated.

# 
https://github.com/0day-ci/linux/commit/10c9c1e2d5b129f4936ea0b84cb489da43364d8c
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Neil-Armstrong/drm-panfrost-add-Amlogic-integration-quirks/20200908-232205
git checkout 10c9c1e2d5b129f4936ea0b84cb489da43364d8c
vim +/panfrost_gpu_amlogic_quirks +82 drivers/gpu/drm/panfrost/panfrost_gpu.c

81  
  > 82  void panfrost_gpu_amlogic_quirks(struct panfrost_device *pfdev)
83  {
84  /*
85   * The Amlogic integrated Mali-T820, Mali-G31 & Mali-G52 needs
86   * these undocumented bits to be set in order to operate
87   * correctly.
88   * These GPU_PWR registers contains:
89   * "device-specific power control value"
90   */
91  gpu_write(pfdev, GPU_PWR_KEY, 0x2968A819);
92  gpu_write(pfdev, GPU_PWR_OVERRIDE1, 0xfff | (0x20 << 16));
93  }
94  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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.10 606/607] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initializer overrides prior initialization of this subobject

2020-09-08 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.10
head:   11bc98bd71fe2e0cb572988519e51bca9d58a18a
commit: 02f23f5f7c4bad0bea5ed1685d78280df0295478 [606/607] drm/amdgpu/gmc9: 
print client id string for mmhub
config: x86_64-randconfig-r031-20200908 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
df63eedef64d715ce1f31843f7de9c11fe1e597f)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 02f23f5f7c4bad0bea5ed1685d78280df0295478
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initializer overrides 
>> prior initialization of this subobject [-Winitializer-overrides]
   [32+15][1] = "SDMA1",
^~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:271:15: note: previous initialization 
is here
   [32+15][1] = "SDMA1",
^~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:383:23: warning: unused variable 
'ecc_umc_mcumc_status_addrs' [-Wunused-const-variable]
   static const uint32_t ecc_umc_mcumc_status_addrs[] = {
 ^
   2 warnings generated.

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex drm-next-5.10
git checkout 02f23f5f7c4bad0bea5ed1685d78280df0295478
vim +272 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

   242  
   243  static const char *mmhub_client_ids_arcturus[][2] = {
   244  [2][0] = "MP1",
   245  [3][0] = "MP0",
   246  [10][0] = "UTCL2",
   247  [13][0] = "OSS",
   248  [14][0] = "HDP",
   249  [15][0] = "SDMA0",
   250  [32+15][0] = "SDMA1",
   251  [64+15][0] = "SDMA2",
   252  [96+15][0] = "SDMA3",
   253  [128+15][0] = "SDMA4",
   254  [160+11][0] = "JPEG",
   255  [160+12][0] = "VCN",
   256  [160+13][0] = "VCNU",
   257  [160+15][0] = "SDMA5",
   258  [192+10][0] = "UTCL2",
   259  [192+11][0] = "JPEG1",
   260  [192+12][0] = "VCN1",
   261  [192+13][0] = "VCN1U",
   262  [192+15][0] = "SDMA6",
   263  [224+15][0] = "SDMA7",
   264  [0][1] = "DBGU1",
   265  [1][1] = "XDP",
   266  [2][1] = "MP1",
   267  [3][1] = "MP0",
   268  [13][1] = "OSS",
   269  [14][1] = "HDP",
   270  [15][1] = "SDMA0",
   271  [32+15][1] = "SDMA1",
 > 272  [32+15][1] = "SDMA1",
   273  [64+15][1] = "SDMA2",
   274  [96+15][1] = "SDMA3",
   275  [128+15][1] = "SDMA4",
   276  [160+11][1] = "JPEG",
   277  [160+12][1] = "VCN",
   278  [160+13][1] = "VCNU",
   279  [160+15][1] = "SDMA5",
   280  [192+11][1] = "JPEG1",
   281  [192+12][1] = "VCN1",
   282  [192+13][1] = "VCN1U",
   283  [192+15][1] = "SDMA6",
   284  [224+15][1] = "SDMA7",
   285  };
   286  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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.10 606/607] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten

2020-09-08 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.10
head:   11bc98bd71fe2e0cb572988519e51bca9d58a18a
commit: 02f23f5f7c4bad0bea5ed1685d78280df0295478 [606/607] drm/amdgpu/gmc9: 
print client id string for mmhub
config: ia64-randconfig-r014-20200908 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 02f23f5f7c4bad0bea5ed1685d78280df0295478
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=ia64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field 
>> overwritten [-Woverride-init]
 272 |  [32+15][1] = "SDMA1",
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: note: (near initialization for 
'mmhub_client_ids_arcturus[47][1]')
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:383:23: warning: 
'ecc_umc_mcumc_status_addrs' defined but not used [-Wunused-const-variable=]
 383 | static const uint32_t ecc_umc_mcumc_status_addrs[] = {
 |   ^~
   In file included from drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:29:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' 
defined but not used [-Wunused-const-variable=]
 195 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 194 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:29:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex drm-next-5.10
git checkout 02f23f5f7c4bad0bea5ed1685d78280df0295478
vim +272 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

   242  
   243  static const char *mmhub_client_ids_arcturus[][2] = {
   244  [2][0] = "MP1",
   245  [3][0] = "MP0",
   246  [10][0] = "UTCL2",
   247  [13][0] = "OSS",
   248  [14][0] = "HDP",
   249  [15][0] = "SDMA0",
   250  [32+15][0] = "SDMA1",
   251  [64+15][0] = "SDMA2",
   252  [96+15][0] = "SDMA3",
   253  [128+15][0] = "SDMA4",
   254  [160+11][0] = "JPEG",
   255  [160+12][0] = "VCN",
   256  [160+13][0] = "VCNU",
   257  [160+15][0] = "SDMA5",
   258  [192+10][0] = "UTCL2",
   259  [192+11][0] = "JPEG1",
   260  [192+1

Re: [PATCH 2/2] drm/msm/dpu: clean up some impossibilities

2020-09-07 Thread kernel test robot
Hi Rob,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on linus/master v5.9-rc4 next-20200903]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next 
drm/drm-next drm-exynos/exynos-drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Rob-Clark/drm-msm-dpu-move-vblank-events-to-complete_commit/20200908-020331
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c: In function 
'_dpu_crtc_setup_cp_blocks':
   drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:455:23: warning: variable 'lm' set 
but not used [-Wunused-but-set-variable]
 455 |  struct dpu_hw_mixer *lm;
 |   ^~
   drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c: In function 
'dpu_crtc_atomic_begin':
>> drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:497:21: warning: variable 'dev' set 
>> but not used [-Wunused-but-set-variable]
 497 |  struct drm_device *dev;
 | ^~~
   drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:494:19: warning: variable 
'dpu_crtc' set but not used [-Wunused-but-set-variable]
 494 |  struct dpu_crtc *dpu_crtc;
 |   ^~~~

# 
https://github.com/0day-ci/linux/commit/b151bdc57ce4c96820a99dd0c5cec106f227444c
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Rob-Clark/drm-msm-dpu-move-vblank-events-to-complete_commit/20200908-020331
git checkout b151bdc57ce4c96820a99dd0c5cec106f227444c
vim +/dev +497 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

4259ff7ae509ed Kalyan Thota  2020-03-24  490  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  491  static void 
dpu_crtc_atomic_begin(struct drm_crtc *crtc,
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  492struct 
drm_crtc_state *old_state)
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  493  {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  494struct dpu_crtc 
*dpu_crtc;
9222cdd27e823c Jeykumar Sankaran 2018-09-05  495struct dpu_crtc_state 
*cstate;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  496struct drm_encoder 
*encoder;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 @497struct drm_device *dev;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  498  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  499if 
(!crtc->state->enable) {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  500
DPU_DEBUG("crtc%d -> enable %d, skip atomic_begin\n",
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  501
crtc->base.id, crtc->state->enable);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  502return;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  503}
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  504  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  505DPU_DEBUG("crtc%d\n", 
crtc->base.id);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  506  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  507dpu_crtc = 
to_dpu_crtc(crtc);
9222cdd27e823c Jeykumar Sankaran 2018-09-05  508cstate = 
to_dpu_crtc_state(crtc->state);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  509dev = crtc->dev;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  510  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  511
_dpu_crtc_setup_lm_bounds(crtc, crtc->state);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  512  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  513/* encoder will trigger 
pending mask now */
4b8c6279593aa6 Sean Paul 2018-11-16  514
drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask)
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  515
dpu_encoder_trigger_kickoff_pending(encoder);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  516  
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  517/*
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  518 * If no mixers have 
been allocated in dpu_crtc_atomic_check(),
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  519 * it means we are 
trying to flush a CRTC whose state is disabled:
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27  520 * nothing else needs 
to be don

[radeon-alex:amd-staging-drm-next 4/5] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten

2020-09-03 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   d57d5c9c09cfb661eb0e8a9c41020aa71771dd7d
commit: e2ef6329fc53a026198a3788db088f85820690b6 [4/5] drm/amdgpu/gmc9: print 
client id string for mmhub
config: i386-randconfig-a012-20200902 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout e2ef6329fc53a026198a3788db088f85820690b6
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field 
>> overwritten [-Woverride-init]
 272 |  [32+15][1] = "SDMA1",
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: note: (near initialization for 
'mmhub_client_ids_arcturus[47][1]')
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:383:23: warning: 
'ecc_umc_mcumc_status_addrs' defined but not used [-Wunused-const-variable=]
 383 | static const uint32_t ecc_umc_mcumc_status_addrs[] = {
 |   ^~
   In file included from drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:29:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' 
defined but not used [-Wunused-const-variable=]
 195 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 194 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:29:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout e2ef6329fc53a026198a3788db088f85820690b6
vim +272 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

   242  
   243  static const char *mmhub_client_ids_arcturus[][2] = {
   244  [2][0] = "MP1",
   245  [3][0] = "MP0",
   246  [10][0] = "UTCL2",
   247  [13][0] = "OSS",
   248  [14][0] = "HDP",
   249  [15][0] = "SDMA0",
   250  [32+15][0] = "SDMA1",
   251  [64+15][0] = "SDMA2",
   252  [96+15][0] = "SDMA3",
   253  [128+15][0] = "SDMA4",
   254  [160+11][0] = "JPEG",
   255  [160+12][0] = "VCN",
   256  [160+13][0] = "VCNU",
   257  [160+15][0] = "SDMA5",
   258  [192+10][0] = "UTCL2",
   259  [192+11][0] = "JPEG1",
   260  [192+12][0] = "VCN1",
   261  [192+13][0] = "VCN1U",
   262  [192+15][0] = "SDMA6",
   263  [224+15][0] = "SDMA7",
   264   

Re: [PATCH 3/3] drm/ttm: remove io_reserve_lru handling v2

2020-09-01 Thread kernel test robot
Hi "Christian,

I love your patch! Perhaps something to improve:

[auto build test WARNING on next-20200828]
[cannot apply to linus/master v5.9-rc3 v5.9-rc2 v5.9-rc1 v5.9-rc3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Christian-K-nig/drm-ttm-make-sure-that-we-always-zero-init-mem-bus-v2/20200901-230736
base:b36c969764ab12faebb74711c942fa3e6eaf1e96
config: x86_64-randconfig-a006-20200901 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/ttm/ttm_bo_util.c: In function 'ttm_resource_iounmap':
>> drivers/gpu/drm/ttm/ttm_bo_util.c:157:31: warning: variable 'man' set but 
>> not used [-Wunused-but-set-variable]
 157 |  struct ttm_resource_manager *man;
 |   ^~~
   In file included from include/linux/energy_model.h:10,
from include/linux/device.h:16,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:49,
from include/drm/ttm/ttm_bo_driver.h:33,
from drivers/gpu/drm/ttm/ttm_bo_util.c:32:
   At top level:
   include/linux/sched/topology.h:40:3: warning: 'sd_flag_debug' defined but 
not used [-Wunused-const-variable=]
  40 | } sd_flag_debug[] = {
 |   ^
   In file included from include/linux/energy_model.h:10,
from include/linux/device.h:16,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:49,
from include/drm/ttm/ttm_bo_driver.h:33,
from drivers/gpu/drm/ttm/ttm_bo_util.c:32:
   include/linux/sched/topology.h:30:27: warning: 'SD_DEGENERATE_GROUPS_MASK' 
defined but not used [-Wunused-const-variable=]
  30 | static const unsigned int SD_DEGENERATE_GROUPS_MASK =
 |   ^

# 
https://github.com/0day-ci/linux/commit/640f5da8a063c527c64720caa2c7b8b29aee5bb3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Christian-K-nig/drm-ttm-make-sure-that-we-always-zero-init-mem-bus-v2/20200901-230736
git checkout 640f5da8a063c527c64720caa2c7b8b29aee5bb3
vim +/man +157 drivers/gpu/drm/ttm/ttm_bo_util.c

ba4e7d973dd09b Thomas Hellstrom 2009-06-10  152  
2966141ad2dda2 Dave Airlie  2020-08-04  153  static void 
ttm_resource_iounmap(struct ttm_bo_device *bdev,
2966141ad2dda2 Dave Airlie  2020-08-04  154 
struct ttm_resource *mem,
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  155 
void *virtual)
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  156  {
9de59bc201496f Dave Airlie  2020-08-04 @157 struct 
ttm_resource_manager *man;
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  158  
9eca33f4a13919 Dave Airlie  2020-08-04  159 man = 
ttm_manager_type(bdev, mem->mem_type);
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  160  
0c321c79627189 Jerome Glisse2010-04-07  161 if (virtual && 
mem->bus.addr == NULL)
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  162 
iounmap(virtual);
82c5da6bf8b55a Jerome Glisse2010-04-09  163 ttm_mem_io_free(bdev, 
mem);
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  164  }
ba4e7d973dd09b Thomas Hellstrom 2009-06-10  165  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v9 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-08-31 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.9-rc3 next-20200828]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200831-162549
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=sparc 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fw_activate':
>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:749:10: warning: 
>> conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes 
>> value from '18446744073709551613' to '4294967293' [-Woverflow]
 749 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fill_host_caps':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1355:2: error: implicit 
declaration of function 'phy_get_attrs' [-Werror=implicit-function-declaration]
1355 |  phy_get_attrs(mhdp->phy, );
 |  ^
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1361:19: error: 'struct 
phy_attrs' has no member named 'max_link_rate'
1361 |  link_rate = attrs.max_link_rate;
 |   ^
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_attach':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1680:10: warning: 
conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value 
from '18446744073709551613' to '4294967293' [-Woverflow]
1680 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_bridge_hpd_enable':
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:2152:10: warning: 
conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value 
from '18446744073709551613' to '4294967293' [-Woverflow]
2152 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   cc1: some warnings being treated as errors

# 
https://github.com/0day-ci/linux/commit/f9a2fb8569e017b7eaba3a94afc9581179c2b62b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200831-162549
git checkout f9a2fb8569e017b7eaba3a94afc9581179c2b62b
vim +749 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c

   692  
   693  static int cdns_mhdp_fw_activate(const struct firmware *fw,
   694   struct cdns_mhdp_device *mhdp)
   695  {
   696  unsigned int reg;
   697  int ret;
   698  
   699  /* Release uCPU reset and stall it. */
   700  writel(CDNS_CPU_STALL, mhdp->regs + CDNS_APB_CTRL);
   701  
   702  memcpy_toio(mhdp->regs + CDNS_MHDP_IMEM, fw->data, fw->size);
   703  
   704  /* Leave debug mode, release stall */
   705  writel(0, mhdp->regs + CDNS_APB_CTRL);
   706  
   707  /*
   708   * Wait for the KEEP_ALIVE "message" on the first 8 bits.
   709   * Updated each sched "tick" (~2ms)
   710   */
   711  ret = readl_poll_timeout(mhdp->regs + CDNS_KEEP_ALIVE, reg,
   712   reg & CDNS_KEEP_ALIVE_MASK, 500,
   713   CDNS_KEEP_ALIVE_TIMEOUT);
   714  if (ret) {
   715  dev_err(mhdp->dev,
   716  "device didn't give any life sign: reg %d\n", 
reg);
   717  return ret;
   718  }
   719  
   720  ret = cdns_mhdp_check_fw_version(mhdp);
   721  if (ret)
   722  return ret;
   723  
   724  /* Init events to 0 as it's not cleared by FW at boot but on 
read */
   725  readl(mhdp->regs + CDNS_SW_EVENT0);
   726  readl(mhdp->regs + CDNS_SW_EVENT1);
   727  readl(mhdp->regs + CDNS_SW_EVENT2);
   728  readl(mhdp->regs + CDNS_SW_EVENT3);
   729  
   730  /* Activate uCPU */
   731  ret = cdns_mhdp_set_firmware_active(mhdp, true);
   732  if (re

Re: [PATCH v9 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-08-31 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v5.9-rc3 next-20200828]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200831-162549
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=m68k 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/err.h:5,
from include/linux/clk.h:12,
from drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:22:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of 
pointer with null pointer [-Wextra]
 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void 
*)PAGE_OFFSET && (void *)(kaddr) < high_memory)
 | ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
  78 | # define unlikely(x) __builtin_expect(!!(x), 0)
 |  ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
 143 |  BUG_ON(!virt_addr_valid(buf));
 |  ^~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 
'virt_addr_valid'
 143 |  BUG_ON(!virt_addr_valid(buf));
 |  ^~~
   drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function 
'cdns_mhdp_fill_host_caps':
>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1355:2: error: implicit 
>> declaration of function 'phy_get_attrs' 
>> [-Werror=implicit-function-declaration]
1355 |  phy_get_attrs(mhdp->phy, );
 |  ^
>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1361:19: error: 'struct 
>> phy_attrs' has no member named 'max_link_rate'
1361 |  link_rate = attrs.max_link_rate;
 |   ^
   cc1: some warnings being treated as errors

# 
https://github.com/0day-ci/linux/commit/f9a2fb8569e017b7eaba3a94afc9581179c2b62b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200831-162549
git checkout f9a2fb8569e017b7eaba3a94afc9581179c2b62b
vim +/phy_get_attrs +1355 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c

  1348  
  1349  static void cdns_mhdp_fill_host_caps(struct cdns_mhdp_device *mhdp)
  1350  {
  1351  unsigned int link_rate;
  1352  struct phy_attrs attrs;
  1353  
  1354  /* Get source capabilities based on PHY attributes */
> 1355  phy_get_attrs(mhdp->phy, );
  1356  
  1357  mhdp->host.lanes_cnt = attrs.bus_width;
  1358  if (!mhdp->host.lanes_cnt)
  1359  mhdp->host.lanes_cnt = 4;
  1360  
> 1361  link_rate = attrs.max_link_rate;
  1362  if (!link_rate)
  1363  link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1);
  1364  else
  1365  /* PHY uses Mb/s, DRM uses tens of kb/s. */
  1366  link_rate *= 100;
  1367  
  1368  mhdp->host.link_rate = link_rate;
  1369  mhdp->host.volt_swing = CDNS_VOLT_SWING(3);
  1370  mhdp->host.pre_emphasis = CDNS_PRE_EMPHASIS(3);
  1371  mhdp->host.pattern_supp = CDNS_SUPPORT_TPS(1) |
  1372CDNS_SUPPORT_TPS(2) | 
CDNS_SUPPORT_TPS(3) |
  1373CDNS_SUPPORT_TPS(4);
  1374  mhdp->host.lane_mapping = CDNS_LANE_MAPPING_NORMAL;
  1375  mhdp->host.fast_link = false;
  1376  mhdp->host.enhanced = true;
  1377  mhdp->host.scrambler = true;
  1378  mhdp->host.ssc = false;
  1379  }
  1380  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 473/599] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:9: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-29 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next
head:   b8bccd965ee3a8e17af971e55ec8df9e425dec5c
commit: e098bc9612c2b60f94920461d71c92962a916e73 [473/599] drm/amd/pm: optimize 
the power related source code layout
config: arm-randconfig-s031-20200829 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout e098bc9612c2b60f94920461d71c92962a916e73
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm 

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


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:9: 
>> sparse: sparse: incorrect type in argument 1 (different address spaces) @@   
>>   expected void volatile [noderef] __iomem *to @@ got void *kaddr @@
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:9: 
>> sparse: expected void volatile [noderef] __iomem *to
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:9: 
sparse: got void *kaddr

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex drm-next
git checkout e098bc9612c2b60f94920461d71c92962a916e73
vim +408 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c

1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  321  
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  322  int smu7_request_smu_load_fw(struct pp_hwmgr *hwmgr)
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  323  {
b3b030520df05fc drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-26  324struct smu7_smumgr *smu_data = (struct smu7_smumgr 
*)(hwmgr->smu_backend);
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  325uint32_t fw_to_load;
d92867122cd9524 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Alex Deucher 
 2018-07-12  326int r = 0;
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  327  
744a522794bdc64 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2018-09-29  328amdgpu_ucode_init_bo(hwmgr->adev);
744a522794bdc64 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2018-09-29  329  
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  330if (smu_data->soft_regs_start)
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  331cgs_write_ind_register(hwmgr->device, 
CGS_IND_REG__SMC,
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  332
smu_data->soft_regs_start + smum_get_offsetof(hwmgr,
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  333SMU_SoftRegisters, 
UcodeLoadStatus),
1ff55f465103782 drivers/gpu/drm/amd/powerplay/

[radeon-alex:amd-staging-drm-next 1403/1518] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:44: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-28 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   8252270c0b5fba4dd651473c5fee66ecaa3d9026
commit: 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55 [1403/1518] drm/amd/pm: 
optimize the power related source code layout
config: powerpc64-randconfig-s032-20200828 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64 

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


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:65:25: 
sparse: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:74:26: 
sparse: sparse: cast to restricted __be32
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:44: 
>> sparse: sparse: incorrect type in argument 1 (different address spaces) @@   
>>   expected void volatile [noderef]  *d @@ got void *kaddr @@
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:44: 
>> sparse: expected void volatile [noderef]  *d
   drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:408:44: 
sparse: got void *kaddr

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55
vim +408 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c

1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  321  
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  322  int smu7_request_smu_load_fw(struct pp_hwmgr *hwmgr)
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  323  {
b3b030520df05fc drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-26  324struct smu7_smumgr *smu_data = (struct smu7_smumgr 
*)(hwmgr->smu_backend);
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  325uint32_t fw_to_load;
d92867122cd9524 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Alex Deucher 
 2018-07-12  326int r = 0;
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  327  
744a522794bdc64 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2018-09-29  328amdgpu_ucode_init_bo(hwmgr->adev);
744a522794bdc64 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2018-09-29  329  
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  330if (smu_data->soft_regs_start)
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  331cgs_write_ind_register(hwmgr->device, 
CGS_IND_REG__SMC,
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  332
smu_data->soft_regs_start + smum_get_offsetof(hwmgr,
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  333SMU_SoftRegisters, 
UcodeLoadStatus),
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  3340x0);
1ff55f465103782 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2016-08-19  335  
d3f8c0abf45866d drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2017-09-20  336if (hwmgr->chip_id > CHIP_TOPAZ) { /* add support for 
Topaz */
8bb575a2d83af09 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Rex Zhu  
 2018-03-22  337if (hwmgr->not_vf) {
d9c8316eb372268 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Evan Quan
 2020-03-26  338
smum_send_msg_to_smc_with_parameter(hwmgr,
e224e4f17dc89b2 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Xiangliang 
Yu 2016-12-02  339
PPSMC_MSG_SMU_DRAM_ADDR_HI,
a0ec225633d9f68 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Evan Quan
 2020-03-27  340
upper_32_bits(smu_data->smu_buffer.mc_addr),
a0ec225633d9f68 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c Evan Quan
 2020-03-27  341

Re: [PATCH 2/2] drm: panel: simple: Add AM-1280800N3TZQW-T00H

2020-08-28 Thread kernel test robot
Hi Jagan,

I love your patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip linus/master 
v5.9-rc2 next-20200828]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jagan-Teki/dt-bindings-display-simple-Add-AM-1280800N3TZQW-T00H/20200829-37
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-randconfig-a003-20200828 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
c10e63677f5d20f18010f8f68c631ddc97546f7d)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/panel/panel-simple.c:623:3: error: field designator 
>> 'vrefresh' does not refer to any field in type 'const struct 
>> drm_display_mode'
   .vrefresh = 60,
^
   1 error generated.

# 
https://github.com/0day-ci/linux/commit/dfa982c527d827dca7aa86fc2b58228ff404bc05
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jagan-Teki/dt-bindings-display-simple-Add-AM-1280800N3TZQW-T00H/20200829-37
git checkout dfa982c527d827dca7aa86fc2b58228ff404bc05
vim +623 drivers/gpu/drm/panel/panel-simple.c

   612  
   613  static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode 
= {
   614  .clock = 71100,
   615  .hdisplay = 1280,
   616  .hsync_start = 1280 + 40,
   617  .hsync_end = 1280 + 40 + 80,
   618  .htotal = 1280 + 40 + 80 + 40,
   619  .vdisplay = 800,
   620  .vsync_start = 800 + 3,
   621  .vsync_end = 800 + 3 + 10,
   622  .vtotal = 800 + 3 + 10 + 10,
 > 623  .vrefresh = 60,
   624  .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
   625  };
   626  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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] drm: panel: simple: Add AM-1280800N3TZQW-T00H

2020-08-28 Thread kernel test robot
Hi Jagan,

I love your patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip linus/master 
v5.9-rc2 next-20200828]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jagan-Teki/dt-bindings-display-simple-Add-AM-1280800N3TZQW-T00H/20200829-37
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-randconfig-m021-20200828 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/panel/panel-simple.c:623:3: error: 'const struct 
>> drm_display_mode' has no member named 'vrefresh'
 623 |  .vrefresh = 60,
 |   ^~~~

# 
https://github.com/0day-ci/linux/commit/dfa982c527d827dca7aa86fc2b58228ff404bc05
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jagan-Teki/dt-bindings-display-simple-Add-AM-1280800N3TZQW-T00H/20200829-37
git checkout dfa982c527d827dca7aa86fc2b58228ff404bc05
vim +623 drivers/gpu/drm/panel/panel-simple.c

   612  
   613  static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode 
= {
   614  .clock = 71100,
   615  .hdisplay = 1280,
   616  .hsync_start = 1280 + 40,
   617  .hsync_end = 1280 + 40 + 80,
   618  .htotal = 1280 + 40 + 80 + 40,
   619  .vdisplay = 800,
   620  .vsync_start = 800 + 3,
   621  .vsync_end = 800 + 3 + 10,
   622  .vtotal = 800 + 3 + 10 + 10,
 > 623  .vrefresh = 60,
   624  .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
   625  };
   626  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v1 2/2] drm: bridge: add support for lontium LT9611UXC bridge

2020-08-28 Thread kernel test robot
Hi Dmitry,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on next-20200828]
[cannot apply to robh/for-next drm-intel/for-linux-next 
tegra-drm/drm/tegra/for-next linus/master drm-exynos/exynos-drm-next 
drm/drm-next v5.9-rc2]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Dmitry-Baryshkov/Add-LT9611UXC-DSI-to-HDMI-bridge-support/20200828-200735
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/lontium-lt9611uxc.c: In function 
'lt9611uxc_video_setup':
>> drivers/gpu/drm/bridge/lontium-lt9611uxc.c:322:49: warning: variable 
>> 'vsync_porch' set but not used [-Wunused-but-set-variable]
 322 |  u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch;
 | ^~~
>> drivers/gpu/drm/bridge/lontium-lt9611uxc.c:321:49: warning: variable 
>> 'hsync_porch' set but not used [-Wunused-but-set-variable]
 321 |  u32 h_total, hactive, hsync_len, hfront_porch, hsync_porch;
 | ^~~
   drivers/gpu/drm/bridge/lontium-lt9611uxc.c: At top level:
>> drivers/gpu/drm/bridge/lontium-lt9611uxc.c:473:14: warning: no previous 
>> prototype for 'lt9611uxc_bridge_get_edid' [-Wmissing-prototypes]
 473 | struct edid *lt9611uxc_bridge_get_edid(struct drm_bridge *bridge,
 |  ^

# 
https://github.com/0day-ci/linux/commit/f1b935d064fd8924137d420e75eb050c3d66c22b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Dmitry-Baryshkov/Add-LT9611UXC-DSI-to-HDMI-bridge-support/20200828-200735
git checkout f1b935d064fd8924137d420e75eb050c3d66c22b
vim +/vsync_porch +322 drivers/gpu/drm/bridge/lontium-lt9611uxc.c

   317  
   318  static void lt9611uxc_video_setup(struct lt9611uxc *lt9611uxc,
   319  const struct drm_display_mode *mode)
   320  {
 > 321  u32 h_total, hactive, hsync_len, hfront_porch, hsync_porch;
 > 322  u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch;
   323  
   324  h_total = mode->htotal;
   325  v_total = mode->vtotal;
   326  
   327  hactive = mode->hdisplay;
   328  hsync_len = mode->hsync_end - mode->hsync_start;
   329  hfront_porch = mode->hsync_start - mode->hdisplay;
   330  hsync_porch = hsync_len + mode->htotal - mode->hsync_end;
   331  
   332  vactive = mode->vdisplay;
   333  vsync_len = mode->vsync_end - mode->vsync_start;
   334  vfront_porch = mode->vsync_start - mode->vdisplay;
   335  vsync_porch = vsync_len + mode->vtotal - mode->vsync_end;
   336  
   337  regmap_write(lt9611uxc->regmap, 0xd00d, (u8)(v_total / 256));
   338  regmap_write(lt9611uxc->regmap, 0xd00e, (u8)(v_total % 256));
   339  
   340  regmap_write(lt9611uxc->regmap, 0xd00f, (u8)(vactive / 256));
   341  regmap_write(lt9611uxc->regmap, 0xd010, (u8)(vactive % 256));
   342  
   343  regmap_write(lt9611uxc->regmap, 0xd011, (u8)(h_total / 256));
   344  regmap_write(lt9611uxc->regmap, 0xd012, (u8)(h_total % 256));
   345  
   346  regmap_write(lt9611uxc->regmap, 0xd013, (u8)(hactive / 256));
   347  regmap_write(lt9611uxc->regmap, 0xd014, (u8)(hactive % 256));
   348  
   349  regmap_write(lt9611uxc->regmap, 0xd015, (u8)(vsync_len % 256));
   350  
   351  regmap_update_bits(lt9611uxc->regmap, 0xd016, 0xf, 
(u8)(hsync_len / 256));
   352  regmap_write(lt9611uxc->regmap, 0xd017, (u8)(hsync_len % 256));
   353  
   354  regmap_update_bits(lt9611uxc->regmap, 0xd018, 0xf, 
(u8)(vfront_porch / 256));
   355  regmap_write(lt9611uxc->regmap, 0xd019, (u8)(vfront_porch % 
256));
   356  
   357  regmap_update_bits(lt9611uxc->regmap, 0xd01a, 0xf, 
(u8)(hfront_porch / 256));
   358  regmap_write(lt9611uxc->regmap, 0xd01b, (u8)(hfront_porch % 
256));
   359  }
   360  
   361  static void lt9611uxc_bridge_mode_set(struct drm_bridge *bridge,
   362 const struct drm_display_mode *mode,
   363 const struct drm_display_mode 
*adj_mod

Re: [PATCH v2 3/4] drm/plane: add drmm_universal_plane_alloc()

2020-08-27 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master v5.9-rc2 next-20200827]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200828-000957
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm-randconfig-r003-20200827 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
c10e63677f5d20f18010f8f68c631ddc97546f7d)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_plane.c:301:6: warning: variable 'ap' is used 
>> uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
   if (name)
   ^~~~
   drivers/gpu/drm/drm_plane.c:305:19: note: uninitialized use occurs here
type, name, ap);
^~
   drivers/gpu/drm/drm_plane.c:301:2: note: remove the 'if' if its condition is 
always true
   if (name)
   ^
   drivers/gpu/drm/drm_plane.c:298:2: note: variable 'ap' is declared here
   va_list ap;
   ^
   drivers/gpu/drm/drm_plane.c:344:6: warning: variable 'ap' is used 
uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
   if (name)
   ^~~~
   drivers/gpu/drm/drm_plane.c:348:19: note: uninitialized use occurs here
type, name, ap);
^~
   drivers/gpu/drm/drm_plane.c:344:2: note: remove the 'if' if its condition is 
always true
   if (name)
   ^
   drivers/gpu/drm/drm_plane.c:332:2: note: variable 'ap' is declared here
   va_list ap;
   ^
   2 warnings generated.

# 
https://github.com/0day-ci/linux/commit/5f2373dfa20624f32ff28097eb734511ed8ca13e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Philipp-Zabel/drm-add-drmm_encoder_alloc/20200828-000957
git checkout 5f2373dfa20624f32ff28097eb734511ed8ca13e
vim +301 drivers/gpu/drm/drm_plane.c

   271  
   272  /**
   273   * drm_universal_plane_init - Initialize a new universal plane object
   274   * @dev: DRM device
   275   * @plane: plane object to init
   276   * @possible_crtcs: bitmask of possible CRTCs
   277   * @funcs: callbacks for the new plane
   278   * @formats: array of supported formats (DRM_FORMAT\_\*)
   279   * @format_count: number of elements in @formats
   280   * @format_modifiers: array of struct drm_format modifiers terminated by
   281   *DRM_FORMAT_MOD_INVALID
   282   * @type: type of plane (overlay, primary, cursor)
   283   * @name: printf style format string for the plane name, or NULL for 
default name
   284   *
   285   * Initializes a plane object of type @type.
   286   *
   287   * Returns:
   288   * Zero on success, error code on failure.
   289   */
   290  int drm_universal_plane_init(struct drm_device *dev, struct drm_plane 
*plane,
   291   uint32_t possible_crtcs,
   292   const struct drm_plane_funcs *funcs,
   293   const uint32_t *formats, unsigned int 
format_count,
   294   const uint64_t *format_modifiers,
   295   enum drm_plane_type type,
   296   const char *name, ...)
   297  {
   298  va_list ap;
   299  int ret;
   300  
 > 301  if (name)
   302  va_start(ap, name);
   303  ret = __drm_universal_plane_init(dev, plane, possible_crtcs, 
funcs,
   304   formats, format_count, 
format_modifiers,
   305   type, name, ap);
   306  if (name)
   307  va_end(ap);
   308  return ret;
   309  }
   310  EXPORT_SYMBOL(drm_universal_plane_init);
   311  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Descript

Re: [PATCH v2 1/4] drm: add drmm_encoder_alloc()

2020-08-27 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master v5.9-rc2 next-20200827]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200828-000957
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm-randconfig-r003-20200827 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
c10e63677f5d20f18010f8f68c631ddc97546f7d)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_encoder.c:160:6: warning: variable 'ap' is used 
>> uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
   if (name)
   ^~~~
   drivers/gpu/drm/drm_encoder.c:162:68: note: uninitialized use occurs here
   ret = __drm_encoder_init(dev, encoder, funcs, encoder_type, name, 
ap);
 ^~
   drivers/gpu/drm/drm_encoder.c:160:2: note: remove the 'if' if its condition 
is always true
   if (name)
   ^
   drivers/gpu/drm/drm_encoder.c:157:2: note: variable 'ap' is declared here
   va_list ap;
   ^
   drivers/gpu/drm/drm_encoder.c:227:6: warning: variable 'ap' is used 
uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
   if (name)
   ^~~~
   drivers/gpu/drm/drm_encoder.c:229:68: note: uninitialized use occurs here
   ret = __drm_encoder_init(dev, encoder, funcs, encoder_type, name, 
ap);
 ^~
   drivers/gpu/drm/drm_encoder.c:227:2: note: remove the 'if' if its condition 
is always true
   if (name)
   ^
   drivers/gpu/drm/drm_encoder.c:215:2: note: variable 'ap' is declared here
   va_list ap;
   ^
   2 warnings generated.

# 
https://github.com/0day-ci/linux/commit/582208cffad6661715216bc2fd36f382012f8419
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Philipp-Zabel/drm-add-drmm_encoder_alloc/20200828-000957
git checkout 582208cffad6661715216bc2fd36f382012f8419
vim +160 drivers/gpu/drm/drm_encoder.c

   136  
   137  /**
   138   * drm_encoder_init - Init a preallocated encoder
   139   * @dev: drm device
   140   * @encoder: the encoder to init
   141   * @funcs: callbacks for this encoder
   142   * @encoder_type: user visible type of the encoder
   143   * @name: printf style format string for the encoder name, or NULL for 
default name
   144   *
   145   * Initializes a preallocated encoder. Encoder should be subclassed as 
part of
   146   * driver encoder objects. At driver unload time drm_encoder_cleanup() 
should be
   147   * called from the driver's _encoder_funcs.destroy hook.
   148   *
   149   * Returns:
   150   * Zero on success, error code on failure.
   151   */
   152  int drm_encoder_init(struct drm_device *dev,
   153   struct drm_encoder *encoder,
   154   const struct drm_encoder_funcs *funcs,
   155   int encoder_type, const char *name, ...)
   156  {
   157  va_list ap;
   158  int ret;
   159  
 > 160  if (name)
   161  va_start(ap, name);
   162  ret = __drm_encoder_init(dev, encoder, funcs, encoder_type, 
name, ap);
   163  if (name)
   164  va_end(ap);
   165  
   166  return ret;
   167  }
   168  EXPORT_SYMBOL(drm_encoder_init);
   169  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 628/1509] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:268:17: sparse: sparse: cast removes address space '' of expression

2020-08-26 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   dff7bd1a712d1fa6fb6289e38de0769dc8b5d1b4
commit: 10be8791067fc672e44fcaa7afb886390909a0c0 [628/1509] drm/amdkfd: Support 
Sienna_Cichlid KFD v4
config: x86_64-randconfig-s022-20200826 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout 10be8791067fc672e44fcaa7afb886390909a0c0
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:268:17: sparse: sparse: 
>> cast removes address space '' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:270:17: sparse: sparse: 
cast removes address space '' of expression

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 10be8791067fc672e44fcaa7afb886390909a0c0
vim +268 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c

   192  
   193  static int hqd_load_v10_3(struct kgd_dev *kgd, void *mqd, uint32_t 
pipe_id,
   194  uint32_t queue_id, uint32_t __user *wptr,
   195  uint32_t wptr_shift, uint32_t wptr_mask,
   196  struct mm_struct *mm)
   197  {
   198  struct amdgpu_device *adev = get_amdgpu_device(kgd);
   199  struct v10_compute_mqd *m;
   200  uint32_t *mqd_hqd;
   201  uint32_t reg, hqd_base, data;
   202  
   203  m = get_mqd(mqd);
   204  
   205  pr_debug("Load hqd of pipe %d queue %d\n", pipe_id, queue_id);
   206  acquire_queue(kgd, pipe_id, queue_id);
   207  
   208  /* HIQ is set during driver init period with vmid set to 0*/
   209  if (m->cp_hqd_vmid == 0) {
   210  uint32_t value, mec, pipe;
   211  
   212  mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1;
   213  pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec);
   214  
   215  pr_debug("kfd: set HIQ, mec:%d, pipe:%d, queue:%d.\n",
   216  mec, pipe, queue_id);
   217  value = RREG32(SOC15_REG_OFFSET(GC, 0, 
mmRLC_CP_SCHEDULERS));
   218  value = REG_SET_FIELD(value, RLC_CP_SCHEDULERS, 
scheduler1,
   219  ((mec << 5) | (pipe << 3) | queue_id | 0x80));
   220  WREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_CP_SCHEDULERS), 
value);
   221  }
   222  
   223  /* HQD registers extend from CP_MQD_BASE_ADDR to 
CP_HQD_EOP_WPTR_MEM. */
   224  mqd_hqd = >cp_mqd_base_addr_lo;
   225  hqd_base = SOC15_REG_OFFSET(GC, 0, mmCP_MQD_BASE_ADDR);
   226  
   227  for (reg = hqd_base;
   228   reg <= SOC15_REG_OFFSET(GC, 0, mmCP_HQD_PQ_WPTR_HI); reg++)
   229  WREG32(reg, mqd_hqd[reg - hqd_base]);
   230  
   231  
   232  /* Activate doorbell logic before triggering WPTR poll. */
   233  data = REG_SET_FIELD(m->cp_hqd_pq_doorbell_control,
   234   CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 
1);
   235  WREG32(SOC15_REG_OFFSET(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL), 
data);
   236  
   237  if (wptr) {
   238  /* Don't read wptr with get_user because the user
   239   * context may not be accessible (if this function
   240   * runs in a work queue). Instead trigger a one-shot
   241   * polling read from memory in the CP. This assumes
   242   * that wptr is GPU-accessible in the queue's VMID via
   243   * ATC or SVM. WPTR==RPTR before starting the poll so
   244   * the CP starts fetching new commands from the right
   245   * place.
   246   *
   247   * Guessing a 64-bit WPTR from a 32-bit RPTR is a bit
   248   * tricky. Assume that the queue didn't overflow. The
   249   * number of valid bits in the 32-bit RPTR depends on
   250   * the queue size. The remaining bits are taken from
   251   * the saved 64-bit WPTR. If the WPTR wrapped, add the
   252   * queue size.
   253   */
   254  uint32_t queue_size =
   255  2 << REG_GET_FIELD(m->cp_hqd_pq_control,
   256 CP_HQD_PQ_CONTROL, 
QUEUE_SIZE);
   257  uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size 
- 1);
   258  
 

Re: [PATCH 4/4] i915: POC use dynamic_debug_exec_queries to control pr_debugs in gvt

2020-08-26 Thread kernel test robot
Hi Jim,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on linux/master tegra-drm/drm/tegra/for-next 
drm-tip/drm-tip linus/master v5.9-rc2 next-20200826]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jim-Cromie/dyndbg-POC-use-dynamic_debug_exec_queries-in-DRM/20200827-010409
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_params.c: In function 'param_set_dyndbg':
>> drivers/gpu/drm/i915/i915_params.c:307:11: error: implicit declaration of 
>> function 'dynamic_debug_exec_queries' [-Werror=implicit-function-declaration]
 307 |   chgct = dynamic_debug_exec_queries(query, "i915");
 |   ^~
   cc1: some warnings being treated as errors

# 
https://github.com/0day-ci/linux/commit/1b9bcd2cceed427d96bc9bf4eae6619201d645d6
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jim-Cromie/dyndbg-POC-use-dynamic_debug_exec_queries-in-DRM/20200827-010409
git checkout 1b9bcd2cceed427d96bc9bf4eae6619201d645d6
vim +/dynamic_debug_exec_queries +307 drivers/gpu/drm/i915/i915_params.c

   283  
   284  static int param_set_dyndbg(const char *instr, const struct 
kernel_param *kp)
   285  {
   286  static unsigned long int old_val;
   287  unsigned int val;
   288  unsigned long int changes, result;
   289  int rc, chgct = 0, totct = 0, bitpos;
   290  char query[OUR_QUERY_SIZE];
   291  
   292  rc = kstrtouint(instr, 0, );
   293  if (rc) {
   294  pr_err("set_dyndbg: failed\n");
   295  return -EINVAL;
   296  }
   297  result = val;
   298  pr_info("set_dyndbg: result:0x%lx from %s\n", result, instr);
   299  
   300  changes = result ^ old_val;
   301  
   302  for_each_set_bit(bitpos, , NUM_CLASSES) {
   303  
   304  sprintf(query, "format='^%s' %cp", 
pr_debug_classes[bitpos],
   305  test_bit(bitpos, ) ? '+' : '-');
   306  
 > 307  chgct = dynamic_debug_exec_queries(query, "i915");
   308  totct += chgct;
   309  pr_info("change ct:%d on format='%s'\n", chgct,
   310  pr_debug_classes[bitpos]);
   311  }
   312  old_val = result;
   313  pr_info("change ct:%d\n", totct);
   314  return 0;
   315  }
   316  static int param_get_dyndbg(char *buffer, const struct kernel_param *kp)
   317  {
   318  return scnprintf(buffer, PAGE_SIZE, "%u\n",
   319   *((unsigned int *)kp->arg));
   320  }
   321  static const struct kernel_param_ops param_ops_dyndbg = {
   322  .set = param_set_dyndbg,
   323  .get = param_get_dyndbg,
   324  };
   325  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH 4/4] drm/crtc: add drmm_crtc_alloc_with_planes()

2020-08-26 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master v5.9-rc2 next-20200826]
[cannot apply to tegra-drm/drm/tegra/for-next drm-exynos/exynos-drm-next 
drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a003-20200826 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
7cfcecece0e0430937cf529ce74d3a071a4dedc6)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_crtc.c:336:1: warning: all paths through this function 
>> will call itself [-Winfinite-recursion]
   {
   ^
   1 warning generated.

# 
https://github.com/0day-ci/linux/commit/236b7bc44ae0fdecc8e80c5aba0655ca14fdfb23
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
git checkout 236b7bc44ae0fdecc8e80c5aba0655ca14fdfb23
vim +336 drivers/gpu/drm/drm_crtc.c

   311  
   312  /**
   313   * drm_crtc_init_with_planes - Initialise a new CRTC object with
   314   *specified primary and cursor planes.
   315   * @dev: DRM device
   316   * @crtc: CRTC object to init
   317   * @primary: Primary plane for CRTC
   318   * @cursor: Cursor plane for CRTC
   319   * @funcs: callbacks for the new CRTC
   320   * @name: printf style format string for the CRTC name, or NULL for 
default name
   321   *
   322   * Inits a new object created as base part of a driver crtc object. 
Drivers
   323   * should use this function instead of drm_crtc_init(), which is only 
provided
   324   * for backwards compatibility with drivers which do not yet support 
universal
   325   * planes). For really simple hardware which has only 1 plane look at
   326   * drm_simple_display_pipe_init() instead.
   327   *
   328   * Returns:
   329   * Zero on success, error code on failure.
   330   */
   331  int drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc 
*crtc,
   332struct drm_plane *primary,
   333struct drm_plane *cursor,
   334const struct drm_crtc_funcs *funcs,
   335const char *name, ...)
 > 336  {
   337  va_list ap;
   338  int ret;
   339  
   340  if (name)
   341  va_start(ap, name);
   342  ret = drm_crtc_init_with_planes(dev, crtc, primary, cursor, 
funcs,
   343  name, ap);
   344  if (name)
   345  va_end(ap);
   346  
   347  return ret;
   348  }
   349  EXPORT_SYMBOL(drm_crtc_init_with_planes);
   350  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/4] drm-printk: POC caller of dynamic-debug-exec-queries

2020-08-26 Thread kernel test robot
Hi Jim,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on linux/master drm-tip/drm-tip linus/master v5.9-rc2 
next-20200826]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jim-Cromie/dyndbg-POC-use-dynamic_debug_exec_queries-in-DRM/20200827-010409
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm64-randconfig-r002-20200826 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
7cfcecece0e0430937cf529ce74d3a071a4dedc6)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/drm_print.c:30:
>> include/linux/dynamic_debug.h:196:3: error: implicit declaration of function 
>> 'printk' [-Werror,-Wimplicit-function-declaration]
   printk(KERN_WARNING "dyndbg param is supported only in "
   ^
>> include/linux/dynamic_debug.h:196:10: error: use of undeclared identifier 
>> 'KERN_WARNING'
   printk(KERN_WARNING "dyndbg param is supported only in "
  ^
   In file included from drivers/gpu/drm/drm_print.c:31:
   In file included from include/linux/io.h:11:
   In file included from include/linux/bug.h:5:
   In file included from arch/arm64/include/asm/bug.h:26:
   In file included from include/asm-generic/bug.h:19:
   In file included from include/linux/kernel.h:15:
   include/linux/printk.h:171:5: error: conflicting types for 'printk'
   int printk(const char *fmt, ...);
   ^
   include/linux/dynamic_debug.h:196:3: note: previous implicit declaration is 
here
   printk(KERN_WARNING "dyndbg param is supported only in "
   ^
>> drivers/gpu/drm/drm_print.c:70:11: error: implicit declaration of function 
>> 'dynamic_debug_exec_queries' [-Werror,-Wimplicit-function-declaration]
   chgct = dynamic_debug_exec_queries("module=drm* +p", NULL);
   ^
   4 errors generated.

# 
https://github.com/0day-ci/linux/commit/ad959a93dccb8fe5deb5a7da3e22049779571b9b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jim-Cromie/dyndbg-POC-use-dynamic_debug_exec_queries-in-DRM/20200827-010409
git checkout ad959a93dccb8fe5deb5a7da3e22049779571b9b
vim +/printk +196 include/linux/dynamic_debug.h

e9d376f0fa66bd6 Jason Baron 2009-02-05  190  
b48420c1d3019ce Jim Cromie  2012-04-27  191  static inline int 
ddebug_dyndbg_module_param_cb(char *param, char *val,
b48420c1d3019ce Jim Cromie  2012-04-27  192 
const char *modname)
b48420c1d3019ce Jim Cromie  2012-04-27  193  {
b48420c1d3019ce Jim Cromie  2012-04-27  194 if (strstr(param, "dyndbg")) {
516cf1be07cf3ab Jim Cromie  2012-05-01  195 /* avoid pr_warn(), 
which wants pr_fmt() fully defined */
516cf1be07cf3ab Jim Cromie  2012-05-01 @196 printk(KERN_WARNING 
"dyndbg param is supported only in "
b48420c1d3019ce Jim Cromie  2012-04-27  197 
"CONFIG_DYNAMIC_DEBUG builds\n");
b48420c1d3019ce Jim Cromie  2012-04-27  198 return 0; /* allow and 
ignore */
b48420c1d3019ce Jim Cromie  2012-04-27  199 }
b48420c1d3019ce Jim Cromie  2012-04-27  200 return -EINVAL;
b48420c1d3019ce Jim Cromie  2012-04-27  201  }
b48420c1d3019ce Jim Cromie  2012-04-27  202  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/4] drm/plane: add drmm_universal_plane_alloc()

2020-08-26 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on tegra-drm/drm/tegra/for-next drm-tip/drm-tip 
linus/master drm-exynos/exynos-drm-next v5.9-rc2 next-20200826]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a003-20200826 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
7cfcecece0e0430937cf529ce74d3a071a4dedc6)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_plane.c:156:5: warning: no previous prototype for 
>> function '__drm_universal_plane_init' [-Wmissing-prototypes]
   int __drm_universal_plane_init(struct drm_device *dev, struct drm_plane 
*plane,
   ^
   drivers/gpu/drm/drm_plane.c:156:1: note: declare 'static' if the function is 
not intended to be used outside of this translation unit
   int __drm_universal_plane_init(struct drm_device *dev, struct drm_plane 
*plane,
   ^
   static 
   1 warning generated.

# 
https://github.com/0day-ci/linux/commit/d809a51da3d2939a84ecf6b4ada8f5be6c3ecb35
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
git checkout d809a51da3d2939a84ecf6b4ada8f5be6c3ecb35
vim +/__drm_universal_plane_init +156 drivers/gpu/drm/drm_plane.c

   155  
 > 156  int __drm_universal_plane_init(struct drm_device *dev, struct drm_plane 
 > *plane,
   157 uint32_t possible_crtcs,
   158 const struct drm_plane_funcs *funcs,
   159 const uint32_t *formats, unsigned int 
format_count,
   160 const uint64_t *format_modifiers,
   161 enum drm_plane_type type,
   162 const char *name, va_list ap)
   163  {
   164  struct drm_mode_config *config = >mode_config;
   165  unsigned int format_modifier_count = 0;
   166  int ret;
   167  
   168  /* plane index is used with 32bit bitmasks */
   169  if (WARN_ON(config->num_total_plane >= 32))
   170  return -EINVAL;
   171  
   172  WARN_ON(drm_drv_uses_atomic_modeset(dev) &&
   173  (!funcs->atomic_destroy_state ||
   174   !funcs->atomic_duplicate_state));
   175  
   176  ret = drm_mode_object_add(dev, >base, 
DRM_MODE_OBJECT_PLANE);
   177  if (ret)
   178  return ret;
   179  
   180  drm_modeset_lock_init(>mutex);
   181  
   182  plane->base.properties = >properties;
   183  plane->dev = dev;
   184  plane->funcs = funcs;
   185  plane->format_types = kmalloc_array(format_count, 
sizeof(uint32_t),
   186  GFP_KERNEL);
   187  if (!plane->format_types) {
   188  DRM_DEBUG_KMS("out of memory when allocating plane\n");
   189  drm_mode_object_unregister(dev, >base);
   190  return -ENOMEM;
   191  }
   192  
   193  /*
   194   * First driver to need more than 64 formats needs to fix this. 
Each
   195   * format is encoded as a bit and the current code only 
supports a u64.
   196   */
   197  if (WARN_ON(format_count > 64))
   198  return -EINVAL;
   199  
   200  if (format_modifiers) {
   201  const uint64_t *temp_modifiers = format_modifiers;
   202  
   203  while (*temp_modifiers++ != DRM_FORMAT_MOD_INVALID)
   204  format_modifier_count++;
   205  }
   206  
   207  if (format_modifier_count)
   208  config->allow_fb_modifiers = true;
   209  
   210  plane->modifier_count = format_modifier_count;
   211  plane->modifiers = kmalloc_array(format_modi

Re: [PATCH 1/4] drm-printk: POC caller of dynamic-debug-exec-queries

2020-08-26 Thread kernel test robot
Hi Jim,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on linux/master tegra-drm/drm/tegra/for-next 
drm-tip/drm-tip linus/master v5.9-rc2 next-20200826]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jim-Cromie/dyndbg-POC-use-dynamic_debug_exec_queries-in-DRM/20200827-010409
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: microblaze-randconfig-r006-20200826 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=microblaze 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/drm_print.c:30:
   include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
>> include/linux/dynamic_debug.h:196:3: error: implicit declaration of function 
>> 'printk'; did you mean 'bprintf'? [-Werror=implicit-function-declaration]
 196 |   printk(KERN_WARNING "dyndbg param is supported only in "
 |   ^~
 |   bprintf
>> include/linux/dynamic_debug.h:196:10: error: 'KERN_WARNING' undeclared 
>> (first use in this function)
 196 |   printk(KERN_WARNING "dyndbg param is supported only in "
 |  ^~~~
   include/linux/dynamic_debug.h:196:10: note: each undeclared identifier is 
reported only once for each function it appears in
>> include/linux/dynamic_debug.h:196:22: error: expected ')' before string 
>> constant
 196 |   printk(KERN_WARNING "dyndbg param is supported only in "
 |  ^
 |  )
   In file included from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from ./arch/microblaze/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/io.h:11,
from drivers/gpu/drm/drm_print.c:31:
   include/linux/printk.h: At top level:
>> include/linux/printk.h:171:5: error: conflicting types for 'printk'
 171 | int printk(const char *fmt, ...);
 | ^~
   include/linux/printk.h:171:1: note: a parameter list with an ellipsis can't 
match an empty parameter name list declaration
 171 | int printk(const char *fmt, ...);
 | ^~~
   In file included from drivers/gpu/drm/drm_print.c:30:
   include/linux/dynamic_debug.h:196:3: note: previous implicit declaration of 
'printk' was here
 196 |   printk(KERN_WARNING "dyndbg param is supported only in "
 |   ^~
   drivers/gpu/drm/drm_print.c: In function 'param_set_dyndbg':
>> drivers/gpu/drm/drm_print.c:70:11: error: implicit declaration of function 
>> 'dynamic_debug_exec_queries' [-Werror=implicit-function-declaration]
  70 |   chgct = dynamic_debug_exec_queries("module=drm* +p", NULL);
 |   ^~
   cc1: some warnings being treated as errors

# 
https://github.com/0day-ci/linux/commit/ad959a93dccb8fe5deb5a7da3e22049779571b9b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jim-Cromie/dyndbg-POC-use-dynamic_debug_exec_queries-in-DRM/20200827-010409
git checkout ad959a93dccb8fe5deb5a7da3e22049779571b9b
vim +196 include/linux/dynamic_debug.h

e9d376f0fa66bd6 Jason Baron 2009-02-05  190  
b48420c1d3019ce Jim Cromie  2012-04-27  191  static inline int 
ddebug_dyndbg_module_param_cb(char *param, char *val,
b48420c1d3019ce Jim Cromie  2012-04-27  192 
const char *modname)
b48420c1d3019ce Jim Cromie  2012-04-27  193  {
b48420c1d3019ce Jim Cromie  2012-04-27  194 if (strstr(param, "dyndbg")) {
516cf1be07cf3ab Jim Cromie  2012-05-01  195 /* avoid pr_warn(), 
which wants pr_fmt() fully defined */
516cf1be07cf3ab Jim Cromie  2012-05-01 @196 printk(KERN_WARNING 
"dyndbg param is supported only in "
b48420c1d3019ce Jim Cromie  2012-04-27  197 
"CONFIG_DYNAMIC_DEBUG builds\n");
b48420c1d3019ce Jim Cromie  2012-04-27  198 return 0; /* allow and 
ignore */
b48420c1d3019ce Jim Cromie  2012-04-27  199 }
b48420c1d3019ce Jim Cromie  2012-04-27  200 return -EINVAL;
b48420c1d3019ce Jim Cromie  2012-04-27  20

Re: [PATCH 4/4] drm/crtc: add drmm_crtc_alloc_with_planes()

2020-08-26 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master v5.9-rc2 next-20200826]
[cannot apply to tegra-drm/drm/tegra/for-next drm-exynos/exynos-drm-next 
drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm-randconfig-r001-20200826 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_crtc.c: In function '__drm_crtc_init_with_planes':
>> drivers/gpu/drm/drm_crtc.c:267:3: warning: function 
>> '__drm_crtc_init_with_planes' might be a candidate for 'gnu_printf' format 
>> attribute [-Wsuggest-attribute=format]
 267 |   crtc->name = kvasprintf(GFP_KERNEL, name, ap);
 |   ^~~~

# 
https://github.com/0day-ci/linux/commit/236b7bc44ae0fdecc8e80c5aba0655ca14fdfb23
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
git checkout 236b7bc44ae0fdecc8e80c5aba0655ca14fdfb23
vim +267 drivers/gpu/drm/drm_crtc.c

35f8cc3b9a92c66 Gustavo Padovan 2016-12-06  207  
e954f77f6330028 Simon Ser   2020-05-21  208  /**
e954f77f6330028 Simon Ser   2020-05-21  209   * DOC: standard CRTC 
properties
e954f77f6330028 Simon Ser   2020-05-21  210   *
e954f77f6330028 Simon Ser   2020-05-21  211   * DRM CRTCs have a few 
standardized properties:
e954f77f6330028 Simon Ser   2020-05-21  212   *
e954f77f6330028 Simon Ser   2020-05-21  213   * ACTIVE:
e954f77f6330028 Simon Ser   2020-05-21  214   * Atomic property 
for setting the power state of the CRTC. When set to 1
e954f77f6330028 Simon Ser   2020-05-21  215   * the CRTC will 
actively display content. When set to 0 the CRTC will be
e954f77f6330028 Simon Ser   2020-05-21  216   * powered off. 
There is no expectation that user-space will reset CRTC
e954f77f6330028 Simon Ser   2020-05-21  217   * resources like 
the mode and planes when setting ACTIVE to 0.
e954f77f6330028 Simon Ser   2020-05-21  218   *
e954f77f6330028 Simon Ser   2020-05-21  219   * User-space can 
rely on an ACTIVE change to 1 to never fail an atomic
e954f77f6330028 Simon Ser   2020-05-21  220   * test as long as 
no other property has changed. If a change to ACTIVE
e954f77f6330028 Simon Ser   2020-05-21  221   * fails an atomic 
test, this is a driver bug. For this reason setting
e954f77f6330028 Simon Ser   2020-05-21  222   * ACTIVE to 0 
must not release internal resources (like reserved memory
e954f77f6330028 Simon Ser   2020-05-21  223   * bandwidth or 
clock generators).
e954f77f6330028 Simon Ser   2020-05-21  224   *
e954f77f6330028 Simon Ser   2020-05-21  225   * Note that the 
legacy DPMS property on connectors is internally routed
e954f77f6330028 Simon Ser   2020-05-21  226   * to control this 
property for atomic drivers.
e954f77f6330028 Simon Ser   2020-05-21  227   * MODE_ID:
e954f77f6330028 Simon Ser   2020-05-21  228   * Atomic property 
for setting the CRTC display timings. The value is the
e954f77f6330028 Simon Ser   2020-05-21  229   * ID of a blob 
containing the DRM mode info. To disable the CRTC,
e954f77f6330028 Simon Ser   2020-05-21  230   * user-space must 
set this property to 0.
e954f77f6330028 Simon Ser   2020-05-21  231   *
e954f77f6330028 Simon Ser   2020-05-21  232   * Setting MODE_ID 
to 0 will release reserved resources for the CRTC.
e954f77f6330028 Simon Ser   2020-05-21  233   */
e954f77f6330028 Simon Ser   2020-05-21  234  
236b7bc44ae0fde Philipp Zabel   2020-08-26  235  static int 
__drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc *crtc,
e13161af80c185e Matt Roper  2014-04-01  236 
   struct drm_plane *primary,
fc1d3e44ef7c1db Matt Roper  2014-06-10  237 
   struct drm_plane *cursor,
f98828769c8838f 

Re: [PATCH 3/4] drm/plane: add drmm_universal_plane_alloc()

2020-08-26 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on tegra-drm/drm/tegra/for-next drm-tip/drm-tip 
linus/master drm-exynos/exynos-drm-next v5.9-rc2 next-20200826]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm-randconfig-r001-20200826 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_plane.c:156:5: warning: no previous prototype for 
>> '__drm_universal_plane_init' [-Wmissing-prototypes]
 156 | int __drm_universal_plane_init(struct drm_device *dev, struct 
drm_plane *plane,
 | ^~
   drivers/gpu/drm/drm_plane.c: In function '__drm_universal_plane_init':
>> drivers/gpu/drm/drm_plane.c:223:3: warning: function 
>> '__drm_universal_plane_init' might be a candidate for 'gnu_printf' format 
>> attribute [-Wsuggest-attribute=format]
 223 |   plane->name = kvasprintf(GFP_KERNEL, name, ap);
 |   ^

# 
https://github.com/0day-ci/linux/commit/d809a51da3d2939a84ecf6b4ada8f5be6c3ecb35
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
git checkout d809a51da3d2939a84ecf6b4ada8f5be6c3ecb35
vim +/__drm_universal_plane_init +156 drivers/gpu/drm/drm_plane.c

   155  
 > 156  int __drm_universal_plane_init(struct drm_device *dev, struct drm_plane 
 > *plane,
   157 uint32_t possible_crtcs,
   158 const struct drm_plane_funcs *funcs,
   159 const uint32_t *formats, unsigned int 
format_count,
   160 const uint64_t *format_modifiers,
   161 enum drm_plane_type type,
   162 const char *name, va_list ap)
   163  {
   164  struct drm_mode_config *config = >mode_config;
   165  unsigned int format_modifier_count = 0;
   166  int ret;
   167  
   168  /* plane index is used with 32bit bitmasks */
   169  if (WARN_ON(config->num_total_plane >= 32))
   170  return -EINVAL;
   171  
   172  WARN_ON(drm_drv_uses_atomic_modeset(dev) &&
   173  (!funcs->atomic_destroy_state ||
   174   !funcs->atomic_duplicate_state));
   175  
   176  ret = drm_mode_object_add(dev, >base, 
DRM_MODE_OBJECT_PLANE);
   177  if (ret)
   178  return ret;
   179  
   180  drm_modeset_lock_init(>mutex);
   181  
   182  plane->base.properties = >properties;
   183  plane->dev = dev;
   184  plane->funcs = funcs;
   185  plane->format_types = kmalloc_array(format_count, 
sizeof(uint32_t),
   186  GFP_KERNEL);
   187  if (!plane->format_types) {
   188  DRM_DEBUG_KMS("out of memory when allocating plane\n");
   189  drm_mode_object_unregister(dev, >base);
   190  return -ENOMEM;
   191  }
   192  
   193  /*
   194   * First driver to need more than 64 formats needs to fix this. 
Each
   195   * format is encoded as a bit and the current code only 
supports a u64.
   196   */
   197  if (WARN_ON(format_count > 64))
   198  return -EINVAL;
   199  
   200  if (format_modifiers) {
   201  const uint64_t *temp_modifiers = format_modifiers;
   202  
   203  while (*temp_modifiers++ != DRM_FORMAT_MOD_INVALID)
   204  format_modifier_count++;
   205  }
   206  
   207  if (format_modifier_count)
   208  config->allow_fb_modifiers = true;
   209  
   210  plane->modifier_count = format_modifier_count;
   211  plane->modifiers = kmalloc_array(format_modifier_count,
   212   sizeof(format_modifiers[0]),
   213  

Re: [PATCH 3/4] drm/plane: add drmm_universal_plane_alloc()

2020-08-26 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on tegra-drm/drm/tegra/for-next drm-tip/drm-tip 
linus/master drm-exynos/exynos-drm-next v5.9-rc2 next-20200826]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_alloc/20200826-203629
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-s001-20200826 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/drm_plane.c:156:5: sparse: sparse: symbol 
>> '__drm_universal_plane_init' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


[RFC PATCH] drm/plane: __drm_universal_plane_init() can be static

2020-08-26 Thread kernel test robot


Signed-off-by: kernel test robot 
---
 drm_plane.c |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
index 0a565d97650cb..0f1d8589ab6c7 100644
--- a/drivers/gpu/drm/drm_plane.c
+++ b/drivers/gpu/drm/drm_plane.c
@@ -153,13 +153,13 @@ static int create_in_format_blob(struct drm_device *dev, 
struct drm_plane *plane
return 0;
 }
 
-int __drm_universal_plane_init(struct drm_device *dev, struct drm_plane *plane,
-  uint32_t possible_crtcs,
-  const struct drm_plane_funcs *funcs,
-  const uint32_t *formats, unsigned int 
format_count,
-  const uint64_t *format_modifiers,
-  enum drm_plane_type type,
-  const char *name, va_list ap)
+static int __drm_universal_plane_init(struct drm_device *dev, struct drm_plane 
*plane,
+ uint32_t possible_crtcs,
+ const struct drm_plane_funcs *funcs,
+ const uint32_t *formats, unsigned int 
format_count,
+ const uint64_t *format_modifiers,
+ enum drm_plane_type type,
+ const char *name, va_list ap)
 {
struct drm_mode_config *config = >mode_config;
unsigned int format_modifier_count = 0;
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] display/drm/bridge: fix semicolon.cocci warnings

2020-08-26 Thread kernel test robot
From: kernel test robot 

drivers/gpu/drm/bridge/tc358775.c:488:2-3: Unneeded semicolon


 Remove unneeded semicolon.

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

Fixes: b26975593b17 ("display/drm/bridge: TC358775 DSI/LVDS driver")
CC: Vinay Simha BN 
Signed-off-by: kernel test robot 
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   f37be72473a007d5d66c52f6cdf43fc8c0961f95
commit: b26975593b17c2c7188b96dba6fe9fff14480538 [970/3539] display/drm/bridge: 
TC358775 DSI/LVDS driver

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

--- a/drivers/gpu/drm/bridge/tc358775.c
+++ b/drivers/gpu/drm/bridge/tc358775.c
@@ -485,7 +485,7 @@ static void tc_bridge_enable(struct drm_
val |= TC358775_LVCFG_PCLKDIV(DIVIDE_BY_6);
} else {
val |= TC358775_LVCFG_PCLKDIV(DIVIDE_BY_3);
-   };
+   }
d2l_write(tc->i2c, LVCFG, val);
 }
 
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v9 12/32] drm: msm: fix common struct sg_table related issues

2020-08-26 Thread kernel test robot
Hi Marek,

I love your patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on drm-intel/for-linux-next linus/master v5.9-rc2 
next-20200826]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Marek-Szyprowski/DRM-fix-struct-sg_table-nents-vs-orig_nents-misuse/20200826-143908
base:   git://linuxtv.org/media_tree.git master
config: arm64-randconfig-r002-20200826 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
7cfcecece0e0430937cf529ce74d3a071a4dedc6)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

   aarch64-linux-gnu-ld: warning: -z norelro ignored
   aarch64-linux-gnu-ld: fs/orangefs/orangefs-debugfs.o: in function 
`orangefs_debug_read':
   fs/orangefs/orangefs-debugfs.c:375: undefined reference to `stpcpy'
   aarch64-linux-gnu-ld: security/apparmor/lsm.o: in function `param_get_mode':
   security/apparmor/lsm.c:1559: undefined reference to `stpcpy'
   aarch64-linux-gnu-ld: security/apparmor/lsm.o: in function `param_get_audit':
   security/apparmor/lsm.c:1530: undefined reference to `stpcpy'
   aarch64-linux-gnu-ld: crypto/async_tx/async_tx.o: in function 
`async_tx_channel_switch':
   crypto/async_tx/async_tx.c:118: undefined reference to 
`dma_wait_for_async_tx'
   aarch64-linux-gnu-ld: crypto/async_tx/async_tx.o: in function 
`async_tx_quiesce':
   crypto/async_tx/async_tx.c:270: undefined reference to 
`dma_wait_for_async_tx'
   aarch64-linux-gnu-ld: crypto/async_tx/async_tx.c:270: undefined reference to 
`dma_wait_for_async_tx'
   aarch64-linux-gnu-ld: crypto/async_tx/async_memcpy.o: in function 
`async_memcpy':
   crypto/async_tx/async_memcpy.c:43: undefined reference to 
`dmaengine_get_unmap_data'
   aarch64-linux-gnu-ld: crypto/async_tx/async_memcpy.c:89: undefined reference 
to `dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_xor.o: in function `async_xor':
   crypto/async_tx/async_xor.c:172: undefined reference to 
`dmaengine_get_unmap_data'
   aarch64-linux-gnu-ld: crypto/async_tx/async_xor.c:199: undefined reference 
to `dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_xor.c:199: undefined reference 
to `dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_xor.c:196: undefined reference 
to `dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_xor.o: in function 
`async_xor_val':
   crypto/async_tx/async_xor.c:268: undefined reference to 
`dmaengine_get_unmap_data'
   aarch64-linux-gnu-ld: crypto/async_tx/async_xor.c:324: undefined reference 
to `dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_pq.o: in function 
`async_gen_syndrome':
   crypto/async_tx/async_pq.c:176: undefined reference to 
`dmaengine_get_unmap_data'
   aarch64-linux-gnu-ld: crypto/async_tx/async_pq.c:233: undefined reference to 
`dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_pq.c:229: undefined reference to 
`dmaengine_unmap_put'
   aarch64-linux-gnu-ld: crypto/async_tx/async_pq.o: in function 
`async_syndrome_val':
   crypto/async_tx/async_pq.c:295: undefined reference to 
`dmaengine_get_unmap_data'
   aarch64-linux-gnu-ld: crypto/async_tx/async_pq.c:412: undefined reference to 
`dmaengine_unmap_put'
   aarch64-linux-gnu-ld: drivers/xen/sys-hypervisor.o: in function 
`buildid_show':
   drivers/xen/sys-hypervisor.c:375: undefined reference to `stpcpy'
   aarch64-linux-gnu-ld: drivers/tty/tty_io.o: in function `tty_line_name':
   drivers/tty/tty_io.c:1139: undefined reference to `stpcpy'
   aarch64-linux-gnu-ld: drivers/tty/tty_io.c:1139: undefined reference to 
`stpcpy'
   aarch64-linux-gnu-ld: drivers/tty/tty_io.c:1139: undefined reference to 
`stpcpy'
   aarch64-linux-gnu-ld: drivers/gpu/drm/vc4/vc4_dsi.o: in function 
`dsi_dma_workaround_write':
   drivers/gpu/drm/vc4/vc4_dsi.c:581: undefined reference to `dma_sync_wait'
   aarch64-linux-gnu-ld: drivers/gpu/drm/vc4/vc4_dsi.c:581: undefined reference 
to `dma_sync_wait'
   aarch64-linux-gnu-ld: drivers/gpu/drm/vc4/vc4_dsi.c:581: undefined reference 
to `dma_sync_wait'
   aarch64-linux-gnu-ld: drivers/gpu/drm/vc4/vc4_dsi.o: in function 
`vc4_dsi_host_transfer':
   drivers/gpu/drm/vc4/vc4_dsi.c:564: undefined reference to `dma_sync_wait'
   aarch64-linux-gnu-ld: drivers/gpu/d

[radeon-alex:amd-staging-drm-next 1475/1486] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:97:6: warning: no previous prototype for 'rn_set_low_power_state'

2020-08-24 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   1c3e54b1469ec510dd3be0b02ea7a58d3ace5dce
commit: 73172fa70e3993395689acba609d16dd37e6a1d6 [1475/1486] drm/amd/display: 
Send DISPLAY_OFF after power down on boot
config: i386-randconfig-r011-20200824 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 73172fa70e3993395689acba609d16dd37e6a1d6
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:58:5: 
warning: no previous prototype for 'rn_get_active_display_cnt_wa' 
[-Wmissing-prototypes]
  58 | int rn_get_active_display_cnt_wa(
 | ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:97:6: 
>> warning: no previous prototype for 'rn_set_low_power_state' 
>> [-Wmissing-prototypes]
  97 | void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
 |  ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:106:6: 
warning: no previous prototype for 'rn_update_clocks' [-Wmissing-prototypes]
 106 | void rn_update_clocks(struct clk_mgr *clk_mgr_base,
 |  ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c: In 
function 'rn_dump_clk_registers':
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:272:37: 
warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
 272 |  if (regs_and_bypass->dppclk_bypass < 0 || 
regs_and_bypass->dppclk_bypass > 4)
 | ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:275:37: 
warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
 275 |  if (regs_and_bypass->dcfclk_bypass < 0 || 
regs_and_bypass->dcfclk_bypass > 4)
 | ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:278:38: 
warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
 278 |  if (regs_and_bypass->dispclk_bypass < 0 || 
regs_and_bypass->dispclk_bypass > 4)
 |  ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:281:39: 
warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
 281 |  if (regs_and_bypass->dprefclk_bypass < 0 || 
regs_and_bypass->dprefclk_bypass > 4)
 |   ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c: At top 
level:
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:388:6: 
warning: no previous prototype for 'rn_get_clk_states' [-Wmissing-prototypes]
 388 | void rn_get_clk_states(struct clk_mgr *clk_mgr_base, struct 
clk_states *s)
 |  ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:398:6: 
warning: no previous prototype for 'rn_enable_pme_wa' [-Wmissing-prototypes]
 398 | void rn_enable_pme_wa(struct clk_mgr *clk_mgr_base)
 |  ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:405:6: 
warning: no previous prototype for 'rn_init_clocks' [-Wmissing-prototypes]
 405 | void rn_init_clocks(struct clk_mgr *clk_mgr)
 |  ^~
   In file included from 
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:43:
   drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:226:29: warning: 
'UVD0_BASE' defined but not used [-Wunused-const-variable=]
 226 | static const struct IP_BASE UVD0_BASE ={ { { { 0x7800, 
0x7E00, 0x02403000, 0, 0 } },
 | ^
   drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:219:29: warning: 
'USB0_BASE' defined but not used [-Wunused-const-variable=]
 219 | static const struct IP_BASE USB0_BASE ={ { { { 0x0242A800, 
0x05B0, 0, 0, 0 } },
 | ^
   drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:212:29: warning: 
'UMC_BASE' defined but not used [-Wunused-const-variable=]
 212 | static const struct IP_BASE UMC_BASE ={ { { { 0x00014000, 
0x02425800, 0, 0, 0 } },
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:205:29: warning: 
'THM_BASE' defined but not used [-Wunused-const-variable=]
 205 | static const struct IP_BASE THM_BASE ={ { { { 0x00016600, 
0x02400C00, 0, 0, 0 } },
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_o

Re: [PATCH v3] gpu/drm: ingenic: Add option to mmap GEM buffers cached

2020-08-20 Thread kernel test robot
Hi Paul,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip linus/master v5.9-rc1 next-20200820]
[cannot apply to tegra-drm/drm/tegra/for-next drm/drm-next 
drm-exynos/exynos-drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Paul-Cercueil/gpu-drm-ingenic-Add-option-to-mmap-GEM-buffers-cached/20200821-004437
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=riscv 

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

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "dma_pgprot" [drivers/gpu/drm/ingenic/ingenic-drm.ko] 
>> undefined!

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 v1] drm/i915/gt: convert tasklets to use new tasklet_setup() API

2020-08-19 Thread kernel test robot
Hi Andy,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Andy-Shevchenko/drm-i915-gt-convert-tasklets-to-use-new-tasklet_setup-API/20200819-195502
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-r024-20200818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

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

   drivers/gpu/drm/i915/gt/intel_lrc.c: In function 
'execlists_submission_tasklet':
   drivers/gpu/drm/i915/gt/intel_lrc.c:3135:42: error: implicit declaration of 
function 'from_tasklet' [-Werror=implicit-function-declaration]
3135 |  struct intel_engine_cs * const engine = from_tasklet(engine, t, 
execlists.tasklet);
 |  ^~~~
   drivers/gpu/drm/i915/gt/intel_lrc.c:3135:66: error: 'execlists' undeclared 
(first use in this function); did you mean 'execlists_hold'?
3135 |  struct intel_engine_cs * const engine = from_tasklet(engine, t, 
execlists.tasklet);
 |  
^
 |  
execlists_hold
   drivers/gpu/drm/i915/gt/intel_lrc.c:3135:66: note: each undeclared 
identifier is reported only once for each function it appears in
   drivers/gpu/drm/i915/gt/intel_lrc.c: In function 
'intel_execlists_set_default_submission':
>> drivers/gpu/drm/i915/gt/intel_lrc.c:4989:33: error: assignment to 'void 
>> (*)(long unsigned int)' from incompatible pointer type 'void (*)(struct 
>> tasklet_struct *)' [-Werror=incompatible-pointer-types]
4989 |  engine->execlists.tasklet.func = execlists_submission_tasklet;
 | ^
   drivers/gpu/drm/i915/gt/intel_lrc.c: In function 
'intel_execlists_submission_setup':
   drivers/gpu/drm/i915/gt/intel_lrc.c:5116:2: error: implicit declaration of 
function 'tasklet_setup' [-Werror=implicit-function-declaration]
5116 |  tasklet_setup(>execlists.tasklet, 
execlists_submission_tasklet);
 |  ^
   drivers/gpu/drm/i915/gt/intel_lrc.c: In function 
'virtual_submission_tasklet':
   drivers/gpu/drm/i915/gt/intel_lrc.c:5513:57: error: 'base' undeclared (first 
use in this function)
5513 |  struct virtual_engine * const ve = from_tasklet(ve, t, 
base.execlists.tasklet);
 | ^~~~
   drivers/gpu/drm/i915/gt/intel_lrc.c: In function 
'intel_execlists_create_virtual':
>> drivers/gpu/drm/i915/gt/intel_lrc.c:5748:39: warning: comparison of distinct 
>> pointer types lacks a cast
5748 |   if (sibling->execlists.tasklet.func !=
 |   ^~
   cc1: some warnings being treated as errors

# 
https://github.com/0day-ci/linux/commit/72a087952fafa97f8e7fa8b42fee8234c2a04fd7
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Andy-Shevchenko/drm-i915-gt-convert-tasklets-to-use-new-tasklet_setup-API/20200819-195502
git checkout 72a087952fafa97f8e7fa8b42fee8234c2a04fd7
vim +4989 drivers/gpu/drm/i915/gt/intel_lrc.c

c34c5bca331adc drivers/gpu/drm/i915/gt/intel_lrc.c Chris Wilson   
2019-05-03  4984  
209b7955e59e36 drivers/gpu/drm/i915/intel_lrc.cChris Wilson   
2018-07-17  4985  void intel_execlists_set_default_submission(struct 
intel_engine_cs *engine)
ddd66c5154c25d drivers/gpu/drm/i915/intel_lrc.cChris Wilson   
2016-08-02  4986  {
f4ea6bddb9988e drivers/gpu/drm/i915/intel_lrc.cChris Wilson   
2016-08-02  4987  engine->submit_request = execlists_submit_request;
e2f3496e93be32 drivers/gpu/drm/i915/intel_lrc.cChris Wilson   
2018-10-01  4988  engine->schedule = i915_schedule;
c6dce8f140bc19 drivers/gpu/drm/i915/intel_lrc.cSagar Arun Kamble  
2017-11-16 @4989  engine->execlists.tasklet.func = 
execlists_submission_tasklet;
aba5e278586b16 drivers/gpu/drm/i915/intel_lrc.cChris Wilson   
2017-10-25  4990  
1329115c6c4370 drivers/gpu/drm/i915/intel_lrc.cChris Wilson   
2018-05-16  4991  engine->reset.prepare = execlists_reset_prepare;
e26b6d4341476f drivers/gpu/drm/i915/gt/intel_lrc.c Chris Wilson   
2019-12-22  4992  engine->reset.rewind = execlists_reset_rewind;
e26b6d4341476f drivers/gpu/drm/i915/gt/intel_lrc.c Chris 

Re: [PATCH v6 14/14] drm/print: Add tracefs support to the drm logging helpers

2020-08-18 Thread kernel test robot
Hi Sean,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on tegra-drm/drm/tegra/for-next drm-tip/drm-tip 
linus/master drm-exynos/exynos-drm-next v5.9-rc1 next-20200818]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Sean-Paul/drm-trace-Mirror-DRM-debug-logs-to-tracefs/20200819-050745
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: openrisc-randconfig-s031-20200818 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-183-gaa6ede3b-dirty
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/drm_print.c:459:21: sparse: sparse: non-ANSI function 
>> declaration of function 'drm_trace_init'
>> drivers/gpu/drm/drm_print.c:498:24: sparse: sparse: non-ANSI function 
>> declaration of function 'drm_trace_cleanup'
   drivers/gpu/drm/drm_print.c:467:15: sparse: sparse: undefined identifier 
'trace_array_init_printk'
   drivers/gpu/drm/drm_print.c: note: in included file (through 
arch/openrisc/include/asm/io.h, include/linux/io.h):
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32

# 
https://github.com/0day-ci/linux/commit/fe0a955028a2121ce9ab9acd1c2ab74d219cdc60
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Sean-Paul/drm-trace-Mirror-DRM-debug-logs-to-tracefs/20200819-050745
git checkout fe0a955028a2121ce9ab9acd1c2ab74d219cdc60
vim +/drm_trace_init +459 drivers/gpu/drm/drm_print.c

   452  
   453  /**
   454   * drm_trace_init - initializes the drm trace array
   455   *
   456   * This function fetches (or creates) the drm trace array. This should 
be called
   457   * once on drm subsystem creation and matched with drm_trace_cleanup().
   458   */
 > 459  void drm_trace_init()
   460  {
   461  int ret;
   462  
   463  trace_arr = trace_array_get_by_name("drm");
   464  if (!trace_arr)
   465  return;
   466  
   467  ret = trace_array_init_printk(trace_arr);
   468  if (ret)
   469  drm_trace_cleanup();
   470  }
   471  EXPORT_SYMBOL(drm_trace_init);
   472  
   473  /**
   474   * drm_trace_printf - adds an entry to the drm tracefs instance
   475   * @format: printf format of the message to add to the trace
   476   *
   477   * This function adds a new entry in the drm tracefs instance
   478   */
   479  void drm_trace_printf(const char *format, ...)
   480  {
   481  struct va_format vaf;
   482  va_list args;
   483  
   484  va_start(args, format);
   485  vaf.fmt = format;
   486  vaf.va = 
   487  trace_array_printk(trace_arr, _THIS_IP_, "%pV", );
   488  va_end(args);
   489  }
   490  
   491  /**
   492   * drm_trace_cleanup - destroys the drm trace array
   493   *
   494   * This function destroys the drm trace array created with 
drm_trace_init. This
   495   * should be called once on drm subsystem close and matched with
   496   * drm_trace_init().
   497   */
 > 498  void drm_trace_cleanup()

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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: ast: fix double __iomem sparse warning

2020-08-18 Thread kernel test robot
Hi Randy,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on linus/master v5.9-rc1 next-20200818]
[cannot apply to linux/master drm-intel/for-linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Randy-Dunlap/drm-ast-fix-double-__iomem-sparse-warning/20200819-043022
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-randconfig-s002-20200818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-183-gaa6ede3b-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/ast/ast_cursor.c:42:59: sparse: sparse: incorrect type in 
>> argument 2 (different address spaces) @@ expected void *vaddr @@ got 
>> void [noderef] __iomem * @@
>> drivers/gpu/drm/ast/ast_cursor.c:42:59: sparse: expected void *vaddr
>> drivers/gpu/drm/ast/ast_cursor.c:42:59: sparse: got void [noderef] 
>> __iomem *
>> drivers/gpu/drm/ast/ast_cursor.c:80:23: sparse: sparse: incorrect type in 
>> assignment (different address spaces) @@ expected void [noderef] __iomem 
>> *vaddr @@ got void * @@
>> drivers/gpu/drm/ast/ast_cursor.c:80:23: sparse: expected void [noderef] 
>> __iomem *vaddr
>> drivers/gpu/drm/ast/ast_cursor.c:80:23: sparse: got void *
   drivers/gpu/drm/ast/ast_cursor.c:98:59: sparse: sparse: incorrect type in 
argument 2 (different address spaces) @@ expected void *vaddr @@ got 
void [noderef] __iomem * @@
   drivers/gpu/drm/ast/ast_cursor.c:98:59: sparse: expected void *vaddr
   drivers/gpu/drm/ast/ast_cursor.c:98:59: sparse: got void [noderef] 
__iomem *
>> drivers/gpu/drm/ast/ast_cursor.c:126:19: sparse: sparse: cast removes 
>> address space '__iomem' of expression
>> drivers/gpu/drm/ast/ast_cursor.c:126:16: sparse: sparse: incorrect type in 
>> assignment (different address spaces) @@ expected unsigned char 
>> [noderef] [usertype] __iomem *dstxor @@ got unsigned char [usertype] * @@
>> drivers/gpu/drm/ast/ast_cursor.c:126:16: sparse: expected unsigned char 
>> [noderef] [usertype] __iomem *dstxor
>> drivers/gpu/drm/ast/ast_cursor.c:126:16: sparse: got unsigned char 
>> [usertype] *

# 
https://github.com/0day-ci/linux/commit/7e1ff39fdb33febec4c542a6be21c28b352eb588
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Randy-Dunlap/drm-ast-fix-double-__iomem-sparse-warning/20200819-043022
git checkout 7e1ff39fdb33febec4c542a6be21c28b352eb588
vim +42 drivers/gpu/drm/ast/ast_cursor.c

2ccebf561e4a902 Thomas Zimmermann 2020-07-02   34  
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   35  static void 
ast_cursor_fini(struct ast_private *ast)
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   36  {
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   37   size_t i;
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   38   struct 
drm_gem_vram_object *gbo;
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   39  
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   40   for (i = 0; i < 
ARRAY_SIZE(ast->cursor.gbo); ++i) {
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   41   gbo = 
ast->cursor.gbo[i];
3e9d787371eaa84 Thomas Zimmermann 2020-07-02  @42   
drm_gem_vram_vunmap(gbo, ast->cursor.vaddr[i]);
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   43   
drm_gem_vram_unpin(gbo);
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   44   
drm_gem_vram_put(gbo);
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   45   }
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   46  }
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   47  
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   48  static void 
ast_cursor_release(struct drm_device *dev, void *ptr)
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   49  {
365c0e70da83a52 Thomas Zimmermann 2020-07-30   50   struct ast_private *ast 
= to_ast_private(dev);
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   51  
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   52   ast_cursor_fini(ast);
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   53  }
3e9d787371eaa84 Thomas Zimmermann 2020-07-02   54  
2ccebf561e4a902 Thomas Zimmermann 2020-07-02   55  /*
2ccebf561e4a902 Thomas Zimmermann 2020-07-02   56   * Allocate cursor BOs and 
pins them at the end of VRAM.
2ccebf561e4a902 Thomas Zimmermann 2020-07-02   57   */
beb2355eecbf67d Thoma

[drm-tip:drm-tip 5/10] drivers/gpu/drm/qxl/qxl_display.c:187:2: error: implicit declaration of function 'drm_drv_uses_atomic_modeset'

2020-08-17 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   d6cb40f33c1b213c96924b8fb68db613862fc2c5
commit: a012dc947ede8d940b6f79de96429af04a9360c4 [5/10] Merge remote-tracking 
branch 'drm-misc/drm-misc-next' into drm-tip
config: x86_64-randconfig-a016-20200817 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
de71b46a519db014ce906a39f8a0e1b235ef1568)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout a012dc947ede8d940b6f79de96429af04a9360c4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/qxl/qxl_display.c:187:2: error: implicit declaration of 
>> function 'drm_drv_uses_atomic_modeset' 
>> [-Werror,-Wimplicit-function-declaration]
   DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, 
DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
   ^
   include/drm/drm_modeset_lock.h:167:7: note: expanded from macro 
'DRM_MODESET_LOCK_ALL_BEGIN'
   if (!drm_drv_uses_atomic_modeset(dev))  \
^
>> drivers/gpu/drm/qxl/qxl_display.c:189:35: error: too few arguments provided 
>> to function-like macro invocation
   DRM_MODESET_LOCK_ALL_END(ctx, ret);
^
   include/drm/drm_modeset_lock.h:194:9: note: macro 'DRM_MODESET_LOCK_ALL_END' 
defined here
   #define DRM_MODESET_LOCK_ALL_END(dev, ctx, ret) \
   ^
>> drivers/gpu/drm/qxl/qxl_display.c:189:2: error: use of undeclared identifier 
>> 'DRM_MODESET_LOCK_ALL_END'
   DRM_MODESET_LOCK_ALL_END(ctx, ret);
   ^
>> drivers/gpu/drm/qxl/qxl_display.c:187:2: error: use of undeclared label 
>> 'modeset_lock_fail'
   DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, 
DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
   ^
   include/drm/drm_modeset_lock.h:173:8: note: expanded from macro 
'DRM_MODESET_LOCK_ALL_BEGIN'
   goto modeset_lock_fail;
^
   drivers/gpu/drm/qxl/qxl_display.c:411:2: error: implicit declaration of 
function 'drm_drv_uses_atomic_modeset' [-Werror,-Wimplicit-function-declaration]
   DRM_MODESET_LOCK_ALL_BEGIN(fb->dev, ctx, 
DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
   ^
   include/drm/drm_modeset_lock.h:167:7: note: expanded from macro 
'DRM_MODESET_LOCK_ALL_BEGIN'
   if (!drm_drv_uses_atomic_modeset(dev))  \
^
   drivers/gpu/drm/qxl/qxl_display.c:434:35: error: too few arguments provided 
to function-like macro invocation
   DRM_MODESET_LOCK_ALL_END(ctx, ret);
^
   include/drm/drm_modeset_lock.h:194:9: note: macro 'DRM_MODESET_LOCK_ALL_END' 
defined here
   #define DRM_MODESET_LOCK_ALL_END(dev, ctx, ret) \
   ^
   drivers/gpu/drm/qxl/qxl_display.c:434:2: error: use of undeclared identifier 
'DRM_MODESET_LOCK_ALL_END'
   DRM_MODESET_LOCK_ALL_END(ctx, ret);
   ^
   drivers/gpu/drm/qxl/qxl_display.c:411:2: error: use of undeclared label 
'modeset_lock_fail'
   DRM_MODESET_LOCK_ALL_BEGIN(fb->dev, ctx, 
DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
   ^
   include/drm/drm_modeset_lock.h:173:8: note: expanded from macro 
'DRM_MODESET_LOCK_ALL_BEGIN'
   goto modeset_lock_fail;
^
   8 errors generated.

git remote add drm-tip git://anongit.freedesktop.org/drm/drm-tip
git fetch --no-tags drm-tip drm-tip
git checkout a012dc947ede8d940b6f79de96429af04a9360c4
vim +/drm_drv_uses_atomic_modeset +187 drivers/gpu/drm/qxl/qxl_display.c

7dea0941f8806e Dave Airlie 2014-10-28  161  
f64122c1f6ade3 Dave Airlie 2013-02-25  162  void 
qxl_display_read_client_monitors_config(struct qxl_device *qdev)
f64122c1f6ade3 Dave Airlie 2013-02-25  163  {
cbdded7f8a633e Gabriel Krisman Bertazi 2017-01-26  164  struct 
drm_device *dev = >ddev;
bbaac1354cc984 Sidong Yang 2020-05-24  165  struct 
drm_modeset_acquire_ctx ctx;
bbaac1354cc984 Sidong Yang 2020-05-24  166  int status, 
retries, ret;
9e3b317839298a Christophe Fergeau  2016-11-08  167  
9062155de0dfdc Gerd Hoffmann   2017-03-01  168  for (retries = 
0; retries < 10; retries++) {
9e3b317839298a Christophe Fergeau  2016-11-08  169  status 
= qxl_display_copy_rom_client_monitors_config(qdev);
9062155de0dfdc Gerd Hoffmann  

Re: [PATCH 1/3] staging: androind: Replace BUG_ONs with WARN_ONs

2020-08-16 Thread kernel test robot
Hi Tomer,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v5.9-rc1 next-20200814]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 
86cfccb66937dd6cbf26ed619958b9e587e6a115
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/staging/android/ion/ion_page_pool.c: In function 
'ion_page_pool_remove':
>> drivers/staging/android/ion/ion_page_pool.c:50:15: error: expected ';' 
>> before ':' token
  50 |return NULL:
 |   ^
--
>> drivers/gpu/drm/vmwgfx/ttm_object.c:60: error: Cannot parse struct or union!
   drivers/gpu/drm/vmwgfx/ttm_object.c:98: warning: Function parameter or 
member 'mem_glob' not described in 'ttm_object_device'
   drivers/gpu/drm/vmwgfx/ttm_object.c:98: warning: Function parameter or 
member 'ops' not described in 'ttm_object_device'
   drivers/gpu/drm/vmwgfx/ttm_object.c:98: warning: Function parameter or 
member 'dmabuf_release' not described in 'ttm_object_device'
   drivers/gpu/drm/vmwgfx/ttm_object.c:98: warning: Function parameter or 
member 'dma_buf_size' not described in 'ttm_object_device'
   drivers/gpu/drm/vmwgfx/ttm_object.c:98: warning: Function parameter or 
member 'idr' not described in 'ttm_object_device'
   drivers/gpu/drm/vmwgfx/ttm_object.c:129: warning: Function parameter or 
member 'rcu_head' not described in 'ttm_ref_object'
   drivers/gpu/drm/vmwgfx/ttm_object.c:129: warning: Function parameter or 
member 'tfile' not described in 'ttm_ref_object'
   drivers/gpu/drm/vmwgfx/ttm_object.c:583: warning: Function parameter or 
member 'dmabuf' not described in 'get_dma_buf_unless_doomed'
   drivers/gpu/drm/vmwgfx/ttm_object.c:583: warning: Excess function parameter 
'dma_buf' description in 'get_dma_buf_unless_doomed'

# 
https://github.com/0day-ci/linux/commit/71d27df2e46fe435ada18ac3dae964d6b9a74664
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
git checkout 71d27df2e46fe435ada18ac3dae964d6b9a74664
vim +50 drivers/staging/android/ion/ion_page_pool.c

43  
44  static struct page *ion_page_pool_remove(struct ion_page_pool *pool, 
bool high)
45  {
46  struct page *page;
47  
48  if (high) {
49  if (WARN_ON(!pool->high_count))
  > 50  return NULL:
51  page = list_first_entry(>high_items, struct page, 
lru);
52  pool->high_count--;
53  } else {
54  if (WARN_ON(!pool->low_count))
55  return NULL;
56  page = list_first_entry(>low_items, struct page, 
lru);
57  pool->low_count--;
58  }
59  
60  list_del(>lru);
61  mod_node_page_state(page_pgdat(page), 
NR_KERNEL_MISC_RECLAIMABLE,
62  -(1 << pool->order));
63  return page;
64  }
65  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/3] staging: androind: Replace BUG_ONs with WARN_ONs

2020-08-16 Thread kernel test robot
Hi Tomer,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v5.8 next-20200814]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 
86cfccb66937dd6cbf26ed619958b9e587e6a115
config: x86_64-randconfig-a011-20200817 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
ab9fc8bae805c785066779e76e7846aabad5609e)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/staging/android/ion/ion_page_pool.c:50:15: error: expected ';' after 
>> return statement
   return NULL:
  ^
  ;
   1 error generated.

# 
https://github.com/0day-ci/linux/commit/71d27df2e46fe435ada18ac3dae964d6b9a74664
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
git checkout 71d27df2e46fe435ada18ac3dae964d6b9a74664
vim +50 drivers/staging/android/ion/ion_page_pool.c

43  
44  static struct page *ion_page_pool_remove(struct ion_page_pool *pool, 
bool high)
45  {
46  struct page *page;
47  
48  if (high) {
49  if (WARN_ON(!pool->high_count))
  > 50  return NULL:
51  page = list_first_entry(>high_items, struct page, 
lru);
52  pool->high_count--;
53  } else {
54  if (WARN_ON(!pool->low_count))
55  return NULL;
56  page = list_first_entry(>low_items, struct page, 
lru);
57  pool->low_count--;
58  }
59  
60  list_del(>lru);
61  mod_node_page_state(page_pgdat(page), 
NR_KERNEL_MISC_RECLAIMABLE,
62  -(1 << pool->order));
63  return page;
64  }
65  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/3] staging: androind: Replace BUG_ONs with WARN_ONs

2020-08-16 Thread kernel test robot
Hi Tomer,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v5.8 next-20200814]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 
86cfccb66937dd6cbf26ed619958b9e587e6a115
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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

All errors (new ones prefixed by >>):

   drivers/staging/android/ion/ion_page_pool.c: In function 
'ion_page_pool_remove':
>> drivers/staging/android/ion/ion_page_pool.c:50:15: error: expected ';' 
>> before ':' token
  50 |return NULL:
 |   ^

# 
https://github.com/0day-ci/linux/commit/71d27df2e46fe435ada18ac3dae964d6b9a74664
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
git checkout 71d27df2e46fe435ada18ac3dae964d6b9a74664
vim +50 drivers/staging/android/ion/ion_page_pool.c

43  
44  static struct page *ion_page_pool_remove(struct ion_page_pool *pool, 
bool high)
45  {
46  struct page *page;
47  
48  if (high) {
49  if (WARN_ON(!pool->high_count))
  > 50  return NULL:
51  page = list_first_entry(>high_items, struct page, 
lru);
52  pool->high_count--;
53  } else {
54  if (WARN_ON(!pool->low_count))
55  return NULL;
56  page = list_first_entry(>low_items, struct page, 
lru);
57  pool->low_count--;
58  }
59  
60  list_del(>lru);
61  mod_node_page_state(page_pgdat(page), 
NR_KERNEL_MISC_RECLAIMABLE,
62  -(1 << pool->order));
63  return page;
64  }
65  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH 14/24] drm/virtio: implement blob resources: probe for host visible region

2020-08-16 Thread kernel test robot
Hi Gurchetan,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master next-20200814]
[cannot apply to tegra-drm/drm/tegra/for-next drm/drm-next 
drm-exynos/exynos-drm-next v5.8]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Gurchetan-Singh/Blob-prerequisites-blob-resources/20200814-104250
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-m021-20200816 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

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

smatch warnings:
drivers/gpu/drm/virtio/virtgpu_kms.c:227 virtio_gpu_init() error: uninitialized 
symbol 'ret'.

# 
https://github.com/0day-ci/linux/commit/ded3d7b8bb13eb8599f8d410f184521214e13328
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Gurchetan-Singh/Blob-prerequisites-blob-resources/20200814-104250
git checkout ded3d7b8bb13eb8599f8d410f184521214e13328
vim +/ret +227 drivers/gpu/drm/virtio/virtgpu_kms.c

62fb7a5e10962a Gerd Hoffmann  2014-10-28   94  
d516e75c71c985 Ezequiel Garcia2019-01-08   95  int virtio_gpu_init(struct 
drm_device *dev)
dc5698e80cf724 Dave Airlie2013-09-09   96  {
dc5698e80cf724 Dave Airlie2013-09-09   97   static vq_callback_t 
*callbacks[] = {
dc5698e80cf724 Dave Airlie2013-09-09   98   
virtio_gpu_ctrl_ack, virtio_gpu_cursor_ack
dc5698e80cf724 Dave Airlie2013-09-09   99   };
f7ad26ff952b3c Stefan Hajnoczi2015-12-17  100   static const char * 
const names[] = { "control", "cursor" };
dc5698e80cf724 Dave Airlie2013-09-09  101  
dc5698e80cf724 Dave Airlie2013-09-09  102   struct 
virtio_gpu_device *vgdev;
dc5698e80cf724 Dave Airlie2013-09-09  103   /* this will expand 
later */
dc5698e80cf724 Dave Airlie2013-09-09  104   struct virtqueue 
*vqs[2];
62fb7a5e10962a Gerd Hoffmann  2014-10-28  105   u32 num_scanouts, 
num_capsets;
dc5698e80cf724 Dave Airlie2013-09-09  106   int ret;
dc5698e80cf724 Dave Airlie2013-09-09  107  
18e51064c42ca3 Daniel Vetter  2017-05-24  108   if 
(!virtio_has_feature(dev_to_virtio(dev->dev), VIRTIO_F_VERSION_1))
dc5698e80cf724 Dave Airlie2013-09-09  109   return -ENODEV;
dc5698e80cf724 Dave Airlie2013-09-09  110  
dc5698e80cf724 Dave Airlie2013-09-09  111   vgdev = 
kzalloc(sizeof(struct virtio_gpu_device), GFP_KERNEL);
dc5698e80cf724 Dave Airlie2013-09-09  112   if (!vgdev)
dc5698e80cf724 Dave Airlie2013-09-09  113   return -ENOMEM;
dc5698e80cf724 Dave Airlie2013-09-09  114  
dc5698e80cf724 Dave Airlie2013-09-09  115   vgdev->ddev = dev;
dc5698e80cf724 Dave Airlie2013-09-09  116   dev->dev_private = 
vgdev;
18e51064c42ca3 Daniel Vetter  2017-05-24  117   vgdev->vdev = 
dev_to_virtio(dev->dev);
dc5698e80cf724 Dave Airlie2013-09-09  118   vgdev->dev = dev->dev;
dc5698e80cf724 Dave Airlie2013-09-09  119  
dc5698e80cf724 Dave Airlie2013-09-09  120   
spin_lock_init(>display_info_lock);
f6e6d9eff0b4e9 David Stevens  2020-08-13  121   
spin_lock_init(>resource_export_lock);
1938d1ae32fefa Matthew Wilcox 2018-09-26  122   
ida_init(>ctx_id_ida);
1938d1ae32fefa Matthew Wilcox 2018-09-26  123   
ida_init(>resource_ida);
dc5698e80cf724 Dave Airlie2013-09-09  124   
init_waitqueue_head(>resp_wq);
dc5698e80cf724 Dave Airlie2013-09-09  125   
virtio_gpu_init_vq(>ctrlq, virtio_gpu_dequeue_ctrl_func);
dc5698e80cf724 Dave Airlie2013-09-09  126   
virtio_gpu_init_vq(>cursorq, virtio_gpu_dequeue_cursor_func);
dc5698e80cf724 Dave Airlie2013-09-09  127  
f54d1867005c33 Chris Wilson   2016-10-25  128   
vgdev->fence_drv.context = dma_fence_context_alloc(1);
dc5698e80cf724 Dave Airlie2013-09-09  129   
spin_lock_init(>fence_drv.lock);
dc5698e80cf724 Dave Airlie2013-09-09  130   
INIT_LIST_HEAD(>fence_drv.fences);
62fb7a5e10962a Gerd Hoffmann  2014-10-28  131   
INIT_LIST_HEAD(>cap_cache);
dc5698e80cf724 Dave Airlie2013-09-09  132   
INIT_WORK(>config_changed_work,
dc5698e80cf724 Dave Airlie2013-09-09  133 
virtio_gpu_config_changed_work_func);
dc5698e80cf724 Dave Airlie2013-09-09  134  
f0c6cef7e7174b Gerd Hoffmann  2019-08-30  135   
INIT_WORK(>obj_free_work,
f0c6cef7e7174b Gerd Hoffmann  2019-08-30  136 
virtio_gpu_array_put_free_work);
f0c6ce

[radeon-alex:amd-staging-drm-next 1403/1408] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:22: warning: variable 'Y_LessThanOne' set but not used

2020-08-16 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   2dec4fa1c0a2e25aaef50fba28fb7360b4e7dc43
commit: 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55 [1403/1408] drm/amd/pm: 
optimize the power related source code layout
config: alpha-randconfig-r005-20200816 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=alpha 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c: In function 
'arcturus_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:1845:6: warning: 
>> variable 'ret' set but not used [-Wunused-but-set-variable]
1845 |  int ret = 0;
 |  ^~~
   In file included from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:27:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 
'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
 195 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 
'debug_evictions' defined but not used [-Wunused-const-variable=]
 194 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 
'sched_policy' defined but not used [-Wunused-const-variable=]
 193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:27:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
  67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
 |^
--
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c: In function 
'navi10_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:1346:6: warning: 
>> variable 'ret' set but not used [-Wunused-but-set-variable]
1346 |  int ret = 0;
 |  ^~~
   In file included from 
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:29:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 
'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
 195 | static const bool no_system_mem_limit;
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 
'debug_evictions' defined but not used [-Wunused-const-variable=]
 194 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: wa

Re: [PATCH 18/24] drm/virtio: implement blob resources: hypercall interface

2020-08-14 Thread kernel test robot
Hi Gurchetan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master next-20200814]
[cannot apply to tegra-drm/drm/tegra/for-next drm/drm-next 
drm-exynos/exynos-drm-next v5.8]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Gurchetan-Singh/Blob-prerequisites-blob-resources/20200814-104250
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: parisc-randconfig-s031-20200813 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-168-g9554805c-dirty
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc 

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


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/virtio/virtgpu_vq.c:1210:23: sparse: sparse: incorrect type 
in assignment (different base types) @@ expected restricted __le64 
[usertype] offset @@ got unsigned long long [usertype] offset @@
   drivers/gpu/drm/virtio/virtgpu_vq.c:1210:23: sparse: expected restricted 
__le64 [usertype] offset
   drivers/gpu/drm/virtio/virtgpu_vq.c:1210:23: sparse: got unsigned long 
long [usertype] offset
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1286:35: sparse: sparse: incorrect type 
>> in assignment (different base types) @@ expected restricted __le32 @@
>>  got restricted __le64 [usertype] @@
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1286:35: sparse: expected restricted 
>> __le32
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1286:35: sparse: got restricted 
>> __le64 [usertype]

vim +1286 drivers/gpu/drm/virtio/virtgpu_vq.c

  1260  
  1261  void virtio_gpu_cmd_set_scanout_blob(struct virtio_gpu_device *vgdev,
  1262   uint32_t scanout_id,
  1263   struct virtio_gpu_object *bo,
  1264   struct drm_framebuffer *fb,
  1265   uint32_t width, uint32_t height,
  1266   uint32_t x, uint32_t y)
  1267  {
  1268  uint32_t i;
  1269  struct virtio_gpu_set_scanout_blob *cmd_p;
  1270  struct virtio_gpu_vbuffer *vbuf;
  1271  uint32_t format = 
virtio_gpu_translate_format(fb->format->format);
  1272  
  1273  cmd_p = virtio_gpu_alloc_cmd(vgdev, , sizeof(*cmd_p));
  1274  memset(cmd_p, 0, sizeof(*cmd_p));
  1275  
  1276  cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT_BLOB);
  1277  cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle);
  1278  cmd_p->scanout_id = cpu_to_le32(scanout_id);
  1279  
  1280  cmd_p->format = cpu_to_le32(format);
  1281  cmd_p->width  = cpu_to_le32(fb->width);
  1282  cmd_p->height = cpu_to_le32(fb->height);
  1283  
  1284  for (i = 0; i < 4; i++) {
  1285  cmd_p->strides[i] = cpu_to_le32(fb->pitches[i]);
> 1286  cmd_p->offsets[i] = cpu_to_le64(fb->offsets[i]);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH 17/24] drm/virtio: implement blob resources: implement vram object

2020-08-13 Thread kernel test robot
Hi Gurchetan,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master next-20200814]
[cannot apply to tegra-drm/drm/tegra/for-next drm/drm-next 
drm-exynos/exynos-drm-next v5.8]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Gurchetan-Singh/Blob-prerequisites-blob-resources/20200814-104250
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: parisc-randconfig-s031-20200813 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-168-g9554805c-dirty
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/virtio/virtgpu_vq.c:1210:23: sparse: sparse: incorrect type 
>> in assignment (different base types) @@ expected restricted __le64 
>> [usertype] offset @@ got unsigned long long [usertype] offset @@
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1210:23: sparse: expected restricted 
>> __le64 [usertype] offset
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1210:23: sparse: got unsigned long 
>> long [usertype] offset

vim +1210 drivers/gpu/drm/virtio/virtgpu_vq.c

  1188  
  1189  int virtio_gpu_cmd_map(struct virtio_gpu_device *vgdev,
  1190 struct virtio_gpu_object_array *objs, uint64_t 
offset)
  1191  {
  1192  struct virtio_gpu_resource_map_blob *cmd_p;
  1193  struct virtio_gpu_object *bo = 
gem_to_virtio_gpu_obj(objs->objs[0]);
  1194  struct virtio_gpu_vbuffer *vbuf;
  1195  struct virtio_gpu_resp_map_info *resp_buf;
  1196  
  1197  resp_buf = kzalloc(sizeof(*resp_buf), GFP_KERNEL);
  1198  if (!resp_buf) {
  1199  virtio_gpu_array_put_free(objs);
  1200  return -ENOMEM;
  1201  }
  1202  
  1203  cmd_p = virtio_gpu_alloc_cmd_resp(vgdev,
  1204  virtio_gpu_cmd_resource_map_cb, , sizeof(*cmd_p),
  1205  sizeof(struct virtio_gpu_resp_map_info), resp_buf);
  1206  memset(cmd_p, 0, sizeof(*cmd_p));
  1207  
  1208  cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB);
  1209  cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle);
> 1210  cmd_p->offset = offset;
  1211  vbuf->objs = objs;
  1212  
  1213  virtio_gpu_queue_ctrl_buffer(vgdev, vbuf);
  1214  return 0;
  1215  }
  1216  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/nouveau/gem: Use vmemdup_user() rather than duplicating its implementation

2020-08-13 Thread kernel test robot
Hi Markus,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip tegra-drm/drm/tegra/for-next 
linus/master drm/drm-next drm-exynos/exynos-drm-next v5.8 next-20200812]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Markus-Elfring/drm-nouveau-gem-Use-vmemdup_user-rather-than-duplicating-its-implementation/20200812-150757
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-c002-20200811 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

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


coccinelle warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/nouveau/nouveau_gem.c:589:9-16: WARNING: ERR_CAST can be 
>> used with mem

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


[PATCH] drm/nouveau/gem: fix err_cast.cocci warnings

2020-08-13 Thread kernel test robot
From: kernel test robot 

drivers/gpu/drm/nouveau/nouveau_gem.c:589:9-16: WARNING: ERR_CAST can be used 
with mem


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

Generated by: scripts/coccinelle/api/err_cast.cocci

CC: Markus Elfring 
Signed-off-by: kernel test robot 
---

url:
https://github.com/0day-ci/linux/commits/Markus-Elfring/drm-nouveau-gem-Use-vmemdup_user-rather-than-duplicating-its-implementation/20200812-150757
base:   git://anongit.freedesktop.org/drm-intel for-linux-next

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

--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -586,7 +586,7 @@ u_memcpya(uint64_t user, unsigned nmemb,
size *= nmemb;
mem = vmemdup_user(userptr, size);
if (IS_ERR(mem))
-   return ERR_PTR(PTR_ERR(mem));
+   return ERR_CAST(mem);
 
return mem;
 }
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH 1/6] drm: Add connector atomic_begin/atomic_flush

2020-08-12 Thread kernel test robot
Hi Algea,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on linus/master drm-exynos/exynos-drm-next v5.8 
next-20200812]
[cannot apply to rockchip/for-next drm-intel/for-linux-next 
tegra-drm/drm/tegra/for-next drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Algea-Cao/Support-change-dw-hdmi-output-color/20200812-164647
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: m68k-randconfig-s032-20200812 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-168-g9554805c-dirty
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/err.h:5,
from include/linux/dma-fence.h:16,
from drivers/gpu/drm/drm_atomic_helper.c:28:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of 
pointer with null pointer [-Wextra]
 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void 
*)PAGE_OFFSET && (void *)(kaddr) < high_memory)
 | ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
  78 | # define unlikely(x) __builtin_expect(!!(x), 0)
 |  ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
 143 |  BUG_ON(!virt_addr_valid(buf));
 |  ^~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 
'virt_addr_valid'
 143 |  BUG_ON(!virt_addr_valid(buf));
 |  ^~~
   drivers/gpu/drm/drm_atomic_helper.c: In function 
'drm_atomic_helper_commit_planes':
>> drivers/gpu/drm/drm_atomic_helper.c:2475:52: warning: variable 
>> 'new_connector_state' set but not used [-Wunused-but-set-variable]
2475 |  struct drm_connector_state *old_connector_state, 
*new_connector_state;
 |
^~~

vim +/new_connector_state +2475 drivers/gpu/drm/drm_atomic_helper.c

  2428  
  2429  /**
  2430   * drm_atomic_helper_commit_planes - commit plane state
  2431   * @dev: DRM device
  2432   * @old_state: atomic state object with old state structures
  2433   * @flags: flags for committing plane state
  2434   *
  2435   * This function commits the new plane state using the plane and atomic 
helper
  2436   * functions for planes and CRTCs. It assumes that the atomic state has 
already
  2437   * been pushed into the relevant object state pointers, since this step 
can no
  2438   * longer fail.
  2439   *
  2440   * It still requires the global state object @old_state to know which 
planes and
  2441   * crtcs need to be updated though.
  2442   *
  2443   * Note that this function does all plane updates across all CRTCs in 
one step.
  2444   * If the hardware can't support this approach look at
  2445   * drm_atomic_helper_commit_planes_on_crtc() instead.
  2446   *
  2447   * Plane parameters can be updated by applications while the associated 
CRTC is
  2448   * disabled. The DRM/KMS core will store the parameters in the plane 
state,
  2449   * which will be available to the driver when the CRTC is turned on. As 
a result
  2450   * most drivers don't need to be immediately notified of plane updates 
for a
  2451   * disabled CRTC.
  2452   *
  2453   * Unless otherwise needed, drivers are advised to set the ACTIVE_ONLY 
flag in
  2454   * @flags in order not to receive plane update notifications related to 
a
  2455   * disabled CRTC. This avoids the need to manually ignore plane updates 
in
  2456   * driver code when the driver and/or hardware can't or just don't need 
to deal
  2457   * with updates on disabled CRTCs, for example when supporting runtime 
PM.
  2458   *
  2459   * Drivers may set the NO_DISABLE_AFTER_MODESET flag in @flags if the 
relevant
  2460   * display controllers require to disable a CRTC's planes when the CRTC 
is
  2461   * disabled. This function would skip the 
_plane_helper_funcs.atomic_disable
  2462   * call for a plane if the CRTC of the old plane state needs a 
modesetting
  2463   * operation. Of course, the drivers need to disable the planes in 
their CRTC
  

[PATCH] drm/i915/gt: fix itnull.cocci warnings

2020-08-11 Thread kernel test robot
From: kernel test robot 

drivers/gpu/drm/i915/gt/gen6_ppgtt.c:263:6-8: ERROR: iterator variable bound on 
line 262 cannot be NULL
drivers/gpu/drm/i915/gt/gen6_ppgtt.c:322:7-9: ERROR: iterator variable bound on 
line 321 cannot be NULL

 Many iterators have the property that the first argument is always bound
 to a real list element, never NULL.

Semantic patch information:
 False positives arise for some iterators that do not have this property,
 or in cases when the loop cursor is reassigned.  The latter should only
 happen when the matched code is on the way to a loop exit (break, goto,
 or return).

Generated by: scripts/coccinelle/iterators/itnull.cocci

Fixes: 1d567ec61933 ("drm/i915/gt: Switch to object allocations for page 
directories")
Signed-off-by: kernel test robot 
---

tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   06b108297b5cc24418e91c1103587ac7ca6fd03f
commit: 1d567ec619333e54283dcd02780ab9a71ef86e44 [27/28] drm/i915/gt: Switch to 
object allocations for page directories

Please take the patch only if it's a positive warning. Thanks!

 gen6_ppgtt.c |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- a/drivers/gpu/drm/i915/gt/gen6_ppgtt.c
+++ b/drivers/gpu/drm/i915/gt/gen6_ppgtt.c
@@ -260,8 +260,9 @@ static void gen6_ppgtt_free_pd(struct ge
u32 pde;
 
gen6_for_all_pdes(pt, pd, pde)
-   if (pt)
-   free_px(>base.vm, pt);
+   {
+   free_px(>base.vm, pt);
+   }
 }
 
 static void gen6_ppgtt_cleanup(struct i915_address_space *vm)
@@ -319,7 +320,7 @@ static void pd_vma_unbind(struct i915_ad
 
/* Free all no longer used page tables */
gen6_for_all_pdes(pt, ppgtt->base.pd, pde) {
-   if (!pt || atomic_read(>used))
+   if (atomic_read(>used))
continue;
 
free_px(>base.vm, pt);
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[drm-intel:drm-intel-next-queued 27/28] drivers/gpu/drm/i915/gt/gen6_ppgtt.c:263:6-8: ERROR: iterator variable bound on line 262 cannot be NULL

2020-08-11 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   06b108297b5cc24418e91c1103587ac7ca6fd03f
commit: 1d567ec619333e54283dcd02780ab9a71ef86e44 [27/28] drm/i915/gt: Switch to 
object allocations for page directories
config: i386-randconfig-c001-20200811 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

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


coccinelle warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/i915/gt/gen6_ppgtt.c:263:6-8: ERROR: iterator variable bound 
>> on line 262 cannot be NULL
   drivers/gpu/drm/i915/gt/gen6_ppgtt.c:322:7-9: ERROR: iterator variable bound 
on line 321 cannot be NULL

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-10 Thread kernel test robot
From: kernel test robot 

drivers/video/fbdev/core/fbcon.c:3509:8-16: WARNING: use scnprintf or sprintf
drivers/video/fbdev/core/fbcon.c:3484:8-16: WARNING: use scnprintf or sprintf


 From Documentation/filesystems/sysfs.txt:
  show() must not use snprintf() when formatting the value to be
  returned to user space. If you can guarantee that an overflow
  will never happen you can use sprintf() otherwise you must use
  scnprintf().

Generated by: scripts/coccinelle/api/device_attr_show.cocci

Fixes: abfc19ff202d ("coccinelle: api: add device_attr_show script")
CC: Denis Efremov 
Signed-off-by: kernel test robot 
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   fc80c51fd4b23ec007e88d4c688f2cac1b8648e7
commit: abfc19ff202d287742483e15fd478ddd6ada2187 coccinelle: api: add 
device_attr_show script

Please take the patch only if it's a positive warning. Thanks!

 fbcon.c |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -3481,7 +3481,7 @@ static ssize_t show_rotate(struct device
rotate = fbcon_get_rotate(info);
 err:
console_unlock();
-   return snprintf(buf, PAGE_SIZE, "%d\n", rotate);
+   return scnprintf(buf, PAGE_SIZE, "%d\n", rotate);
 }
 
 static ssize_t show_cursor_blink(struct device *device,
@@ -3506,7 +3506,7 @@ static ssize_t show_cursor_blink(struct
blink = (ops->flags & FBCON_FLAGS_CURSOR_TIMER) ? 1 : 0;
 err:
console_unlock();
-   return snprintf(buf, PAGE_SIZE, "%d\n", blink);
+   return scnprintf(buf, PAGE_SIZE, "%d\n", blink);
 }
 
 static ssize_t store_cursor_blink(struct device *device,
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[drm-tip:drm-tip 2191/2285] include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns

2020-08-09 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   147f0d3f7239756494adef31518f87e60a970878
commit: 46bca88bbdd3046db31b8b7e053a909ae79e285b [2191/2285] drm/ttm/amdgpu: 
consolidate ttm reserve paths
config: i386-randconfig-m021-20200809 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

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

New smatch warnings:
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.
include/drm/ttm/ttm_bo_driver.h:644 ttm_bo_reserve() warn: inconsistent returns 
'*bo->base.resv'.

Old smatch warnings:
drivers/gpu/drm/ttm/ttm_bo_vm.c:227 ttm_bo_vm_insert_huge() warn: was '== 2048' 
instead of '='
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:737 amdgpu_gem_op_ioctl() warn: should 
'robj->tbo.mem.page_alignment << 12' be a 64 bit type?
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:546 amdgpu_dma_buf_move_notify() 
error: double unlocked '*resv' (orig line 525)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:166 amdgpu_gfx_parse_disable_cu() warn: 
potential spectre issue 'mask' [w]
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:5062 gfx_v8_0_pre_soft_reset() warn: 
inconsistent indenting
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1013 
amdgpu_dm_fini() error: we previously assumed 'adev->dm.dc' could be null (see 
line 1010)
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1024 
amdgpu_dm_fini() warn: variable dereferenced before check 'adev->dm.dc' (see 
line 1013)
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4545 
create_stream_for_sink() error: we previously assumed 'aconnector->dc_sink' 
could be null (see line 4436)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:266 amdgpu_bo_create_reserved() 
error: we previously assumed '*bo_ptr' could be null (see line 256)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:645 amdgpu_bo_create_shadow() error: 
we previously assumed 'bo->shadow' could be null (see line 632)
drivers/gpu/drm/nouveau/nouveau_bo.c:430 nouveau_bo_pin() warn: should '1 << 
bo->mem.mem_type' be a 64 bit type?
drivers/gpu/drm/nouveau/nouveau_bo.c:884 nv50_bo_move_m2mf() warn: should 
'new_reg->num_pages << 12' be a 64 bit type?
drivers/gpu/drm/nouveau/nouveau_bo.c:1260 nouveau_bo_move_ntfy() warn: should 
'new_reg->start << 12' be a 64 bit type?
drivers/gpu/drm/nouveau/nouveau_bo.c:1274 nouveau_bo_vm_bind() warn: should 
'new_reg->start << 12' be a 64 bit type?
drivers/gpu/drm/nouveau/nouveau_gem.c:246 nouveau_gem_info() warn: should 
'nvbo->bo.mem.num_pages << 12' be a 64 bit type?

vim +644 include/drm/ttm/ttm_bo_driver.h

eba67093f53532 Thomas Hellstrom  2010-11-11  600  
3482032457f50c Maarten Lankhorst 2013-06-27  601  /**
46bca88bbdd304 Dave Airlie   2020-08-04  602   * ttm_bo_reserve:
3482032457f50c Maarten Lankhorst 2013-06-27  603   *
3482032457f50c Maarten Lankhorst 2013-06-27  604   * @bo: A pointer to a struct 
ttm_buffer_object.
3482032457f50c Maarten Lankhorst 2013-06-27  605   * @interruptible: Sleep 
interruptible if waiting.
3482032457f50c Maarten Lankhorst 2013-06-27  606   * @no_wait: Don't sleep 
while trying to reserve, rather return -EBUSY.
dfd5e50ea43ca4 Christian K├Ânig   2016-04-06  607   * @ticket: ticket used to 
acquire the ww_mutex.
3482032457f50c Maarten Lankhorst 2013-06-27  608   *
46bca88bbdd304 Dave Airlie   2020-08-04  609   * Locks a buffer object for 
validation. (Or prevents other processes from
46bca88bbdd304 Dave Airlie   2020-08-04  610   * locking it for 
validation), while taking a number of measures to prevent
46bca88bbdd304 Dave Airlie   2020-08-04  611   * deadlocks.
3482032457f50c Maarten Lankhorst 2013-06-27  612   *
3482032457f50c Maarten Lankhorst 2013-06-27  613   * Returns:
3482032457f50c Maarten Lankhorst 2013-06-27  614   * -EDEADLK: The reservation 
may cause a deadlock.
3482032457f50c Maarten Lankhorst 2013-06-27  615   * Release all buffer 
reservations, wait for @bo to become unreserved and
46bca88bbdd304 Dave Airlie   2020-08-04  616   * try again.
3482032457f50c Maarten Lankhor

[drm-tip:drm-tip 2214/2285] drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:646:2: error: implicit declaration of function 'ttm_bo_man_fini'

2020-08-09 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   147f0d3f7239756494adef31518f87e60a970878
commit: e0830704de7c06c72b1f83a3f67cb160b853812a [2214/2285] drm/vmwgfx: 
takedown vram manager
config: x86_64-randconfig-r004-20200810 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
3a34228bff6fdf45b50cb57cf5fb85d659eeb672)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout e0830704de7c06c72b1f83a3f67cb160b853812a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:646:2: error: implicit declaration of 
>> function 'ttm_bo_man_fini' [-Werror,-Wimplicit-function-declaration]
   ttm_bo_man_fini(_priv->bdev,
   ^
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:646:2: note: did you mean 
'ttm_range_man_fini'?
   include/drm/ttm/ttm_bo_driver.h:869:5: note: 'ttm_range_man_fini' declared 
here
   int ttm_range_man_fini(struct ttm_bo_device *bdev,
   ^
   1 error generated.

vim +/ttm_bo_man_fini +646 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

   640  
   641  static void vmw_vram_manager_fini(struct vmw_private *dev_priv)
   642  {
   643  #ifdef CONFIG_TRANSPARENT_HUGEPAGE
   644  vmw_thp_fini(dev_priv);
   645  #else
 > 646  ttm_bo_man_fini(_priv->bdev,
   647  _priv->bdev.man[TTM_PL_VRAM]);
   648  #endif
   649  }
   650  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/4] drm/ttm: drop size from resource manager base class.

2020-08-07 Thread kernel test robot
Hi Dave,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next 
linus/master drm/drm-next drm-exynos/exynos-drm-next v5.8 next-20200806]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Dave-Airlie/drm-amdgpu-ttm-move-vram-gtt-mgr-allocations-to-mman/20200807-083526
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a004-20200805 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
aa57cabae2fc5abc08ab3e17b45f2890fc7c9e42)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:474:5: warning: format specifies 
>> type 'unsigned long long' but the argument has type 'unsigned long' 
>> [-Wformat]
 mgr_size << PAGE_SHIFT);
 ^~
   include/drm/drm_print.h:490:32: note: expanded from macro 'DRM_DEBUG'
   __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
  ~~~^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:493:2: warning: Please enable 
CONFIG_MTRR and CONFIG_X86_PAT for better performancethanks to 
write-combining [-W#warnings]
   #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance 
\
^
   2 warnings generated.

vim +474 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

   440  
   441  /* Validate bo size is bit bigger then the request domain */
   442  static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
   443unsigned long size, u32 
domain)
   444  {
   445  unsigned long mgr_size = 0;
   446  /*
   447   * If GTT is part of requested domains the check must succeed to
   448   * allow fall back to GTT
   449   */
   450  if (domain & AMDGPU_GEM_DOMAIN_GTT) {
   451  mgr_size = 
to_gtt_mgr(ttm_manager_type(>mman.bdev, TTM_PL_TT))->size;
   452  
   453  if (size < (mgr_size << PAGE_SHIFT))
   454  return true;
   455  else
   456  goto fail;
   457  }
   458  
   459  if (domain & AMDGPU_GEM_DOMAIN_VRAM) {
   460  mgr_size = 
to_vram_mgr(ttm_manager_type(>mman.bdev, TTM_PL_TT))->size;
   461  
   462  if (size < (mgr_size << PAGE_SHIFT))
   463  return true;
   464  else
   465  goto fail;
   466  }
   467  
   468  
   469  /* TODO add more domains checks, such as AMDGPU_GEM_DOMAIN_CPU 
*/
   470  return true;
   471  
   472  fail:
   473  DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
 > 474mgr_size << PAGE_SHIFT);
   475  return false;
   476  }
   477  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/4] drm/ttm: drop size from resource manager base class.

2020-08-06 Thread kernel test robot
Hi Dave,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next 
linus/master drm/drm-next drm-exynos/exynos-drm-next v5.8 next-20200806]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Dave-Airlie/drm-amdgpu-ttm-move-vram-gtt-mgr-allocations-to-mman/20200807-083526
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: arc-randconfig-r005-20200805 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:29,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:43,
from drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:38:
   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c: In function 
'amdgpu_bo_validate_size':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:473:12: warning: format '%llu' 
>> expects argument of type 'long long unsigned int', but argument 4 has type 
>> 'long unsigned int' [-Wformat=]
 473 |  DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
 |^~
   include/drm/drm_print.h:490:25: note: in definition of macro 'DRM_DEBUG'
 490 |  __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
 | ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:473:54: note: format string is 
defined here
 473 |  DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
 |   ~~~^
 |  |
 |  long long 
unsigned int
 |   %lu
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:38:
   At top level:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:192:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 192 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:191:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 191 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:38:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 
'dc_fixpt_zero' defined but not used [-Wunused-const-va

Re: [PATCH 3/4] drm/ttm: drop size from resource manager base class.

2020-08-06 Thread kernel test robot
Hi Dave,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next 
linus/master drm/drm-next drm-exynos/exynos-drm-next v5.8 next-20200806]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Dave-Airlie/drm-amdgpu-ttm-move-vram-gtt-mgr-allocations-to-mman/20200807-083526
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a015-20200806 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
aa57cabae2fc5abc08ab3e17b45f2890fc7c9e42)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/radeon/radeon_ttm.c:754:5: warning: no previous prototype 
for function 'radeon_ttm_init' [-Wmissing-prototypes]
   int radeon_ttm_init(struct radeon_device *rdev)
   ^
   drivers/gpu/drm/radeon/radeon_ttm.c:754:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int radeon_ttm_init(struct radeon_device *rdev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_ttm.c:812:6: warning: no previous prototype 
for function 'radeon_ttm_fini' [-Wmissing-prototypes]
   void radeon_ttm_fini(struct radeon_device *rdev)
^
   drivers/gpu/drm/radeon/radeon_ttm.c:812:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   void radeon_ttm_fini(struct radeon_device *rdev)
   ^
   static 
>> drivers/gpu/drm/radeon/radeon_ttm.c:845:28: warning: variable 'man' is 
>> uninitialized when used here [-Wuninitialized]
   ttm_range_man_adjust_size(man, size >> PAGE_SHIFT);
 ^~~
   drivers/gpu/drm/radeon/radeon_ttm.c:839:34: note: initialize the variable 
'man' to silence this warning
   struct ttm_resource_manager *man;
   ^
= NULL
   drivers/gpu/drm/radeon/radeon_ttm.c:872:5: warning: no previous prototype 
for function 'radeon_mmap' [-Wmissing-prototypes]
   int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
   ^
   drivers/gpu/drm/radeon/radeon_ttm.c:872:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
   ^
   static 
   4 warnings generated.

vim +/man +845 drivers/gpu/drm/radeon/radeon_ttm.c

   811  
 > 812  void radeon_ttm_fini(struct radeon_device *rdev)
   813  {
   814  int r;
   815  
   816  if (!rdev->mman.initialized)
   817  return;
   818  radeon_ttm_debugfs_fini(rdev);
   819  if (rdev->stolen_vga_memory) {
   820  r = radeon_bo_reserve(rdev->stolen_vga_memory, false);
   821  if (r == 0) {
   822  radeon_bo_unpin(rdev->stolen_vga_memory);
   823  radeon_bo_unreserve(rdev->stolen_vga_memory);
   824  }
   825  radeon_bo_unref(>stolen_vga_memory);
   826  }
   827  ttm_range_man_fini(>mman.bdev, TTM_PL_VRAM);
   828  ttm_range_man_fini(>mman.bdev, TTM_PL_TT);
   829  ttm_bo_device_release(>mman.bdev);
   830  radeon_gart_fini(rdev);
   831  rdev->mman.initialized = false;
   832  DRM_INFO("radeon: ttm finalized\n");
   833  }
   834  
   835  /* this should only be called at bootup or when userspace
   836   * isn't running */
   837  void radeon_ttm_set_active_vram_size(struct radeon_device *rdev, u64 
size)
   838  {
   839  struct ttm_resource_manager *man;
   840  
   841  if (!rdev->mman.initialized)
   842  return;
   843  
   844  /* this just adjusts TTM size idea, which sets lpfn to the 
correct value */
 > 845  ttm_range_man_adjust_size(man, size >> PAGE_SHIFT);
   846  }
   847  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v8 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge

2020-08-06 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v5.8 next-20200806]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/dt-bindings-drm-bridge-Document-Cadence-MHDP-bridge-bindings/20200807-011620
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: mips-randconfig-r005-20200807 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=mips 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/gpu/drm/bridge/cdns-mhdp-core.c:14:
   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 
'cdns_mhdp_link_training_init':
   include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 
is always false [-Wtype-limits]
  26 |   __builtin_constant_p((l) > (h)), (l) > (h), 0)))
 |^
   include/linux/build_bug.h:16:62: note: in definition of macro 
'BUILD_BUG_ON_ZERO'
  16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); 
})))
 |  ^
   include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
  39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.h:116:35: note: in expansion of macro 
'GENMASK'
 116 | #define CDNS_DP_LANE_EN_LANES(x)  GENMASK((x) - 1, 0)
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:892:8: note: in expansion of macro 
'CDNS_DP_LANE_EN_LANES'
 892 |CDNS_DP_LANE_EN_LANES(mhdp->link.num_lanes));
 |^
   include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 
is always false [-Wtype-limits]
  26 |   __builtin_constant_p((l) > (h)), (l) > (h), 0)))
 |^
   include/linux/build_bug.h:16:62: note: in definition of macro 
'BUILD_BUG_ON_ZERO'
  16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); 
})))
 |  ^
   include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
  39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.h:116:35: note: in expansion of macro 
'GENMASK'
 116 | #define CDNS_DP_LANE_EN_LANES(x)  GENMASK((x) - 1, 0)
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:892:8: note: in expansion of macro 
'CDNS_DP_LANE_EN_LANES'
 892 |CDNS_DP_LANE_EN_LANES(mhdp->link.num_lanes));
 |^
   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 
'cdns_mhdp_fill_host_caps':
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:1382:2: error: implicit declaration 
>> of function 'phy_get_attrs' [-Werror=implicit-function-declaration]
1382 |  phy_get_attrs(mhdp->phy, );
 |  ^
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:1388:19: error: 'struct phy_attrs' 
>> has no member named 'max_link_rate'
1388 |  link_rate = attrs.max_link_rate;
 |   ^
   cc1: some warnings being treated as errors

vim +/phy_get_attrs +1382 drivers/gpu/drm/bridge/cdns-mhdp-core.c

  1375  
  1376  static void cdns_mhdp_fill_host_caps(struct cdns_mhdp_device *mhdp)
  1377  {
  1378  unsigned int link_rate;
  1379  struct phy_attrs attrs;
  1380  
  1381  /* Get source capabilities based on PHY attributes */
> 1382  phy_get_attrs(mhdp->phy, );
  1383  
  1384  mhdp->host.lanes_cnt = attrs.bus_width;
  1385  if (!mhdp->host.lanes_cnt)
  1386  mhdp->host.lanes_cnt = 4;
  1387  
> 1388  link_rate = attrs.max_link_rate;
  1389  if (!link_rate)
  1390  link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1);
  1391  else
  1392  /* PHY uses Mb/s, DRM uses tens of kb/s. */
  1393  

[drm-tip:drm-tip 6/10] drivers/gpu/drm/nouveau/nouveau_bo.c:750:25: error: incompatible function pointer types initializing 'int nouveau_channel struct ttm_buffer_object struct ttm_resource struct ttm

2020-08-06 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   f39035176cb854c6d620af7614a60a485ee26818
commit: ad11f45fae37631b0482ebf6543bdd013d3f9336 [6/10] Merge remote-tracking 
branch 'drm-misc/drm-misc-next' into drm-tip
config: x86_64-randconfig-a015-20200806 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
076b120bebfd727b502208601012a44ab2e1028e)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout ad11f45fae37631b0482ebf6543bdd013d3f9336
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

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

   In file included from drivers/gpu/drm/nouveau/nouveau_drm.c:52:
   In file included from drivers/gpu/drm/nouveau/nouveau_dma.h:30:
>> drivers/gpu/drm/nouveau/nouveau_bo.h:142:16: warning: declaration of 'struct 
>> ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:146:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:149:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:152:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:156:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:159:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:163:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   7 warnings generated.
--
   In file included from drivers/gpu/drm/nouveau/nouveau_bo.c:37:
>> drivers/gpu/drm/nouveau/nouveau_bo.h:142:16: warning: declaration of 'struct 
>> ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:146:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:149:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:152:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:156:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:159:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
   drivers/gpu/drm/nouveau/nouveau_bo.h:163:16: warning: declaration of 'struct 
ttm_mem_reg' will not be visible outside of this function [-Wvisibility]
 struct ttm_mem_reg *, struct ttm_mem_reg *);
^
>> drivers/gpu/drm/nouveau/nouveau_bo.c:750:25: error: incompatible function

[drm-tip:drm-tip 6/10] drivers/gpu/drm/nouveau/nouveau_bo.c:750:25: error: initialization of 'int nouveau_channel struct ttm_buffer_object struct ttm_resource struct ttm_resource from incompatible poi

2020-08-06 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   f39035176cb854c6d620af7614a60a485ee26818
commit: ad11f45fae37631b0482ebf6543bdd013d3f9336 [6/10] Merge remote-tracking 
branch 'drm-misc/drm-misc-next' into drm-tip
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ad11f45fae37631b0482ebf6543bdd013d3f9336
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=mips 

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

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

   In file included from drivers/gpu/drm/nouveau/dispnv50/sor907d.c:29:
>> drivers/gpu/drm/nouveau/nouveau_bo.h:142:16: warning: 'struct ttm_mem_reg' 
>> declared inside parameter list will not be visible outside of this 
>> definition or declaration
 142 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:146:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 146 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:149:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 149 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:152:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 152 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:156:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 156 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:159:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 159 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:163:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 163 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
--
   In file included from drivers/gpu/drm/nouveau/nouveau_bo.c:37:
>> drivers/gpu/drm/nouveau/nouveau_bo.h:142:16: warning: 'struct ttm_mem_reg' 
>> declared inside parameter list will not be visible outside of this 
>> definition or declaration
 142 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:146:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 146 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:149:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 149 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:152:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 152 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:156:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 156 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:159:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 159 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.h:163:16: warning: 'struct ttm_mem_reg' 
declared inside parameter list will not be visible outside of this definition 
or declaration
 163 | struct ttm_mem_reg *, struct ttm_mem_reg *);
 |^~~
   drivers/gpu/drm/nouveau/nouveau_bo.c: In function 'nouveau_bo_move_init':
>> drivers/gpu/drm/nouveau/no

[radeon-alex:amd-staging-drm-next 628/1313] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:268:17: sparse: sparse: cast removes address space '' of expression

2020-08-05 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   e1d114658d448b5da11c7925beda241e8b8dd321
commit: 10be8791067fc672e44fcaa7afb886390909a0c0 [628/1313] drm/amdkfd: Support 
Sienna_Cichlid KFD v4
config: x86_64-randconfig-s021-20200805 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-117-g8c7aee71-dirty
git checkout 10be8791067fc672e44fcaa7afb886390909a0c0
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:268:17: sparse: sparse: 
>> cast removes address space '' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:270:17: sparse: sparse: 
cast removes address space '' of expression

vim +268 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c

   192  
   193  static int hqd_load_v10_3(struct kgd_dev *kgd, void *mqd, uint32_t 
pipe_id,
   194  uint32_t queue_id, uint32_t __user *wptr,
   195  uint32_t wptr_shift, uint32_t wptr_mask,
   196  struct mm_struct *mm)
   197  {
   198  struct amdgpu_device *adev = get_amdgpu_device(kgd);
   199  struct v10_compute_mqd *m;
   200  uint32_t *mqd_hqd;
   201  uint32_t reg, hqd_base, data;
   202  
   203  m = get_mqd(mqd);
   204  
   205  pr_debug("Load hqd of pipe %d queue %d\n", pipe_id, queue_id);
   206  acquire_queue(kgd, pipe_id, queue_id);
   207  
   208  /* HIQ is set during driver init period with vmid set to 0*/
   209  if (m->cp_hqd_vmid == 0) {
   210  uint32_t value, mec, pipe;
   211  
   212  mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1;
   213  pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec);
   214  
   215  pr_debug("kfd: set HIQ, mec:%d, pipe:%d, queue:%d.\n",
   216  mec, pipe, queue_id);
   217  value = RREG32(SOC15_REG_OFFSET(GC, 0, 
mmRLC_CP_SCHEDULERS));
   218  value = REG_SET_FIELD(value, RLC_CP_SCHEDULERS, 
scheduler1,
   219  ((mec << 5) | (pipe << 3) | queue_id | 0x80));
   220  WREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_CP_SCHEDULERS), 
value);
   221  }
   222  
   223  /* HQD registers extend from CP_MQD_BASE_ADDR to 
CP_HQD_EOP_WPTR_MEM. */
   224  mqd_hqd = >cp_mqd_base_addr_lo;
   225  hqd_base = SOC15_REG_OFFSET(GC, 0, mmCP_MQD_BASE_ADDR);
   226  
   227  for (reg = hqd_base;
   228   reg <= SOC15_REG_OFFSET(GC, 0, mmCP_HQD_PQ_WPTR_HI); reg++)
   229  WREG32(reg, mqd_hqd[reg - hqd_base]);
   230  
   231  
   232  /* Activate doorbell logic before triggering WPTR poll. */
   233  data = REG_SET_FIELD(m->cp_hqd_pq_doorbell_control,
   234   CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 
1);
   235  WREG32(SOC15_REG_OFFSET(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL), 
data);
   236  
   237  if (wptr) {
   238  /* Don't read wptr with get_user because the user
   239   * context may not be accessible (if this function
   240   * runs in a work queue). Instead trigger a one-shot
   241   * polling read from memory in the CP. This assumes
   242   * that wptr is GPU-accessible in the queue's VMID via
   243   * ATC or SVM. WPTR==RPTR before starting the poll so
   244   * the CP starts fetching new commands from the right
   245   * place.
   246   *
   247   * Guessing a 64-bit WPTR from a 32-bit RPTR is a bit
   248   * tricky. Assume that the queue didn't overflow. The
   249   * number of valid bits in the 32-bit RPTR depends on
   250   * the queue size. The remaining bits are taken from
   251   * the saved 64-bit WPTR. If the WPTR wrapped, add the
   252   * queue size.
   253   */
   254  uint32_t queue_size =
   255  2 << REG_GET_FIELD(m->cp_hqd_pq_control,
   256 CP_HQD_PQ_CONTROL, 
QUEUE_SIZE);
   257  uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size 
- 1);
   258  
   259  if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < 
guessed_wptr)
   260  guessed_wptr += queue_size;
   261  g

[radeon-alex:amd-staging-drm-next 468/1313] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-05 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   e1d114658d448b5da11c7925beda241e8b8dd321
commit: 3a2b9affb4c366dac8a088156c644cf329701816 [468/1313] drm/amdkfd: Track 
SDMA utilization per process
config: x86_64-randconfig-s021-20200805 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-117-g8c7aee71-dirty
git checkout 3a2b9affb4c366dac8a088156c644cf329701816
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:140:6: 
sparse: sparse: symbol 'increment_queue_count' was not declared. Should it be 
static?
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:148:6: 
sparse: sparse: symbol 'decrement_queue_count' was not declared. Should it be 
static?
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: 
>> sparse: sparse: incorrect type in argument 1 (different address spaces) @@   
>>   expected void const volatile [noderef]  * @@ got unsigned long 
>> long [usertype] * @@
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: 
>> sparse: expected void const volatile [noderef]  *
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: 
sparse: got unsigned long long [usertype] *

vim +172 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c

   155  
   156  int read_sdma_queue_counter(struct queue *q, uint64_t *val)
   157  {
   158  int ret;
   159  uint64_t tmp = 0;
   160  
   161  if (!q || !val)
   162  return -EINVAL;
   163  /*
   164   * SDMA activity counter is stored at queue's RPTR + 0x8 
location.
   165   */
   166  if (!access_ok((const void __user 
*)((uint64_t)q->properties.read_ptr +
   167  sizeof(uint64_t)), 
sizeof(uint64_t))) {
   168  pr_err("Can't access sdma queue activity counter\n");
   169  return -EFAULT;
   170  }
   171  
 > 172  ret = get_user(tmp, (uint64_t 
 > *)((uint64_t)(q->properties.read_ptr) +
   173  sizeof(uint64_t)));
   174  if (!ret) {
   175  *val = tmp;
   176  }
   177  
   178  return ret;
   179  }
   180  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 6/6] drm/xen-front: Add support for EDID based configuration

2020-08-05 Thread kernel test robot
Hi Oleksandr,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on drm-intel/for-linux-next 
tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.8 next-20200804]
[cannot apply to xen-tip/linux-next drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Oleksandr-Andrushchenko/Fixes-and-improvements-for-Xen-pvdrm/20200731-205350
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
compiler: aarch64-linux-gcc (GCC) 9.3.0

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


cppcheck warnings: (new ones prefixed by >>)

>> drivers/irqchip/irq-gic.c:161:24: warning: Local variable gic_data shadows 
>> outer variable [shadowVar]
struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d);
  ^
   drivers/irqchip/irq-gic.c:123:29: note: Shadowed declaration
   static struct gic_chip_data gic_data[CONFIG_ARM_GIC_MAX_NR] __read_mostly;
   ^
   drivers/irqchip/irq-gic.c:161:24: note: Shadow variable
struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d);
  ^
   drivers/irqchip/irq-gic.c:167:24: warning: Local variable gic_data shadows 
outer variable [shadowVar]
struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d);
  ^
   drivers/irqchip/irq-gic.c:123:29: note: Shadowed declaration
   static struct gic_chip_data gic_data[CONFIG_ARM_GIC_MAX_NR] __read_mostly;
   ^
   drivers/irqchip/irq-gic.c:167:24: note: Shadow variable
struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d);
  ^
>> drivers/irqchip/irq-gic.c:400:28: warning: Local variable gic_irq shadows 
>> outer function [shadowFunction]
unsigned int cascade_irq, gic_irq;
  ^
   drivers/irqchip/irq-gic.c:171:28: note: Shadowed declaration
   static inline unsigned int gic_irq(struct irq_data *d)
  ^
   drivers/irqchip/irq-gic.c:400:28: note: Shadow variable
unsigned int cascade_irq, gic_irq;
  ^
>> drivers/irqchip/irq-gic.c:1507:14: warning: Local variable gic_cpu_base 
>> shadows outer function [shadowFunction]
phys_addr_t gic_cpu_base;
^
   drivers/irqchip/irq-gic.c:165:29: note: Shadowed declaration
   static inline void __iomem *gic_cpu_base(struct irq_data *d)
   ^
   drivers/irqchip/irq-gic.c:1507:14: note: Shadow variable
phys_addr_t gic_cpu_base;
^
>> drivers/irqchip/irq-gic-v3.c:874:71: warning: Boolean result is used in 
>> bitwise operation. Clarify expression with parentheses. [clarifyCondition]
gic_data.rdists.has_direct_lpi &= (!!(typer & GICR_TYPER_DirectLPIS) |
 ^
>> drivers/irqchip/irq-gic-v3.c:1808:6: warning: Local variable 
>> nr_redist_regions shadows outer variable [shadowVar]
u32 nr_redist_regions;
^
   drivers/irqchip/irq-gic-v3.c:1880:6: note: Shadowed declaration
u32 nr_redist_regions;
^
   drivers/irqchip/irq-gic-v3.c:1808:6: note: Shadow variable
u32 nr_redist_regions;
^
>> drivers/irqchip/irq-gic-v3.c:2042:6: warning: Local variable maint_irq_mode 
>> shadows outer variable [shadowVar]
int maint_irq_mode;
^
   drivers/irqchip/irq-gic-v3.c:1884:6: note: Shadowed declaration
int maint_irq_mode;
^
   drivers/irqchip/irq-gic-v3.c:2042:6: note: Shadow variable
int maint_irq_mode;
^
>> drivers/gpu/drm/xen/xen_drm_front_cfg.c:76:6: warning: Variable 'ret' is 
>> reassigned a value before the old one has been used. [redundantAssignment]
ret = xen_drm_front_get_edid(front_info, index, pages,
^
   drivers/gpu/drm/xen/xen_drm_front_cfg.c:61:0: note: Variable 'ret' is 
reassigned a value before the old one has been used.
int i, npages, ret = -ENOMEM;
   ^
   drivers/gpu/drm/xen/xen_drm_front_cfg.c:76:6: note: Variable 'ret' is 
reassigned a value before the old one has been used.
ret = xen_drm_front_get_edid(front_info, index, pages,
^

vim +/ret +76 drivers/gpu/drm/xen/xen_drm_front_cfg.c

54  
55  static void cfg_connector_edid(struct xen_drm_front_info *front_info,
56 struct xen_drm_front_cfg_connector 
*connector,
57 int index)
58  {
59  struct page **pages;
60  u32 edid_sz;
61  int i, npages, ret = -ENOMEM;
62  
63   

[drm:ttm-refactor-mem-manager-rename 51/82] drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:646:2: error: implicit declaration of function 'ttm_bo_man_fini'; did you mean

2020-08-03 Thread kernel test robot
tree:   git://people.freedesktop.org/~airlied/linux.git 
ttm-refactor-mem-manager-rename
head:   1ae584657d6f1ba364af58dc0d35f098d8726967
commit: 2d8e0cde4a7ff32b9b6e369fc33c327e1d32f90a [51/82] drm/vmwgfx: takedown 
vram manager
config: i386-randconfig-r006-20200803 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 2d8e0cde4a7ff32b9b6e369fc33c327e1d32f90a
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/vmwgfx/vmwgfx_drv.c: In function 'vmw_vram_manager_fini':
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:646:2: error: implicit declaration of 
>> function 'ttm_bo_man_fini'; did you mean 'ttm_range_man_fini'? 
>> [-Werror=implicit-function-declaration]
 646 |  ttm_bo_man_fini(_priv->bdev,
 |  ^~~
 |  ttm_range_man_fini
   cc1: some warnings being treated as errors

vim +646 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

   640  
   641  static void vmw_vram_manager_fini(struct vmw_private *dev_priv)
   642  {
   643  #ifdef CONFIG_TRANSPARENT_HUGEPAGE
   644  vmw_thp_fini(dev_priv);
   645  #else
 > 646  ttm_bo_man_fini(_priv->bdev,
   647  _priv->bdev.man[TTM_PL_VRAM]);
   648  #endif
   649  }
   650  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v1 16/22] drm/bridge: parade-ps8622: Backlight update

2020-08-02 Thread kernel test robot
Hi Sam,

I love your patch! Yet something to improve:

[auto build test ERROR on backlight/for-backlight-next]
[also build test ERROR on next-20200731]
[cannot apply to drm-intel/for-linux-next drm-tip/drm-tip linus/master 
drm/drm-next v5.8-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Sam-Ravnborg/backlight-add-init-macros-and-accessors/20200802-190940
base:for-backlight-next
config: x86_64-randconfig-a011-20200802 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
25af353b0e74907d5d50c8616b885bd1f73a68b3)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/bridge/parade-ps8622.c:337:48: error: implicit declaration 
>> of function 'blacklight_get_brightness' 
>> [-Werror,-Wimplicit-function-declaration]
   return ps8622_set(ps8622->client, 0x01, 0xa7, 
blacklight_get_brightness(bl));
 ^
   drivers/gpu/drm/bridge/parade-ps8622.c:337:48: note: did you mean 
'backlight_get_brightness'?
   include/linux/backlight.h:469:19: note: 'backlight_get_brightness' declared 
here
   static inline int backlight_get_brightness(const struct backlight_device *bd)
 ^
>> drivers/gpu/drm/bridge/parade-ps8622.c:519:2: error: must use 'struct' tag 
>> to refer to type 'backlight_device'
   backlight_device *bl;
   ^
   struct 
>> drivers/gpu/drm/bridge/parade-ps8622.c:521:52: error: use of undeclared 
>> identifier 'dev'
   bl = devm_backlight_device_register(dev, dev_name(dev), dev,
 ^
   drivers/gpu/drm/bridge/parade-ps8622.c:521:38: error: use of undeclared 
identifier 'dev'
   bl = devm_backlight_device_register(dev, dev_name(dev), dev,
   ^
   drivers/gpu/drm/bridge/parade-ps8622.c:521:58: error: use of undeclared 
identifier 'dev'
   bl = devm_backlight_device_register(dev, dev_name(dev), dev,
   ^
   5 errors generated.

vim +/blacklight_get_brightness +337 drivers/gpu/drm/bridge/parade-ps8622.c

   329  
   330  static int ps8622_backlight_update(struct backlight_device *bl)
   331  {
   332  struct ps8622_bridge *ps8622 = dev_get_drvdata(>dev);
   333  
   334  if (!ps8622->enabled)
   335  return -EINVAL;
   336  
 > 337  return ps8622_set(ps8622->client, 0x01, 0xa7, 
 > blacklight_get_brightness(bl));
   338  }
   339  
   340  static const struct backlight_ops ps8622_backlight_ops = {
   341  .update_status  = ps8622_backlight_update,
   342  };
   343  
   344  static void ps8622_pre_enable(struct drm_bridge *bridge)
   345  {
   346  struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
   347  int ret;
   348  
   349  if (ps8622->enabled)
   350  return;
   351  
   352  gpiod_set_value(ps8622->gpio_rst, 0);
   353  
   354  if (ps8622->v12) {
   355  ret = regulator_enable(ps8622->v12);
   356  if (ret)
   357  DRM_ERROR("fails to enable ps8622->v12");
   358  }
   359  
   360  if (drm_panel_prepare(ps8622->panel)) {
   361  DRM_ERROR("failed to prepare panel\n");
   362  return;
   363  }
   364  
   365  gpiod_set_value(ps8622->gpio_slp, 1);
   366  
   367  /*
   368   * T1 is the range of time that it takes for the power to rise 
after we
   369   * enable the lcd/ps8622 fet. T2 is the range of time in which 
the
   370   * data sheet specifies we should deassert the reset pin.
   371   *
   372   * If it takes T1.max for the power to rise, we need to wait 
atleast
   373   * T2.min before deasserting the reset pin. If it takes T1.min 
for the
   374   * power to rise, we need to wait at most T2.max before 
deasserting the
   375   * reset pin.
   376   */
   377  usleep_range(PS8622_RST_HIGH_T2_MIN_US + 
PS8622_POWER_RISE_T1_MAX_

Re: [PATCH v1 17/22] drm/tilcdc: Backlight update

2020-08-02 Thread kernel test robot
Hi Sam,

I love your patch! Yet something to improve:

[auto build test ERROR on backlight/for-backlight-next]
[also build test ERROR on next-20200731]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master drm/drm-next v5.8-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Sam-Ravnborg/backlight-add-init-macros-and-accessors/20200802-190940
base:for-backlight-next
config: arm-randconfig-r016-20200802 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/tilcdc/tilcdc_panel.c: In function 'panel_encoder_dpms':
>> drivers/gpu/drm/tilcdc/tilcdc_panel.c:50:6: error: 'pmode' undeclared (first 
>> use in this function); did you mean 'mode'?
  50 |  if (pmode == DRM_MODE_DPMS_O)
 |  ^
 |  mode
   drivers/gpu/drm/tilcdc/tilcdc_panel.c:50:6: note: each undeclared identifier 
is reported only once for each function it appears in
>> drivers/gpu/drm/tilcdc/tilcdc_panel.c:50:15: error: 'DRM_MODE_DPMS_O' 
>> undeclared (first use in this function); did you mean 'DRM_MODE_DPMS_ON'?
  50 |  if (pmode == DRM_MODE_DPMS_O)
 |   ^~~
 |   DRM_MODE_DPMS_ON

vim +50 drivers/gpu/drm/tilcdc/tilcdc_panel.c

43  
44  static void panel_encoder_dpms(struct drm_encoder *encoder, int mode)
45  {
46  struct panel_encoder *panel_encoder = to_panel_encoder(encoder);
47  struct backlight_device *backlight = 
panel_encoder->mod->backlight;
48  struct gpio_desc *gpio = panel_encoder->mod->enable_gpio;
49  
  > 50  if (pmode == DRM_MODE_DPMS_O)
51  backlight_set_power_on(backlight);
52  else
53  backlight_set_power_off(backlight);
54  
55  backlight_update_status(backlight);
56  
57  if (gpio)
58  gpiod_set_value_cansleep(gpio,
59   mode == DRM_MODE_DPMS_ON ? 1 : 
0);
60  }
61  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/2] drm/sun4i: backend: Support alpha property on lowest plane

2020-07-28 Thread kernel test robot
Hi Maxime,

I love your patch! Yet something to improve:

[auto build test ERROR on sunxi/sunxi/for-next]
[also build test ERROR on soc/for-next xlnx/master linus/master v5.8-rc7 
next-20200728]
[cannot apply to mripard/sunxi/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-sun4i-backend-Support-alpha-property-on-lowest-plane/20200729-033432
base:   https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git 
sunxi/for-next
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/sun4i/sun4i_backend.c: In function 
'sun4i_backend_atomic_check':
>> drivers/gpu/drm/sun4i/sun4i_backend.c:592:57: error: expected statement 
>> before ')' token
 592 |  (plane_states[0]->alpha != DRM_BLEND_ALPHA_OPAQUE)))
 | ^

vim +592 drivers/gpu/drm/sun4i/sun4i_backend.c

dd63250c55bf26 Maxime Ripard 2018-01-22  484  
96180dde23b799 Maxime Ripard 2018-01-22  485  static int 
sun4i_backend_atomic_check(struct sunxi_engine *engine,
96180dde23b799 Maxime Ripard 2018-01-22  486
  struct drm_crtc_state *crtc_state)
96180dde23b799 Maxime Ripard 2018-01-22  487  {
8f1f25534fff09 Maxime Ripard 2018-02-16  488struct drm_plane_state 
*plane_states[SUN4I_BACKEND_NUM_LAYERS] = { 0 };
dcf496a6a60873 Paul Kocialkowski 2018-07-19  489struct sun4i_backend 
*backend = engine_to_sun4i_backend(engine);
96180dde23b799 Maxime Ripard 2018-01-22  490struct drm_atomic_state 
*state = crtc_state->state;
96180dde23b799 Maxime Ripard 2018-01-22  491struct drm_device *drm 
= state->dev;
96180dde23b799 Maxime Ripard 2018-01-22  492struct drm_plane *plane;
65f7fa3a3fcbdb Maxime Ripard 2017-06-26  493unsigned int num_planes 
= 0;
65f7fa3a3fcbdb Maxime Ripard 2017-06-26  494unsigned int 
num_alpha_planes = 0;
96180dde23b799 Maxime Ripard 2018-01-22  495unsigned int 
num_frontend_planes = 0;
dcf496a6a60873 Paul Kocialkowski 2018-07-19  496unsigned int 
num_alpha_planes_max = 1;
32463556a634f3 Maxime Ripard 2018-03-01  497unsigned int 
num_yuv_planes = 0;
8f1f25534fff09 Maxime Ripard 2018-02-16  498unsigned int 
current_pipe = 0;
8f1f25534fff09 Maxime Ripard 2018-02-16  499unsigned int i;
96180dde23b799 Maxime Ripard 2018-01-22  500  
96180dde23b799 Maxime Ripard 2018-01-22  501
DRM_DEBUG_DRIVER("Starting checking our planes\n");
96180dde23b799 Maxime Ripard 2018-01-22  502  
96180dde23b799 Maxime Ripard 2018-01-22  503if 
(!crtc_state->planes_changed)
96180dde23b799 Maxime Ripard 2018-01-22  504return 0;
96180dde23b799 Maxime Ripard 2018-01-22  505  
96180dde23b799 Maxime Ripard 2018-01-22  506
drm_for_each_plane_mask(plane, drm, crtc_state->plane_mask) {
96180dde23b799 Maxime Ripard 2018-01-22  507struct 
drm_plane_state *plane_state =
96180dde23b799 Maxime Ripard 2018-01-22  508
drm_atomic_get_plane_state(state, plane);
96180dde23b799 Maxime Ripard 2018-01-22  509struct 
sun4i_layer_state *layer_state =
96180dde23b799 Maxime Ripard 2018-01-22  510
state_to_sun4i_layer_state(plane_state);
65f7fa3a3fcbdb Maxime Ripard 2017-06-26  511struct 
drm_framebuffer *fb = plane_state->fb;
65f7fa3a3fcbdb Maxime Ripard 2017-06-26  512struct 
drm_format_name_buf format_name;
96180dde23b799 Maxime Ripard 2018-01-22  513  
ab6985108a53d5 Paul Kocialkowski 2018-11-23  514if 
(!sun4i_backend_plane_is_supported(plane_state,
ab6985108a53d5 Paul Kocialkowski 2018-11-23  515
  _state->uses_frontend))
ab6985108a53d5 Paul Kocialkowski 2018-11-23  516return 
-EINVAL;
ab6985108a53d5 Paul Kocialkowski 2018-11-23  517  
ab6985108a53d5 Paul Kocialkowski 2018-11-23  518if 
(layer_state->uses_frontend) {
96180dde23b799 Maxime Ripard 2018-01-22  519
DRM_DEBUG_DRIVER("Using the frontend for plan

Re: [PATCH v2 1/2] drm: add drmm_encoder_init()

2020-07-25 Thread kernel test robot
Hi Philipp,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.8-rc6 
next-20200724]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Philipp-Zabel/drm-add-drmm_encoder_init/20200723-225705
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
e0ee2288424952e0445f096ae7800472eac11249)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_encoder.c:198:6: warning: no previous prototype for 
>> function 'drmm_encoder_init_release' [-Wmissing-prototypes]
   void drmm_encoder_init_release(struct drm_device *dev, void *ptr)
^
   drivers/gpu/drm/drm_encoder.c:198:1: note: declare 'static' if the function 
is not intended to be used outside of this translation unit
   void drmm_encoder_init_release(struct drm_device *dev, void *ptr)
   ^
   static 
   1 warning generated.

vim +/drmm_encoder_init_release +198 drivers/gpu/drm/drm_encoder.c

   197  
 > 198  void drmm_encoder_init_release(struct drm_device *dev, void *ptr)
   199  {
   200  struct drm_encoder *encoder = ptr;
   201  
   202  drm_encoder_cleanup(encoder);
   203  }
   204  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v7 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge

2020-07-22 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v5.8-rc6 next-20200722]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP-DPI-DP-bridge-and-J721E-wrapper/20200722-154322
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
3d9967039d4191b77f939ddc6c6ff4275df620c2)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

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

>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:765:10: warning: implicit conversion 
>> from 'unsigned long' to 'unsigned int' changes value from 
>> 18446744073709551613 to 4294967293 [-Wconstant-conversion]
   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   ~~ ^~~
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:1378:2: error: implicit declaration 
>> of function 'phy_get_attrs' [-Werror,-Wimplicit-function-declaration]
   phy_get_attrs(mhdp->phy, );
   ^
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:1384:20: error: no member named 
>> 'max_link_rate' in 'struct phy_attrs'
   link_rate = attrs.max_link_rate;
   ~ ^
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:1709:10: warning: implicit 
conversion from 'unsigned long' to 'unsigned int' changes value from 
18446744073709551613 to 4294967293 [-Wconstant-conversion]
   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   ~~ ^~~
   2 warnings and 2 errors generated.

vim +/phy_get_attrs +1378 drivers/gpu/drm/bridge/cdns-mhdp-core.c

  1371  
  1372  static void cdns_mhdp_fill_host_caps(struct cdns_mhdp_device *mhdp)
  1373  {
  1374  unsigned int link_rate;
  1375  struct phy_attrs attrs;
  1376  
  1377  /* Get source capabilities based on PHY attributes */
> 1378  phy_get_attrs(mhdp->phy, );
  1379  
  1380  mhdp->host.lanes_cnt = attrs.bus_width;
  1381  if (!mhdp->host.lanes_cnt)
  1382  mhdp->host.lanes_cnt = 4;
  1383  
> 1384  link_rate = attrs.max_link_rate;
  1385  if (!link_rate)
  1386  link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1);
  1387  else
  1388  /* PHY uses Mb/s, DRM uses tens of kb/s. */
  1389  link_rate *= 100;
  1390  
  1391  mhdp->host.link_rate = link_rate;
  1392  mhdp->host.volt_swing = CDNS_VOLT_SWING(3);
  1393  mhdp->host.pre_emphasis = CDNS_PRE_EMPHASIS(3);
  1394  mhdp->host.pattern_supp = CDNS_SUPPORT_TPS(1) |
  1395CDNS_SUPPORT_TPS(2) | 
CDNS_SUPPORT_TPS(3) |
  1396CDNS_SUPPORT_TPS(4);
  1397  mhdp->host.lane_mapping = CDNS_LANE_MAPPING_NORMAL;
  1398  mhdp->host.fast_link = false;
  1399  mhdp->host.enhanced = true;
  1400  mhdp->host.scrambler = true;
  1401  mhdp->host.ssc = false;
  1402  }
  1403  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH v7 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge

2020-07-22 Thread kernel test robot
Hi Swapnil,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.8-rc6 next-20200721]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP-DPI-DP-bridge-and-J721E-wrapper/20200722-154322
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 'cdns_mhdp_fw_activate':
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:765:10: warning: conversion from 
>> 'long unsigned int' to 'unsigned int' changes value from 
>> '18446744073709551613' to '4294967293' [-Woverflow]
 765 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   In file included from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/gpu/drm/bridge/cdns-mhdp-core.c:10:
   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 
'cdns_mhdp_link_training_init':
   include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 
is always false [-Wtype-limits]
  26 |   __builtin_constant_p((l) > (h)), (l) > (h), 0)))
 |^
   include/linux/build_bug.h:16:62: note: in definition of macro 
'BUILD_BUG_ON_ZERO'
  16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); 
})))
 |  ^
   include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
  39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.h:116:35: note: in expansion of macro 
'GENMASK'
 116 | #define CDNS_DP_LANE_EN_LANES(x)  GENMASK((x) - 1, 0)
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:888:8: note: in expansion of macro 
'CDNS_DP_LANE_EN_LANES'
 888 |CDNS_DP_LANE_EN_LANES(mhdp->link.num_lanes));
 |^
   include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 
is always false [-Wtype-limits]
  26 |   __builtin_constant_p((l) > (h)), (l) > (h), 0)))
 |^
   include/linux/build_bug.h:16:62: note: in definition of macro 
'BUILD_BUG_ON_ZERO'
  16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); 
})))
 |  ^
   include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
  39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.h:116:35: note: in expansion of macro 
'GENMASK'
 116 | #define CDNS_DP_LANE_EN_LANES(x)  GENMASK((x) - 1, 0)
 |   ^~~
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:888:8: note: in expansion of macro 
'CDNS_DP_LANE_EN_LANES'
 888 |CDNS_DP_LANE_EN_LANES(mhdp->link.num_lanes));
 |^
   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 
'cdns_mhdp_fill_host_caps':
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:1378:2: error: implicit declaration 
of function 'phy_get_attrs'; did you mean 'vfs_getattr'? 
[-Werror=implicit-function-declaration]
1378 |  phy_get_attrs(mhdp->phy, );
 |  ^
 |  vfs_getattr
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:1384:19: error: 'struct phy_attrs' 
has no member named 'max_link_rate'
1384 |  link_rate = attrs.max_link_rate;
 |   ^
   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 'cdns_mhdp_attach':
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:1709:10: warning: conversion from 
'long unsigned int' to 'unsigned int' changes value from '18446744073709551613' 
to '4294967293' [-Woverflow]
1709 |   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
   drivers/gpu/drm/bridge/cdns-mhdp-core.c: In function 
'cdns_mhdp_validate_mode_params':
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:2077:16: warning: variable 'pxlfmt' 
set but not used [-Wunused-but-set-variable]
2077 |  u32 bpp, bpc, pxlfmt;
 |^~
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:2077:11: warning: variable 'bpc' set

[radeon-alex:amd-staging-drm-next 1133/1153] drivers/gpu/drm/amd/amdgpu/navi10_ih.c:64:2: warning: ISO C90 forbids mixed declarations and code

2020-07-21 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   7173949df4548299ee6c63736f76247d3f288cd4
commit: f6668a70defec83ec0c837e052dd5490b66068d3 [1133/1153] drm/amdgpu: add 
timeout flush mechanism to update wptr for self interrupt
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f6668a70defec83ec0c837e052dd5490b66068d3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=alpha 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/navi10_ih.c: In function 
'force_update_wptr_for_self_int':
>> drivers/gpu/drm/amd/amdgpu/navi10_ih.c:64:2: warning: ISO C90 forbids mixed 
>> declarations and code [-Wdeclaration-after-statement]
  64 |  u32 ih_cntl = RREG32_SOC15(OSSSYS, 0, mmIH_CNTL2);
 |  ^~~
   In file included from drivers/gpu/drm/amd/amdgpu/navi10_ih.c:26:
   At top level:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:192:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 192 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:191:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 191 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/navi10_ih.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
  67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
 |^

vim +64 drivers/gpu/drm/amd/amdgpu/navi10_ih.c

41  
42  /**
43   * force_update_wptr_for_self_int - Force update the wptr for self 
interrupt
44   *
45   * @adev: amdgpu_device pointer
46   * @threshold: threshold to trigger the wptr reporting
47   * @timeout: timeout to trigger the wptr reporting
48   * @enabled: Enable/disable timeout flush mechanism
49   *
50   * threshold input range: 0 ~ 15, default 0,
51   * real_threshold = 2^threshold
52   * timeout input range: 0 ~ 20, default 8,
53   * real_timeout = (2^timeout) * 1024 / (socclk_freq)
54   *
55   * Force update wptr for self interrupt ( >= SIENNA_CICHLID).
56   */
57  static void
58  force_update_wptr_for_self_int(struct amdgpu_device *adev,
59 u32 threshold, u32 timeout, bool enabled)
60  {
61  if (adev->asic_type < CHIP_SIENNA_CICHLID)
62  return;
63  
  > 64  u32 ih_cntl = RREG32_SOC15(OSSSYS, 0, mmIH_CNTL2);
65  u32 ih_rb_cntl = RREG32_SOC15(OSSSYS, 0, mmIH_RB_CNTL_RING1);
66  
67  ih_cntl = REG_SET_F

Re: [PATCH 11/11] drm/ttm: remove TTM_MEMTYPE_FLAG_MAPPABLE

2020-07-21 Thread kernel test robot
Hi "Christian,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on next-20200720]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next linus/master drm/drm-next v5.8-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Christian-K-nig/drm-remove-optional-dummy-function-from-drivers-using-TTM/20200721-153530
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=ia64 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_gem_vram_helper.c: In function 'bo_driver_init_mem_type':
>> drivers/gpu/drm/drm_gem_vram_helper.c:1012:16: error: 
>> 'TTM_MEMTYPE_FLAG_MAPPABLE' undeclared (first use in this function); did you 
>> mean 'TTM_MEMTYPE_FLAG_FIXED'?
1012 |   man->flags = TTM_MEMTYPE_FLAG_MAPPABLE;
 |^
 |TTM_MEMTYPE_FLAG_FIXED
   drivers/gpu/drm/drm_gem_vram_helper.c:1012:16: note: each undeclared 
identifier is reported only once for each function it appears in
   drivers/gpu/drm/drm_gem_vram_helper.c: In function 
'bo_driver_io_mem_reserve':
   drivers/gpu/drm/drm_gem_vram_helper.c:1065:21: error: 
'TTM_MEMTYPE_FLAG_MAPPABLE' undeclared (first use in this function); did you 
mean 'TTM_MEMTYPE_FLAG_FIXED'?
1065 |  if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE))
 | ^
 | TTM_MEMTYPE_FLAG_FIXED

vim +1012 drivers/gpu/drm/drm_gem_vram_helper.c

6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1006  
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1007  static int 
bo_driver_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1008   
   struct ttm_mem_type_manager *man)
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1009  {
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1010   switch (type) {
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1011   case TTM_PL_SYSTEM:
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 @1012   man->flags = 
TTM_MEMTYPE_FLAG_MAPPABLE;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1013   
man->available_caching = TTM_PL_MASK_CACHING;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1014   
man->default_caching = TTM_PL_FLAG_CACHED;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1015   break;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1016   case TTM_PL_VRAM:
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1017   man->func = 
_bo_manager_func;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1018   man->flags = 
TTM_MEMTYPE_FLAG_FIXED |
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1019
TTM_MEMTYPE_FLAG_MAPPABLE;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1020   
man->available_caching = TTM_PL_FLAG_UNCACHED |
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1021   
 TTM_PL_FLAG_WC;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1022   
man->default_caching = TTM_PL_FLAG_WC;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1023   break;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1024   default:
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1025   return -EINVAL;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1026   }
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1027   return 0;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1028  }
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1029  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH 17/18] drm/arc: Move to drm/tiny

2020-07-17 Thread kernel test robot
Hi Daniel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master v5.8-rc5 next-20200717]
[cannot apply to arm/drm-armada-devel arm/drm-armada-fixes]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Daniel-Vetter/drm-armada-Use-devm_drm_dev_alloc/20200717-170827
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 
ed6b578040a85977026c93bf4188f996148f3218)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/tiny/arcpgu.c:137:36: warning: unused variable 
>> 'arc_pgu_crtc_funcs' [-Wunused-const-variable]
   static const struct drm_crtc_funcs arc_pgu_crtc_funcs = {
  ^
   1 warning generated.

vim +/arc_pgu_crtc_funcs +137 drivers/gpu/drm/tiny/arcpgu.c

bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  136  
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 @137  
static const struct drm_crtc_funcs arc_pgu_crtc_funcs = {
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  138  
.destroy = drm_crtc_cleanup,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  139  
.set_config = drm_atomic_helper_set_config,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  140  
.page_flip = drm_atomic_helper_page_flip,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  141  
.reset = drm_atomic_helper_crtc_reset,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  142  
.atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  143  
.atomic_destroy_state = drm_atomic_helper_crtc_destroy_state,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  144  
};
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17  145  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 1066/1110] drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1233:3: warning: variable 'direct_poll' set but not used

2020-07-16 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   cefd5db37208da458fa10f83f866f2f37eef70e9
commit: 4a33206e976be79b832d5a826565b5cb430de877 [1066/1110] drm/amd/sriov 
porting sriov cap to vcn3.0
config: parisc-randconfig-r015-20200717 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4a33206e976be79b832d5a826565b5cb430de877
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=parisc 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/mm.h:94,
from include/drm/drm_vma_manager.h:27,
from include/drm/drm_gem.h:40,
from include/drm/ttm/ttm_bo_api.h:34,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
   include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
   arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but 
not used [-Wunused-but-set-variable]
  96 |   pte_t old_pte; \
 | ^~~
   arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 
'set_pte_at'
 322 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
 |  ^~
   include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
 201 |  pte_clear(mm, address, ptep);
 |  ^
   include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
   arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but 
not used [-Wunused-but-set-variable]
  96 |   pte_t old_pte; \
 | ^~~
   include/asm-generic/pgtable.h:640:2: note: in expansion of macro 'set_pte_at'
 640 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
 |  ^~
   drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function 'vcn_v3_0_start_sriov':
>> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1233:3: warning: variable 
>> 'direct_poll' set but not used [-Wunused-but-set-variable]
1233 |   direct_poll = { {0} };
 |   ^~~
   In file included from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
   At top level:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:192:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 192 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:191:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 191 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
  67 | static const struct fix

[radeon-alex:drm-next 140/193] drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1233:3: warning: variable 'direct_poll' set but not used

2020-07-15 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next
head:   d7373aaf738393f38f40b0570bfa1403584eb982
commit: 1f61a43fcec1dceac2ec537a63aba6846dd0e80a [140/193] drm/amd/sriov 
porting sriov cap to vcn3.0
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1f61a43fcec1dceac2ec537a63aba6846dd0e80a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=parisc 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function 'vcn_v3_0_start_sriov':
>> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1233:3: warning: variable 
>> 'direct_poll' set but not used [-Wunused-but-set-variable]
1233 |   direct_poll = { {0} };
 |   ^~~
   In file included from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
   At top level:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:192:19: warning: 'debug_evictions' 
defined but not used [-Wunused-const-variable=]
 192 | static const bool debug_evictions; /* = false */
 |   ^~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:191:18: warning: 'sched_policy' defined 
but not used [-Wunused-const-variable=]
 191 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
 |  ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from 
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from 
drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
  76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
  75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
 |^~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
  74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
  73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
  72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
  67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
 |^

vim +/direct_poll +1233 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c

  1210  
  1211  static int vcn_v3_0_start_sriov(struct amdgpu_device *adev)
  1212  {
  1213  int i, j;
  1214  struct amdgpu_ring *ring;
  1215  uint64_t cache_addr;
  1216  uint64_t rb_addr;
  1217  uint64_t ctx_addr;
  1218  uint32_t param, resp, expected;
  1219  uint32_t offset, cache_size;
  1220  uint32_t tmp, timeout;
  1221  uint32_t id;
  1222  
  1223  struct amdgpu_mm_table *table = >virt.mm_table;
  1224  uint32_t *table_loc;
  1225  uint32_t table_size;
  1226  uint32_t size, size_dw;
  1227  
  1228  struct mmsch_v3_0_cmd_direct_write
  1229  direct_wt = { {0} };
  1230  struct mmsch_v3_0_cmd_direct_read_modify_write
  1231  direct_rd_mod_wt = { {0} };
  1232  struct mmsch_v3_0_cmd_direct_polling
> 1233  direct_poll = { {0} };
  1234  struct mmsch_v3_0_cmd_end end = { {0} };
  1235  struct mmsch_v3_0_init_header header;
  1236  
  1237  direct_wt.cmd_header.command_type =
  1238  MMSCH_COMMAND__DIRECT_REG_WRITE;
  1239  direct_rd_mod_wt.cmd_head

[radeon-alex:amd-staging-drm-next 1019/1033] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:237:5: warning: no previous prototype for 'rn_vbios_smu_is_periodic_retrainin

2020-07-15 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   2c6fefb23a0e94add694b04a82bf020aed1898a0
commit: 8e37efbf94c9516cbec8ac650ecae7c8647d4d7f [1019/1033] drm/amd/display: 
reduce sr_xxx_time by 3 us when ppt disable
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 8e37efbf94c9516cbec8ac650ecae7c8647d4d7f
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:89:5:
 warning: no previous prototype for 'rn_vbios_smu_send_msg_with_param' 
[-Wmissing-prototypes]
  89 | int rn_vbios_smu_send_msg_with_param(struct clk_mgr_internal 
*clk_mgr, unsigned int msg_id, unsigned int param)
 | ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:110:5:
 warning: no previous prototype for 'rn_vbios_smu_get_smu_version' 
[-Wmissing-prototypes]
 110 | int rn_vbios_smu_get_smu_version(struct clk_mgr_internal *clk_mgr)
 | ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:119:5:
 warning: no previous prototype for 'rn_vbios_smu_set_dispclk' 
[-Wmissing-prototypes]
 119 | int rn_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int 
requested_dispclk_khz)
 | ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:142:5:
 warning: no previous prototype for 'rn_vbios_smu_set_dprefclk' 
[-Wmissing-prototypes]
 142 | int rn_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
 | ^
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:156:5:
 warning: no previous prototype for 'rn_vbios_smu_set_hard_min_dcfclk' 
[-Wmissing-prototypes]
 156 | int rn_vbios_smu_set_hard_min_dcfclk(struct clk_mgr_internal 
*clk_mgr, int requested_dcfclk_khz)
 | ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:171:5:
 warning: no previous prototype for 'rn_vbios_smu_set_min_deep_sleep_dcfclk' 
[-Wmissing-prototypes]
 171 | int rn_vbios_smu_set_min_deep_sleep_dcfclk(struct clk_mgr_internal 
*clk_mgr, int requested_min_ds_dcfclk_khz)
 | ^~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:186:6:
 warning: no previous prototype for 'rn_vbios_smu_set_phyclk' 
[-Wmissing-prototypes]
 186 | void rn_vbios_smu_set_phyclk(struct clk_mgr_internal *clk_mgr, int 
requested_phyclk_khz)
 |  ^~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:194:5:
 warning: no previous prototype for 'rn_vbios_smu_set_dppclk' 
[-Wmissing-prototypes]
 194 | int rn_vbios_smu_set_dppclk(struct clk_mgr_internal *clk_mgr, int 
requested_dpp_khz)
 | ^~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:206:6:
 warning: no previous prototype for 'rn_vbios_smu_set_dcn_low_power_state' 
[-Wmissing-prototypes]
 206 | void rn_vbios_smu_set_dcn_low_power_state(struct clk_mgr_internal 
*clk_mgr, enum dcn_pwr_state state)
 |  ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:221:6:
 warning: no previous prototype for 
'rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn' [-Wmissing-prototypes]
 221 | void rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn(struct 
clk_mgr_internal *clk_mgr, bool enable)
 |  ^~~~
   
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:229:6:
 warning: no previous prototype for 'rn_vbios_smu_enable_pme_wa' 
[-Wmissing-prototypes]
 229 | void rn_vbios_smu_enable_pme_wa(struct clk_mgr_internal *clk_mgr)
 |  ^~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:237:5:
>>  warning: no previous prototype for 
>> 'rn_vbios_smu_is_periodic_retraining_disabled' [-Wmissing-prototypes]
 237 | int rn_vbios_smu_is_periodic_retraining_disabled(struct 
clk_mgr_internal *clk_mgr)
 | ^~~~
   In file included from 
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:31:
   drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:226:29: warning: 
'UVD0_BASE' defined but not used [-Wunused-const-variable=]
 226 | static const struct IP_BASE UVD0_BASE ={ { { { 0x7800, 
0x00

[RFC PATCH] drm/i915: g4x_get_flip_counter() can be static

2020-07-14 Thread kernel test robot


Signed-off-by: kernel test robot 
---
 i915_irq.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 9812a8051c5ea..79a3118f918a1 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -697,7 +697,7 @@ u32 i915_get_vblank_counter(struct drm_crtc *crtc)
return (((high1 << 8) | low) + (pixel >= vbl_start)) & 0xff;
 }
 
-u32 g4x_get_flip_counter(struct drm_crtc *crtc)
+static u32 g4x_get_flip_counter(struct drm_crtc *crtc)
 {
struct drm_i915_private *dev_priv = to_i915(crtc->dev);
enum pipe pipe = to_intel_crtc(crtc)->pipe;
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v4 1/5] drm/i915: Add enable/disable flip done and flip done handler

2020-07-14 Thread kernel test robot
Hi Karthik,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next v5.8-rc5 next-20200714]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Karthik-B-S/Asynchronous-flip-implementation-for-i915/20200714-095304
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-s032-20200714 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-41-g14e84ffc-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/i915/i915_irq.c:700:5: sparse: sparse: symbol 
>> 'g4x_get_flip_counter' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 1/5] drm/i915: Add enable/disable flip done and flip done handler

2020-07-14 Thread kernel test robot
Hi Karthik,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next v5.8-rc5 next-20200713]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Karthik-B-S/Asynchronous-flip-implementation-for-i915/20200714-095304
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a002-20200714 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_irq.c:700:5: error: no previous prototype for 
>> 'g4x_get_flip_counter' [-Werror=missing-prototypes]
 700 | u32 g4x_get_flip_counter(struct drm_crtc *crtc)
 | ^~~~
   cc1: all warnings being treated as errors

vim +/g4x_get_flip_counter +700 drivers/gpu/drm/i915/i915_irq.c

   699  
 > 700  u32 g4x_get_flip_counter(struct drm_crtc *crtc)
   701  {
   702  struct drm_i915_private *dev_priv = to_i915(crtc->dev);
   703  enum pipe pipe = to_intel_crtc(crtc)->pipe;
   704  
   705  return I915_READ(PIPE_FLIPCOUNT_G4X(pipe));
   706  }
   707  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 1/5] drm/i915: Add enable/disable flip done and flip done handler

2020-07-13 Thread kernel test robot
Hi Karthik,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next v5.8-rc5 next-20200713]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Karthik-B-S/Asynchronous-flip-implementation-for-i915/20200714-095304
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_irq.c:700:5: warning: no previous prototype for 
>> 'g4x_get_flip_counter' [-Wmissing-prototypes]
 700 | u32 g4x_get_flip_counter(struct drm_crtc *crtc)
 | ^~~~

vim +/g4x_get_flip_counter +700 drivers/gpu/drm/i915/i915_irq.c

   699  
 > 700  u32 g4x_get_flip_counter(struct drm_crtc *crtc)
   701  {
   702  struct drm_i915_private *dev_priv = to_i915(crtc->dev);
   703  enum pipe pipe = to_intel_crtc(crtc)->pipe;
   704  
   705  return I915_READ(PIPE_FLIPCOUNT_G4X(pipe));
   706  }
   707  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 677/1015] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range

2020-07-11 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   3c831e196bd7543977d4acd506064636809f1dcf
commit: ac7413ecad5e406065529cda0adaa29c353cc557 [677/1015] drm/amd/amdgpu: 
disable gfxoff to retrieve gfxclk
config: powerpc64-randconfig-r004-20200710 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 
02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
git checkout ac7413ecad5e406065529cda0adaa29c353cc557
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 
ARCH=powerpc64 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1718:5: 
warning: no previous prototype for function 
'sienna_cichlid_get_dpm_ultimate_freq' [-Wmissing-prototypes]
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
   ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1718:1: note: 
declare 'static' if the function is not intended to be used outside of this 
translation unit
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: 
>> warning: no previous prototype for function 
>> 'sienna_cichlid_set_soft_freq_limited_range' [-Wmissing-prototypes]
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
   ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:1: note: 
declare 'static' if the function is not intended to be used outside of this 
translation unit
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
   ^
   static 
   2 warnings generated.

vim +/sienna_cichlid_set_soft_freq_limited_range +1734 
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c

  1717  
> 1718  int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
  1719  enum smu_clk_type clk_type,
  1720  uint32_t *min, uint32_t *max)
  1721  {
  1722  struct amdgpu_device *adev = smu->adev;
  1723  int ret;
  1724  
  1725  if (clk_type == SMU_GFXCLK)
  1726  amdgpu_gfx_off_ctrl(adev, false);
  1727  ret = smu_v11_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
  1728  if (clk_type == SMU_GFXCLK)
  1729  amdgpu_gfx_off_ctrl(adev, true);
  1730  
  1731  return ret;
  1732  }
  1733  
> 1734  int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
  1735enum smu_clk_type clk_type,
  1736uint32_t min, uint32_t max)
  1737  {
  1738  struct amdgpu_device *adev = smu->adev;
  1739  int ret;
  1740  
  1741  if (clk_type == SMU_GFXCLK)
  1742  amdgpu_gfx_off_ctrl(adev, false);
  1743  ret = smu_v11_0_set_soft_freq_limited_range(smu, clk_type, min, 
max);
  1744  if (clk_type == SMU_GFXCLK)
  1745  amdgpu_gfx_off_ctrl(adev, true);
  1746  
  1747  return ret;
  1748  }
  1749  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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 628/1015] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:268:17: sparse: sparse: cast removes address space '' of expression

2020-07-11 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   3c831e196bd7543977d4acd506064636809f1dcf
commit: 10be8791067fc672e44fcaa7afb886390909a0c0 [628/1015] drm/amdkfd: Support 
Sienna_Cichlid KFD v4
config: x86_64-randconfig-s022-20200710 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-37-gc9676a3b-dirty
git checkout 10be8791067fc672e44fcaa7afb886390909a0c0
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:268:17: sparse: sparse: 
>> cast removes address space '' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c:270:17: sparse: sparse: 
cast removes address space '' of expression

vim +268 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c

   192  
   193  static int hqd_load_v10_3(struct kgd_dev *kgd, void *mqd, uint32_t 
pipe_id,
   194  uint32_t queue_id, uint32_t __user *wptr,
   195  uint32_t wptr_shift, uint32_t wptr_mask,
   196  struct mm_struct *mm)
   197  {
   198  struct amdgpu_device *adev = get_amdgpu_device(kgd);
   199  struct v10_compute_mqd *m;
   200  uint32_t *mqd_hqd;
   201  uint32_t reg, hqd_base, data;
   202  
   203  m = get_mqd(mqd);
   204  
   205  pr_debug("Load hqd of pipe %d queue %d\n", pipe_id, queue_id);
   206  acquire_queue(kgd, pipe_id, queue_id);
   207  
   208  /* HIQ is set during driver init period with vmid set to 0*/
   209  if (m->cp_hqd_vmid == 0) {
   210  uint32_t value, mec, pipe;
   211  
   212  mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1;
   213  pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec);
   214  
   215  pr_debug("kfd: set HIQ, mec:%d, pipe:%d, queue:%d.\n",
   216  mec, pipe, queue_id);
   217  value = RREG32(SOC15_REG_OFFSET(GC, 0, 
mmRLC_CP_SCHEDULERS));
   218  value = REG_SET_FIELD(value, RLC_CP_SCHEDULERS, 
scheduler1,
   219  ((mec << 5) | (pipe << 3) | queue_id | 0x80));
   220  WREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_CP_SCHEDULERS), 
value);
   221  }
   222  
   223  /* HQD registers extend from CP_MQD_BASE_ADDR to 
CP_HQD_EOP_WPTR_MEM. */
   224  mqd_hqd = >cp_mqd_base_addr_lo;
   225  hqd_base = SOC15_REG_OFFSET(GC, 0, mmCP_MQD_BASE_ADDR);
   226  
   227  for (reg = hqd_base;
   228   reg <= SOC15_REG_OFFSET(GC, 0, mmCP_HQD_PQ_WPTR_HI); reg++)
   229  WREG32(reg, mqd_hqd[reg - hqd_base]);
   230  
   231  
   232  /* Activate doorbell logic before triggering WPTR poll. */
   233  data = REG_SET_FIELD(m->cp_hqd_pq_doorbell_control,
   234   CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 
1);
   235  WREG32(SOC15_REG_OFFSET(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL), 
data);
   236  
   237  if (wptr) {
   238  /* Don't read wptr with get_user because the user
   239   * context may not be accessible (if this function
   240   * runs in a work queue). Instead trigger a one-shot
   241   * polling read from memory in the CP. This assumes
   242   * that wptr is GPU-accessible in the queue's VMID via
   243   * ATC or SVM. WPTR==RPTR before starting the poll so
   244   * the CP starts fetching new commands from the right
   245   * place.
   246   *
   247   * Guessing a 64-bit WPTR from a 32-bit RPTR is a bit
   248   * tricky. Assume that the queue didn't overflow. The
   249   * number of valid bits in the 32-bit RPTR depends on
   250   * the queue size. The remaining bits are taken from
   251   * the saved 64-bit WPTR. If the WPTR wrapped, add the
   252   * queue size.
   253   */
   254  uint32_t queue_size =
   255  2 << REG_GET_FIELD(m->cp_hqd_pq_control,
   256 CP_HQD_PQ_CONTROL, 
QUEUE_SIZE);
   257  uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size 
- 1);
   258  
   259  if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < 
guessed_wptr)
   260  guessed_wptr += queue_size;
   261  g

[radeon-alex:amd-staging-drm-next 468/1015] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-11 Thread kernel test robot
tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   3c831e196bd7543977d4acd506064636809f1dcf
commit: 3a2b9affb4c366dac8a088156c644cf329701816 [468/1015] drm/amdkfd: Track 
SDMA utilization per process
config: x86_64-randconfig-s022-20200710 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-37-gc9676a3b-dirty
git checkout 3a2b9affb4c366dac8a088156c644cf329701816
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:140:6: 
sparse: sparse: symbol 'increment_queue_count' was not declared. Should it be 
static?
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:148:6: 
sparse: sparse: symbol 'decrement_queue_count' was not declared. Should it be 
static?
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: 
>> sparse: sparse: incorrect type in argument 1 (different address spaces) @@   
>>   expected void const volatile [noderef]  * @@ got unsigned long 
>> long [usertype] * @@
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: 
>> sparse: expected void const volatile [noderef]  *
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:172:15: 
sparse: got unsigned long long [usertype] *

vim +172 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c

   139  
 > 140  void increment_queue_count(struct device_queue_manager *dqm,
   141  enum kfd_queue_type type)
   142  {
   143  dqm->active_queue_count++;
   144  if (type == KFD_QUEUE_TYPE_COMPUTE || type == 
KFD_QUEUE_TYPE_DIQ)
   145  dqm->active_cp_queue_count++;
   146  }
   147  
   148  void decrement_queue_count(struct device_queue_manager *dqm,
   149  enum kfd_queue_type type)
   150  {
   151  dqm->active_queue_count--;
   152  if (type == KFD_QUEUE_TYPE_COMPUTE || type == 
KFD_QUEUE_TYPE_DIQ)
   153  dqm->active_cp_queue_count--;
   154  }
   155  
   156  int read_sdma_queue_counter(struct queue *q, uint64_t *val)
   157  {
   158  int ret;
   159  uint64_t tmp = 0;
   160  
   161  if (!q || !val)
   162  return -EINVAL;
   163  /*
   164   * SDMA activity counter is stored at queue's RPTR + 0x8 
location.
   165   */
   166  if (!access_ok((const void __user 
*)((uint64_t)q->properties.read_ptr +
   167  sizeof(uint64_t)), 
sizeof(uint64_t))) {
   168  pr_err("Can't access sdma queue activity counter\n");
   169  return -EFAULT;
   170  }
   171  
 > 172  ret = get_user(tmp, (uint64_t 
 > *)((uint64_t)(q->properties.read_ptr) +
   173  sizeof(uint64_t)));
   174  if (!ret) {
   175  *val = tmp;
   176  }
   177  
   178  return ret;
   179  }
   180  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.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/drm_fb_helper: fix fbdev with sparc64

2020-07-09 Thread kernel test robot
Hi Sam,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-exynos/exynos-drm-next 
tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.8-rc4 
next-20200709]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Sam-Ravnborg/drm-drm_fb_helper-fix-fbdev-with-sparc64/20200710-033231
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-s021-20200709 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-37-gc9676a3b-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/drm_fb_helper.c:386:29: sparse: sparse: incorrect type in 
>> argument 1 (different address spaces) @@ expected void volatile 
>> [noderef] __iomem * @@ got void *dst @@
>> drivers/gpu/drm/drm_fb_helper.c:386:29: sparse: expected void volatile 
>> [noderef] __iomem *
>> drivers/gpu/drm/drm_fb_helper.c:386:29: sparse: got void *dst

vim +386 drivers/gpu/drm/drm_fb_helper.c

   373  
   374  static void drm_fb_helper_dirty_blit_real(struct drm_fb_helper 
*fb_helper,
   375struct drm_clip_rect *clip)
   376  {
   377  struct drm_framebuffer *fb = fb_helper->fb;
   378  unsigned int cpp = fb->format->cpp[0];
   379  size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp;
   380  void *src = fb_helper->fbdev->screen_buffer + offset;
   381  void *dst = fb_helper->buffer->vaddr + offset;
   382  size_t len = (clip->x2 - clip->x1) * cpp;
   383  unsigned int y;
   384  
   385  for (y = clip->y1; y < clip->y2; y++) {
 > 386  memcpy_toio(dst, src, len);
   387  src += fb->pitches[0];
   388  dst += fb->pitches[0];
   389  }
   390  }
   391  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


Re: [PATCH] fbtft-bus.c: Removing that prohibited space before ')'

2020-07-09 Thread kernel test robot
Hi K,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v5.8-rc4 next-20200709]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/B-K-Karthik/fbtft-bus-c-Removing-that-prohibited-space-before/20200627-125315
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 
92cd1b5d65f5c67147c7da39a3c2ad7e6ff81027
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=sparc 

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

All errors (new ones prefixed by >>):

>> drivers/staging/fbtft/fbtft-bus.c:65:53: error: macro 
>> "define_fbtft_write_reg" requires 4 arguments, but only 3 given
  65 | define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8)
 | ^
   drivers/staging/fbtft/fbtft-bus.c:14: note: macro "define_fbtft_write_reg" 
defined here
  14 | #define define_fbtft_write_reg(func, buffer_type, data_type, 
modifier)\
 | 
>> drivers/staging/fbtft/fbtft-bus.c:65:23: error: expected ';' before 'void'
  65 | define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8)
 |   ^
 |   ;
   drivers/staging/fbtft/fbtft-bus.c:67:57: error: macro 
"define_fbtft_write_reg" requires 4 arguments, but only 3 given
  67 | define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16)
 | ^
   drivers/staging/fbtft/fbtft-bus.c:14: note: macro "define_fbtft_write_reg" 
defined here
  14 | #define define_fbtft_write_reg(func, buffer_type, data_type, 
modifier)\
 | 
   drivers/staging/fbtft/fbtft-bus.c:67:23: error: expected ';' before 'void'
  67 | define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16)
 |   ^
 |   ;
  68 | 
  69 | void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
 |    

vim +/define_fbtft_write_reg +65 drivers/staging/fbtft/fbtft-bus.c

64  
  > 65  define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8)
66  define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)
67  define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16)
68  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


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


  1   2   >