From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7F7F45955; Tue, 10 Sep 2024 13:10:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43C1242E4B; Tue, 10 Sep 2024 13:09:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id 6B2CE42E64 for ; Tue, 10 Sep 2024 13:09:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725966581; x=1757502581; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Rlqil/HVj6REaDZbmkPbJtubgmhGo0xWIFb+NhyXjos=; b=XmnMIBpTUuWQ/wIzrGUtQvFIqCi32Jeyv9b9KWvF9dPy0g9X565d6jPf pCI7DL7NHZd8tqEQKWMDuJEMNKDKLkoUTkJKryBzJzPGhhZz3PNy8WsvL 6M3+ZH7206p2IBEgCBox14LTuxquOAWcKNCLJSuRLFRVPKHNxgk16OZTZ OJD212sVRRrP2ojJGRZ91031X3314Jkr7phEs7A8OvdPlX2y0wcCR2CWr qlcTOhOc3YeFWfY10QogjkBIW7I7lszoFGe3MkjRdhr8HjnqS93waZZXd SyaM5SU7gODI8+69DOcTlsM3dhHtz1OHIr220Cz6mCX/cgjZsDYi253fY w==; X-CSE-ConnectionGUID: /j+N0FXuQzevVUmua8h8Qg== X-CSE-MsgGUID: 2g/4AGBzSoqdC8GtfUnEZA== X-IronPort-AV: E=McAfee;i="6700,10204,11190"; a="35276917" X-IronPort-AV: E=Sophos;i="6.10,217,1719903600"; d="scan'208";a="35276917" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 04:09:40 -0700 X-CSE-ConnectionGUID: OJCyMlF6Qe6tBaKJK8PzBw== X-CSE-MsgGUID: 62X8qyJ8Q/K5RYi7a57yvQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,217,1719903600"; d="scan'208";a="71969843" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa004.jf.intel.com with ESMTP; 10 Sep 2024 04:09:38 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, shaiq.wani@intel.com, Ahmed Zaki Subject: [PATCH v1 4/9] common/iavf: define the maximum MSIX index Date: Tue, 10 Sep 2024 10:12:19 +0000 Message-ID: <20240910101224.497044-5-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240910101224.497044-1-soumyadeep.hore@intel.com> References: <20240910101224.497044-1-soumyadeep.hore@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Ahmed Zaki The iAVF 1.1 standard defines the maximum number of interrupts to be 64. Following other defines in iavf_resgister.h, define the VFINT_DYN_MAX_INDEX to be 63. This will allow us to check the maximum number of interrupts that we can ask from the OS. Signed-off-by: Ahmed Zaki Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/iavf_register.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/iavf/iavf_register.h b/drivers/common/iavf/iavf_register.h index 328100138d..96df411e06 100644 --- a/drivers/common/iavf/iavf_register.h +++ b/drivers/common/iavf/iavf_register.h @@ -51,7 +51,8 @@ #define IAVF_VFINT_DYN_CTL01_SW_ITR_INDX_ENA_MASK IAVF_MASK(1UL, IAVF_VFINT_DYN_CTL01_SW_ITR_INDX_ENA_SHIFT) #define IAVF_VFINT_DYN_CTL01_SW_ITR_INDX_SHIFT 25 #define IAVF_VFINT_DYN_CTL01_SW_ITR_INDX_MASK IAVF_MASK(0x3, IAVF_VFINT_DYN_CTL01_SW_ITR_INDX_SHIFT) -#define IAVF_VFINT_DYN_CTLN1(_INTVF) (0x00003800 + ((_INTVF) * 4)) /* _i=0...15 */ /* Reset: VFR */ +#define IAVF_VFINT_DYN_CTLN1_MAX_INDEX 63 +#define IAVF_VFINT_DYN_CTLN1(_INTVF) (0x00003800 + ((_INTVF) * 4)) /* _i=0...63 */ /* Reset: VFR */ #define IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT 0 #define IAVF_VFINT_DYN_CTLN1_INTENA_MASK IAVF_MASK(1UL, IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT) #define IAVF_VFINT_DYN_CTLN1_CLEARPBA_SHIFT 1 -- 2.34.1