From: kbuild test robot <lkp@intel.com>
To: Stanislav Spassov <stanspas@amazon.com>
Cc: kbuild-all@lists.01.org, linux-pci@vger.kernel.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [PATCH v2 07/17] PCI: Clean up and document PM/reset delays
Date: Tue, 3 Mar 2020 09:51:52 +0800 [thread overview]
Message-ID: <202003030942.IzJTJ5cB%lkp@intel.com> (raw)
In-Reply-To: <20200302184429.12880-8-stanspas@amazon.com>
[-- Attachment #1: Type: text/plain, Size: 4578 bytes --]
Hi Stanislav,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9]
url: https://github.com/0day-ci/linux/commits/Stanislav-Spassov/Improve-PCI-device-post-reset-readiness-polling/20200303-043307
base: bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
config: arm-multi_v5_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce:
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
GCC_VERSION=7.5.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/pci/controller/pci-mvebu.c: In function 'mvebu_pcie_powerup':
>> drivers/pci/controller/pci-mvebu.c:930:22: error: 'PCI_PM_D3COLD_WAIT' undeclared (first use in this function); did you mean 'PCI_PM_D3HOT_DELAY'?
u32 reset_udelay = PCI_PM_D3COLD_WAIT * 1000;
^~~~~~~~~~~~~~~~~~
PCI_PM_D3HOT_DELAY
drivers/pci/controller/pci-mvebu.c:930:22: note: each undeclared identifier is reported only once for each function it appears in
vim +930 drivers/pci/controller/pci-mvebu.c
49cb1f718360f8 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 915
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 916 /*
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 917 * Power up a PCIe port. PCIe requires the refclk to be stable for 100µs
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 918 * prior to releasing PERST. See table 2-4 in section 2.6.2 AC Specifications
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 919 * of the PCI Express Card Electromechanical Specification, 1.1.
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 920 */
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 921 static int mvebu_pcie_powerup(struct mvebu_pcie_port *port)
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 922 {
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 923 int ret;
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 924
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 925 ret = clk_prepare_enable(port->clk);
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 926 if (ret < 0)
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 927 return ret;
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 928
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 929 if (port->reset_gpio) {
8ed81ec82a8c57 drivers/pci/host/pci-mvebu.c Lucas Stach 2017-02-02 @930 u32 reset_udelay = PCI_PM_D3COLD_WAIT * 1000;
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 931
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 932 of_property_read_u32(port->dn, "reset-delay-us",
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 933 &reset_udelay);
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 934
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 935 udelay(100);
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 936
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 937 gpiod_set_value_cansleep(port->reset_gpio, 0);
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 938 msleep(reset_udelay / 1000);
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 939 }
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 940
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 941 return 0;
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 942 }
d609a8d8e88a42 drivers/pci/host/pci-mvebu.c Russell King 2015-10-03 943
:::::: The code at line 930 was first introduced by commit
:::::: 8ed81ec82a8c57c3a6ad69b4c4d3e4801163c256 PCI: mvebu: Change delay after reset to the PCIe spec mandated 100ms
:::::: TO: Lucas Stach <l.stach@pengutronix.de>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>
---
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: 34127 bytes --]
next parent reply other threads:[~2020-03-03 1:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200302184429.12880-8-stanspas@amazon.com>
2020-03-03 1:51 ` kbuild test robot [this message]
2020-03-03 2:54 ` [PATCH v2 07/17] PCI: Clean up and document PM/reset delays kbuild test robot
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=202003030942.IzJTJ5cB%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=linux-pci@vger.kernel.org \
--cc=stanspas@amazon.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;
as well as URLs for NNTP newsgroup(s).