Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: Niklas Cassel <cassel@kernel.org>,
	oe-kbuild-all@lists.linux.dev, linux-pci@vger.kernel.org,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Hans Zhang <18255117159@163.com>,
	Wilfred Mallawa <wilfred.mallawa@wdc.com>
Subject: Re: [pci:controller/dw-rockchip 2/3] drivers/pci/controller/dwc/pcie-dw-rockchip.c:227:9: error: 'PCIE_T_PVPERL_MS' undeclared; did you mean 'PCIE_ATU_TYPE_MSG'?
Date: Fri, 30 May 2025 17:04:33 -0500	[thread overview]
Message-ID: <20250530220433.GA239797@bhelgaas> (raw)
In-Reply-To: <202505310520.ElO2YbM3-lkp@intel.com>

On Sat, May 31, 2025 at 05:29:09AM +0800, kernel test robot wrote:
> Hi Niklas,
> 
> FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git controller/dw-rockchip
> head:   a47c73d6a884edf2a8b09015596744a495c6a236
> commit: 56825f5946a0da29658fa8e768c8706dffdac82b [2/3] PCI: dw-rockchip: Replace PERST# sleep time with proper macro
> config: arm-randconfig-003-20250531 (https://download.01.org/0day-ci/archive/20250531/202505310520.ElO2YbM3-lkp@intel.com/config)
> compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250531/202505310520.ElO2YbM3-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202505310520.ElO2YbM3-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    drivers/pci/controller/dwc/pcie-dw-rockchip.c: In function 'rockchip_pcie_start_link':
> >> drivers/pci/controller/dwc/pcie-dw-rockchip.c:227:9: error: 'PCIE_T_PVPERL_MS' undeclared (first use in this function); did you mean 'PCIE_ATU_TYPE_MSG'?
>      msleep(PCIE_T_PVPERL_MS);
>             ^~~~~~~~~~~~~~~~
>             PCIE_ATU_TYPE_MSG
>    drivers/pci/controller/dwc/pcie-dw-rockchip.c:227:9: note: each undeclared identifier is reported only once for each function it appears in
> 

My fault, I added

  #include "../../pci.h"

which was previously added by "PCI: dw-rockchip: Do not enumerate bus
before endpoint devices are ready" patch, which I dropped while we
figure out where to put the delay.

> vim +227 drivers/pci/controller/dwc/pcie-dw-rockchip.c
> 
>    208	
>    209	static int rockchip_pcie_start_link(struct dw_pcie *pci)
>    210	{
>    211		struct rockchip_pcie *rockchip = to_rockchip_pcie(pci);
>    212	
>    213		/* Reset device */
>    214		gpiod_set_value_cansleep(rockchip->rst_gpio, 0);
>    215	
>    216		rockchip_pcie_enable_ltssm(rockchip);
>    217	
>    218		/*
>    219		 * PCIe requires the refclk to be stable for 100µs prior to releasing
>    220		 * PERST. See table 2-4 in section 2.6.2 AC Specifications of the PCI
>    221		 * Express Card Electromechanical Specification, 1.1. However, we don't
>    222		 * know if the refclk is coming from RC's PHY or external OSC. If it's
>    223		 * from RC, so enabling LTSSM is the just right place to release #PERST.
>    224		 * We need more extra time as before, rather than setting just
>    225		 * 100us as we don't know how long should the device need to reset.
>    226		 */
>  > 227		msleep(PCIE_T_PVPERL_MS);
>    228		gpiod_set_value_cansleep(rockchip->rst_gpio, 1);
>    229	
>    230		return 0;
>    231	}
>    232	
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

      reply	other threads:[~2025-05-30 22:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-30 21:29 [pci:controller/dw-rockchip 2/3] drivers/pci/controller/dwc/pcie-dw-rockchip.c:227:9: error: 'PCIE_T_PVPERL_MS' undeclared; did you mean 'PCIE_ATU_TYPE_MSG'? kernel test robot
2025-05-30 22:04 ` Bjorn Helgaas [this message]

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=20250530220433.GA239797@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=18255117159@163.com \
    --cc=cassel@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wilfred.mallawa@wdc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox