From patchwork Fri Mar 5 13:38:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 88534 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 DD7AEA0547; Fri, 5 Mar 2021 14:40:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1281022A376; Fri, 5 Mar 2021 14:39:56 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C9AA522A353 for ; Fri, 5 Mar 2021 14:39:53 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 125DUn2t018420 for ; Fri, 5 Mar 2021 05:39:53 -0800 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-type; s=pfpt0220; bh=B4MrFxZvAS3hMcSBnRyu/7jLJhaxtPPjx1Du25gc+V8=; b=UEc1oqqwxdoVhDOcBYox6UsJH9z3hbGmcVhEBsJ38KcsX0LI+StkjMdG/S/41HhLt7UC UgEd0RytNmc8Ae7n2YOU719eb3g1tw2IKL4KniCckA33vh3gMfzkl2eUVpzBy/agDIMC d/ndwERdt7kCKMJPrSCU+nyGWa01HZNBQM22qVQf7vtbEXVthUlm/oMHh7BNZeNWT1fU 19abMOexxep05ZBjhOw/hwgxdmtj6AQAd/TMrh2Ar7e7Gfd/D7/oC4uofRFXoI7j2b0F JDktWwIe8u0CfpXhx5jE5HypR7tySHuEFtr3WrzvOTOJB2Gy5CG3GfRv7Ior6QS7ZwHp pg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 372s2umrkq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 05 Mar 2021 05:39:52 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Mar 2021 05:39:51 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Mar 2021 05:39:50 -0800 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.2 via Frontend Transport; Fri, 5 Mar 2021 05:39:51 -0800 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 8DC4D3F7041; Fri, 5 Mar 2021 05:39:48 -0800 (PST) From: Nithin Dabilpuram To: CC: , , , , , , Date: Fri, 5 Mar 2021 19:08:33 +0530 Message-ID: <20210305133918.8005-8-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20210305133918.8005-1-ndabilpuram@marvell.com> References: <20210305133918.8005-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-05_08:2021-03-03, 2021-03-05 signatures=0 Subject: [dpdk-dev] [PATCH 07/52] common/cnxk: add base device class 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" From: Jerin Jacob Introduce 'dev' class to hold cnxk PCIe device specific information and operations. All PCIe drivers(ethdev, mempool, cryptodev and eventdev) of cnxk inherits this base object to avail the common functionalities such as mailbox creation, interrupt registration, LMT setup, VF message mbox forwarding, etc. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build | 4 +- drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_dev.c | 362 ++++++++++++++++++++++++++++++++++++ drivers/common/cnxk/roc_dev_priv.h | 42 +++++ drivers/common/cnxk/roc_idev.c | 77 ++++++++ drivers/common/cnxk/roc_idev.h | 12 ++ drivers/common/cnxk/roc_idev_priv.h | 22 +++ drivers/common/cnxk/roc_priv.h | 3 + drivers/common/cnxk/version.map | 2 + 9 files changed, 526 insertions(+), 1 deletion(-) create mode 100644 drivers/common/cnxk/roc_dev.c create mode 100644 drivers/common/cnxk/roc_idev.c create mode 100644 drivers/common/cnxk/roc_idev.h create mode 100644 drivers/common/cnxk/roc_idev_priv.h diff --git a/drivers/common/cnxk/meson.build b/drivers/common/cnxk/meson.build index 17d112f..735d3f8 100644 --- a/drivers/common/cnxk/meson.build +++ b/drivers/common/cnxk/meson.build @@ -11,7 +11,9 @@ endif config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON' deps = ['eal', 'pci', 'bus_pci', 'mbuf'] -sources = files('roc_irq.c', +sources = files('roc_dev.c', + 'roc_idev.c', + 'roc_irq.c', 'roc_mbox.c', 'roc_model.c', 'roc_platform.c', diff --git a/drivers/common/cnxk/roc_api.h b/drivers/common/cnxk/roc_api.h index 25c50d8..83aa4f6 100644 --- a/drivers/common/cnxk/roc_api.h +++ b/drivers/common/cnxk/roc_api.h @@ -82,4 +82,7 @@ /* Utils */ #include "roc_utils.h" +/* Idev */ +#include "roc_idev.h" + #endif /* _ROC_API_H_ */ diff --git a/drivers/common/cnxk/roc_dev.c b/drivers/common/cnxk/roc_dev.c new file mode 100644 index 0000000..4ef15df --- /dev/null +++ b/drivers/common/cnxk/roc_dev.c @@ -0,0 +1,362 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(C) 2020 Marvell. + */ + +#include +#include +#include +#include +#include + +#include "roc_api.h" +#include "roc_priv.h" + +/* PCI Extended capability ID */ +#define ROC_PCI_EXT_CAP_ID_SRIOV 0x10 /* SRIOV cap */ + +/* Single Root I/O Virtualization */ +#define ROC_PCI_SRIOV_TOTAL_VF 0x0e /* Total VFs */ + +static void +process_msgs(struct dev *dev, struct mbox *mbox) +{ + struct mbox_dev *mdev = &mbox->dev[0]; + struct mbox_hdr *req_hdr; + struct mbox_msghdr *msg; + int msgs_acked = 0; + int offset; + uint16_t i; + + req_hdr = (struct mbox_hdr *)((uintptr_t)mdev->mbase + mbox->rx_start); + if (req_hdr->num_msgs == 0) + return; + + offset = mbox->rx_start + PLT_ALIGN(sizeof(*req_hdr), MBOX_MSG_ALIGN); + for (i = 0; i < req_hdr->num_msgs; i++) { + msg = (struct mbox_msghdr *)((uintptr_t)mdev->mbase + offset); + + msgs_acked++; + plt_base_dbg("Message 0x%x (%s) pf:%d/vf:%d", msg->id, + mbox_id2name(msg->id), dev_get_pf(msg->pcifunc), + dev_get_vf(msg->pcifunc)); + + switch (msg->id) { + /* Add message id's that are handled here */ + case MBOX_MSG_READY: + /* Get our identity */ + dev->pf_func = msg->pcifunc; + break; + + default: + if (msg->rc) + plt_err("Message (%s) response has err=%d", + mbox_id2name(msg->id), msg->rc); + break; + } + offset = mbox->rx_start + msg->next_msgoff; + } + + mbox_reset(mbox, 0); + /* Update acked if someone is waiting a message */ + mdev->msgs_acked = msgs_acked; + plt_wmb(); +} + +static int +mbox_process_msgs_up(struct dev *dev, struct mbox_msghdr *req) +{ + /* Check if valid, if not reply with a invalid msg */ + if (req->sig != MBOX_REQ_SIG) + return -EIO; + + switch (req->id) { + default: + reply_invalid_msg(&dev->mbox_up, 0, 0, req->id); + break; + } + + return -ENODEV; +} + +static void +process_msgs_up(struct dev *dev, struct mbox *mbox) +{ + struct mbox_dev *mdev = &mbox->dev[0]; + struct mbox_hdr *req_hdr; + struct mbox_msghdr *msg; + int i, err, offset; + + req_hdr = (struct mbox_hdr *)((uintptr_t)mdev->mbase + mbox->rx_start); + if (req_hdr->num_msgs == 0) + return; + + offset = mbox->rx_start + PLT_ALIGN(sizeof(*req_hdr), MBOX_MSG_ALIGN); + for (i = 0; i < req_hdr->num_msgs; i++) { + msg = (struct mbox_msghdr *)((uintptr_t)mdev->mbase + offset); + + plt_base_dbg("Message 0x%x (%s) pf:%d/vf:%d", msg->id, + mbox_id2name(msg->id), dev_get_pf(msg->pcifunc), + dev_get_vf(msg->pcifunc)); + err = mbox_process_msgs_up(dev, msg); + if (err) + plt_err("Error %d handling 0x%x (%s)", err, msg->id, + mbox_id2name(msg->id)); + offset = mbox->rx_start + msg->next_msgoff; + } + /* Send mbox responses */ + if (mdev->num_msgs) { + plt_base_dbg("Reply num_msgs:%d", mdev->num_msgs); + mbox_msg_send(mbox, 0); + } +} + +static void +roc_af_pf_mbox_irq(void *param) +{ + struct dev *dev = param; + uint64_t intr; + + intr = plt_read64(dev->bar2 + RVU_PF_INT); + if (intr == 0) + plt_base_dbg("Proceeding to check mbox UP messages if any"); + + plt_write64(intr, dev->bar2 + RVU_PF_INT); + plt_base_dbg("Irq 0x%" PRIx64 "(pf:%d)", intr, dev->pf); + + /* First process all configuration messages */ + process_msgs(dev, dev->mbox); + + /* Process Uplink messages */ + process_msgs_up(dev, &dev->mbox_up); +} + +static int +mbox_register_pf_irq(struct plt_pci_device *pci_dev, struct dev *dev) +{ + struct plt_intr_handle *intr_handle = &pci_dev->intr_handle; + int rc; + + plt_write64(~0ull, dev->bar2 + RVU_PF_INT_ENA_W1C); + + /* MBOX interrupt AF <-> PF */ + rc = dev_irq_register(intr_handle, roc_af_pf_mbox_irq, dev, + RVU_PF_INT_VEC_AFPF_MBOX); + if (rc) { + plt_err("Fail to register AF<->PF mbox irq"); + return rc; + } + + plt_write64(~0ull, dev->bar2 + RVU_PF_INT); + plt_write64(~0ull, dev->bar2 + RVU_PF_INT_ENA_W1S); + + return rc; +} + +static int +mbox_register_irq(struct plt_pci_device *pci_dev, struct dev *dev) +{ + return mbox_register_pf_irq(pci_dev, dev); +} + +static void +mbox_unregister_pf_irq(struct plt_pci_device *pci_dev, struct dev *dev) +{ + struct plt_intr_handle *intr_handle = &pci_dev->intr_handle; + + plt_write64(~0ull, dev->bar2 + RVU_PF_INT_ENA_W1C); + + /* MBOX interrupt AF <-> PF */ + dev_irq_unregister(intr_handle, roc_af_pf_mbox_irq, dev, + RVU_PF_INT_VEC_AFPF_MBOX); +} + +static void +mbox_unregister_irq(struct plt_pci_device *pci_dev, struct dev *dev) +{ + mbox_unregister_pf_irq(pci_dev, dev); +} + +static uint16_t +dev_pf_total_vfs(struct plt_pci_device *pci_dev) +{ + uint16_t total_vfs = 0; + int sriov_pos, rc; + + sriov_pos = + plt_pci_find_ext_capability(pci_dev, ROC_PCI_EXT_CAP_ID_SRIOV); + if (sriov_pos <= 0) { + plt_warn("Unable to find SRIOV cap, rc=%d", sriov_pos); + return 0; + } + + rc = plt_pci_read_config(pci_dev, &total_vfs, 2, + sriov_pos + ROC_PCI_SRIOV_TOTAL_VF); + if (rc < 0) { + plt_warn("Unable to read SRIOV cap, rc=%d", rc); + return 0; + } + + return total_vfs; +} + +static int +dev_setup_shared_lmt_region(struct mbox *mbox) +{ + struct lmtst_tbl_setup_req *req; + + req = mbox_alloc_msg_lmtst_tbl_setup(mbox); + req->pcifunc = idev_lmt_pffunc_get(); + + return mbox_process(mbox); +} + +static int +dev_lmt_setup(struct plt_pci_device *pci_dev, struct dev *dev) +{ + uint64_t bar4_mbox_sz = MBOX_SIZE; + struct idev_cfg *idev; + int rc; + + if (roc_model_is_cn9k()) { + dev->lmt_base = dev->bar2 + (RVU_BLOCK_ADDR_LMT << 20); + return 0; + } + + /* [CN10K, .) */ + + /* Set common lmt region from second pf_func onwards. */ + if (!dev->disable_shared_lmt && idev_lmt_pffunc_get() && + dev->pf_func != idev_lmt_pffunc_get()) { + rc = dev_setup_shared_lmt_region(dev->mbox); + if (!rc) { + dev->lmt_base = roc_idev_lmt_base_addr_get(); + return rc; + } + plt_err("Failed to setup shared lmt region, pf_func %d err %d " + "Using respective LMT region per pf func", + dev->pf_func, rc); + } + + /* PF BAR4 should always be sufficient enough to + * hold PF-AF MBOX + PF-VF MBOX + LMT lines. + */ + if (pci_dev->mem_resource[4].len < + (bar4_mbox_sz + (RVU_LMT_LINE_MAX * RVU_LMT_SZ))) { + plt_err("Not enough bar4 space for lmt lines and mbox"); + return -EFAULT; + } + + /* LMT base is just after total VF MBOX area */ + bar4_mbox_sz += (MBOX_SIZE * dev_pf_total_vfs(pci_dev)); + dev->lmt_base = dev->bar4 + bar4_mbox_sz; + + /* Base LMT address should be chosen from only those pci funcs which + * participate in LMT shared mode. + */ + if (!dev->disable_shared_lmt) { + idev = idev_get_cfg(); + if (!__atomic_load_n(&idev->lmt_pf_func, __ATOMIC_ACQUIRE)) { + idev->lmt_base_addr = dev->lmt_base; + idev->lmt_pf_func = dev->pf_func; + idev->num_lmtlines = RVU_LMT_LINE_MAX; + } + } + + return 0; +} + +int +dev_init(struct dev *dev, struct plt_pci_device *pci_dev) +{ + int direction, up_direction, rc; + uintptr_t bar2, bar4, mbox; + uint64_t intr_offset; + + bar2 = (uintptr_t)pci_dev->mem_resource[2].addr; + bar4 = (uintptr_t)pci_dev->mem_resource[4].addr; + if (bar2 == 0 || bar4 == 0) { + plt_err("Failed to get PCI bars"); + rc = -ENODEV; + goto error; + } + + /* Trigger fault on bar2 and bar4 regions + * to avoid BUG_ON in remap_pfn_range() + * in latest kernel. + */ + *(volatile uint64_t *)bar2; + *(volatile uint64_t *)bar4; + + /* Check ROC model supported */ + if (roc_model->flag == 0) { + rc = UTIL_ERR_INVALID_MODEL; + goto error; + } + + dev->bar2 = bar2; + dev->bar4 = bar4; + + mbox = bar4; + direction = MBOX_DIR_PFAF; + up_direction = MBOX_DIR_PFAF_UP; + intr_offset = RVU_PF_INT; + + /* Initialize the local mbox */ + rc = mbox_init(&dev->mbox_local, mbox, bar2, direction, 1, intr_offset); + if (rc) + goto error; + dev->mbox = &dev->mbox_local; + + rc = mbox_init(&dev->mbox_up, mbox, bar2, up_direction, 1, intr_offset); + if (rc) + goto mbox_fini; + + /* Register mbox interrupts */ + rc = mbox_register_irq(pci_dev, dev); + if (rc) + goto mbox_fini; + + /* Check the readiness of PF/VF */ + rc = send_ready_msg(dev->mbox, &dev->pf_func); + if (rc) + goto mbox_unregister; + + dev->pf = dev_get_pf(dev->pf_func); + + dev->mbox_active = 1; + + /* Setup LMT line base */ + rc = dev_lmt_setup(pci_dev, dev); + if (rc) + goto iounmap; + + return rc; +iounmap: +mbox_unregister: + mbox_unregister_irq(pci_dev, dev); +mbox_fini: + mbox_fini(dev->mbox); + mbox_fini(&dev->mbox_up); +error: + return rc; +} + +int +dev_fini(struct dev *dev, struct plt_pci_device *pci_dev) +{ + struct plt_intr_handle *intr_handle = &pci_dev->intr_handle; + struct mbox *mbox; + + mbox_unregister_irq(pci_dev, dev); + + /* Release PF - AF */ + mbox = dev->mbox; + mbox_fini(mbox); + mbox = &dev->mbox_up; + mbox_fini(mbox); + dev->mbox_active = 0; + + /* Disable MSIX vectors */ + dev_irqs_disable(intr_handle); + return 0; +} diff --git a/drivers/common/cnxk/roc_dev_priv.h b/drivers/common/cnxk/roc_dev_priv.h index 713af4f..655c58b 100644 --- a/drivers/common/cnxk/roc_dev_priv.h +++ b/drivers/common/cnxk/roc_dev_priv.h @@ -5,9 +5,51 @@ #ifndef _ROC_DEV_PRIV_H #define _ROC_DEV_PRIV_H +#define RVU_PFVF_PF_SHIFT 10 +#define RVU_PFVF_PF_MASK 0x3F +#define RVU_PFVF_FUNC_SHIFT 0 +#define RVU_PFVF_FUNC_MASK 0x3FF +#define RVU_MAX_INT_RETRY 3 + +static inline int +dev_get_vf(uint16_t pf_func) +{ + return (((pf_func >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK) - 1); +} + +static inline int +dev_get_pf(uint16_t pf_func) +{ + return (pf_func >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; +} + +static inline int +dev_pf_func(int pf, int vf) +{ + return (pf << RVU_PFVF_PF_SHIFT) | ((vf << RVU_PFVF_FUNC_SHIFT) + 1); +} + +struct dev { + uint16_t pf; + uint16_t pf_func; + uint8_t mbox_active; + bool drv_inited; + uintptr_t bar2; + uintptr_t bar4; + uintptr_t lmt_base; + struct mbox mbox_local; + struct mbox mbox_up; + uint64_t hwcap; + struct mbox *mbox; + bool disable_shared_lmt; /* false(default): shared lmt mode enabled */ +} __plt_cache_aligned; + extern uint16_t dev_rclk_freq; extern uint16_t dev_sclk_freq; +int dev_init(struct dev *dev, struct plt_pci_device *pci_dev); +int dev_fini(struct dev *dev, struct plt_pci_device *pci_dev); + int dev_irq_register(struct plt_intr_handle *intr_handle, plt_intr_callback_fn cb, void *data, unsigned int vec); void dev_irq_unregister(struct plt_intr_handle *intr_handle, diff --git a/drivers/common/cnxk/roc_idev.c b/drivers/common/cnxk/roc_idev.c new file mode 100644 index 0000000..be762c5 --- /dev/null +++ b/drivers/common/cnxk/roc_idev.c @@ -0,0 +1,77 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(C) 2020 Marvell. + */ + +#include "roc_api.h" +#include "roc_priv.h" + +struct idev_cfg * +idev_get_cfg(void) +{ + static const char name[] = "roc_cn10k_intra_device_conf"; + const struct plt_memzone *mz; + struct idev_cfg *idev; + + mz = plt_memzone_lookup(name); + if (mz != NULL) + return mz->addr; + + /* Request for the first time */ + mz = plt_memzone_reserve_cache_align(name, sizeof(struct idev_cfg)); + if (mz != NULL) { + idev = mz->addr; + idev_set_defaults(idev); + return idev; + } + return NULL; +} + +void +idev_set_defaults(struct idev_cfg *idev) +{ + idev->lmt_pf_func = 0; + idev->lmt_base_addr = 0; + idev->num_lmtlines = 0; +} + +uint16_t +idev_lmt_pffunc_get(void) +{ + struct idev_cfg *idev; + uint16_t lmt_pf_func; + + idev = idev_get_cfg(); + lmt_pf_func = 0; + if (idev != NULL) + lmt_pf_func = idev->lmt_pf_func; + + return lmt_pf_func; +} + +uint64_t +roc_idev_lmt_base_addr_get(void) +{ + uint64_t lmt_base_addr; + struct idev_cfg *idev; + + idev = idev_get_cfg(); + lmt_base_addr = 0; + if (idev != NULL) + lmt_base_addr = idev->lmt_base_addr; + + return lmt_base_addr; +} + +uint16_t +roc_idev_num_lmtlines_get(void) +{ + struct idev_cfg *idev; + uint16_t num_lmtlines; + + idev = idev_get_cfg(); + num_lmtlines = 0; + if (idev != NULL) + num_lmtlines = idev->num_lmtlines; + + return num_lmtlines; +} diff --git a/drivers/common/cnxk/roc_idev.h b/drivers/common/cnxk/roc_idev.h new file mode 100644 index 0000000..9c45960 --- /dev/null +++ b/drivers/common/cnxk/roc_idev.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(C) 2020 Marvell. + */ + +#ifndef _ROC_IDEV_H_ +#define _ROC_IDEV_H_ + +/* LMT */ +uint64_t __roc_api roc_idev_lmt_base_addr_get(void); +uint16_t __roc_api roc_idev_num_lmtlines_get(void); + +#endif /* _ROC_IDEV_H_ */ diff --git a/drivers/common/cnxk/roc_idev_priv.h b/drivers/common/cnxk/roc_idev_priv.h new file mode 100644 index 0000000..c996c5c --- /dev/null +++ b/drivers/common/cnxk/roc_idev_priv.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(C) 2020 Marvell. + */ + +#ifndef _ROC_IDEV_PRIV_H_ +#define _ROC_IDEV_PRIV_H_ + +/* Intra device related functions */ +struct idev_cfg { + uint16_t lmt_pf_func; + uint16_t num_lmtlines; + uint64_t lmt_base_addr; +}; + +/* Generic */ +struct idev_cfg *idev_get_cfg(void); +void idev_set_defaults(struct idev_cfg *idev); + +/* idev lmt */ +uint16_t idev_lmt_pffunc_get(void); + +#endif /* _ROC_IDEV_PRIV_H_ */ diff --git a/drivers/common/cnxk/roc_priv.h b/drivers/common/cnxk/roc_priv.h index ce5dcf3..090c597 100644 --- a/drivers/common/cnxk/roc_priv.h +++ b/drivers/common/cnxk/roc_priv.h @@ -14,4 +14,7 @@ /* Dev */ #include "roc_dev_priv.h" +/* idev */ +#include "roc_idev_priv.h" + #endif /* _ROC_PRIV_H_ */ diff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map index 8293f2a..a9d137d 100644 --- a/drivers/common/cnxk/version.map +++ b/drivers/common/cnxk/version.map @@ -6,6 +6,8 @@ INTERNAL { plt_init; roc_clk_freq_get; roc_error_msg_get; + roc_idev_lmt_base_addr_get; + roc_idev_num_lmtlines_get; roc_model; local: *;