Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796155717; b=GlimtDizxdeuWrEFmiUli20YnAT7ZDTBp3etL5tVzJLqoaw++e5cz6Pg8q/pHEydFXG/ b6ZbUV9ut10AZOONhJ0J6d22KnUSJooltOB4g7LuKM3HJliiJgoMhgPATTSzjqUlsUmKl 880u8Oak44lFTZPQoYQ7LAOHU6RfY3Ig6hmpSF1wIPhnDibTbm8bKdm52Ss0G/B+Z9Cyp GXps2a0Z1HCHtGL5d6e/clQ6l5oh+6L68rTZ5E3YfZHHRC62oInlE2Pz1r4/ydgakgcBd M8pnFeEP/mDDbt62jgdKWRA4bSNFnQ6dSZu4+LnIX/NVI3BWgRqTIXby60ow0CK7Dow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796155717; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=nk3nCvwCPyrVVwuFQprZVUjWcr9JqzFiBEUth8gA6Sc=; b=zJuR4A84YnH4HL1fu3SExpXvw+oov/8bWzE2jBpsrHO1CIdg6igkl05ufNrIBXbddSo2 Nz0SlKjUQB6JE8NteQn4BkqRnh91WBBHpl5mYkawsQuuMVbWyE/4sYsOp/jTwkkFY4K0h 0zlSV3GER7pS54p5V8oMxOBhNdcYwl9hvSoVu+M/fWe/aODoxSUEejCU7fFxFHrKmMBsT NiVzfIAExqct4bOgnSAkkDcXn9HWEZyRR6YPo03e4XshDbWJWhaVDJ2Voo/OwNoWvUf6G FAW5xec05IV2bX4xEBg8dyMGjgFcioH4wbJlVA8xNsAva5Cgjww9sGUVlvbqDLND8lA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=pgjcyJnr; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=T3azGXxw; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3B75606A320 for ; Tue, 1 Dec 2026 20:08:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C3B75606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=pgjcyJnr; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=T3azGXxw Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1J14od627663 for ; Tue, 1 Dec 2026 20:08:35 GMT 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= nk3nCvwCPyrVVwuFQprZVUjWcr9JqzFiBEUth8gA6Sc=; b=pgjcyJnr6acQqt8l wCQFa9EWNVGgVm/Fvy4Koea0T44rEvZU/rC/0jS4caKhhLTC2SMo0Ct3ydJpQrfa 0Pn33nII6stLXyCk7xYTZAWfWAgBUhXKfmi0FyvS+95os6oDDQ8ZpCpmRW018BvG dYrxp73eVx20NRWZQCjolYAwrAE+Ftl6Aw9OVykuewtewjksHRPIO4ECWuGMVlPJ Bwi7ftjkROOFH9R0oB/d45HzsuZZq4I6JerEgp66Xccu82hOv4gDZeAihhnTO9IA C44SNkg+uL3QrqE7AVgSlGWeraXoBz5MHsGP+mbpSXZQOEH6tyX3a/cIw1TBj18Y kXjDbA== Received: from mail-dl1-f72.google.com (mail-dl1-f72.google.com [74.125.82.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9vw7acqs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 20:08:35 +0000 (GMT) Received: by mail-dl1-f72.google.com with SMTP id a92af1059eb24-139b62317d0so16978151c88.0 for ; Tue, 01 Dec 2026 12:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796155715; x=1796760515; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nk3nCvwCPyrVVwuFQprZVUjWcr9JqzFiBEUth8gA6Sc=; b=T3azGXxwJTYXARVlZHv8Jf2F30x1fgnpJxWGlTJbAI48h5Pv6oVtax1dsohfl7RlgD WsEP1qi3mSji4tCW+zY8E7aI44iE6vZJerk/BmnGiV/Z+n4ShDsf4n/7PvgxpgpHSOPB nam8WONOjnuM6/aXkOpc9W9hQY9UXBHNV+MSV9Lmgmh0cOX4sLZWoxOck54FgU9vIcQg EFQb1aHK+7WVl0n9mxnRQ9Ee0mc+Nrp7KbHvBU6RM7RJcUsujjEVLdRGhu1UTZzEWzkU omYG0a6KU1Mave+3Sm/xViDRzJKrE01vc44/zox4UANNormGSiLXdbkO+fknELEVwMR6 fqEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796155715; x=1796760515; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nk3nCvwCPyrVVwuFQprZVUjWcr9JqzFiBEUth8gA6Sc=; b=raczwnmWfYPLamDAZGMdeqqqw13iszeA9lStoyWNYJNx9xqPzl6u/u0xgCIkyNMbhp YHZWOGOeVroLL96t7tr5LKNT/b+ZhfyhVjRE0DgPISNAoLICXmM1U5NViYJheJ/lQm9+ uyzy5mP0opUEoTY6Fy/HDE9KYMDJ7np9Vk2yFxU2oE0lgCqIXlSHIlT+CNvA1vAPseFO rtztvQhLMBjIUZTh1YrQazGunojRdYgnlDuENMNW/2qhum10TBkEYjomB+lNZXxGzEN4 EEVLUiamCF54JEKKfSpsgP4jxA98q6RXtCjPWGE/6Ra7SrZC8n9oq7sDpowEcNVlsNrb WLRg== X-Forwarded-Encrypted: i=1; AL+hErFXJeSw1euNgeUgjW3GXVhW9yPMBVXN85ZJ3QcYcuWyN31V3Tvd3c9Ix/pgYnOG/FafKIRHdO9qvTE/pz8p@vger.kernel.org X-Gm-Message-State: APuU4Z/N4/cc+RWnv205/qejYqQPXtSgtFoq1t1EeaJetzeg4p+a0a9o UU3QGmIF2g0PRDofcKdLTHkNK/HvCILF+hoRjARt6V12L6dYrVJpmqB/koyX4tF6zKlFTrrtmQT 3dKmPJloQINd3kTd548ElA9h/mbmLIREn6PuDocxZBMHHdM4ZjWBOpSBJAHRZLwfDcyMF X-Gm-Gg: AZFdTZc0m5thJABCQ/43JaQWxr88lSQhhpd+HnV4leBNnuZSe4NCAksCm6aq3n2b+Iw IipPYj2xZpdV1y6bN5rddVinyn6285/qF/JS1+j4IyKR95t/dGudSfLbHI4BhGwAhmPNTIItm8z pMPCYhBsygysjjOeqcyhoNbQcyj+7HOmLw9FRyaabJgz3ROuq1Soa2OyQ0nE9IiThE54qm9zAqn QEIa2hQ3+AWo0/4haTBeI5WpYrCrqaoZss83ax6nCnYDPD9AxwyRpm7BkjIMsagW10Ln6ATxdp+ BgE0cwGiZepfJbe/CQCKvgDKbjSpyCfBf3X1nqAuAIawoG04m7ENSpzMeR6WjJIx+4YCxdqPppQ IEgF9a5W95+CJQeIAUcKOxHwpN9d9zWwa+7vXPSwDtEQ2+dRKwMDO/6KLtbvSAvMx40PKzZonbd 3uUMEvK3bRJ9o7zSKf05M9c2m24YSxl8QadOx4 X-Received: by 2002:a05:701b:2504:b0:1b5:b252:cd68 with SMTP id a92af1059eb24-1b5b252cfe1mr7522270c88.15.1796155714344; Tue, 01 Dec 2026 12:08:34 -0800 (PST) X-Received: by 2002:a05:701b:2504:b0:1b5:b252:cd68 with SMTP id a92af1059eb24-1b5b252cfe1mr7522251c88.15.1796155713803; Tue, 01 Dec 2026 12:08:33 -0800 (PST) Received: from [10.71.45.247] (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55ff0e4e6sm79555087c88.11.2026.12.01.12.08.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 12:08:33 -0800 (PST) Message-ID: <298724c9-749a-46b7-94ae-4896d1df4609@oss.qualcomm.com> Date: Tue, 1 Dec 2026 12:08:31 -0800 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 1/3] net: stmmac: separate the TC count from the queue count on XGMAC 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 References: <20261124000415.4067701-2-sagar.cheluvegowda@oss.qualcomm.com> <179556536060.3135.11757028491068273686@kernel.org> Content-Language: en-US From: Sagar Cheluvegowda In-Reply-To: <179556536060.3135.11757028491068273686@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA4MCBTYWx0ZWRfX1WeAhZ2QTwbU 4/0cKnBRd4L/XORHVyNYBeN53hQH/tijsrCokN8I6fuoJeILCP9qM5DrvD1IToSCgeDO4DhVXge 5sCtpU9ifGJlU6e9R6GJuX5EieZgIC8CuuXALuMqS2bAyAw+4o+3eE1Wkn3SLRrgsq5+cz2r/VZ 8SAqF7MPxqKn5uFbaskdw9+5ydOo9DxfrLr6N0Ufdc17X6rV3XKn4KewvEa/bTF7FOqUNffa7Ze oCIbWVdRYdg0TPAyfTilXiGpCbGUnnU482czqICmIbvWKype8An7lNfxF98EUMXNDtwTYyO0nqc 0eSilb20eopYNtOjA2CuBWSn7f0nPI8A4O3zpyebhxo4QH31dZd/WR3e0XR/85lEfKPLx8x25p0 abVVfeHV0zjtBhL9AJChxtVGWjO4EZMxusXCeaY9JU/HdNGKXzZKI3EZhQwQLs/iMl2QBdwlgZw cSon/JNFqbtFxwTl/6w== X-Proofpoint-ORIG-GUID: cwTKKwG06ySci-5fYpgmnod1juQuPi0u X-Proofpoint-GUID: cwTKKwG06ySci-5fYpgmnod1juQuPi0u X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA4MCBTYWx0ZWRfXwX5K22gBfTF9 6yUL2LnZ744GForBNnuOuqifolLTMcT8Np897H1/FzjrVQtaFs4XHxcVJsRW/i6oBI37J4YmSU1 oivc4fCey7PktRWEOKv1rM81NgVKM14= X-Authority-Analysis: v=2.4 cv=AItH9idw c=1 sm=1 tr=0 ts=6b0f2943 cx=c_pps a=bS7HVuBVfinNPG3f6cIo3Q==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=Q-fNiiVtAAAA:8 a=4RCeGqM3aLfek5yyp6AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=vBUdepa8ALXHeOFLBtFW:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_04,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010080 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