From: Wojciech Drewek <wojciech.drewek@intel.com>
To: Furong Xu <0x1207@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Jose Abreu <joabreu@synopsys.com>,
"Eric Dumazet" <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Joao Pinto <jpinto@synopsys.com>, Simon Horman <horms@kernel.org>,
<netdev@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <xfr@outlook.com>,
<rock.xu@nio.com>
Subject: Re: [PATCH net v1] net: stmmac: xgmac: Disable FPE MMC interrupts
Date: Thu, 23 Nov 2023 11:34:32 +0100 [thread overview]
Message-ID: <cf62fefa-c746-4d20-8845-38e3475f0ed5@intel.com> (raw)
In-Reply-To: <20231123182405.00006454@gmail.com>
On 23.11.2023 11:24, Furong Xu wrote:
> On Thu, 23 Nov 2023 11:17:17 +0100
> Wojciech Drewek <wojciech.drewek@intel.com> wrote:
>
>> On 23.11.2023 10:35, Furong Xu wrote:
>>> Commit aeb18dd07692 ("net: stmmac: xgmac: Disable MMC interrupts
>>> by default") leaves the FPE(Frame Preemption) MMC interrupts enabled.
>>> Now we disable FPE TX and RX interrupts too.
>>
>> Hi,
>> Thanks for the patch, one question:
>> Why do we have to disable them?
>>
>
> The original commit aeb18dd07692 by Jose Abreu says:
>
> MMC interrupts were being enabled, which is not what we want because it
> will lead to a storm of interrupts that are not handled at all. Fix it
> by disabling all MMC interrupts for XGMAC.
I would add this information the commit message.
>
>>>
>>> Fixes: aeb18dd07692 ("net: stmmac: xgmac: Disable MMC interrupts by default")
>>> Signed-off-by: Furong Xu <0x1207@gmail.com>
>>> ---
>>> drivers/net/ethernet/stmicro/stmmac/mmc_core.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/drivers/net/ethernet/stmicro/stmmac/mmc_core.c b/drivers/net/ethernet/stmicro/stmmac/mmc_core.c
>>> index ea4910ae0921..cdd7fbde2bfa 100644
>>> --- a/drivers/net/ethernet/stmicro/stmmac/mmc_core.c
>>> +++ b/drivers/net/ethernet/stmicro/stmmac/mmc_core.c
>>> @@ -177,8 +177,10 @@
>>> #define MMC_XGMAC_RX_DISCARD_OCT_GB 0x1b4
>>> #define MMC_XGMAC_RX_ALIGN_ERR_PKT 0x1bc
>>>
>>> +#define MMC_XGMAC_FPE_TX_INTR_MASK 0x204
>>> #define MMC_XGMAC_TX_FPE_FRAG 0x208
>>> #define MMC_XGMAC_TX_HOLD_REQ 0x20c
>>> +#define MMC_XGMAC_FPE_RX_INTR_MASK 0x224
>>> #define MMC_XGMAC_RX_PKT_ASSEMBLY_ERR 0x228
>>> #define MMC_XGMAC_RX_PKT_SMD_ERR 0x22c
>>> #define MMC_XGMAC_RX_PKT_ASSEMBLY_OK 0x230
>>> @@ -352,6 +354,8 @@ static void dwxgmac_mmc_intr_all_mask(void __iomem *mmcaddr)
>>> {
>>> writel(0x0, mmcaddr + MMC_RX_INTR_MASK);
>>> writel(0x0, mmcaddr + MMC_TX_INTR_MASK);
>>> + writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_FPE_TX_INTR_MASK);
>>> + writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_FPE_RX_INTR_MASK);
>>> writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_RX_IPC_INTR_MASK);
>>> }
>>>
>
next prev parent reply other threads:[~2023-11-23 10:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-23 9:35 [PATCH net v1] net: stmmac: xgmac: Disable FPE MMC interrupts Furong Xu
2023-11-23 10:17 ` Wojciech Drewek
2023-11-23 10:24 ` Furong Xu
2023-11-23 10:34 ` Wojciech Drewek [this message]
2023-11-23 18:57 ` Andrew Lunn
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=cf62fefa-c746-4d20-8845-38e3475f0ed5@intel.com \
--to=wojciech.drewek@intel.com \
--cc=0x1207@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=joabreu@synopsys.com \
--cc=jpinto@synopsys.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rock.xu@nio.com \
--cc=xfr@outlook.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