From: kernel test robot <lkp@intel.com>
To: Sui Jingfeng <15330273260@189.cn>,
Dan Carpenter <error27@gmail.com>, Sam <Ravnborgsam@ravnborg.org>,
Lucas Stach <l.stach@pengutronix.de>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Roland Scheidegger <sroland@vmware.com>,
Zack Rusin <zackr@vmware.com>,
Christian Gmeiner <christian.gmeiner@gmail.com>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH v4 1/3] drm/lsdc: add drm driver for loongson display controller
Date: Wed, 2 Feb 2022 10:18:24 +0800 [thread overview]
Message-ID: <202202021046.VCIJuXWN-lkp@intel.com> (raw)
In-Reply-To: <20220201154821.3058-2-15330273260@189.cn>
Hi Sui,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm/drm-next]
[also build test ERROR on robh/for-next drm-intel/for-linux-next drm-tip/drm-tip v5.17-rc2 next-20220201]
[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/20220201-234916
base: git://anongit.freedesktop.org/drm/drm drm-next
config: riscv-randconfig-r005-20220130 (https://download.01.org/0day-ci/archive/20220202/202202021046.VCIJuXWN-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/c285d3ad507c42cbed4a71aa0974b2183f7d02ad
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sui-Jingfeng/drm-lsdc-add-drm-driver-for-loongson-display-controller/20220201-234916
git checkout c285d3ad507c42cbed4a71aa0974b2183f7d02ad
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/lsdc/ drivers/gpu/drm/msm/ drivers/gpu/drm/sprd/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/lsdc/lsdc_pll.c:399:12: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
u64 val = readq(reg);
^
>> drivers/gpu/drm/lsdc/lsdc_pll.c:405:2: error: implicit declaration of function 'writeq' [-Werror,-Wimplicit-function-declaration]
writeq(val, reg);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:450:8: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
val = readq(reg);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:452:2: error: implicit declaration of function 'writeq' [-Werror,-Wimplicit-function-declaration]
writeq(val, reg);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:509:20: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
parms.qword[0] = readq(this->mmio);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:513:20: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
parms.qword[0] = readq(this->mmio);
^
6 errors generated.
vim +/readq +399 drivers/gpu/drm/lsdc/lsdc_pll.c
384
385
386 /*
387 * Update the pll parameters to hardware, target to the pixpll in ls2k1000
388 *
389 * @this: point to the object which calling this function
390 * @param: pointer to where the parameters passed in
391 *
392 * Return true if a parameter is found, otherwise return false.
393 */
394 static int ls2k1000_pixpll_param_update(struct lsdc_pll * const this,
395 const struct lsdc_pll_core_values * const param)
396 {
397 void __iomem *reg = this->mmio;
398 unsigned int counter = 0;
> 399 u64 val = readq(reg);
400 bool locked;
401
402 val &= ~(1 << 0); /* Bypass the PLL, using refclk directly */
403 val |= (1 << 19); /* powerdown the PLL */
404 val &= ~(1 << 2); /* don't use the software configure param */
> 405 writeq(val, reg);
406
407 val = (1L << 7) | (1ULL << 42) | (3L << 10); /* allow L1 PLL locked */
408 val |= (u64)param->loopc << 32; /* set loopc */
409 val |= (u64)param->div_ref << 26; /* set div_ref */
410 writeq(val, reg);
411 writeq(param->div_out, reg + 8); /* set div_out */
412
413 val = readq(reg);
414 val |= (1 << 2); /* use the software configure param */
415 val &= ~(1 << 19); /* powerup the PLL */
416 writeq(val, reg);
417
418 /* wait pll setup and locked */
419 do {
420 val = readl(reg);
421 locked = val & 0x10000;
422 counter++;
423 } while (locked == false);
424
425 drm_dbg_kms(this->ddev, "%u loop waited\n", counter);
426
427 val = readq(reg);
428 val |= (1 << 0); /* switch to the software configured pll */
429 writeq(val, reg);
430
431 return 0;
432 }
433
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v4 1/3] drm/lsdc: add drm driver for loongson display controller
Date: Wed, 02 Feb 2022 10:18:24 +0800 [thread overview]
Message-ID: <202202021046.VCIJuXWN-lkp@intel.com> (raw)
In-Reply-To: <20220201154821.3058-2-15330273260@189.cn>
[-- Attachment #1: Type: text/plain, Size: 5069 bytes --]
Hi Sui,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm/drm-next]
[also build test ERROR on robh/for-next drm-intel/for-linux-next drm-tip/drm-tip v5.17-rc2 next-20220201]
[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/20220201-234916
base: git://anongit.freedesktop.org/drm/drm drm-next
config: riscv-randconfig-r005-20220130 (https://download.01.org/0day-ci/archive/20220202/202202021046.VCIJuXWN-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/c285d3ad507c42cbed4a71aa0974b2183f7d02ad
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sui-Jingfeng/drm-lsdc-add-drm-driver-for-loongson-display-controller/20220201-234916
git checkout c285d3ad507c42cbed4a71aa0974b2183f7d02ad
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/lsdc/ drivers/gpu/drm/msm/ drivers/gpu/drm/sprd/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/lsdc/lsdc_pll.c:399:12: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
u64 val = readq(reg);
^
>> drivers/gpu/drm/lsdc/lsdc_pll.c:405:2: error: implicit declaration of function 'writeq' [-Werror,-Wimplicit-function-declaration]
writeq(val, reg);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:450:8: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
val = readq(reg);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:452:2: error: implicit declaration of function 'writeq' [-Werror,-Wimplicit-function-declaration]
writeq(val, reg);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:509:20: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
parms.qword[0] = readq(this->mmio);
^
drivers/gpu/drm/lsdc/lsdc_pll.c:513:20: error: implicit declaration of function 'readq' [-Werror,-Wimplicit-function-declaration]
parms.qword[0] = readq(this->mmio);
^
6 errors generated.
vim +/readq +399 drivers/gpu/drm/lsdc/lsdc_pll.c
384
385
386 /*
387 * Update the pll parameters to hardware, target to the pixpll in ls2k1000
388 *
389 * @this: point to the object which calling this function
390 * @param: pointer to where the parameters passed in
391 *
392 * Return true if a parameter is found, otherwise return false.
393 */
394 static int ls2k1000_pixpll_param_update(struct lsdc_pll * const this,
395 const struct lsdc_pll_core_values * const param)
396 {
397 void __iomem *reg = this->mmio;
398 unsigned int counter = 0;
> 399 u64 val = readq(reg);
400 bool locked;
401
402 val &= ~(1 << 0); /* Bypass the PLL, using refclk directly */
403 val |= (1 << 19); /* powerdown the PLL */
404 val &= ~(1 << 2); /* don't use the software configure param */
> 405 writeq(val, reg);
406
407 val = (1L << 7) | (1ULL << 42) | (3L << 10); /* allow L1 PLL locked */
408 val |= (u64)param->loopc << 32; /* set loopc */
409 val |= (u64)param->div_ref << 26; /* set div_ref */
410 writeq(val, reg);
411 writeq(param->div_out, reg + 8); /* set div_out */
412
413 val = readq(reg);
414 val |= (1 << 2); /* use the software configure param */
415 val &= ~(1 << 19); /* powerup the PLL */
416 writeq(val, reg);
417
418 /* wait pll setup and locked */
419 do {
420 val = readl(reg);
421 locked = val & 0x10000;
422 counter++;
423 } while (locked == false);
424
425 drm_dbg_kms(this->ddev, "%u loop waited\n", counter);
426
427 val = readq(reg);
428 val |= (1 << 0); /* switch to the software configured pll */
429 writeq(val, reg);
430
431 return 0;
432 }
433
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next prev parent reply other threads:[~2022-02-02 2:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 15:48 [PATCH v4 0/3] drm/lsdc: add drm driver for loongson display controller Sui Jingfeng
2022-02-01 15:48 ` Sui Jingfeng
2022-02-01 15:48 ` [PATCH v4 1/3] " Sui Jingfeng
2022-02-01 15:48 ` Sui Jingfeng
2022-02-02 0:36 ` kernel test robot
2022-02-02 2:18 ` kernel test robot [this message]
2022-02-02 2:18 ` kernel test robot
2022-02-01 15:48 ` [PATCH v4 2/3] dt-bingdings: ls2k1000: add the display controller device node Sui Jingfeng
2022-02-01 15:48 ` Sui Jingfeng
2022-02-01 15:48 ` [PATCH v4 3/3] dt-bingdings: mips: loongson: introduce board specific dts Sui Jingfeng
2022-02-01 15:48 ` Sui Jingfeng
-- strict thread matches above, loose matches on Subject: below --
2022-02-02 1:47 [PATCH v4 1/3] drm/lsdc: add drm driver for loongson display controller 15330273260
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202021046.VCIJuXWN-lkp@intel.com \
--to=lkp@intel.com \
--cc=15330273260@189.cn \
--cc=Ravnborgsam@ravnborg.org \
--cc=airlied@linux.ie \
--cc=christian.gmeiner@gmail.com \
--cc=daniel@ffwll.ch \
--cc=error27@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=l.stach@pengutronix.de \
--cc=llvm@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=sroland@vmware.com \
--cc=zackr@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.