Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133434/?format=api
http://patches.dpdk.org/api/patches/133434/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231026163802.2247563-1-abdullah.sevincer@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": "<20231026163802.2247563-1-abdullah.sevincer@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231026163802.2247563-1-abdullah.sevincer@intel.com", "date": "2023-10-26T16:38:02", "name": "[v2] event/dlb2: disable PASID for kernel 6.2", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "bbb3855e7e91c1e19238d3a9b7c8db907eb649c5", "submitter": { "id": 2843, "url": "http://patches.dpdk.org/api/people/2843/?format=api", "name": "Sevincer, Abdullah", "email": "abdullah.sevincer@intel.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231026163802.2247563-1-abdullah.sevincer@intel.com/mbox/", "series": [ { "id": 30009, "url": "http://patches.dpdk.org/api/series/30009/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30009", "date": "2023-10-26T16:38:02", "name": "[v2] event/dlb2: disable PASID for kernel 6.2", "version": 2, "mbox": "http://patches.dpdk.org/series/30009/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133434/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/133434/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 027EB4320A;\n\tThu, 26 Oct 2023 18:39:31 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 80DC740A80;\n\tThu, 26 Oct 2023 18:39:31 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id A330840A6D\n for <dev@dpdk.org>; Thu, 26 Oct 2023 18:39:29 +0200 (CEST)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Oct 2023 09:38:45 -0700", "from txanpdk02.an.intel.com ([10.123.117.76])\n by fmsmga006.fm.intel.com with ESMTP; 26 Oct 2023 09:38:06 -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=1698338370; x=1729874370;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Ygv0WmGmqgRgFYL81FhYlTz5ZakkNVhnKbUAbN3MMbA=;\n b=feH7pakWljpZh+e5MXNaMQF9ZJfCA2IAs3Oj/REbqkvRXloP+eO3WxL0\n W7zJo6rURse/+ZjGEZgaKrXggbu/LBnADkOL/HKiemkeUO9avWhKdVtn4\n aKC1ETuDgY5fokqa2qyB8XHz77zjSM1dFZwdOiIR7brVMNlpwHLvfwZnv\n 6IfJ9Wo+ciR3liTMRV7DViofuUR7OgHjnZEXuToy9spY+L1LZyLSTD7H7\n Z3vvFFGBgdd/nv+Qubw3Un9QVuMkAngjld6sx7hrp43IrtrXssBrp5m8J\n rEPVFHOR7/MmtIzTr2at95IMkK3nNIgUpot8CQegWe1au1VLahck8HmHD g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10875\"; a=\"451829297\"", "E=Sophos;i=\"6.03,254,1694761200\"; d=\"scan'208\";a=\"451829297\"", "E=McAfee;i=\"6600,9927,10875\"; a=\"1006446415\"", "E=Sophos;i=\"6.03,254,1694761200\"; d=\"scan'208\";a=\"1006446415\"" ], "X-ExtLoop1": "1", "From": "Abdullah Sevincer <abdullah.sevincer@intel.com>", "To": "dev@dpdk.org", "Cc": "jerinj@marvell.com, mike.ximing.chen@intel.com,\n bruce.richardson@intel.com,\n Abdullah Sevincer <abdullah.sevincer@intel.com>", "Subject": "[PATCH v2] event/dlb2: disable PASID for kernel 6.2", "Date": "Thu, 26 Oct 2023 11:38:02 -0500", "Message-Id": "<20231026163802.2247563-1-abdullah.sevincer@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230607210050.107944-1-abdullah.sevincer@intel.com>", "References": "<20230607210050.107944-1-abdullah.sevincer@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": "vfio-pci driver in Linux kernel 6.2 enables PASID by default.\nIn DLB hardware, enabling PASID puts DLB in SIOV mode. This\nbreaks DLB PF-PMD mode. For DLB PF-PMD mode to function properly\nPASID needs to be disabled for kernel 6.2.\n\nIn this commit this issue is addressed and PASID is disabled\nby writing a zero to PASID control register.\n\nSigned-off-by: Abdullah Sevincer <abdullah.sevincer@intel.com>\n---\n drivers/event/dlb2/pf/dlb2_main.c | 24 ++++++++++++++++++++++++\n lib/pci/rte_pci.h | 4 ++++\n 2 files changed, 28 insertions(+)", "diff": "diff --git a/drivers/event/dlb2/pf/dlb2_main.c b/drivers/event/dlb2/pf/dlb2_main.c\nindex aa03e4c311..5065c0a9e4 100644\n--- a/drivers/event/dlb2/pf/dlb2_main.c\n+++ b/drivers/event/dlb2/pf/dlb2_main.c\n@@ -190,6 +190,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \tuint16_t rt_ctl_word;\n \tuint32_t pri_reqs_dword;\n \tuint16_t pri_ctrl_word;\n+\tuint16_t pasid_ctrl;\n \n \toff_t pcie_cap_offset;\n \tint pri_cap_offset;\n@@ -197,6 +198,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \tint err_cap_offset;\n \tint acs_cap_offset;\n \tint wait_count;\n+\tint pasid_cap_offset;\n \n \tuint16_t devsta_busy_word;\n \tuint16_t devctl_word;\n@@ -514,6 +516,28 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t\t}\n \t}\n \n+\tpasid_cap_offset = rte_pci_find_ext_capability(pdev, RTE_PCI_EXT_CAP_ID_PASID);\n+\n+\tif (pasid_cap_offset >= 0) {\n+\t\toff = pasid_cap_offset + RTE_PCI_PASID_CTRL;\n+\n+\t\tif (rte_pci_read_config(pdev, &pasid_ctrl, 2, off) != 2)\n+\t\t\tpasid_ctrl = 0;\n+\n+\t\tif (pasid_ctrl) {\n+\n+\t\t\tDLB2_INFO(dlb2_dev, \"DLB2 disabling pasid...\\n\");\n+\t\t\tpasid_ctrl = 0;\n+\t\t\tret = rte_pci_write_config(pdev, &pasid_ctrl, 2, off);\n+\n+\t\t\tif (ret != 2) {\n+\t\t\t\tDLB2_LOG_ERR(\"[%s()] failed to write the pcie config space at offset %d\\n\",\n+\t\t\t\t\t\t__func__, (int)off);\n+\t\t\t\treturn ret;\n+\t\t\t}\n+\t\t}\n+\t}\n+\n \treturn 0;\n }\n \ndiff --git a/lib/pci/rte_pci.h b/lib/pci/rte_pci.h\nindex 69e932d910..d195f01950 100644\n--- a/lib/pci/rte_pci.h\n+++ b/lib/pci/rte_pci.h\n@@ -101,6 +101,10 @@ extern \"C\" {\n #define RTE_PCI_EXT_CAP_ID_ACS\t\t0x0d\t/* Access Control Services */\n #define RTE_PCI_EXT_CAP_ID_SRIOV\t0x10\t/* SR-IOV */\n #define RTE_PCI_EXT_CAP_ID_PRI\t\t0x13\t/* Page Request Interface */\n+#define RTE_PCI_EXT_CAP_ID_PASID 0x1B /* Process Address Space ID */\n+\n+/* Process Address Space ID */\n+#define RTE_PCI_PASID_CTRL\t\t0x06 /* PASID control register */\n \n /* Advanced Error Reporting (RTE_PCI_EXT_CAP_ID_ERR) */\n #define RTE_PCI_ERR_UNCOR_STATUS\t0x04\t/* Uncorrectable Error Status */\n", "prefixes": [ "v2" ] }{ "id": 133434, "url": "