From patchwork Mon Mar 22 15:21:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radha Chintakuntla X-Patchwork-Id: 89640 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A6239A034F; Mon, 22 Mar 2021 16:22:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61FC840040; Mon, 22 Mar 2021 16:22:03 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id A95774003D for ; Mon, 22 Mar 2021 16:22:01 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12MFH064014747; Mon, 22 Mar 2021 08:22:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=rGepnXDYRQ/HLCSdHBsJjLzzUFZ1667Hcgi3uqEqflY=; b=J/EgnUJLYnyb75uXUimeozAFsZswhnuJZXc0DW9k4WPkcxKKGwOPRRe2L1yxv5IUUrZq OTyDzD64hqNHQQJP8AtIRcqFsyJyGZcZgVHynf+TgMsEBjYFJ++gGJdPPJQDBmJfgQvI EZHApvPZalLAU+hyjweP+hSo9VUe4Sj+UzxwW7OnAepBfQhpOBQtq0UrLwf127NErlrB V43WAEcLIviV8QWCPVZv4MQ9hwNZDWdCNPTOrvmVYBjJ6H5JG49tyjqd55R5TJ6SuxUD fiCWDbG+FE1yY9c+38sDzD5ZgfpYzYToKuqiGx/4Zo9YpKVIQs1VhQC1ffSa0j8lY78O Dw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 37dgjnwdq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 22 Mar 2021 08:22:00 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Mar 2021 08:21:58 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Mar 2021 08:21:58 -0700 Received: from rchin-dellt430.marvell.com (rchin-dellt430.marvell.com [10.85.176.141]) by maili.marvell.com (Postfix) with ESMTP id 9527A3F703F; Mon, 22 Mar 2021 08:21:58 -0700 (PDT) From: Radha Mohan Chintakuntla To: , CC: , Radha Mohan Chintakuntla Date: Mon, 22 Mar 2021 08:21:56 -0700 Message-ID: <20210322152156.154733-1-radhac@marvell.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-22_08:2021-03-22, 2021-03-22 signatures=0 Subject: [dpdk-dev] [PATCH] raw/octeontx2_dma: fix unavailable PCI device in dpivf 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 Sender: "dev" Add PCI device to dpivf structure. Fixes: 4495bd887d38 ("raw/octeontx2_dma: support multiple DPI blocks") Signed-off-by: Radha Mohan Chintakuntla --- drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c index efdba2779b..8c01f25ec7 100644 --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c @@ -389,6 +389,7 @@ otx2_dpi_rawdev_probe(struct rte_pci_driver *pci_drv __rte_unused, vf_id = ((pci_dev->addr.devid & 0x1F) << 3) | (pci_dev->addr.function & 0x7); vf_id -= 1; + dpivf->dev = pci_dev; dpivf->state = DPI_QUEUE_START; dpivf->vf_id = vf_id; dpivf->vf_bar0 = (uintptr_t)pci_dev->mem_resource[0].addr;