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 1C81443095; Fri, 18 Aug 2023 11:02:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F25F42BC9; Fri, 18 Aug 2023 11:02:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C85854325B for ; Fri, 18 Aug 2023 11:02:17 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37I8bY28014165 for ; Fri, 18 Aug 2023 02:02:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=lmFft32g0FRPZwwYxAlynBScMuYM5Yopslq3LfEbS0M=; b=lXlj5/y2BP9CJ6WoJ1yZpRsFAVo0Evm7pHQ93rA6xuRJpA3RgZu2NyTbiJ29QehW+EPa rb/vMBGmJ0CMJl+CwOM7SFPtxUOis47rLLADGusQLmLkUbsdOL44bfs5JLKakfl/jusS j2lIzlFiwEeOB6UOS4DY6GiDST7ihK+2oaD+uJNXeQFBC2e7hrXYROu7dPjT7qGlcPbp f17CaFTTKOIzGh8aSemcX5EdHukbFQZSiyVcf5dy/X+ifZJLitbDhdvq7bWgA2h76M1d OXaZADzu3QON2eLY80p/AqH7EpsJX8jEV3veoAYX+YLSij+VHXFlwO0QJNhP3MUeaKNF Fg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sj59y01tp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 18 Aug 2023 02:02:16 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 18 Aug 2023 02:02:15 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 18 Aug 2023 02:02:15 -0700 Received: from localhost.localdomain (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 6670F3F707A; Fri, 18 Aug 2023 02:02:13 -0700 (PDT) From: Amit Prakash Shukla To: Vamsi Attunuru CC: , , Amit Prakash Shukla , Radha Mohan Chintakuntla Subject: [PATCH v3 3/8] dma/cnxk: add DMA devops for all models of cn10xxx Date: Fri, 18 Aug 2023 14:31:54 +0530 Message-ID: <20230818090159.2597468-3-amitprakashs@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230818090159.2597468-1-amitprakashs@marvell.com> References: <20230731121225.1545318-1-amitprakashs@marvell.com> <20230818090159.2597468-1-amitprakashs@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: ltS9eHeFMJ_EcZF_Lug3HxjDEL-Q6l__ X-Proofpoint-GUID: ltS9eHeFMJ_EcZF_Lug3HxjDEL-Q6l__ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-18_10,2023-08-17_02,2023-05-22_02 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 Valid function pointers are set for DMA device operations i.e. cn10k_dmadev_ops are used for all cn10k devices. Signed-off-by: Radha Mohan Chintakuntla --- v2: - Fix for bugs observed in v1. - Squashed few commits. v3: - Resolved review suggestions. - Code improvement. drivers/dma/cnxk/cnxk_dmadev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/cnxk/cnxk_dmadev.c b/drivers/dma/cnxk/cnxk_dmadev.c index a0152fc6df..1dc124e68f 100644 --- a/drivers/dma/cnxk/cnxk_dmadev.c +++ b/drivers/dma/cnxk/cnxk_dmadev.c @@ -763,7 +763,9 @@ cnxk_dmadev_probe(struct rte_pci_driver *pci_drv __rte_unused, struct rte_pci_de dmadev->fp_obj->burst_capacity = cnxk_damdev_burst_capacity; if (pci_dev->id.subsystem_device_id == PCI_SUBSYSTEM_DEVID_CN10KA || + pci_dev->id.subsystem_device_id == PCI_SUBSYSTEM_DEVID_CN10KAS || pci_dev->id.subsystem_device_id == PCI_SUBSYSTEM_DEVID_CNF10KA || + pci_dev->id.subsystem_device_id == PCI_SUBSYSTEM_DEVID_CNF10KB || pci_dev->id.subsystem_device_id == PCI_SUBSYSTEM_DEVID_CN10KB) { dmadev->dev_ops = &cn10k_dmadev_ops; dmadev->fp_obj->copy = cn10k_dmadev_copy; -- 2.25.1