Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/117658/?format=api
http://patches.dpdk.org/api/patches/117658/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221007213851.31524-13-nicolas.chautru@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20221007213851.31524-13-nicolas.chautru@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221007213851.31524-13-nicolas.chautru@intel.com", "date": "2022-10-07T21:38:49", "name": "[v9,12/14] baseband/acc: add device status and vf2pf comms", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "13d7896b5b323f6bc71042cd2f6cd87d8ed8bb86", "submitter": { "id": 1314, "url": "http://patches.dpdk.org/api/people/1314/?format=api", "name": "Chautru, Nicolas", "email": "nicolas.chautru@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221007213851.31524-13-nicolas.chautru@intel.com/mbox/", "series": [ { "id": 25041, "url": "http://patches.dpdk.org/api/series/25041/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25041", "date": "2022-10-07T21:38:37", "name": "bbdev ACC200 PMD", "version": 9, "mbox": "http://patches.dpdk.org/series/25041/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/117658/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/117658/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A5363A0543;\n\tFri, 7 Oct 2022 23:40:34 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 50AC742BA7;\n\tFri, 7 Oct 2022 23:39:22 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 4027F42B7E\n for <dev@dpdk.org>; Fri, 7 Oct 2022 23:39:15 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Oct 2022 14:39:14 -0700", "from unknown (HELO icx-npg-scs1-cp1.localdomain) ([10.233.180.245])\n by orsmga007.jf.intel.com with ESMTP; 07 Oct 2022 14:39:13 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1665178755; x=1696714755;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=sF+UgdttvVKSMc5TsrtxPnILQAA/P05D5WoqRdPwQp8=;\n b=jO/Uyvye/RNKOq+Z0P9z+DVfuye2Cd4mbth0VZqKBbUc+HMxmTXh6zIF\n uRB228Ql50otY15x1SelKkNm/xXbQGd8G0hhFOnKQWqQw0NKAmfoqNd8p\n Z12+rfJggknX0RkzFROFJMYTgWIBikMRxAHVy3MwrQOdpmP3vMdS9B8/n\n lJkmJ2ffZDLzcmpCJs3CcSKHHmH2fwRYJ4sPgtHRAZcn/HR3/n15T5AA1\n p5CHKyIfpP2olOat5CNlKg2jah6GZys1dI1ReYQ8BYI4ZG5Q7DQWpDTa3\n wcIReQybN+QWGGNw7ucFYIN7e+G/g9SYOO61qRuXnH2RWtrvKGj+vF4v8 Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10493\"; a=\"291118516\"", "E=Sophos;i=\"5.95,167,1661842800\"; d=\"scan'208\";a=\"291118516\"", "E=McAfee;i=\"6500,9779,10493\"; a=\"620388482\"", "E=Sophos;i=\"5.95,167,1661842800\"; d=\"scan'208\";a=\"620388482\"" ], "X-ExtLoop1": "1", "From": "Nicolas Chautru <nicolas.chautru@intel.com>", "To": "dev@dpdk.org,\n\tgakhil@marvell.com,\n\tmaxime.coquelin@redhat.com", "Cc": "trix@redhat.com, mdr@ashroe.eu, bruce.richardson@intel.com,\n hemant.agrawal@nxp.com, david.marchand@redhat.com,\n stephen@networkplumber.org, hernan.vargas@intel.com,\n Nic Chautru <nicolas.chautru@intel.com>", "Subject": "[PATCH v9 12/14] baseband/acc: add device status and vf2pf comms", "Date": "Fri, 7 Oct 2022 14:38:49 -0700", "Message-Id": "<20221007213851.31524-13-nicolas.chautru@intel.com>", "X-Mailer": "git-send-email 2.37.1", "In-Reply-To": "<20221007213851.31524-1-nicolas.chautru@intel.com>", "References": "<20221007213851.31524-1-nicolas.chautru@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 <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Nic Chautru <nicolas.chautru@intel.com>\n\nAdded support to expose the device status seen from the\nhost through v2pf mailbox communication.\n\nSigned-off-by: Nic Chautru <nicolas.chautru@intel.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/baseband/acc/rte_acc200_pmd.c | 30 +++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)", "diff": "diff --git a/drivers/baseband/acc/rte_acc200_pmd.c b/drivers/baseband/acc/rte_acc200_pmd.c\nindex 99ac07ff01..fe032efc83 100644\n--- a/drivers/baseband/acc/rte_acc200_pmd.c\n+++ b/drivers/baseband/acc/rte_acc200_pmd.c\n@@ -211,6 +211,33 @@ fetch_acc200_config(struct rte_bbdev *dev)\n \t\t\tacc_conf->q_fft.aq_depth_log2);\n }\n \n+static inline void\n+acc200_vf2pf(struct acc_device *d, unsigned int payload)\n+{\n+\tacc_reg_write(d, HWVfHiVfToPfDbellVf, payload);\n+}\n+\n+/* Request device status information. */\n+static inline uint32_t\n+acc200_device_status(struct rte_bbdev *dev)\n+{\n+\tstruct acc_device *d = dev->data->dev_private;\n+\tuint32_t reg, time_out = 0;\n+\n+\tif (d->pf_device)\n+\t\treturn RTE_BBDEV_DEV_NOT_SUPPORTED;\n+\n+\tacc200_vf2pf(d, ACC_VF2PF_STATUS_REQUEST);\n+\treg = acc_reg_read(d, HWVfHiPfToVfDbellVf);\n+\twhile ((time_out < ACC200_STATUS_TO) && (reg == RTE_BBDEV_DEV_NOSTATUS)) {\n+\t\tusleep(ACC200_STATUS_WAIT); /*< Wait or VF->PF->VF Comms */\n+\t\treg = acc_reg_read(d, HWVfHiPfToVfDbellVf);\n+\t\ttime_out++;\n+\t}\n+\n+\treturn reg;\n+}\n+\n /* Checks PF Info Ring to find the interrupt cause and handles it accordingly. */\n static inline void\n acc200_check_ir(struct acc_device *acc200_dev)\n@@ -484,6 +511,7 @@ acc200_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)\n \n \t/* Mark as configured properly */\n \td->configured = true;\n+\tacc200_vf2pf(d, ACC_VF2PF_USING_VF);\n \n \trte_bbdev_log_debug(\n \t\t\t\"ACC200 (%s) configured sw_rings = %p, sw_rings_iova = %#\"\n@@ -1010,6 +1038,8 @@ acc200_dev_info_get(struct rte_bbdev *dev,\n \n \t/* Read and save the populated config from ACC200 registers. */\n \tfetch_acc200_config(dev);\n+\t/* Check the status of device. */\n+\tdev_info->device_status = acc200_device_status(dev);\n \n \t/* Exposed number of queues. */\n \tdev_info->num_queues[RTE_BBDEV_OP_NONE] = 0;\n", "prefixes": [ "v9", "12/14" ] }{ "id": 117658, "url": "