Content-Type: multipart/mixed; boundary="===============1293554873017418217==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v3 1/1] drm/lsdc: add drm driver for loongson display controller Date: Mon, 31 Jan 2022 14:39:58 +0800 Message-ID: <202201311423.sZVV3fVK-lkp@intel.com> In-Reply-To: <20220130193723.2923-2-15330273260@189.cn> List-Id: --===============1293554873017418217== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Sui, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v5.17-rc2 next-20220128] [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/Sui-Jingfeng/drm-lsdc-add-= drm-driver-for-loongson-display-controller/20220131-043734 base: git://anongit.freedesktop.org/drm/drm drm-next config: riscv-randconfig-r016-20220131 (https://download.01.org/0day-ci/arc= hive/20220131/202201311423.sZVV3fVK-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2cdbac= a3943a4d6259119f185656328bd3805b68) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/219048b8904ab97749c0bc3ea= 426b858d9562de0 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sui-Jingfeng/drm-lsdc-add-drm-driv= er-for-loongson-display-controller/20220131-043734 git checkout 219048b8904ab97749c0bc3ea426b858d9562de0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Driscv SHELL=3D/bin/bash drivers/gpu/drm/lsdc/ 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/lsdc/lsdc_drv.c:581:55: warning: format specifies type '= unsigned long long' but the argument has type 'resource_size_t' (aka 'unsig= ned int') [-Wformat] drm_info(ddev, "vram start: 0x%llx, size: %lluMB\n", base, size = >> 20); ~~~~ ^~~~ %x include/drm/drm_print.h:429:36: note: expanded from macro 'drm_info' __drm_printk((drm), info,, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/drm/drm_print.h:425:48: note: expanded from macro '__drm_printk' dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info' dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), #= #__VA_ARGS__) ~~~ = ^~~~~~~~~~~ include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk= _index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ drivers/gpu/drm/lsdc/lsdc_drv.c:581:61: warning: format specifies type '= unsigned long long' but the argument has type 'resource_size_t' (aka 'unsig= ned int') [-Wformat] drm_info(ddev, "vram start: 0x%llx, size: %lluMB\n", base, size = >> 20); ~~~~ ^~~~~= ~~~~~ %u include/drm/drm_print.h:429:36: note: expanded from macro 'drm_info' __drm_printk((drm), info,, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/drm/drm_print.h:425:48: note: expanded from macro '__drm_printk' dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info' dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), #= #__VA_ARGS__) ~~~ = ^~~~~~~~~~~ include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk= _index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ 2 warnings generated. -- >> drivers/gpu/drm/lsdc/lsdc_pll.c:395:12: error: implicit declaration of f= unction 'readq' [-Werror,-Wimplicit-function-declaration] u64 val =3D readq(reg); ^ >> drivers/gpu/drm/lsdc/lsdc_pll.c:402:2: error: implicit declaration of fu= nction 'writeq' [-Werror,-Wimplicit-function-declaration] writeq(val, reg); ^ >> drivers/gpu/drm/lsdc/lsdc_pll.c:404:24: warning: shift count >=3D width = of type [-Wshift-count-overflow] val =3D (1L << 7) | (1L << 42) | (3L << 10); /* allow L1 PLL l= ocked */ ^ ~~ drivers/gpu/drm/lsdc/lsdc_pll.c:405:37: warning: shift count >=3D width = of type [-Wshift-count-overflow] val |=3D (unsigned long)param->loopc << 32; /* set loopc */ ^ ~~ drivers/gpu/drm/lsdc/lsdc_pll.c:439:8: error: implicit declaration of fu= nction 'readq' [-Werror,-Wimplicit-function-declaration] val =3D readq(reg); ^ drivers/gpu/drm/lsdc/lsdc_pll.c:441:2: error: implicit declaration of fu= nction 'writeq' [-Werror,-Wimplicit-function-declaration] writeq(val, reg); ^ drivers/gpu/drm/lsdc/lsdc_pll.c:499:20: error: implicit declaration of f= unction 'readq' [-Werror,-Wimplicit-function-declaration] parms.qword[0] =3D readq(this->mmio); ^ drivers/gpu/drm/lsdc/lsdc_pll.c:504:20: error: implicit declaration of f= unction 'readq' [-Werror,-Wimplicit-function-declaration] parms.qword[0] =3D readq(this->mmio); ^ 2 warnings and 6 errors generated. vim +/readq +395 drivers/gpu/drm/lsdc/lsdc_pll.c 386 = 387 = 388 /* 389 * the PIX PLL be software configurable when SYS_CLKSEL[1:0] is 10b 390 */ 391 static int ls2k1000_pixpll_param_update(struct lsdc_pll * const this, 392 const struct lsdc_pll_core_values * const param) 393 { 394 void __iomem *reg =3D this->mmio; > 395 u64 val =3D readq(reg); 396 bool locked; 397 unsigned int counter =3D 0; 398 = 399 val &=3D ~(1 << 0); /* Bypass the PLL, using refclk directly */ 400 val |=3D (1 << 19); /* powerdown the PLL */ 401 val &=3D ~(1 << 2); /* don't use the software configure param */ > 402 writeq(val, reg); 403 = > 404 val =3D (1L << 7) | (1L << 42) | (3L << 10); /* allow L1 PLL lock= ed */ 405 val |=3D (unsigned long)param->loopc << 32; /* set loopc */ 406 val |=3D (unsigned long)param->div_ref << 26; /* set div_ref */ 407 writeq(val, reg); 408 writeq(param->div_out, reg + 8); /* set div_out */ 409 = 410 val =3D readq(reg); 411 val |=3D (1 << 2); /* use the software configure param */ 412 val &=3D ~(1 << 19); /* powerup the PLL */ 413 writeq(val, reg); 414 = 415 /* wait pll setup and locked */ 416 do { 417 val =3D readl(reg); 418 locked =3D val & 0x10000; 419 counter++; 420 } while (locked =3D=3D false); 421 = 422 drm_dbg_kms(this->ddev, "%u loop waited\n", counter); 423 = 424 val =3D readq(reg); 425 val |=3D (1 << 0); /* switch to the software configured pll */ 426 writeq(val, reg); 427 = 428 return 0; 429 } 430 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============1293554873017418217==--