Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/42599/?format=api
http://patches.dpdk.org/api/patches/42599/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1531116091-18030-4-git-send-email-jia.guo@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": "<1531116091-18030-4-git-send-email-jia.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1531116091-18030-4-git-send-email-jia.guo@intel.com", "date": "2018-07-09T06:01:27", "name": "[v6,3/7] bus: add sigbus handler", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "342c5b37c17a06e27f6f65e2e92058056b736e4b", "submitter": { "id": 507, "url": "http://patches.dpdk.org/api/people/507/?format=api", "name": "Guo, Jia", "email": "jia.guo@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1531116091-18030-4-git-send-email-jia.guo@intel.com/mbox/", "series": [ { "id": 468, "url": "http://patches.dpdk.org/api/series/468/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=468", "date": "2018-07-09T06:01:24", "name": "hotplug failure handle mechanism", "version": 6, "mbox": "http://patches.dpdk.org/series/468/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/42599/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/42599/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BABED1B173;\n\tMon, 9 Jul 2018 08:04:03 +0200 (CEST)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id 26CC71B173\n\tfor <dev@dpdk.org>; Mon, 9 Jul 2018 08:04:01 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Jul 2018 23:04:01 -0700", "from jeffguo-z170x-ud5.sh.intel.com (HELO localhost.localdomain)\n\t([10.67.104.10])\n\tby orsmga008.jf.intel.com with ESMTP; 08 Jul 2018 23:03:58 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,329,1526367600\"; d=\"scan'208\";a=\"55386245\"", "From": "Jeff Guo <jia.guo@intel.com>", "To": "stephen@networkplumber.org, bruce.richardson@intel.com,\n\tferruh.yigit@intel.com, konstantin.ananyev@intel.com,\n\tgaetan.rivet@6wind.com, jingjing.wu@intel.com, thomas@monjalon.net,\n\tmotih@mellanox.com, matan@mellanox.com, harry.van.haaren@intel.com,\n\tqi.z.zhang@intel.com, shaopeng.he@intel.com,\n\tbernard.iremonger@intel.com, arybchenko@solarflare.com", "Cc": "jblunck@infradead.org, shreyansh.jain@nxp.com, dev@dpdk.org,\n\tjia.guo@intel.com, helin.zhang@intel.com", "Date": "Mon, 9 Jul 2018 14:01:27 +0800", "Message-Id": "<1531116091-18030-4-git-send-email-jia.guo@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1531116091-18030-1-git-send-email-jia.guo@intel.com>", "References": "<1531116091-18030-1-git-send-email-jia.guo@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 3/7] bus: add sigbus handler", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "When device be hotplug out, if data path still read/write device, the\nsigbus error will occur, this error need to be handled. So a handler\nneed to be here to capture the signal and handle it correspondingly.\n\nThis patch introduces a bus ops to handle sigbus error, it is a bus\nspecific behavior, so that each kind of bus can implement its own logic\ncase by case.\n\nSigned-off-by: Jeff Guo <jia.guo@intel.com>\nAcked-by: Shaopeng He <shaopeng.he@intel.com>\n---\nv6->v5:\nrefine some description of bus ops\n---\n lib/librte_eal/common/include/rte_bus.h | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h\nindex e3a55a8..216ad1e 100644\n--- a/lib/librte_eal/common/include/rte_bus.h\n+++ b/lib/librte_eal/common/include/rte_bus.h\n@@ -182,6 +182,21 @@ typedef int (*rte_bus_parse_t)(const char *name, void *addr);\n typedef int (*rte_bus_hotplug_failure_handler_t)(struct rte_device *dev);\n \n /**\n+ * Implementation a specific sigbus handler, which is responsible for handle\n+ * the sigbus error which is either original memory error, or specific memory\n+ * error that caused of hot unplug. When sigbus error be captured, it could\n+ * call this function to handle sigbus error.\n+ * @param failure_addr\n+ *\tPointer of the fault address of the sigbus error.\n+ *\n+ * @return\n+ *\t0 for success handle the sigbus.\n+ *\t1 for no bus handle the sigbus.\n+ *\t-1 for failed to handle the sigbus\n+ */\n+typedef int (*rte_bus_sigbus_handler_t)(const void *failure_addr);\n+\n+/**\n * Bus scan policies\n */\n enum rte_bus_scan_mode {\n@@ -227,6 +242,8 @@ struct rte_bus {\n \trte_bus_get_iommu_class_t get_iommu_class; /**< Get iommu class */\n \trte_bus_hotplug_failure_handler_t hotplug_failure_handler;\n \t\t\t\t\t/**< handle hotplug failure on bus */\n+\trte_bus_sigbus_handler_t sigbus_handler; /**< handle sigbus error */\n+\n };\n \n /**\n", "prefixes": [ "v6", "3/7" ] }{ "id": 42599, "url": "