Netdev List
 help / color / mirror / Atom feed
* [PATCH net v2 0/1] net: ethernet: qualcomm: ppe: Fix multicast queue admission control access
@ 2026-10-19 10:59 Til Kaiser
  2026-10-19 10:59 ` [PATCH net v2 1/1] " Til Kaiser
  0 siblings, 1 reply; 3+ messages in thread
From: Til Kaiser @ 2026-10-19 10:59 UTC (permalink / raw)
  To: netdev; +Cc: jie.luo, andrew+netdev, davem, edumazet, kuba, pabeni,
	linux-kernel

Fix multicast admission control accesses to use table-relative queue
indices and the three words belonging to each entry.

Changes since v1:
- Drop the port validation binding patch following review.

Thanks,
Til

Til Kaiser (1):
  net: ethernet: qualcomm: ppe: Fix multicast queue admission control
    access

 drivers/net/ethernet/qualcomm/ppe/ppe_config.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


base-commit: 07bd391eb9572e74f073c49acef327611234f9bb
-- 
2.56.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH net v2 1/1] net: ethernet: qualcomm: ppe: Fix multicast queue admission control access
  2026-10-19 10:59 [PATCH net v2 0/1] net: ethernet: qualcomm: ppe: Fix multicast queue admission control access Til Kaiser
@ 2026-10-19 10:59 ` Til Kaiser
  2026-10-19 11:03   ` netdev-bot+sinfo
  0 siblings, 1 reply; 3+ messages in thread
From: Til Kaiser @ 2026-10-19 10:59 UTC (permalink / raw)
  To: netdev; +Cc: jie.luo, andrew+netdev, davem, edumazet, kuba, pabeni,
	linux-kernel

Multicast queues have global IDs 256 through 299, but their admission
control table has 44 entries indexed from zero. Using the global queue
ID accesses registers beyond that table, leaving the multicast
thresholds unconfigured. Subtract the unicast queue count when
addressing the multicast table. Keep the global IDs for enqueue and
dequeue operations.

Each multicast admission control entry contains three words at a 16-byte
stride. Limit the bulk accesses to those three words instead of
accessing five words, which also reaches the next entry.

The indexing issue was reported by Sashiko.

Fixes: 806268dc7efd ("net: ethernet: qualcomm: Initialize PPE queue management for IPQ9574")
Link: https://lore.kernel.org/netdev/179143027873.434549.15034517641240789690@kernel.org/
Signed-off-by: Til Kaiser <mail@tk154.de>
---
 drivers/net/ethernet/qualcomm/ppe/ppe_config.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/qualcomm/ppe/ppe_config.c b/drivers/net/ethernet/qualcomm/ppe/ppe_config.c
index 125b73be92b1..95b29db45580 100644
--- a/drivers/net/ethernet/qualcomm/ppe/ppe_config.c
+++ b/drivers/net/ethernet/qualcomm/ppe/ppe_config.c
@@ -1474,7 +1474,7 @@ static int ppe_config_qm(struct ppe_device *ppe_dev)
 {
 	const struct ppe_qm_queue_config *queue_cfg;
 	int ret, i, queue_id, queue_cfg_count;
-	u32 reg, multicast_queue_cfg[5];
+	u32 reg, multicast_queue_cfg[3];
 	u32 unicast_queue_cfg[4];
 	u32 group_cfg[3];
 
@@ -1530,8 +1530,11 @@ static int ppe_config_qm(struct ppe_device *ppe_dev)
 				if (ret)
 					goto qm_config_fail;
 			} else {
+				int mc_queue_id = queue_id -
+					PPE_AC_UNICAST_QUEUE_CFG_TBL_ENTRIES;
+
 				reg = PPE_AC_MULTICAST_QUEUE_CFG_TBL_ADDR +
-				      PPE_AC_MULTICAST_QUEUE_CFG_TBL_INC * queue_id;
+				      PPE_AC_MULTICAST_QUEUE_CFG_TBL_INC * mc_queue_id;
 
 				ret = regmap_bulk_read(ppe_dev->regmap, reg,
 						       multicast_queue_cfg,
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net v2 1/1] net: ethernet: qualcomm: ppe: Fix multicast queue admission control access
  2026-10-19 10:59 ` [PATCH net v2 1/1] " Til Kaiser
@ 2026-10-19 11:03   ` netdev-bot+sinfo
  0 siblings, 0 replies; 3+ messages in thread
From: netdev-bot+sinfo @ 2026-10-19 11:03 UTC (permalink / raw)
  To: Til Kaiser
  Cc: netdev, jie.luo, andrew+netdev, davem, edumazet, kuba, pabeni,
	linux-kernel

Hi!

This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:

 - Whether the issue was actually triggered, or is only theoretical
   (e.g. found by code inspection). If it was triggered please include
   the symptoms, like the stack trace or error messages.

 - What hardware the change was tested on. For driver fixes please
   mention the device (and if relevant firmware version) used for
   testing, or say that the change was not tested on real hardware.

Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account. If the series needs another revision for
other reasons, please include the information in the commit messages
then.

The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-19 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 10:59 [PATCH net v2 0/1] net: ethernet: qualcomm: ppe: Fix multicast queue admission control access Til Kaiser
2026-10-19 10:59 ` [PATCH net v2 1/1] " Til Kaiser
2026-10-19 11:03   ` netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox