From: kernel test robot <lkp@intel.com>
To: Ziyue Zhang <quic_ziyuzhan@quicinc.com>,
andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, jingoohan1@gmail.com,
mani@kernel.org, lpieralisi@kernel.org, kwilczynski@kernel.org,
bhelgaas@google.com, johan+linaro@kernel.org, vkoul@kernel.org,
kishon@kernel.org, neil.armstrong@linaro.org,
abel.vesa@linaro.org, kw@linux.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
linux-phy@lists.infradead.org, qiang.yu@oss.qualcomm.com,
quic_krichai@quicinc.com, quic_vbadigan@quicinc.com,
Ziyue Zhang <quic_ziyuzhan@quicinc.com>
Subject: Re: [PATCH v3 1/3] PCI: qcom: Add equalization settings for 8.0 GT/s
Date: Thu, 26 Jun 2025 03:15:55 +0800 [thread overview]
Message-ID: <202506260310.BUxJgnmS-lkp@intel.com> (raw)
In-Reply-To: <20250625085801.526669-2-quic_ziyuzhan@quicinc.com>
Hi Ziyue,
kernel test robot noticed the following build warnings:
[auto build test WARNING on e04c78d86a9699d136910cfc0bdcf01087e3267e]
url: https://github.com/intel-lab-lkp/linux/commits/Ziyue-Zhang/PCI-qcom-Add-equalization-settings-for-8-0-GT-s/20250625-170049
base: e04c78d86a9699d136910cfc0bdcf01087e3267e
patch link: https://lore.kernel.org/r/20250625085801.526669-2-quic_ziyuzhan%40quicinc.com
patch subject: [PATCH v3 1/3] PCI: qcom: Add equalization settings for 8.0 GT/s
config: i386-buildonly-randconfig-002-20250626 (https://download.01.org/0day-ci/archive/20250626/202506260310.BUxJgnmS-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250626/202506260310.BUxJgnmS-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/202506260310.BUxJgnmS-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/pci/controller/dwc/pcie-qcom-common.c:15:17: warning: unused variable 'dev' [-Wunused-variable]
15 | struct device *dev = pci->dev;
| ^~~
1 warning generated.
vim +/dev +15 drivers/pci/controller/dwc/pcie-qcom-common.c
10
11 void qcom_pcie_common_set_equalization(struct dw_pcie *pci)
12 {
13 u32 reg;
14 u16 speed, max_speed = PCIE_SPEED_16_0GT;
> 15 struct device *dev = pci->dev;
16
17 /*
18 * GEN3_RELATED_OFF register is repurposed to apply equalization
19 * settings at various data transmission rates through registers namely
20 * GEN3_EQ_*. The RATE_SHADOW_SEL bit field of GEN3_RELATED_OFF
21 * determines the data rate for which these equalization settings are
22 * applied.
23 */
24 if (pcie_link_speed[pci->max_link_speed] < PCIE_SPEED_32_0GT)
25 max_speed = pcie_link_speed[pci->max_link_speed];
26
27 for (speed = PCIE_SPEED_8_0GT; speed <= max_speed; ++speed) {
28 reg = dw_pcie_readl_dbi(pci, GEN3_RELATED_OFF);
29 reg &= ~GEN3_RELATED_OFF_GEN3_ZRXDC_NONCOMPL;
30 reg &= ~GEN3_RELATED_OFF_RATE_SHADOW_SEL_MASK;
31 reg |= FIELD_PREP(GEN3_RELATED_OFF_RATE_SHADOW_SEL_MASK,
32 speed - PCIE_SPEED_8_0GT);
33 dw_pcie_writel_dbi(pci, GEN3_RELATED_OFF, reg);
34
35 reg = dw_pcie_readl_dbi(pci, GEN3_EQ_FB_MODE_DIR_CHANGE_OFF);
36 reg &= ~(GEN3_EQ_FMDC_T_MIN_PHASE23 |
37 GEN3_EQ_FMDC_N_EVALS |
38 GEN3_EQ_FMDC_MAX_PRE_CUSROR_DELTA |
39 GEN3_EQ_FMDC_MAX_POST_CUSROR_DELTA);
40 reg |= FIELD_PREP(GEN3_EQ_FMDC_T_MIN_PHASE23, 0x1) |
41 FIELD_PREP(GEN3_EQ_FMDC_N_EVALS, 0xd) |
42 FIELD_PREP(GEN3_EQ_FMDC_MAX_PRE_CUSROR_DELTA, 0x5) |
43 FIELD_PREP(GEN3_EQ_FMDC_MAX_POST_CUSROR_DELTA, 0x5);
44 dw_pcie_writel_dbi(pci, GEN3_EQ_FB_MODE_DIR_CHANGE_OFF, reg);
45
46 reg = dw_pcie_readl_dbi(pci, GEN3_EQ_CONTROL_OFF);
47 reg &= ~(GEN3_EQ_CONTROL_OFF_FB_MODE |
48 GEN3_EQ_CONTROL_OFF_PHASE23_EXIT_MODE |
49 GEN3_EQ_CONTROL_OFF_FOM_INC_INITIAL_EVAL |
50 GEN3_EQ_CONTROL_OFF_PSET_REQ_VEC);
51 dw_pcie_writel_dbi(pci, GEN3_EQ_CONTROL_OFF, reg);
52 }
53 }
54 EXPORT_SYMBOL_GPL(qcom_pcie_common_set_equalization);
55
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-06-25 19:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-25 8:57 [PATCH v3 0/3] Add Equalization Settings for 8.0 GT/s and Add PCIe Lane Equalization Preset Properties for 8.0 GT/s and 16.0 GT/s Ziyue Zhang
2025-06-25 8:57 ` [PATCH v3 1/3] PCI: qcom: Add equalization settings for 8.0 GT/s Ziyue Zhang
2025-06-25 15:58 ` Manivannan Sadhasivam
2025-06-30 7:19 ` Ziyue Zhang
2025-06-25 19:15 ` kernel test robot [this message]
2025-06-25 8:58 ` [PATCH v3 2/3] PCI: qcom: fix macro typo for CURSOR Ziyue Zhang
2025-06-25 8:58 ` [PATCH v3 3/3] arm64: dts: qcom: sa8775p: Add PCIe lane equalization preset properties Ziyue Zhang
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=202506260310.BUxJgnmS-lkp@intel.com \
--to=lkp@intel.com \
--cc=abel.vesa@linaro.org \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jingoohan1@gmail.com \
--cc=johan+linaro@kernel.org \
--cc=kishon@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kw@linux.com \
--cc=kwilczynski@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=qiang.yu@oss.qualcomm.com \
--cc=quic_krichai@quicinc.com \
--cc=quic_vbadigan@quicinc.com \
--cc=quic_ziyuzhan@quicinc.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox