Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133901/?format=api
http://patches.dpdk.org/api/patches/133901/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231106170521.3064038-3-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": "<20231106170521.3064038-3-abdullah.sevincer@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231106170521.3064038-3-abdullah.sevincer@intel.com", "date": "2023-11-06T17:05:21", "name": "[v7,2/2] event/dlb2: fix disable PASID", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9470dc5955112f740c3d499d0bda5c5e8d1fb998", "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/20231106170521.3064038-3-abdullah.sevincer@intel.com/mbox/", "series": [ { "id": 30172, "url": "http://patches.dpdk.org/api/series/30172/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30172", "date": "2023-11-06T17:05:19", "name": "*** Disable PASID for DLB Device ***", "version": 7, "mbox": "http://patches.dpdk.org/series/30172/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133901/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/133901/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 44B0E432BB;\n\tMon, 6 Nov 2023 18:05:50 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 38DA740DD8;\n\tMon, 6 Nov 2023 18:05:37 +0100 (CET)", "from mgamail.intel.com (mgamail.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 6EEBE40E01;\n Mon, 6 Nov 2023 18:05:35 +0100 (CET)", "from fmviesa001.fm.intel.com ([10.60.135.141])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Nov 2023 09:05:34 -0800", "from txanpdk02.an.intel.com ([10.123.117.76])\n by fmviesa001.fm.intel.com with ESMTP; 06 Nov 2023 09:05:32 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1699290335; x=1730826335;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=cga2VCUwyfs1uu3uCbZxe2s5ay4rREOmZHOZ8qao2NE=;\n b=OnOK0pB7P458asN5uoXq3HemLjb36q5p82NGxDU3HTS3eGUd4LknxL7P\n ILU8swajHw91xwk0dtamARl7kPEdoe6Wj96iNP7avwUEZ55dhon1eOdyR\n RwWxa/vdX9exMQ+cjZcvRShiHyGaIfgd1tibYtaWFeGqm9E+8rhYUcZd9\n sr4hESRQSXNVg7e4EaOkpCNOE6IFq6eeSsviX96gq9Mu/wu6DdCrFbf8b\n rhLsCUnldibMc1rv0jLy+r6mtMknySfBMHqK9V6IhU1mkaWx6X84Ov/23\n KKW0l6R2HAnVikYFmgrQ++194/evAH9QuT2VTsoswdj/cbwejQwTX61jG Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10886\"; a=\"475553798\"", "E=Sophos;i=\"6.03,282,1694761200\"; d=\"scan'208\";a=\"475553798\"", "E=Sophos;i=\"6.03,282,1694761200\"; d=\"scan'208\";a=\"10512056\"" ], "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 thomas@monjalon.net, Abdullah Sevincer <abdullah.sevincer@intel.com>,\n stable@dpdk.org", "Subject": "[PATCH v7 2/2] event/dlb2: fix disable PASID", "Date": "Mon, 6 Nov 2023 11:05:21 -0600", "Message-Id": "<20231106170521.3064038-3-abdullah.sevincer@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20231106170521.3064038-1-abdullah.sevincer@intel.com>", "References": "<20231106170521.3064038-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": "In vfio-pci driver when PASID is enabled by default DLB hardware puts\nDLB in SIOV mode. This breaks DLB PF-PMD mode. For DLB PF-PMD mode to\nfunction properly PASID needs to be disabled.\n\nIn this commit this issue is addressed and PASID is disabled by writing\na zero to PASID control register.\n\nFixes: 5433956d5185 (\"event/dlb2: add eventdev probe\")\nCc: stable@dpdk.org\n\nSigned-off-by: Abdullah Sevincer <abdullah.sevincer@intel.com>\n---\n drivers/event/dlb2/pf/dlb2_main.c | 11 +++++++++++\n 1 file changed, 11 insertions(+)", "diff": "diff --git a/drivers/event/dlb2/pf/dlb2_main.c b/drivers/event/dlb2/pf/dlb2_main.c\nindex aa03e4c311..61a7b39eef 100644\n--- a/drivers/event/dlb2/pf/dlb2_main.c\n+++ b/drivers/event/dlb2/pf/dlb2_main.c\n@@ -26,6 +26,7 @@\n #define PF_ID_ZERO 0\t/* PF ONLY! */\n #define NO_OWNER_VF 0\t/* PF ONLY! */\n #define NOT_VF_REQ false /* PF ONLY! */\n+#define DLB2_PCI_PASID_CAP_OFFSET 0x148 /* PASID capability offset */\n \n static int\n dlb2_pf_init_driver_state(struct dlb2_dev *dlb2_dev)\n@@ -514,6 +515,16 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t\t}\n \t}\n \n+\t/* Disable PASID if it is enabled by default, which\n+\t * breaks the DLB if enabled.\n+\t */\n+\toff = DLB2_PCI_PASID_CAP_OFFSET + RTE_PCI_PASID_CTRL;\n+\tif (rte_pci_pasid_set_state(pdev, off, false)) {\n+\t\tDLB2_LOG_ERR(\"[%s()] failed to write the pcie config space at offset %d\\n\",\n+\t\t\t\t__func__, (int)off);\n+\t\treturn -1;\n+\t}\n+\n \treturn 0;\n }\n \n", "prefixes": [ "v7", "2/2" ] }{ "id": 133901, "url": "