From: Hans Zhang <hans.zhang@cixtech.com>
To: Manikandan Karunakaran Pillai <mpillai@cadence.com>,
"lpieralisi@kernel.org" <lpieralisi@kernel.org>,
"manivannan.sadhasivam@linaro.org"
<manivannan.sadhasivam@linaro.org>,
"bhelgaas@google.com" <bhelgaas@google.com>,
"kw@linux.com" <kw@linux.com>,
"robh@kernel.org" <robh@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH 2/6] PCI: cadence: Add header support for PCIe next generation controllers
Date: Tue, 25 Mar 2025 11:12:37 +0800 [thread overview]
Message-ID: <2ab4bf45-5bfd-48b0-bb5f-262d60c6f507@cixtech.com> (raw)
In-Reply-To: <c69ef0ad-9391-42f2-9b6f-1742e9a746e4@cixtech.com>
On 2025/3/24 18:09, hans.zhang wrote:
>> + * High Performance Architecture(HPA) PCIe controller register
>> + */
>> +#define CDNS_PCIE_HPA_IP_REG_BANK 0x01000000
>> +#define CDNS_PCIE_HPA_IP_CFG_CTRL_REG_BANK 0x01003C00
>> +#define CDNS_PCIE_HPA_IP_AXI_MASTER_COMMON 0x01020000
>> +/*
>> + * Address Translation Registers(HPA)
>> + */
>> +#define CDNS_PCIE_HPA_AXI_SLAVE 0x03000000
>> +#define CDNS_PCIE_HPA_AXI_MASTER 0x03002000
>
> Hi Manikandan,
>
> Can you change this part of the code to look like this?
>
> #define CDNS_PCIE_HPA_IP_REG_BANK(a) (a)
> #define CDNS_PCIE_HPA_IP_CFG_CTRL_REG_BANK(a) (a)
> #define CDNS_PCIE_HPA_IP_AXI_MASTER_COMMON(a) (a)
> #define CDNS_PCIE_HPA_AXI_SLAVE(a) (a)
> #define CDNS_PCIE_HPA_AXI_MASTER(a) (a)
>
>
>
> The offset we designed is: (Cixtech)
> #define CDNS_PCIE_HPA_IP_REG_BANK 0x1000
> #define CDNS_PCIE_HPA_IP_CFG_CTRL_REG_BANK 0x4c00
> #define CDNS_PCIE_HPA_IP_AXI_MASTER_COMMON 0xf000
> #define CDNS_PCIE_HPA_AXI_SLAVE 0x9000
> #define CDNS_PCIE_HPA_AXI_MASTER 0xb000
> #define CDNS_PCIE_HPA_AXI_HLS_REGISTERS 0xc000
> #define CDNS_PCIE_HPA_DTI_REGISTERS 0xd000
> #define CDNS_PCIE_HPA_AXI_RAS_REGISTERS 0xe000
> #define CDNS_PCIE_HPA_DMA_BASE 0xf400
> #define CDNS_PCIE_HPA_DMA_COMMON_BASE 0xf800
>
>
> The original register bank consumed at least 48MB address space which is
> begin from 0x0000_0000 to 0x03020000. Because there is unoccupied
> address space between every two register banks , our hardware remaps the
> registers to a smaller address space which means the register bank
> offset address is changed by custormer. So, we cannot utilise the common
> code directly without rewriting the function.
>
>
> We submit and pull a Cadence case: #46872873
>
> We will also reply to you in the case.
Reply from Cadence case Manikandan:
Another option I can propose is to pass these values through the DTS
file … (Hopefully that would be lesser changes)
Hans:
I agree to get it through the DTS attribute, please modify it, so as to
be more flexible. This offset value may be modified when RTL is integrated.
Best regards,
Hans
prev parent reply other threads:[~2025-03-25 3:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250324082353.2566115-1-mpillai@cadence.com>
2025-03-24 9:08 ` [PATCH 2/6] PCI: cadence: Add header support for PCIe next generation controllers Manikandan Karunakaran Pillai
2025-03-24 10:09 ` hans.zhang
2025-03-25 3:12 ` Hans Zhang [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=2ab4bf45-5bfd-48b0-bb5f-262d60c6f507@cixtech.com \
--to=hans.zhang@cixtech.com \
--cc=bhelgaas@google.com \
--cc=devicetree@vger.kernel.org \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mpillai@cadence.com \
--cc=robh@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