From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 CD71C3E3D8A for ; Thu, 5 Mar 2026 17:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772731227; cv=none; b=s0H2XmrjfUmiHpiQG+0RSpdcPlKsQQ82SQfOZYwCoRwcvem/EPWE+La6PfTNzs7JIncJfNrr8OK58D+K/4pH+THz2c7DPNADX3OsX7FCaPzehffcmVVSoo/7pkGP0wwONQ+YnJUYZjz374N23MHb48mj/MjyCeNr0suNU4OejC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772731227; c=relaxed/simple; bh=Y0ouDDQ+LaZB66ZT0jc8u+1ijrITArKjExVbr5WCYiA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=B7LHPNlS7D/Z13HXNgBpRnmJ/KYvCYLDeGzH+NAHzXAGmcW04ArvC/gPJXA0p+XKG9C8r0+nrESgZwA5Isgnhn40io+0JN1HRoBXn6V9AI1ISZaPmQDqw12KcIr2SNj0pu/kX2EZW3qIhk9Ccfsp068mY4OXiF9FlKnMHETi/H8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=NrGXlW7B; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NrGXlW7B" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id B851AC40FA0; Thu, 5 Mar 2026 17:20:40 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EC2005FF89; Thu, 5 Mar 2026 17:20:21 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 85C9F10369912; Thu, 5 Mar 2026 18:20:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1772731221; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=rPnXgfPKw4spCG6JXJt/GjbmiMc0No/2f9PmD3Slfdw=; b=NrGXlW7BUHdVHWPQUEG0djj9HLR5zAYk03wLItf0WAFtLmXEqqUjrvI/ggUTRnde+txv0R QTUmFbiyplk4JNUNkiXRfCA8S2+zZ8iqDsFfqe00+JiAN0lRpsLyYbouljuPou0TK6tKA7 3fOqYA96Bzgwfcs7nT6WTW0xejeb9jE8yWITVdr0anN3uOFBW9l8PfdgES6A0ezRHv89Hg 3BMQLqArAU/TnRNuL/jbwE6O9FebIGuJfNiCo3ACo69SYQL/YGe/JNiVy2DCOY+9VCwrcw K6QTWyq2a7BTV3OszOQFeyx0N+yqnoItxX2hTZ9nMooSIUGzq1pjLGNSJpvxcA== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: [PATCH net-next 0/2] net: macb: implement ethtool set channels count operation Date: Thu, 05 Mar 2026 18:20:13 +0100 Message-Id: <20260305-macb-set-channels-v1-0-28e3a96a3dc3@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x2MSwqDQBAFryK9TkM7okKuIln4eZM0aCvTIoJ49 0yyLF69usiRFE7P4qKEQ11Xy1A+Cho/vb3BOmWmIKGRSmpe+nFgx86/2TA710NsIG2sQiuUf1t C1PPf7MiyaTh3et33FwqnKnBtAAAA X-Change-ID: 20260305-macb-set-channels-5bf6e07f3270 To: Nicolas Ferre , Claudiu Beznea , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Beno=C3=AEt_Monin?= , Tawfik Bayouk , Thomas Petazzoni , Paolo Valerio , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Add support for changing the active number of queues. Tested on Mobileye EyeQ5. The first patch is as expected. However the second one might be more surprising: GEM has per-queue Tx SRAM segmentation. If we do not touch SRAM distribution then we'll only be able to exploit a portion of it when a smaller queue count is configured. It also is beneficial if bootloader stages write to the register and we don't reset it but attempt to use all queues (the default). The operation is only hidden behind MACB_CAPS_QUEUE_DISABLE, we do not introduce yet another feature flag. As this series must s/num_queues/max_num_queues/ quite a lot, it conflicts with other in-flights series touching MACB in the netdev ML. I'll make sure to resend once net-next gets updated. Have a nice day, Thanks, Théo Signed-off-by: Théo Lebrun --- Théo Lebrun (2): net: macb: implement ethtool_ops.get|set_channels() net: macb: distribute evenly Tx SRAM segments drivers/net/ethernet/cadence/Kconfig | 6 + drivers/net/ethernet/cadence/macb.h | 6 + drivers/net/ethernet/cadence/macb_main.c | 235 ++++++++++++++++++++++++++++--- 3 files changed, 231 insertions(+), 16 deletions(-) --- base-commit: 3d0508701c2bff577d2ce4fe73bd8954fd969f43 change-id: 20260305-macb-set-channels-5bf6e07f3270 Best regards, -- Théo Lebrun