From: Sagar Cheluvegowda <sagar.cheluvegowda@oss.qualcomm.com>
To: netdev-bot+sashiko@kernel.org
Cc: j.raczynski@samsung.com, maxime.chevallier@bootlin.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
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,
cs0617.lee@samsung.com, k.domagalski@samsung.com,
k.tegowski@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 v2 1/3] net: stmmac: separate the TC count from the queue count on XGMAC
Date: Tue, 1 Dec 2026 12:08:31 -0800 [thread overview]
Message-ID: <298724c9-749a-46b7-94ae-4896d1df4609@oss.qualcomm.com> (raw)
In-Reply-To: <179556536060.3135.11757028491068273686@kernel.org>
On 11/24/2026 4:09 PM, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential
> issue(s) to consider.
>
> Critical: 0 · High: 2 · Medium: 1 · Low: 0
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [High] The patch limits the CBS replay in stmmac_configure_cbs()
> (stmmac_main.c:3560) to stmmac_num_tc().
> - [High] The patch limits stmmac_mac_config_tx_queues_prio()
> (stmmac_main.c:3622) to stmmac_num_tc() because TC_PRTY (PSTC) is per…
> - [Medium] The patch is meant to stop the driver assuming one TC per
> queue on XGMAC, but the register that actually assigns a queue to a TC…
>
Hi,
Thanks for the reviews of all three patches. I went through the Medium
and High findings against the code and agree with them. This one reply
covers the reviews of 1/3, 2/3 and 3/3.
They share a single root cause: on this hardware there can be more
queues than traffic classes (for example 12 queues and 8 TCs), while the
driver assumes that queue N is TC N. Raising the queue macros in 3/3
exposes that assumption in the CBS, mqprio, TC priority and queue to TC
map code.
CBS shows it most clearly. The shaper parameters (send and idle slope,
high and low credit) are written to per-TC registers, while the queue
mode (AVB or DCB) is a per-queue setting. With more queues than TCs,
several queues can end up on the same TC. The user names a queue in the
cbs qdisc, so the driver has to work out from that which TC owns the
shaper registers to program, and which of the queues that share the TC
have to be switched to AVB mode. Today the driver only has the
identity mapping (queue N is TC N), so it can program a queue's TC
correctly only when the queue number is below the TC count. Beyond that
it would write TC registers that do not exist.
Fixing this properly needs a defined mapping from queues to TCs. On
Hyper-DMA (DW25GMAC) parts, virtual DMA channels, physical DMA channels
and traffic classes are separate objects that are mapped by the
platform, and several channels can share one TC. The Hyper-DMA support
in the BCM8958x series from Broadcom (v9) uses a 1:1 mapping, so it does
not cover that case:
https://lore.kernel.org/netdev/20260402213629.1996133-1-jitendra.vegiraju@broadcom.com/
Rejecting only what does not fit would add checks that get replaced once
a mapping exists, and the series would stay half done. So I am not
going to respin it as it stands. I will rework the series with the
queue to TC mapping designed in, fold in the smaller items from the
reviews and repost.
pw-bot: cr
Regards,
Sagar
next prev parent reply other threads:[~2026-12-01 20:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 0:04 [PATCH net-next v2 0/3] net: stmmac: support up to 16 MTL/DMA queues " Sagar Cheluvegowda
2026-11-24 0:04 ` [PATCH net-next v2 1/3] net: stmmac: separate the TC count from the queue count " Sagar Cheluvegowda
2026-11-25 0:09 ` netdev-bot+sashiko
2026-12-01 20:08 ` Sagar Cheluvegowda [this message]
2026-11-24 0:04 ` [PATCH net-next v2 2/3] net/stmmac/dwxgmac: Extend MTL/DMA support to 16 queues Sagar Cheluvegowda
2026-11-25 0:09 ` netdev-bot+sashiko
2026-11-24 0:04 ` [PATCH net-next v2 3/3] include/stmmac: Increase max DMA/MTL channel count from 8 to 16 Sagar Cheluvegowda
2026-11-25 0:09 ` netdev-bot+sashiko
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=298724c9-749a-46b7-94ae-4896d1df4609@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@kernel.org \
--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-bot+sashiko@kernel.org \
--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®