From: Devi Priya <quic_devipriy@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@linaro.org>, <agross@kernel.org>,
<andersson@kernel.org>, <lpieralisi@kernel.org>, <kw@linux.com>,
<robh@kernel.org>, <bhelgaas@google.com>, <mani@kernel.org>,
<linux-arm-msm@vger.kernel.org>, <linux-pci@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <quic_srichara@quicinc.com>, <quic_sjaganat@quicinc.com>,
<quic_kathirav@quicinc.com>, <quic_anusha@quicinc.com>,
<quic_ipkumar@quicinc.com>
Subject: Re: [PATCH] PCI: qcom: configure the parf halt window size to 1GB
Date: Wed, 5 Jul 2023 15:55:31 +0530 [thread overview]
Message-ID: <bd91cf3e-3dd3-9ba8-ca66-9bd901984db6@quicinc.com> (raw)
In-Reply-To: <c85284d9-c4e9-eae4-2551-5295c4462f3b@linaro.org>
On 6/23/2023 3:47 PM, Konrad Dybcio wrote:
> On 23.06.2023 06:57, Devi Priya wrote:
>> Configure the ADDR_BIT_INDEX of PARF_AXI_MSTR_WR_ADDR_HALT_V2 register with
>> 0x1E to increase the halt window size to 1GB so that, when new inbound
>> posted write transactions whose address crosses 1G address range, the
>> controller would halt all the incoming writes until all the previous AXI
>> responses are received.
>>
>> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
>> ---
> Has this been tested on anything except IPQ9574? Does it concern other
> SoCs?
This has been tested on IPQ6018 as well.
>
>
>> This patch depends on the below series which adds support for PCIe
>> controllers in IPQ9574
>> https://lore.kernel.org/linux-arm-msm/20230519090219.15925-1-quic_devipriy@quicinc.com/
>>
>> drivers/pci/controller/dwc/pcie-qcom.c | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
>> index c7579dfa5b1c..26c40e006120 100644
>> --- a/drivers/pci/controller/dwc/pcie-qcom.c
>> +++ b/drivers/pci/controller/dwc/pcie-qcom.c
>> @@ -116,6 +116,8 @@
>>
>> /* PARF_AXI_MSTR_WR_ADDR_HALT register fields */
>> #define EN BIT(31)
>> +#define ADDR_BIT_INDEX (BIT(0) | BIT(1) | BIT(2) | \
>> + BIT(3) | BIT(4) | BIT(5))
> You surely should have the names of these bitfields, mind defining them?
Will use GENMASK(5, 0) as suggested by Mani
>
>>
>> /* PARF_LTSSM register fields */
>> #define LTSSM_EN BIT(8)
>> @@ -154,6 +156,8 @@
>>
>> #define QCOM_PCIE_CRC8_POLYNOMIAL (BIT(2) | BIT(1) | BIT(0))
>>
>> +#define PARF_AXI_MSTR_WR_ADDR_HALT_WINDOW_SIZE 0x1e
>> +
>> #define QCOM_PCIE_1_0_0_MAX_CLOCKS 4
>> struct qcom_pcie_resources_1_0_0 {
>> struct clk_bulk_data clks[QCOM_PCIE_1_0_0_MAX_CLOCKS];
>> @@ -1126,6 +1130,11 @@ static int qcom_pcie_post_init(struct qcom_pcie *pcie)
>>
>> writel(0, pcie->parf + PARF_Q2A_FLUSH);
>>
>> + val = readl(pcie->parf + PARF_AXI_MSTR_WR_ADDR_HALT_V2);
>> + val &= ~ADDR_BIT_INDEX;
>> + writel(val | PARF_AXI_MSTR_WR_ADDR_HALT_WINDOW_SIZE, pcie->parf +
>> + PARF_AXI_MSTR_WR_ADDR_HALT_V2);
> val |= ..
> writel(val, pcie..)
>
> would be more readable
Okay
Thanks,
Devi Priya
>
> Konrad
>> +
>> dw_pcie_dbi_ro_wr_en(pci);
>> writel(PCIE_CAP_SLOT_VAL, pci->dbi_base + offset + PCI_EXP_SLTCAP);
>>
next prev parent reply other threads:[~2023-07-05 10:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-23 4:57 [PATCH] PCI: qcom: configure the parf halt window size to 1GB Devi Priya
2023-06-23 10:17 ` Konrad Dybcio
2023-07-05 10:25 ` Devi Priya [this message]
2023-06-24 6:23 ` Manivannan Sadhasivam
2023-07-05 10:27 ` Devi Priya
2023-07-10 3:22 ` Manivannan Sadhasivam
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=bd91cf3e-3dd3-9ba8-ca66-9bd901984db6@quicinc.com \
--to=quic_devipriy@quicinc.com \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=konrad.dybcio@linaro.org \
--cc=kw@linux.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=quic_anusha@quicinc.com \
--cc=quic_ipkumar@quicinc.com \
--cc=quic_kathirav@quicinc.com \
--cc=quic_sjaganat@quicinc.com \
--cc=quic_srichara@quicinc.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