All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Vinod Koul <vkoul@kernel.org>
Cc: kbuild-all@lists.01.org, linux-media@vger.kernel.org,
	linuxarm@huawei.com, mauro.chehab@huawei.com,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Rob Herring <robh@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v12] phy: HiSilicon: Add driver for Kirin 970 PCIe PHY
Date: Wed, 18 Aug 2021 21:47:42 +0800	[thread overview]
Message-ID: <202108182156.MO1rLhkq-lkp@intel.com> (raw)
In-Reply-To: <ecf443314ca05bd29fd247fc1cf37f4d94799325.1629284470.git.mchehab+huawei@kernel.org>

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

Hi Mauro,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc6 next-20210818]
[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/Mauro-Carvalho-Chehab/phy-HiSilicon-Add-driver-for-Kirin-970-PCIe-PHY/20210818-190539
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 614cb2751d3150850d459bee596c397f344a7936
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.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/90e806228f10f8375d808f4813c6ea64aaa91a2a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Mauro-Carvalho-Chehab/phy-HiSilicon-Add-driver-for-Kirin-970-PCIe-PHY/20210818-190539
        git checkout 90e806228f10f8375d808f4813c6ea64aaa91a2a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64 

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/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_set_eyeparam':
>> drivers/phy/hisilicon/phy-hi3670-pcie.c:257:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     257 |                 val |= FIELD_PREP(EYE_PARM1_MASK, phy->eye_param[1]);
         |                        ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +257 drivers/phy/hisilicon/phy-hi3670-pcie.c

   248	
   249	static void hi3670_pcie_set_eyeparam(struct hi3670_pcie_phy *phy)
   250	{
   251		u32 val;
   252	
   253		val = kirin_apb_natural_phy_readl(phy, RAWLANEN_DIG_PCS_XF_TX_OVRD_IN_1);
   254	
   255		if (phy->eye_param[1] != EYEPARAM_NOCFG) {
   256			val &= ~EYE_PARM1_MASK;
 > 257			val |= FIELD_PREP(EYE_PARM1_MASK, phy->eye_param[1]);
   258			val |= EYE_PARM1_EN;
   259		}
   260		kirin_apb_natural_phy_writel(phy, val,
   261					     RAWLANEN_DIG_PCS_XF_TX_OVRD_IN_1);
   262	
   263		val = kirin_apb_natural_phy_readl(phy, LANEN_DIG_ASIC_TX_OVRD_IN_2);
   264		val &= ~(EYE_PARM2_MASK | EYE_PARM3_MASK);
   265		if (phy->eye_param[2] != EYEPARAM_NOCFG) {
   266			val |= FIELD_PREP(EYE_PARM2_MASK, phy->eye_param[2]);
   267			val |= EYE_PARM2_EN;
   268		}
   269	
   270		if (phy->eye_param[3] != EYEPARAM_NOCFG) {
   271			val |= FIELD_PREP(EYE_PARM3_MASK, phy->eye_param[3]);
   272			val |= EYE_PARM3_EN;
   273		}
   274	
   275		kirin_apb_natural_phy_writel(phy, val, LANEN_DIG_ASIC_TX_OVRD_IN_2);
   276	
   277		val = kirin_apb_natural_phy_readl(phy, SUP_DIG_LVL_OVRD_IN);
   278		if (phy->eye_param[0] != EYEPARAM_NOCFG) {
   279			val &= ~EYE_PARM0_MASK;
   280			val |= FIELD_PREP(EYE_PARM0_MASK, phy->eye_param[0]);
   281			val |= EYE_PARM0_EN;
   282		}
   283		kirin_apb_natural_phy_writel(phy, val, SUP_DIG_LVL_OVRD_IN);
   284	
   285		val = kirin_apb_natural_phy_readl(phy, LANEN_DIG_ASIC_TX_OVRD_IN_1);
   286		if (phy->eye_param[4] != EYEPARAM_NOCFG) {
   287			val &= ~EYE_PARM4_MASK;
   288			val |= FIELD_PREP(EYE_PARM4_MASK, phy->eye_param[4]);
   289			val |= EYE_PARM4_EN;
   290		}
   291		kirin_apb_natural_phy_writel(phy, val, LANEN_DIG_ASIC_TX_OVRD_IN_1);
   292	}
   293	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 64479 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v12] phy: HiSilicon: Add driver for Kirin 970 PCIe PHY
Date: Wed, 18 Aug 2021 21:47:42 +0800	[thread overview]
Message-ID: <202108182156.MO1rLhkq-lkp@intel.com> (raw)
In-Reply-To: <ecf443314ca05bd29fd247fc1cf37f4d94799325.1629284470.git.mchehab+huawei@kernel.org>

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

