From: Sagar Cheluvegowda <sagar.cheluvegowda@oss.qualcomm.com>
To: Jakub Raczynski <j.raczynski@samsung.com>
Cc: maxime.chevallier@bootlin.com, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, mcoquelin.stm32@gmail.com,
alexandre.torgue@foss.st.com, netdev@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
k.domagalski@samsung.com, k.tegowski@samsung.com,
cs0617.lee@samsung.com, abhishek.chauhan@oss.qualcomm.com,
lorenzo.bianconi@oss.qualcomm.com, sarosh.hasan@oss.qualcomm.com,
hongmei.xu@oss.qualcomm.com
Subject: Re: [PATCH net-next] net/stmmac/dwxgmac: Extend MTL/DMA support to 16 queues
Date: Mon, 2 Nov 2026 16:21:26 -0800 [thread overview]
Message-ID: <7005e138-6d5a-4c39-aef0-7200cf3bf911@oss.qualcomm.com> (raw)
In-Reply-To: <atXhR0sgdW84YxcQ@AMDC4622.eu.corp.samsungelectronics.net>
Hi Jakub,
Apologies for the late reply, and thanks for the review.
> - Does it work if macro MTL_MAX_{TX/RX}_QUEUES is not increased?
No. With the macros at 8, the DT parser clamps snps,{rx,tx}-queues-to-use
to 8 and ignores the extra queue nodes, so queues 8-11 are never set up or
mapped. The patch has no effect until the macros are raised. Our 12-queue
testing was on a tree that also raises them, and my note under the "---"
should have said so. You are right that it should not go out on its own.
> How does it look like in your hardware? 12 DMA and (8 or 12) TC's?
The Nord hardware supports 16 queues, but only 12 are enabled in our SoC.
It has 8 TCs, so DMA != TC here too.
>
> I agree with comment by Jakub Kicinski on my patchset 1/3 that I should have
> implemented it better, but never finally did. Issue is, stmmac driver
> assumes number of DMA = TC and uses {tx/rx}_queues_to_use everywhere.
> So proper implementation would be spliting DMA count and TC count,
> where both can be verified by stmmac_get_hw_features().
Agreed. I went through your 1/3 against the databook. One point on flow
control: XGMAC_Qx_TX_FLOW_CTRL(i) and the PSRQ(i) fields exist only for
i = 0..7, since PFC is per 802.1Q priority, and 0x90..0x98 is RX_FLOW_CTRL /
MAC_RxQ_Ctrl4/5. Bounding dwxgmac2_flow_ctrl() by numtc is therefore not the
right limit: it happens to be correct for 8 TCs, but wrong where numtc < 8,
and it should be a fixed 8 (the PSRQ window; MAC_RxQ_Ctrl5.PRQSO can shift
that window).
I will review the whole series thoroughly and pick it up after testing it
internally on Nord. I will keep your authorship and sign-offs on the parts
that come from your patches.
Thanks,
Sagar
prev parent reply other threads:[~2026-11-03 0:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20261016193835eucas1p128cb1712afce0314b1ecb65b0c0fc841@eucas1p1.samsung.com>
2026-10-16 19:38 ` Sagar Cheluvegowda
2026-10-19 9:22 ` Jakub Raczynski
2026-11-03 0:21 ` Sagar Cheluvegowda [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=7005e138-6d5a-4c39-aef0-7200cf3bf911@oss.qualcomm.com \
--to=sagar.cheluvegowda@oss.qualcomm.com \
--cc=abhishek.chauhan@oss.qualcomm.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=cs0617.lee@samsung.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hongmei.xu@oss.qualcomm.com \
--cc=j.raczynski@samsung.com \
--cc=k.domagalski@samsung.com \
--cc=k.tegowski@samsung.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=lorenzo.bianconi@oss.qualcomm.com \
--cc=maxime.chevallier@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sarosh.hasan@oss.qualcomm.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®