From: zhangsenchuan <zhangsenchuan@eswincomputing.com>
To: "Manivannan Sadhasivam" <mani@kernel.org>
Cc: bhelgaas@google.com, lpieralisi@kernel.org,
kwilczynski@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, linux-pci@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
p.zabel@pengutronix.de, johan+linaro@kernel.org,
quic_schintav@quicinc.com, shradha.t@samsung.com,
cassel@kernel.org, thippeswamy.havalige@amd.com,
mayank.rana@oss.qualcomm.com, inochiama@gmail.com,
ningyu@eswincomputing.com, linmin@eswincomputing.com,
pinkesh.vaghela@einfochips.com
Subject: Re: Re: [PATCH v2 2/2] PCI: eic7700: Add Eswin eic7700 PCIe host controller driver
Date: Thu, 4 Sep 2025 16:57:17 +0800 (GMT+08:00) [thread overview]
Message-ID: <4fa48331.ce3.19913f1cc89.Coremail.zhangsenchuan@eswincomputing.com> (raw)
In-Reply-To: <jghozurjqyhmtunivotitgs67h6xo4sb46qcycnbbwyvjcm4ek@vgq75olazmoi>
Dear Manivannan
Thank you for your thorough review.Here are some of my clarifications and questions.
Looking forward to your answer, Thank you very much.
> -----Original Messages-----
> From: "Manivannan Sadhasivam" <mani@kernel.org>
> Send time:Monday, 01/09/2025 14:40:41
> To: zhangsenchuan@eswincomputing.com
> Cc: bhelgaas@google.com, lpieralisi@kernel.org, kwilczynski@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, johan+linaro@kernel.org, quic_schintav@quicinc.com, shradha.t@samsung.com, cassel@kernel.org, thippeswamy.havalige@amd.com, mayank.rana@oss.qualcomm.com, inochiama@gmail.com, ningyu@eswincomputing.com, linmin@eswincomputing.com, pinkesh.vaghela@einfochips.com
> Subject: Re: [PATCH v2 2/2] PCI: eic7700: Add Eswin eic7700 PCIe host controller driver
> > + /* config eswin vendor id and eic7700 device id */
> > + dw_pcie_writel_dbi(pci, PCIE_TYPE_DEV_VEND_ID, 0x20301fe1);
>
> Does it need to be configured all the time?
Clarification:
Our hardware initialization did not configure the device Id and vendor Id.
Now, we can only rewrite the device Id and vendor Id in the code.
>
> > +
> > + /* lane fix config, real driver NOT need, default x4 */
>
> What do you mean by 'readl driver NOT need'?
>
Clarification:
Sorry, this was added during the compatibility platform test. It is not needed for real devices.
I will remove it later.
> > + val = dw_pcie_readl_dbi(pci, PCIE_PORT_MULTI_LANE_CTRL);
> > + val &= 0xffffff80;
> > + val |= 0x44;
> > + dw_pcie_writel_dbi(pci, PCIE_PORT_MULTI_LANE_CTRL, val);
> > +
> > + val = dw_pcie_readl_dbi(pci, DEVICE_CONTROL_DEVICE_STATUS);
> > + val &= ~(0x7 << 5);
> > + val |= (0x2 << 5);
> > + dw_pcie_writel_dbi(pci, DEVICE_CONTROL_DEVICE_STATUS, val);
> > +
> > + /* config support 32 msi vectors */
> > + val = dw_pcie_readl_dbi(pci, PCIE_DSP_PF0_MSI_CAP);
> > + val &= ~PCIE_MSI_MULTIPLE_MSG_MASK;
> > + val |= PCIE_MSI_MULTIPLE_MSG_32;
> > + dw_pcie_writel_dbi(pci, PCIE_DSP_PF0_MSI_CAP, val);
> > +
> > + /* disable msix cap */
>
> Why? Hw doesn't support MSI-X but it advertises MSI-X capability?
>
I'm not quite sure what this comment means? Indeed, our hardware doesn't support MSI-X.
We can't disable the MSI-X capability using the PCIE_NEXT_CAP_PTR register? Then which
register is needed to disable the MSI-X capability?
> > + val = dw_pcie_readl_dbi(pci, PCIE_NEXT_CAP_PTR);
> > + val &= 0xffff00ff;
> > + dw_pcie_writel_dbi(pci, PCIE_NEXT_CAP_PTR, val);
> > +
> > + return 0;
> > +
> > +err_clock:
> > + reset_control_assert(pcie->perst);
> > +err_perst:
> > + eswin_pcie_power_off(pcie);
> > + return ret;
> > +}
> > +
Best Regards,
Senchuan Zhang
next prev parent reply other threads:[~2025-09-04 8:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-29 8:20 [PATCH v2 0/2] Add driver support for Eswin EIC7700 SoC PCIe controller zhangsenchuan
2025-08-29 8:22 ` [PATCH v2 1/2] dt-bindings: PCI: eic7700: Add Eswin eic7700 PCIe host controller zhangsenchuan
2025-09-01 5:19 ` Krzysztof Kozlowski
2025-09-01 6:04 ` Manivannan Sadhasivam
2025-09-04 8:10 ` zhangsenchuan
2025-09-04 16:06 ` Bjorn Helgaas
2025-08-29 8:24 ` [PATCH v2 2/2] PCI: eic7700: Add Eswin eic7700 PCIe host controller driver zhangsenchuan
2025-09-01 6:40 ` Manivannan Sadhasivam
2025-09-04 8:57 ` zhangsenchuan [this message]
2025-09-04 16:01 ` Bjorn Helgaas
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=4fa48331.ce3.19913f1cc89.Coremail.zhangsenchuan@eswincomputing.com \
--to=zhangsenchuan@eswincomputing.com \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=inochiama@gmail.com \
--cc=johan+linaro@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linmin@eswincomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=mayank.rana@oss.qualcomm.com \
--cc=ningyu@eswincomputing.com \
--cc=p.zabel@pengutronix.de \
--cc=pinkesh.vaghela@einfochips.com \
--cc=quic_schintav@quicinc.com \
--cc=robh@kernel.org \
--cc=shradha.t@samsung.com \
--cc=thippeswamy.havalige@amd.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).