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 27324A0A05; Tue, 19 Jan 2021 12:56:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3FB4140D21; Tue, 19 Jan 2021 12:56:12 +0100 (CET) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by mails.dpdk.org (Postfix) with ESMTP id 82CF5140D1D for ; Tue, 19 Jan 2021 12:56:10 +0100 (CET) Received: by mail-io1-f50.google.com with SMTP id n2so21778403iom.7 for ; Tue, 19 Jan 2021 03:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7jpzvr3x8rqEkoSnVLfkS+aMe9VDG858RR/n8S7rTCA=; b=raudAQyJS9Fzuxz3vHw7+fQEepjztQIm/QBshmDcm/2v0lRImzYqyslWAlPaRpA1s8 fr6TIHHr1/3e0g0OH6nKVevXOXwKwMsO6uBwaiBfd5Hd3tcZ4JcQYsY164z71/gy3KpU Fs0gxD+1gS6KjaCyge133YyO5M8pl6gCVxMTHQHvxQB6hpp8HwRqOCzbLrf5K9U7pKE1 9fOQLsWnE2wQJC4a9l6+h2w8fDZCHOxYX7dbZW7aIuTNA44bCow++LttJy3/Es7QrdbO HYdKaK9wvE5fp9mJNk8vIi+s5WQVY321ZN617AJsjbCjEQkY/f84IHp7WcncNt1INiCc rinA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7jpzvr3x8rqEkoSnVLfkS+aMe9VDG858RR/n8S7rTCA=; b=nAzVJY9dcHYvYYY5+co/47P/2dsiP3XVv/EyFHK7zBe4uZKtDhUDk20uWw2L+/SHIw YXAM5spa4mNWtk0mSa2XSnaNda40Tw8A0Kgmm/Jts7HTEe1B978gtbYjoupu4HJR2n8o K3/sVjRj27Rl1yUQ5/ty1h8gcbEh02mbt7xDP041i9Q1hYdBJs0o4t6RXvBd5D2WP+VO zh7PxL95pWJxNVkFtmdKmahOYaa/leGo4ZcClMcUEULYsBSH4CxsnIfwYa6D2BT+P6wU LibyBZbiNM2TiNqpzevWdzFpVygJrnr8Jesd2FgQ68QLWWgKzQBJhH8Xbj5vFTDgqQHu Np8A== X-Gm-Message-State: AOAM531U6SlcpqoTJkVdUR+0sJP/nDveEudMPXSSDgBpZsyYiA9QjUDt j7bLYNJLP+BchECNoOEc5rBqrlooajrvnfOfHyc= X-Google-Smtp-Source: ABdhPJwOtSPODatmfygGFrIez1yiSJRQtWvOCrLwbA2x8efui10/fa5SGYrQpou20OjDcZDQDlKvpPmqMaYpifMNi6g= X-Received: by 2002:a92:7406:: with SMTP id p6mr3063544ilc.60.1611057369835; Tue, 19 Jan 2021 03:56:09 -0800 (PST) MIME-Version: 1.0 References: <20210118093602.5449-1-pnalla@marvell.com> <20210118093602.5449-2-pnalla@marvell.com> In-Reply-To: <20210118093602.5449-2-pnalla@marvell.com> From: Jerin Jacob Date: Tue, 19 Jan 2021 17:25:53 +0530 Message-ID: To: Nalla Pradeep Cc: Jerin Jacob , Nithin Dabilpuram , Radha Mohan Chintakuntla , Veerasenareddy Burru , dpdk-dev , Satananda Burla Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 02/11] net/octeontx_ep: add ethdev probe and remove 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" On Mon, Jan 18, 2021 at 3:07 PM Nalla Pradeep wrote: > > add basic PCIe ethdev probe and remove. > > Signed-off-by: Nalla Pradeep > --- > drivers/common/octeontx2/otx2_common.h | 5 +- > drivers/net/octeontx_ep/meson.build | 13 +++++ > drivers/net/octeontx_ep/otx_ep_common.h | 14 +++++ > drivers/net/octeontx_ep/otx_ep_ethdev.c | 62 +++++++++++++++++++++++ > drivers/net/octeontx_ep/otx_ep_vf.h | 9 ++++ > drivers/raw/octeontx2_ep/otx2_ep_rawdev.c | 6 +-- > 6 files changed, 105 insertions(+), 4 deletions(-) > create mode 100644 drivers/net/octeontx_ep/otx_ep_common.h > create mode 100644 drivers/net/octeontx_ep/otx_ep_vf.h > > diff --git a/drivers/common/octeontx2/otx2_common.h b/drivers/common/octeontx2/otx2_common.h > index b6779f7104..cd52e098e6 100644 > --- a/drivers/common/octeontx2/otx2_common.h > +++ b/drivers/common/octeontx2/otx2_common.h > @@ -136,7 +136,10 @@ extern int otx2_logtype_ree; > #define PCI_DEVID_OCTEONTX2_RVU_CPT_VF 0xA0FE > #define PCI_DEVID_OCTEONTX2_RVU_AF_VF 0xA0f8 > #define PCI_DEVID_OCTEONTX2_DPI_VF 0xA081 > -#define PCI_DEVID_OCTEONTX2_EP_VF 0xB203 /* OCTEON TX2 EP mode */ > +#define PCI_DEVID_OCTEONTX2_EP_NET_VF 0xB203 /* OCTEON TX2 EP mode */ > +/* OCTEON TX2 98xx EP mode */ > +#define PCI_DEVID_CN98XX_EP_NET_VF 0xB103 > +#define PCI_DEVID_OCTEONTX2_EP_RAW_VF 0xB204 /* OCTEON TX2 EP mode */ > #define PCI_DEVID_OCTEONTX2_RVU_SDP_PF 0xA0f6 > #define PCI_DEVID_OCTEONTX2_RVU_SDP_VF 0xA0f7 > #define PCI_DEVID_OCTEONTX2_RVU_REE_PF 0xA0f4 > diff --git a/drivers/net/octeontx_ep/meson.build b/drivers/net/octeontx_ep/meson.build > index 83ffbad7b6..06663de4e2 100644 > --- a/drivers/net/octeontx_ep/meson.build > +++ b/drivers/net/octeontx_ep/meson.build > @@ -6,3 +6,16 @@ sources = files( > 'otx_ep_ethdev.c', > ) > > +extra_flags = [] > +# This integrated controller runs only on a arm64 machine, remove 32bit warnings > +if not dpdk_conf.get('RTE_ARCH_64') > + extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast'] > +endif This was from net/octeontx2 driver due to NPA complication. Please check, Is this really required as this driver can run in x86 32bit mode unlike net/octeontx2.