Hi Mauro,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc6 next-20210818]
[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/Mauro-Carvalho-Chehab/phy-HiSilicon-Add-driver-for-Kirin-970-PCIe-PHY/20210818-190539
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 614cb2751d3150850d459bee596c397f344a7936
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.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/90e806228f10f8375d808f4813c6ea64aaa91a2a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Mauro-Carvalho-Chehab/phy-HiSilicon-Add-driver-for-Kirin-970-PCIe-PHY/20210818-190539
        git checkout 90e806228f10f8375d808f4813c6ea64aaa91a2a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64 

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/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_set_eyeparam':
>> drivers/phy/hisilicon/phy-hi3670-pcie.c:257:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     257 |                 val |= FIELD_PREP(EYE_PARM1_MASK, phy->eye_param[1]);
         |                        ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +257 drivers/phy/hisilicon/phy-hi3670-pcie.c

   248	
   249	static void hi3670_pcie_set_eyeparam(struct hi3670_pcie_phy *phy)
   250	{
   251		u32 val;
   252	
   253		val = kirin_apb_natural_phy_readl(phy, RAWLANEN_DIG_PCS_XF_TX_OVRD_IN_1);
   254	
   255		if (phy->eye_param[1] != EYEPARAM_NOCFG) {
   256			val &= ~EYE_PARM1_MASK;
 > 257			val |= FIELD_PREP(EYE_PARM1_MASK, phy->eye_param[1]);
   258			val |= EYE_PARM1_EN;
   259		}
   260		kirin_apb_natural_phy_writel(phy, val,
   261					     RAWLANEN_DIG_PCS_XF_TX_OVRD_IN_1);
   262	
   263		val = kirin_apb_natural_phy_readl(phy, LANEN_DIG_ASIC_TX_OVRD_IN_2);
   264		val &= ~(EYE_PARM2_MASK | EYE_PARM3_MASK);
   265		if (phy->eye_param[2] != EYEPARAM_NOCFG) {
   266			val |= FIELD_PREP(EYE_PARM2_MASK, phy->eye_param[2]);
   267			val |= EYE_PARM2_EN;
   268		}
   269	
   270		if (phy->eye_param[3] != EYEPARAM_NOCFG) {
   271			val |= FIELD_PREP(EYE_PARM3_MASK, phy->eye_param[3]);
   272			val |= EYE_PARM3_EN;
   273		}
   274	
   275		kirin_apb_natural_phy_writel(phy, val, LANEN_DIG_ASIC_TX_OVRD_IN_2);
   276	
   277		val = kirin_apb_natural_phy_readl(phy, SUP_DIG_LVL_OVRD_IN);
   278		if (phy->eye_param[0] != EYEPARAM_NOCFG) {
   279			val &= ~EYE_PARM0_MASK;
   280			val |= FIELD_PREP(EYE_PARM0_MASK, phy->eye_param[0]);
   281			val |= EYE_PARM0_EN;
   282		}
   283		kirin_apb_natural_phy_writel(phy, val, SUP_DIG_LVL_OVRD_IN);
   284	
   285		val = kirin_apb_natural_phy_readl(phy, LANEN_DIG_ASIC_TX_OVRD_IN_1);
   286		if (phy->eye_param[4] != EYEPARAM_NOCFG) {
   287			val &= ~EYE_PARM4_MASK;
   288			val |= FIELD_PREP(EYE_PARM4_MASK, phy->eye_param[4]);
   289			val |= EYE_PARM4_EN;
   290		}
   291		kirin_apb_natural_phy_writel(phy, val, LANEN_DIG_ASIC_TX_OVRD_IN_1);
   292	}
   293	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64479 bytes --]

  reply	other threads:[~2021-08-18 13:48 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12  8:02 [PATCH v11 00/11] Add support for Hikey 970 PCIe Mauro Carvalho Chehab
2021-08-12  8:02 ` Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 01/11] phy: HiSilicon: Add driver for Kirin 970 PCIe PHY Mauro Carvalho Chehab
2021-08-12  8:02   ` Mauro Carvalho Chehab
2021-08-17 10:42   ` Vinod Koul
2021-08-17 10:42     ` Vinod Koul
2021-08-18  9:01     ` Mauro Carvalho Chehab
2021-08-18  9:01       ` Mauro Carvalho Chehab
2021-08-18 10:08       ` Mauro Carvalho Chehab
2021-08-18 10:08         ` Mauro Carvalho Chehab
2021-08-18 10:10       ` Vinod Koul
2021-08-18 10:10         ` Vinod Koul
2021-08-18 10:30         ` Mauro Carvalho Chehab
2021-08-18 10:30           ` Mauro Carvalho Chehab
2021-08-18 10:37           ` Vinod Koul
2021-08-18 10:37             ` Vinod Koul
2021-08-20 13:43             ` [PATCH v13] " Mauro Carvalho Chehab
2021-08-20 13:43               ` Mauro Carvalho Chehab
2021-08-20 23:04               ` kernel test robot
2021-08-20 23:04                 ` kernel test robot
2021-08-18 11:04         ` [PATCH v12] " Mauro Carvalho Chehab
2021-08-18 11:04           ` Mauro Carvalho Chehab
2021-08-18 13:47           ` kernel test robot [this message]
2021-08-18 13:47             ` kernel test robot
2021-09-15 13:11           ` Mauro Carvalho Chehab
2021-09-15 13:11             ` Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 02/11] PCI: kirin: Reorganize the PHY logic inside the driver Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 03/11] PCI: kirin: Add support for a PHY layer Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 04/11] PCI: kirin: Use regmap for APB registers Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 05/11] PCI: kirin: Add support for bridge slot DT schema Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 06/11] PCI: kirin: Add Kirin 970 compatible Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 07/11] PCI: kirin: Add MODULE_* macros Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 08/11] PCI: kirin: Allow building it as a module Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 09/11] PCI: kirin: Add power_off support for Kirin 960 PHY Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 10/11] PCI: kirin: fix poweroff sequence Mauro Carvalho Chehab
2021-08-12  8:02 ` [PATCH v11 11/11] PCI: kirin: Allow removing the driver Mauro Carvalho Chehab

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=202108182156.MO1rLhkq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kishon@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=mani@kernel.org \
    --cc=mauro.chehab@huawei.com \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=vkoul@kernel.org \
    /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.