Article View: linux.kernel.netdev
Article #1919[PATCH net-next v2 02/11] net: ethernet: qualcomm: ppe: Fix multicast queue config table access
From: Luo Jie
Date: Sun, 11 Oct 2026 13:02
Date: Sun, 11 Oct 2026 13:02
51 lines
13896 bytes
13896 bytes
PPE queues 0-255 are unicast queues and queues from 256 onwards are
multicast queues. The multicast queue configuration table has its own
index, starting from 0 for the first multicast queue, and each entry
has 3 words.
The driver uses the absolute queue ID as the index of this table, which
is out of range for every multicast queue. As a result, the multicast
queue thresholds are never configured, and unrelated QM registers are
written instead. The driver also accesses 5 words per entry instead
of 3.
Fix it by converting the queue ID to the index of the multicast queue
configuration table and accessing only the 3 words of the entry.
Signed-off-by: Luo Jie <jie.luo@oss.qualcomm.com>
---
drivers/net/ethernet/qualcomm/ppe/ppe_config.c | 9 +++++++--
1 file changed, 7 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..2f4f59280647 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,13 @@ static int ppe_config_qm(struct ppe_device *ppe_dev)
if (ret)
goto qm_config_fail;
} else {
+ /* The multicast queue table is indexed from 0 for
+ * the first multicast queue, which follows the
+ * unicast queues.
+ */
reg = PPE_AC_MULTICAST_QUEUE_CFG_TBL_ADDR +
- PPE_AC_MULTICAST_QUEUE_CFG_TBL_INC * queue_id;
+ PPE_AC_MULTICAST_QUEUE_CFG_TBL_INC *
+ (queue_id - PPE_AC_UNICAST_QUEUE_CFG_TBL_ENTRIES);
ret = regmap_bulk_read(ppe_dev->regmap, reg,
multicast_queue_cfg,
--
2.43.0
Technical Details
Message-ID:
<20261011-qcom_ipq5424_ppe-v2-2-8c7b057e2c43@oss.qualcomm.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344487-linux-kernel-netdev=dewy.ruReferences:
<20261011-qcom_ipq5424_ppe-v2-0-8c7b057e2c43@oss.qualcomm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344487-linux-kernel-netdev=dewy.ru
From: jie.luo@oss.qualcomm.com (Luo Jie)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v2 02/11] net: ethernet: qualcomm: ppe: Fix
multicast queue config table access
Date: Sun, 11 Oct 2026 06:02:08 -0700
Organization: Usenet Network
Message-ID: <20261011-qcom_ipq5424_ppe-v2-2-8c7b057e2c43@oss.qualcomm.com>
References: <20261011-qcom_ipq5424_ppe-v2-0-8c7b057e2c43@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="1542865"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:X3ySGe0LgxSayNRSTpj7u6L4G/E= sha256:k6Ccwm+M6PvApCvs+H76muSe8pRA+4/wPT2u42rh8fc=
sha1:U7gLda2u359X2WZg5Asm6VzqCXY= sha256:KcScKQY8ADSp7HqDeFtis9sEMLydWA2qOLQTeyMxZiY=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 15C3410F9F6; Sun, 11 Oct 2026 16:06:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.35
X-Spam-Status: No, score=0.35 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
autolearn=no autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=qualcomm.com header.b=eYNsOtCc; dkim=pass (2048-bit key)
header.d=oss.qualcomm.com header.b=bZT1z85o
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id af0UxFc_hhWY;
Sun, 11 Oct 2026 16:06:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344487-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=oss.qualcomm.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 7DF1210F9B5; Sun, 11 Oct 2026 16:06:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id 3FBD228077; Sun, 11 Oct 2026 13:03:18 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A48E453A22;
Sun, 11 Oct 2026 13:03:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="eYNsOtCc";
dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="bZT1z85o"
X-Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4960B448B82
for <netdev@vger.kernel.org>; Sun, 11 Oct 2026 13:03:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791723790; cv=none; b=qPa9kqqTOYlTgoVbco/S5wMuq6u20AYAS7F0HX7VfU8TbxMSMUEYfKJ194znY8ExIZ1kwTRsXx1jlhNW6VkFMLlh8klOup1DWcXh0TLHC/Vvelf1MvAwNwpIaTNJwNSYyQ/D2A5V1HL5LxQFXTu53Skjec5WFuQJCyUDwAe9g7U=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791723790; c=relaxed/simple;
bh=DQ4y28eGLfNUnBCfGLtzxpZcdDVJRqiPI/Z0z/K/H7U=;
h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
In-Reply-To:To:Cc; b=tjDgz7lCPNmW7MZSyz+u6I9BJWJaf/TGwBU8Ft8ZtuFtpcVSTsGKYdze7GuEzIfU63q/PQC6J3+ygbGzz5HPu6sC16p+myOwLSFUu5N1WQuRF+sTA55VwRqnAVtfHIS5C+wH1TITf6W5OpkSGk6KU49fe75amqysLCzhBirnaT4=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=eYNsOtCc; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=bZT1z85o; arc=none smtp.client-ip=205.220.168.131
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com
X-Received: from pps.filterd (m0279867.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69B857uY4074780
for <netdev@vger.kernel.org>; Sun, 11 Oct 2026 13:03:07 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:content-type:date:from:in-reply-to
:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=
tXsP313O9s2aoJELkjK5RdP54j8WZOzAGDmYM24LCcY=; b=eYNsOtCcqvyRCaQJ
BpjVu4j6DVUdw/f8Di9rOf0NBlrzZTGY2Rkr/ex5Nwns29avpv3KlvEOdkHs/ZOZ
ZyI2UuADk0XRKEttVPIhhyoL0b2bbyBOzrjEjkmKCzkPjB1ZwTpoKo5oYhymXlZg
di/7HmMg2+K6QWRaFJl7RYw5XaVeTXzXXnDyXffiflSqWQV8JcYml1T0XcbtWST9
PbcIvyjunlt7a57e7BS+uRbfIeUC1b+W4tsZdj8oj4bCtR9K0JkAJ9qNwKH7x+eb
eEeDadlR/YRo/eLXWhatoJj8f4hWcCudcb4VSzDXfeuQjfa5n/kCKoj+eU2/J1Wv
5DXgvg==
X-Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198])
by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h7b2fbcm9-1
(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
for <netdev@vger.kernel.org>; Sun, 11 Oct 2026 13:03:06 +0000 (GMT)
X-Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-35a4d2e39acso602256eec.1
for <netdev@vger.kernel.org>; Sun, 11 Oct 2026 06:03:06 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=oss.qualcomm.com; s=google; t=1791723786; x=1792328586; darn=vger.kernel.org;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=tXsP313O9s2aoJELkjK5RdP54j8WZOzAGDmYM24LCcY=;
b=bZT1z85o+OW0kghLtztmjCuTYdLXzKu5/nLYCLJn93wDZJhZIi/nmQwGRyTerE7oCz
BNOjB+GXSfl04+DbULJEa16i0FX6yf5VI70AI3bLpHq3NVShrqsiZSEZx3sW/E+ioQfs
aKHsQzD3Ur4kSKsuS6/rER5DowNc5x5idg5JaDQUyw+Ofp4btM2xdqdV8VVgEKAfdeNA
bs6Y2iQ/LsEXoSBOTo98JNh182HonYDroCyZUtA4FtqncZEka2qry56NFs2SRM4XfEoO
Sz8W7vthUqNmzebRZ/avqeVFsK05rYjDy3hvaQ6owT9OAe80TNDfmj0Ku/0iC3prStKT
RPRg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791723786; x=1792328586;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=tXsP313O9s2aoJELkjK5RdP54j8WZOzAGDmYM24LCcY=;
b=hP4pRKugmTQoH0yN14T+dYQa8Ta7Joq+GRNhw6nwfX3QdjrF8CVZlxqXHVsYLJEw3p
DK6sMnBqIYdQ7IY7rELN0fcCPupUz9AJUcBpL5OT4nkliiONtuJVk08vCUPuQZKOVR8q
5onL6iKLWutOKkIfBDMDCKzpg/nMBR+LG4s0RWzImXTZba0uVsFNrw/36dA5IoQn7eRc
iZnrHtfNYdn+NxprfpMsUlJ4Zzz7kkkSykI5zyP+99qWl0q/MGz2x3tWnF+d27lSmwKM
HBvT9ggIup1416uWzd2MSUWjZV64TDWivFEj/2Sr7vzL9LHe8FUmqGC2Mz2KSfymW+Ez
za2w==
X-Gm-Message-State: AFq9FYLqvpGBcJBZ1G86YuhfZinogWsxgTEtZOF8siuxEYdOKvr8P5iV
xRgllh5Iq3Lv/vkKSw/QGQ3Yv17wOPmECYRBMSiSOfgyxxs0ZHVQf/MDrYO+BS62/+1ynQH1ADM
d8yGCyuj72ySc2SOm/IaoH5ovRx6RlAR2+uofXr2FJ7Qsx2yU/TOKdU7Rr2E=
X-Gm-Gg: AYBFou2bbMl0BUGzaSToWCAUQbysQWtqO17xvdCmEIomyRGkKnhFyFjUmS/o8FIHOVo
erNSF2LsMAsxKNZkNwyL7/C8kcOx5RKHgoRNuFI3LQFcfOtgCA3V/Ovobq21Cq0OmFkuc5Kz+zI
ZiMpi8nvGqUHWzocImk64VFz9Cfece7Wk1MHEokZCEwlY0bVhSgykJZ9P8kp+hQDdaRIbvKTHTs
/Duuh1hn8JcOeTL78I1tWj3ux28quj3CAa3S7/EXclMoFebJ4UW2DPjw9H9htlIZxWRKqdwuD5O
JPrphWBKtqJGjfYv/467Hkh2MPqkWUwRuLiq+FUhZahDTpqj5ApSNhviEzB5I7BAugVzKyZ38VH
qOXSZPkC+xuAyDKva40fNCChNyWs0Lcj5bvy5Y2E/ntw=
X-Received: by 2002:a05:693c:414b:20b0:33e:a0c3:4163 with SMTP id 5a478bee46e88-3537e00907amr10561307eec.24.1791723786054;
Sun, 11 Oct 2026 06:03:06 -0700 (PDT)
X-Received: by 2002:a05:693c:414b:20b0:33e:a0c3:4163 with SMTP id 5a478bee46e88-3537e00907amr10561272eec.24.1791723785495;
Sun, 11 Oct 2026 06:03:05 -0700 (PDT)
X-Received: from hu-luoj-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3537c841648sm27009074eec.3.2026.10.11.06.03.04
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 11 Oct 2026 06:03:05 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261011-qcom_ipq5424_ppe-v2-0-8c7b057e2c43@oss.qualcomm.com>
X-Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org, quic_kkumarcs@quicinc.com,
quic_linchen@quicinc.com, Luo Jie <jie.luo@oss.qualcomm.com>
X-Mailer: b4 0.17-dev
X-Developer-Signature: v=1; a=ed25519-sha256; t=1791723782; l=1989;
i=jie.luo@oss.qualcomm.com; s=20251128; h=from:subject:message-id;
bh=DQ4y28eGLfNUnBCfGLtzxpZcdDVJRqiPI/Z0z/K/H7U=;
b=iTWDL7umjdAppcqNyWAzbufRcYaX0hIXJsODphFrJ/uEQZ46m9Wv6pdVSlHteNXMrDkA5+jfg
If8Kp3LdzVWCiFF18pmUMuMNwwUhwtscdD+H+rZNhoVcmkgec+CNVrJ
X-Developer-Key: i=jie.luo@oss.qualcomm.com; a=ed25519;
pk=gSsYMDakxtd6UDFYDdA9y9yjIs5Etp5GK/3DoXWPyS0=
X-Proofpoint-Spam-Info: AW1haW4tMjYxMDExMDA1MSBTYWx0ZWRfX0KrA+AeOTz99
49FcPP6/nIYdTFhuNRj6/8C66hRw7vrR0qHt6fa61fo+jeL/PCOIjUNsMjUTuMIHNiZPVRXwkxI
jCCkEPr7lCD90iDvTFi86ufSDE6N9Y0=
X-Proofpoint-GUID: L-h13HHefXrMIxwzFJ8fmElLJ-Ew_qci
X-Authority-Analysis: v=2.4 cv=NddzRGD4 c=1 sm=1 tr=0 ts=6acb890b cx=c_pps
a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17
a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10
a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22
a=EUspDBNiAAAA:8 a=eEuoQyLnUp-QdWxJuLgA:9 a=QEXdDO2ut3YA:10
a=bBxd6f-gb0O0v-kibOvt:22
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDExMDA1MSBTYWx0ZWRfX6LyEBj5Vhy7k
pGzaEuIpNcjrXZoyISzoQk2BQZPGE49VQsgEcFPnSnDmuN11HsQEjliM3Uj3AHfAgcEEr4tyAJv
oV2MvB0UcvMPvbXDBuQ+VlipI4XsFye0cbqEimqtvbvPKW/sRktgG/QarHWEofrMSNOz7NP4mHr
UYhRmMR2ZaKUd1ttUzPf3TFJCPlSY6NSgFE2xR1lTm7CUsLSCV+VkEERVA8XryvSGUgQa5BMJ6B
3LOkgLCvhS0hgR1cN/p+TF3XUgz17Vv9NcEw4HF2OP1nJDu/Q0HfdYkhyXSbTQ9JNBIYk0O0ptQ
JP50JKJigEqMWbXC7qefb5v3dKL8JeRoB0Z5gXVDNZJpEDDkD6mBSnquXcGwB95ee1z2YYBItn3
kOT8SdPwdJnNpv4ETB/0d28SXK3yT33ETF7GLdnWIgrRy5JzLcCf6h3yQ/eHYzpCRCXsl+urKDQ
B62z2Q3ndGyY/hj/xxw==
X-Proofpoint-ORIG-GUID: L-h13HHefXrMIxwzFJ8fmElLJ-Ew_qci
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49
definitions=2026-10-11_03,2026-10-09_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
adultscore=0 phishscore=0 impostorscore=0 malwarescore=0 clxscore=1015
priorityscore=1501 suspectscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0
classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610110051