Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/812231/?format=api
{ "id": 812231, "url": "http://patchwork.ozlabs.org/api/1.2/patches/812231/?format=api", "web_url": "http://patchwork.ozlabs.org/project/slof/patch/20170911070909.41129-1-aik@ozlabs.ru/", "project": { "id": 50, "url": "http://patchwork.ozlabs.org/api/1.2/projects/50/?format=api", "name": "SLOF development", "link_name": "slof", "list_id": "slof.lists.ozlabs.org", "list_email": "slof@lists.ozlabs.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170911070909.41129-1-aik@ozlabs.ru>", "list_archive_url": null, "date": "2017-09-11T07:09:09", "name": "usb-xhci: Reset ERSTSZ together with ERSTBA", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "130784d26868da5f3078eb0f0c7074dffcf7eccd", "submitter": { "id": 7621, "url": "http://patchwork.ozlabs.org/api/1.2/people/7621/?format=api", "name": "Alexey Kardashevskiy", "email": "aik@ozlabs.ru" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/slof/patch/20170911070909.41129-1-aik@ozlabs.ru/mbox/", "series": [ { "id": 2444, "url": "http://patchwork.ozlabs.org/api/1.2/series/2444/?format=api", "web_url": "http://patchwork.ozlabs.org/project/slof/list/?series=2444", "date": "2017-09-11T07:09:09", "name": "usb-xhci: Reset ERSTSZ together with ERSTBA", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2444/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/812231/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/812231/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "slof@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "slof@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrJvM0BPBz9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 17:09:19 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xrJvL6Q68zDrnV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 17:09:18 +1000 (AEST)", "from ozlabs.ru (ozlabs.ru [107.173.13.209])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xrJvH3c2zzDrZl\n\tfor <slof@lists.ozlabs.org>; Mon, 11 Sep 2017 17:09:14 +1000 (AEST)", "from vpl1.ozlabs.ibm.com (localhost [IPv6:::1])\n\tby ozlabs.ru (Postfix) with ESMTP id D453B3A60001;\n\tMon, 11 Sep 2017 03:10:24 -0400 (EDT)" ], "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=ozlabs.ru\n\t(client-ip=107.173.13.209; helo=ozlabs.ru; envelope-from=aik@ozlabs.ru;\n\treceiver=<UNKNOWN>)", "From": "Alexey Kardashevskiy <aik@ozlabs.ru>", "To": "slof@lists.ozlabs.org", "Date": "Mon, 11 Sep 2017 17:09:09 +1000", "Message-Id": "<20170911070909.41129-1-aik@ozlabs.ru>", "X-Mailer": "git-send-email 2.11.0", "Subject": "[SLOF] [PATCH slof] usb-xhci: Reset ERSTSZ together with ERSTBA", "X-BeenThere": "slof@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "\"Patches for https://github.com/aik/SLOF\" <slof.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/slof>,\n\t<mailto:slof-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/slof/>", "List-Post": "<mailto:slof@lists.ozlabs.org>", "List-Help": "<mailto:slof-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/slof>,\n\t<mailto:slof-request@lists.ozlabs.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org", "Sender": "\"SLOF\" <slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>" }, "content": "When shutting down the adapter, SLOF writes 0 to the Event Ring Segment\nTable Base Address Register (ERSTBA) but does not reset the Event Ring\nSegment Table Size Register (ERSTSZ) which makes QEMU do DMA access\nat zero address which fails in unassigned_mem_accepts.\n\nThis resets ERSTSZ right before resetting ERSTBA so these 2 registers\ncan stay in sync.\n\nSigned-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>\n---\n lib/libusb/usb-xhci.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/lib/libusb/usb-xhci.c b/lib/libusb/usb-xhci.c\nindex 9f8b276..3ce6c00 100644\n--- a/lib/libusb/usb-xhci.c\n+++ b/lib/libusb/usb-xhci.c\n@@ -873,6 +873,7 @@ static bool xhci_hcd_init(struct xhci_hcd *xhcd)\n \n \treturn true;\n fail_erst_entries:\n+\twrite_reg32(&irs->erstsz, 0);\n \twrite_reg64(&irs->erstba, 0);\n \tmb();\n \tSLOF_dma_map_out(xhcd->erst.dma, (void *)xhcd->erst.entries, XHCI_EVENT_TRBS_SIZE);\n@@ -916,6 +917,7 @@ static bool xhci_hcd_exit(struct xhci_hcd *xhcd)\n \t}\n \n \tirs = &xhcd->run_regs->irs[0];\n+\twrite_reg32(&irs->erstsz, 0);\n \twrite_reg64(&irs->erstba, 0);\n \tmb();\n \tif (xhcd->erst.entries) {\n", "prefixes": [] }