From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
To: Daniel Golle <daniel@makrotopia.org>,
Felix Fietkau <nbd@nbd.name>,
"Sean Wang" <sean.wang@mediatek.com>,
Mark Lee <Mark-MC.Lee@mediatek.com>,
"Lorenzo Bianconi" <lorenzo@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>
Subject: Re: [PATCH net v2 2/2] net: ethernet: mediatek: use ADMAv1 instead of ADMAv2.0 on MT7981 and MT7986
Date: Tue, 7 May 2024 17:54:46 +0200 [thread overview]
Message-ID: <9b9a42af-1a73-4896-9bfe-afd55ae5b278@intel.com> (raw)
In-Reply-To: <9a694114ffbbf5f03384b0cbf0c27b9528c94576.1715084578.git.daniel@makrotopia.org>
On 5/7/24 14:25, Daniel Golle wrote:
> ADMAv2.0 is plagued by RX hangs which can't easily detected and happen upon
nit: missing "be" after "can't",
but no need to respin just for that
> receival of a corrupted Ethernet frame.
>
> Use ADMAv1 instead which is also still present and usable, and doesn't
> suffer from that problem.
>
> Fixes: 197c9e9b17b1 ("net: ethernet: mtk_eth_soc: introduce support for mt7986 chipset")
> Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
> ---
> v2: improve commit message
> drivers/net/ethernet/mediatek/mtk_eth_soc.c | 46 ++++++++++-----------
> 1 file changed, 23 insertions(+), 23 deletions(-)
>
> diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> index 3eefb735ce19..d7d73295f0dc 100644
> --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> @@ -110,16 +110,16 @@ static const struct mtk_reg_map mt7986_reg_map = {
MT7981 uses the same regmap, so is covered too, fine
> .tx_irq_mask = 0x461c,
> .tx_irq_status = 0x4618,
> .pdma = {
> - .rx_ptr = 0x6100,
> - .rx_cnt_cfg = 0x6104,
> - .pcrx_ptr = 0x6108,
> - .glo_cfg = 0x6204,
> - .rst_idx = 0x6208,
> - .delay_irq = 0x620c,
> - .irq_status = 0x6220,
> - .irq_mask = 0x6228,
> - .adma_rx_dbg0 = 0x6238,
> - .int_grp = 0x6250,
> + .rx_ptr = 0x4100,
> + .rx_cnt_cfg = 0x4104,
> + .pcrx_ptr = 0x4108,
> + .glo_cfg = 0x4204,
> + .rst_idx = 0x4208,
> + .delay_irq = 0x420c,
> + .irq_status = 0x4220,
> + .irq_mask = 0x4228,
> + .adma_rx_dbg0 = 0x4238,
> + .int_grp = 0x4250,
> },
> .qdma = {
> .qtx_cfg = 0x4400,
// ...
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
next prev parent reply other threads:[~2024-05-07 15:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 12:24 [PATCH net v2 1/2] net: ethernet: mediatek: split tx and rx fields in mtk_soc_data struct Daniel Golle
2024-05-07 12:25 ` [PATCH net v2 2/2] net: ethernet: mediatek: use ADMAv1 instead of ADMAv2.0 on MT7981 and MT7986 Daniel Golle
2024-05-07 15:54 ` Przemek Kitszel [this message]
2024-05-07 15:47 ` [PATCH net v2 1/2] net: ethernet: mediatek: split tx and rx fields in mtk_soc_data struct Przemek Kitszel
2024-05-08 2:38 ` Jakub Kicinski
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=9b9a42af-1a73-4896-9bfe-afd55ae5b278@intel.com \
--to=przemyslaw.kitszel@intel.com \
--cc=Mark-MC.Lee@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sean.wang@mediatek.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
all inboxes | Powered by JetHome®