From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796155717; b=CUSf12M6UDpBDYoXEYceZK9VODpD7rzqh+IuqU+uqCh7chhaqtibl4uYlcEb0udxUyCj u7pKjYVD2Q0qEGE5zrujU3vmxDBp1R9aU6cLEw0xkS3sZHZd//Uz1NFxilaabHyuXa7on Uc6vA5r3dvi1Uxk653Jl02Z7N8dawxAGEc9Jllxeyu0Ysoeqky9esA6helKtzFAIV8pZQ /kYCo6ZEED7xaQAWW/nHNfKeOlkIDhnQ4YY+vwi/Hh5S7vlJibQmZWcGiEHGOGiYabigw DIIzRmaHeYda7iKosPvl3Xrbtdy4c2GvMnu4WuD2C5IdPj4rbvXTXWSa3XSL1jSjxlg== 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-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=nk3nCvwCPyrVVwuFQprZVUjWcr9JqzFiBEUth8gA6Sc=; b=hDi0TLce3yANjha9bIdBXgZ7jfQXJXqAGEWYUkVXoaf7vxn2EnfGh9IlG5UmfVxkjH1D xg2Sgfdocqb/ciFBp1KdQ2np00wC66+vnbxT1pQUwRbSqZAPRTxw8cQ5eTtUNguhPWXDM UfzK8fUMQ3lsW/QACJmpJKyGsYC+1TDyrfeKYDHbkkzqmyGam/KlvXzrDyNynlB6bDYt+ l9KOvev4m+EUCjetBcbOcmwIsWzWEtF0I/wR3moEDusD4kIs0st0ZRCJFshN2wQpgSXTP dYp8l71uuvThCav8ZknF5jg5qskJIa2twiY1GCUGqGiENeLE0tjv1VpCC/UInCCLgsA== 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.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 8B50E606A31A for ; Tue, 1 Dec 2026 20:08:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B50E606A31A 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1J1S09820371 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-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9tng337m-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-f71.google.com with SMTP id a92af1059eb24-139b62317d0so16978213c88.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=mG03Uvgu6yt4N2Nz8aKlkD4VKUu2JEZT4pWx/BMXEHtZZ/BKrcaKpEFqTCrYzIcIKP 6Fph4qUy3w3vw1d/S7ckJ0XXLjWztLMSbiowwzOVUx592cVq1XCD7vG7i2cHMdPOrqXD 1+6+k539neUPkZDwizTKSmHhTrE02ONrTHAl1lYkPSF+2a5nlepCzx2Mb84adh3d2iTQ MUWCfk8Ez6VufG21bbjNicSvll18hTSOqQUnawsMjWIwdaeU0qU/z893ZdOBTcGowqXZ oC6IyTNP1dQSuBd/5CU299Jbx0tQt2VNM+G2rks7FYnOxfQNad04diMU+jEKV25DL6Z6 Pl3g== X-Forwarded-Encrypted: i=1; AL+hErGnaW8vP8cKc15XUUHmKGUq2VpsO5vaES0JX1bzLkOof9FXMjR2W6tdos/ofh2w7D5WuHadjSGq6PMhYDA=@vger.kernel.org X-Gm-Message-State: APuU4Z/1Sj34ykUij0EgcSxAZrMBxwnYSz8RjgkQsmumAI1UTypgurrP EBQIrfJD67YX6zg2+cKwXMci30O53KQNU/aOfI7rwYo4c2NvgbMsBuk9LJz8fBJs1Yn4RFdsmii 9e7kAzk/mJEt53ySw8k+hOoqTc/GGFFqHOROGofxDr8mVql0x55p4YdxmLffuC2osXtg= X-Gm-Gg: AZFdTZf4XMp3rPdUDyyaESqwjlteOmCx07M1/5q0T4PzvEBzIkpTIBw/pqflxWAq790 T3+jEDasaI1aDiqINLdtgQJrysKWOzRZWTJrTLXb8UT+24e5/81D60mhVv5qh/VsFH+gamHe7c9 mtqGIGlSiZQzKh98eZ8nlJUvkJP09PUfBInsBXEyBIYer0dleaP5hG2B1JGUk3AvtxvZv6Hrwup Hm+Py3Aa8Suy9fO5P5Fyp2a7rGsc1R75nfjLZMBMllo7zj4M8rwC3fip7b8nQBehBmuXYAx0mA0 IJPEQRphmbiWnnekpMN3zZIaWwuDJAhKOEjWSFgHEdujDTf8RqaznNQEbu2xjYH6NbagOZM3B3K DmFHQqU/u9KRYHwsqxcMnS3tZA0NgSKtcmk5hIvYwuddNiAbYiYucqSki/eSfWXnf3Yj/InVz+S FGaVWwomgsWRBAQ5nmw6w6pc1xe6s7eyBLC6gF X-Received: by 2002:a05:701b:2504:b0:1b5:b252:cd68 with SMTP id a92af1059eb24-1b5b252cfe1mr7522282c88.15.1796155714373; 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-kernel@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-ORIG-GUID: AN9MSIHjvpHsH7L5leohOSTaxEEsNTkZ X-Proofpoint-GUID: AN9MSIHjvpHsH7L5leohOSTaxEEsNTkZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA4MCBTYWx0ZWRfX4yhDxYliB/tJ rwPthiaNs8WX5M/CTuB6j667k9SbTSZEB68mZYMcpbOwmKXNT09NTshSY7RGju5TVyBUzWu/uCO pM4HF+JjrFFUNATDhr3pLnBH0chQZfxb9xdjFGvXVYuyG9KooUkjXJYDmUxCdA/ECS+tEIzHEzD 3XswlaAlI3UUz8sRJmcvC9n6fnTNmNtbw9omaVf9LscdWSl04XD0MwZPDITqQhAvBQFFwVwBMg1 tyezAIFpFvWF3wpysfeaulzH+pmQWNp8E2reFnMvG9P7PI9JlRGfTWXIZt8Mf4Mr+d1nB5+vDXC khcHUOvllBgK17Dqj5DHm9omaR1GL4WNT3bFLabGvXSj73jhDlEgCHdeNU8wMKIplnc6mrlDLJi Tyxbc8NjQNRKZ0aVyUcbA77jg2IarLbhpchAQczw/vp0OhL+IJ4mRxdwA8EZu8sMAe8S7yvyQLE IgCbI0IT4eKUiXHn/ww== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA4MCBTYWx0ZWRfXweP6UNsEnWIQ /iiPCENdKzYKfHlUcDaV5WRNzAaxdT1zP/K6N5nhiNYaPHrq6s5dwi0pFAZgUg4CgrjWV59pQYR D6syTrqLynA18qlb/Xp1TJ/1wpNeTdY= X-Authority-Analysis: v=2.4 cv=O5ysLx9W c=1 sm=1 tr=0 ts=6b0f2943 cx=c_pps a=JYo30EpNSr/tUYqK9jHPoA==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=Q-fNiiVtAAAA:8 a=4RCeGqM3aLfek5yyp6AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=Fk4IpSoW4aLDllm1B1p-: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 clxscore=1015 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 adultscore=0 impostorscore=0 spamscore=0 suspectscore=0 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