From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (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 B8EC03947B3; Mon, 16 Mar 2026 12:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.156.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773665900; cv=none; b=aBONXYRPLwXafcY4r2im/KfmBBn6RV504INHWQOhZRqK8C3pLOl9hwYcWlJ4HRtI9e/az5yrjlGokERwefoXZbHGXsyu+qlwX6lTYTs+fn5ptUKTYLsOAb+uuuinlEOheYRq7r5BifTBQ8p1C16bdGULpqzjHMLd3W9B7xknO1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773665900; c=relaxed/simple; bh=l51zqge94AW/KPmx8tNxA6Drxg62m/uLDw8We1B4FuU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WbNWA4ilpcloM3zoDiOp5N4nuyR0F+FuNRnBl78VHbW/kgNQHvtSMr0Wab6u7WquOJCMIigkMQfCiYhPJNeJlpWw0a1CQpgXcvidjp+4RYPSnCmZmTUg7tfR+ij6aH+lIcYNfma0rHlUXed40E8qChSzHnU8zmj55rpbgI4YxGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=G1PRXzKR; arc=none smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="G1PRXzKR" Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62FLoHu32964741; Mon, 16 Mar 2026 05:57:54 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= pfpt0220; bh=HkK2tdEp43WuE1/syMAdqDeLn0+xAJyoOPjqmJlJU4Q=; b=G1P RXzKR5+cr6pcsyielU4PdGB7G3fd4Q6XwcvUEN/Uk67aN2ypVzV5m0CPeZe1qvWo tgvWwG5U5FQWfWAK7ST93SF0NT7UXtPmUKxFh63NoM7gx9gryFx9oXNT04VGw3LV xQEFjM3FGyRDPEOm7E31MlmOxZFG3xx1HLyED66IcJJSIg50hnlW8DtEE+icsDZC d63DhhqAtXoPmDdJZOUZb1tJaWM8AA/fy/YVZHLFhEzgJkRTum1N4WMDlW1crphX jpY19Q8JgdNEvQe7/WnVs/wEsfaO3j+8srzDh4yU4xRsDjxiDp9LySyaa7Q2o5BQ E6VSfBh8/LE9yY3XwyQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 4cwre8jhaw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Mar 2026 05:57:54 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.25; Mon, 16 Mar 2026 05:57:52 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.25 via Frontend Transport; Mon, 16 Mar 2026 05:57:52 -0700 Received: from hyd1358.marvell.com (unknown [10.29.37.11]) by maili.marvell.com (Postfix) with ESMTP id 2252B3F7061; Mon, 16 Mar 2026 05:57:48 -0700 (PDT) From: Subbaraya Sundeep To: , , , , , , , CC: , , "Subbaraya Sundeep" Subject: [net-next PATCH 0/4] octeontx2: CN20K NPA Halo context support Date: Mon, 16 Mar 2026 18:27:35 +0530 Message-ID: <1773665859-4036-1-git-send-email-sbhatta@marvell.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Authority-Analysis: v=2.4 cv=fLk0HJae c=1 sm=1 tr=0 ts=69b7fe52 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=l0iWHRpgs5sLHlkKQ1IR:22 a=qit2iCtTFQkLgVSMPQTB:22 a=Apbl8yOqu0udmtBCm5gA:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzE2MDA5NiBTYWx0ZWRfX88ZTk6B/eit8 y+ff+SFVA/zdZAlZ1JZEW49WbPB0XiDUpggxaKb9QFqF+SaqLz37+6jCQfUYE2q67wDi893GW6W zjlGe35/8MntjhI45Mm27+p/8tdhzn4GMZPFFTuy0fxBYU0sQhE6GlQ597pBINVkVDAKtT5TSgY 1BYzjOpISEjAdMOnW+FqbwFusJ4DFger5QzrpUShqpnSObMle6Yb/9db9cugTvqCUF/KF1U+y84 zi2jzW40W0jrItJ8YYTNO59+dmNUKo2gAA8dCwHAW8dmSFY0Y6rO0q/nPxBoHlKh2zPmHlBp3nd /Tuwnwct84YkFT5bTm1roo97qgF/tjbNAsGpoiAeFPBGK6DUXzxZpcNXrMtPqs5Ird90cIBodzd UHVPxxJF9xKbfH037YgrUHVN40EkSITys985iUVUW+dB4W6cRBoaWmMuAs9LzeVsS1i89v3J54p MUygcJQtgZveQ+tTABQ== X-Proofpoint-GUID: w5jkd7qRIJGK90GB4v6R_Kd_fS2_0nF3 X-Proofpoint-ORIG-GUID: w5jkd7qRIJGK90GB4v6R_Kd_fS2_0nF3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-16_04,2026-03-16_02,2025-10-01_01 This series adds NPA Halo support for CN20K in the octeontx2 AF and PF drivers. On CN20K, NPA supports a unified "Halo" context that combines aura and pool contexts in a single structure. This is a simplification in hardware so that there is no need to initialize both Aura and Pool contexts for queues. Separate Aura and Pool contexts are needed say if we have to point many Auras to a single pool but we always use 1:1 Aura and Pool map in Octeontx2 netdev driver. Hence for CN20K use Halo context for netdevs. The series: 1) Adds Halo context type, mbox handling, and halo_bmap tracking in AF. 2) Adds NPA DPC (diagnostic/performance counters) 32 counters with per-LF permit registers, mbox alloc/free, and teardown handling. 3) Adds debugfs for Halo (halo_ctx file and NPA context display/write for HALO ctype). 4) Switches the CN20K PF driver to use the unified Halo context and allocates a DPC counter for the NPA LF. Thanks, Sundeep Linu Cherian (3): octeontx2-af: npa: cn20k: Add NPA Halo support octeontx2-af: npa: cn20k: Add DPC support octeontx2-af: npa: cn20k: Add debugfs for Halo Subbaraya Sundeep (1): octeontx2-pf: cn20k: Use unified Halo context .../ethernet/marvell/octeontx2/af/cn20k/api.h | 6 + .../marvell/octeontx2/af/cn20k/debugfs.c | 60 ++++++ .../marvell/octeontx2/af/cn20k/debugfs.h | 2 + .../ethernet/marvell/octeontx2/af/cn20k/npa.c | 140 +++++++++++++ .../ethernet/marvell/octeontx2/af/cn20k/reg.h | 7 + .../marvell/octeontx2/af/cn20k/struct.h | 81 ++++++++ .../net/ethernet/marvell/octeontx2/af/mbox.h | 25 +++ .../net/ethernet/marvell/octeontx2/af/rvu.h | 5 + .../marvell/octeontx2/af/rvu_debugfs.c | 71 ++++++- .../ethernet/marvell/octeontx2/af/rvu_npa.c | 70 ++++++- .../marvell/octeontx2/af/rvu_struct.h | 1 + .../ethernet/marvell/octeontx2/nic/cn20k.c | 190 +++++++++--------- .../ethernet/marvell/octeontx2/nic/cn20k.h | 3 + .../marvell/octeontx2/nic/otx2_common.h | 2 + .../ethernet/marvell/octeontx2/nic/otx2_pf.c | 6 + 15 files changed, 561 insertions(+), 108 deletions(-) -- 2.48.1