Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2232247/?format=api
{ "id": 2232247, "url": "http://patchwork.ozlabs.org/api/patches/2232247/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260504025342.1452605-6-jamin_lin@aspeedtech.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260504025342.1452605-6-jamin_lin@aspeedtech.com>", "list_archive_url": null, "date": "2026-05-04T02:53:49", "name": "[v6,05/11] hw/usb/hcd-ehci: Implement 64-bit qTD descriptor addressing", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "96ec54cffae83be300ce789f86c80f4e6523d07e", "submitter": { "id": 81768, "url": "http://patchwork.ozlabs.org/api/people/81768/?format=api", "name": "Jamin Lin", "email": "jamin_lin@aspeedtech.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260504025342.1452605-6-jamin_lin@aspeedtech.com/mbox/", "series": [ { "id": 502603, "url": "http://patchwork.ozlabs.org/api/series/502603/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502603", "date": "2026-05-04T02:53:55", "name": "hw/usb/ehci: Add 64-bit descriptor addressing support", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/502603/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232247/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232247/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=aspeedtech.com header.i=@aspeedtech.com\n header.a=rsa-sha256 header.s=selector1 header.b=HKhJ1o2a;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)", "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=aspeedtech.com;" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g85qw6zYcz1yKY\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 12:55:56 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wJjRd-0001ao-BP; Sun, 03 May 2026 22:54:05 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <jamin_lin@aspeedtech.com>)\n id 1wJjRX-0001Wv-2y; Sun, 03 May 2026 22:53:59 -0400", "from mail-japaneastazlp170130007.outbound.protection.outlook.com\n ([2a01:111:f403:c405::7] helo=TYDPR03CU002.outbound.protection.outlook.com)\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <jamin_lin@aspeedtech.com>)\n id 1wJjRV-000403-5F; Sun, 03 May 2026 22:53:58 -0400", "from TYPPR06MB8206.apcprd06.prod.outlook.com (2603:1096:405:383::19)\n by OSNPR06MB8442.apcprd06.prod.outlook.com (2603:1096:604:486::11)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9870.25; Mon, 4 May\n 2026 02:53:49 +0000", "from TYPPR06MB8206.apcprd06.prod.outlook.com\n ([fe80::e659:1ead:77cb:f6d3]) by TYPPR06MB8206.apcprd06.prod.outlook.com\n ([fe80::e659:1ead:77cb:f6d3%2]) with mapi id 15.20.9870.023; Mon, 4 May 2026\n 02:53:49 +0000" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=KdLxu89RSSnY06TCVOh/Yivy0SJ1kcw9GGrdBumFymKQtg7hwfSx7haBRPbltFY7QA/fZVoD0YxVtJZccKkh0z2NsaLKmYeyMfKofobHzvxrgQY869hGiyRhXr8uCPW/tVVA1HlOqVRgRHN4jUfeBq9EiCBRfk0HGXvCVl64qy/qTz1US1o4iBjp/bw0xzB2jWApZyM5y5/1u2n76MRXL5w1YlR/SseAfoBVZwoQ8YIR0Ch2ccsrxqHbv9GDDeDo97m1DGo+H29sRvyucSD4ROw3g+NZW9iG0vIsDW8MahlucFp/QAKee2QAdzzCqx0BCw6BBNF+x2mrfDuDFklilg==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=MRNT6cKI+GntcOBpk2TLwkRHFyDRSAaU1uULt+xMJ0o=;\n b=m2GqFIv7xlTjsvHadQe6IwaEqbPr1WtAoafnPZ9a2ZvV0IdezgAZYww3ApddK+bjxT/p5wc7veoaPFRUtr70LuiB88M+6iN7i3OQtNEGK5pzpe6ASHLp5Sqo/YpUwAVRVEP17Mj7X9OkiUepz3qIT3UGTSnFzHohCko7p1ws9GuL1weR38EhPbCsW4RykXRhECF2oDxv0H4V6wC3w8y1ANOFs9fa+SLWX2qvvUBqfJi95B8wwhYpPoYcpeYGFtJHWn2Ge4P/fL00GSa2H5GG45uwCpcGFPZjXbLNqojkbSei1O7INd2tk/6CqGG0nW/AOG1zDII9BROjRf3NIcDxHA==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=aspeedtech.com; dmarc=pass action=none\n header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=MRNT6cKI+GntcOBpk2TLwkRHFyDRSAaU1uULt+xMJ0o=;\n b=HKhJ1o2aDYVF/jYlnB23Ifi2U8Obk/mFFO74nGJa7HxkM7T19YMpbZfjk+KmYnozHmwH3hQhe6yalQb0V10YnztjwwyPnlgbIIxMUIH04jTJ2Jj5moOldYnGXkzoTY7Uf9VqVITbLQdOsV8IzwlnTIsuTJbi6mswpf1zwL65J8MzL3SlTMg+uRFlvhTIUHR2Gz0+p/Pm9wEG7aYDfEAxzr2QlEw9RLbl78VGvrBweIqVPDJtrS9dglHkFyvURF0+Yhib+IeccZoWqnDUgGBZeKXSMskcuAVWlmBqOwPvtqwCd0Y+3+q1e4U82BNUpfCv4uugDw3LLzdni7h/jpK6Dw==", "From": "Jamin Lin <jamin_lin@aspeedtech.com>", "To": "\"philmd@linaro.org\" <philmd@linaro.org>,\n \"peterx@redhat.com\" <peterx@redhat.com>,\n =?iso-8859-1?q?C=E9dric_Le_Goater?= <clg@kaod.org>,\n Peter Maydell <peter.maydell@linaro.org>,\n Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>,\n Kane Chen <kane_chen@aspeedtech.com>,\n Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>,\n Zhao Liu <zhao1.liu@intel.com>,\n \"open list:ASPEED BMCs\" <qemu-arm@nongnu.org>,\n \"open list:All patches CC here\" <qemu-devel@nongnu.org>", "CC": "Jamin Lin <jamin_lin@aspeedtech.com>, Troy Lee <troy_lee@aspeedtech.com>,\n \"farosas@suse.de\" <farosas@suse.de>, \"flwu@google.com\" <flwu@google.com>,\n \"nabihestefan@google.com\" <nabihestefan@google.com>", "Subject": "[PATCH v6 05/11] hw/usb/hcd-ehci: Implement 64-bit qTD descriptor\n addressing", "Thread-Topic": "[PATCH v6 05/11] hw/usb/hcd-ehci: Implement 64-bit qTD\n descriptor addressing", "Thread-Index": "AQHc23E74ZBaR5tI2UyI+h2eiu20cg==", "Date": "Mon, 4 May 2026 02:53:49 +0000", "Message-ID": "<20260504025342.1452605-6-jamin_lin@aspeedtech.com>", "References": "<20260504025342.1452605-1-jamin_lin@aspeedtech.com>", "In-Reply-To": "<20260504025342.1452605-1-jamin_lin@aspeedtech.com>", "Accept-Language": "zh-TW, en-US", "Content-Language": "en-US", "X-MS-Has-Attach": "", "X-MS-TNEF-Correlator": "", "authentication-results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=aspeedtech.com header.i=@aspeedtech.com\n header.a=rsa-sha256 header.s=selector1 header.b=HKhJ1o2a;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)", "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=aspeedtech.com;" ], "x-ms-publictraffictype": "Email", "x-ms-traffictypediagnostic": "TYPPR06MB8206:EE_|OSNPR06MB8442:EE_", "x-ms-office365-filtering-correlation-id": "96d9aa65-2bc1-4e2e-8d50-08dea9885e08", "x-ms-exchange-senderadcheck": "1", "x-ms-exchange-antispam-relay": "0", "x-microsoft-antispam": "BCL:0;\n ARA:13230040|366016|1800799024|7416014|376014|22082099003|18002099003|56012099003|921020|38070700021;", "x-microsoft-antispam-message-info": "\n wCzm/uBOiZDMPnPwPC6uJhXG3EVEhFBwcqmvrjxf4fMYE2albkWZOfJlXWTf7tfj1AyIpQozHpNA+fosZKvwoYX5ieAh9F5L/cR7Ww7XhIzwxGhbhFxP/DUg6Zr8K8fxegC7dqLWHJSDLenMG1bWX4y6iFiMxyOcCzLzDgsa8awOQMyWHyoQmZmc77v34XcClBCD/SNWghHL9EEW1yEBQNtJCa7MJ7iOQWsGTRmMa/hC5HBaae1sZY1uJrYyQ0wRQLvGW0l4/atncDZqKmB8M40ccwp6xursGR1ajnV/dNwPLyHGi4Gx4boWWpeBbsJTYbOnNYnn9GepMQ40hco3cKcLIUPTr4+FnEX3TiIECSJlf3SdF61I5WavF2QJorFSP5xCudT5XGPxVSWmfwYB24SFv+6WaDPe6qkj+0WO2ALhPruONC2T4xJkIPrMg6MSAOYOPellnsKVgyElbJTHwC4XZN86yau/psGBBVcrobh+8VnMmBP1vxQQjsbb4kCWP5w7Reaexr4/6kBaR0OZggD38Jwx9FYB4i8fGe6scPLYZnp8/4XhdOCTzXw3NogtyM7R1mWtWTT4PqaiTlukC2SPa7QaoGiqMDCozn7LGWiHqPCOHFejPqjHvE127USbq1uO3BAivYd3js3zZgO06kDEy8yFPSYUg62GtCyhgjN9nFPC/uM0yBpHfwT6DSeXMc5TQQf7pyFVW65N+RibY9jz0Bzq+KOsJu8vagQACn3hZPgXhTZg/31VUmcBA6YuyoL1wcAxfh+nLzFiypIOZw==", "x-forefront-antispam-report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:TYPPR06MB8206.apcprd06.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230040)(366016)(1800799024)(7416014)(376014)(22082099003)(18002099003)(56012099003)(921020)(38070700021);\n DIR:OUT; SFP:1102;", "x-ms-exchange-antispam-messagedata-chunkcount": "1", "x-ms-exchange-antispam-messagedata-0": "=?iso-8859-1?q?OIIUEhRYvKll++z9v0spamG?=\n\t=?iso-8859-1?q?4rTYA5IJRnziNCinI/+ds08GlfErFa+bMl3ELV3R6AvXvYor38Tcddb67g9J?=\n\t=?iso-8859-1?q?c4cJmnyXSYAEEPrNw+wcEjXqqnTVOTvLc6igOYVXbXLWOjVOXY7IfQ8Dn1/m?=\n\t=?iso-8859-1?q?wzjpzYrAbhUt1pNvzYA+rrAetei7JB12PlmhGwqosTKYHust16eow/JjjGYw?=\n\t=?iso-8859-1?q?pfxpsviytzlIyQn8bZ/AC3wU5e5sEbQSfM87eJ3VMN0cBrN1+5zD9WNPagfG?=\n\t=?iso-8859-1?q?9Wwd25D4PTqU4iRoCSFbYQG8l3KeBNccnuEUfvIdmfvqAw4rQ1vKOvsOYfCU?=\n\t=?iso-8859-1?q?GBkq/Hsc8/od523G0Y4srCryShaqZWOFS/x9VBJsT7d5Tzhw+s0y6TgowACT?=\n\t=?iso-8859-1?q?RbI1KtzGqZjaqPAE29Xi6RuwhKEWwBAPebM8q+RuHWSIaRPoCFfSUI/j7Es5?=\n\t=?iso-8859-1?q?o2up7w5LItcHhpGeq/5OCAwozP29ftJE8v/pGiLDVXU5sXgULV8GVKENlklV?=\n\t=?iso-8859-1?q?X3dlF17uaaZBGWRBqpkjAzJH8RcG0eLUkNNeaiNVBLMQe2OD2MCD+lXL6zTA?=\n\t=?iso-8859-1?q?cTEevbceasCn/kzENQPNDOmOvtfkm7pZQMLTOUzG1eDRNsh6ISE4zXZYatLI?=\n\t=?iso-8859-1?q?SocpzNapn1jZSLI4bX40FQi6JJyhBomTn6/vfWmfkO+Y1CToS2t4skD/clh/?=\n\t=?iso-8859-1?q?ZieLIzkzSRzRS2YHj/RwIGtAy2L55BARsjW9tW/UghjPSTIMbT0Ww1xxiPB4?=\n\t=?iso-8859-1?q?tTjD6DI9fGjZ49eFa6NhZ6aMTgxDrjQpLzp/q1VEcQbBdKxYsm7zbn8Tps6X?=\n\t=?iso-8859-1?q?OeFG0CL1pG/x2NNw7j9FvXMmLrvBhUzKls/vT++k6WPGM45d3SKdN4X/dGOY?=\n\t=?iso-8859-1?q?6/+W5SOx3xMGSH8rrMQpzbjBQA3UimAmYsGRgi7fHiuad4gKKOt7Ey/qOTqc?=\n\t=?iso-8859-1?q?kmIT0J09x5XQmk6VgNhqxOTdDJgPa1WKHeJ7nj9nVGTeRqoP3Ke8m1jIB+wL?=\n\t=?iso-8859-1?q?MtVf9foV3mmZzv8cgHaVt7HJFOg/nm0+xg0CUdoo8NtZPjocE4xRqpHlii69?=\n\t=?iso-8859-1?q?jFv6btkGNs4CycfVxxYFhVLhizjaIWflDqLrlCAMKn4TLz8I/emKCPhwipYT?=\n\t=?iso-8859-1?q?pvAgD2b3wkl9OvBHynxuZANI/nTj+ilS1bB/oHofF6lWIjtE7uq1s5bndBA/?=\n\t=?iso-8859-1?q?26XYspylMnnte6KsIvE4ENUc+MAR/WGcjtxFd90GhoJNnVx3JuisMEqY6t2e?=\n\t=?iso-8859-1?q?fI0Nx0CKJk6E4n6Vuy80Y67bUs++qyFVKJCCe+Zay+BEHPZMdLfhOJhi3j/t?=\n\t=?iso-8859-1?q?EC75Wzm35ABnN7iNTFZZ9Se5S9jcIn5Iq9V7+xxhD9yIu/Q7ahQyBRFMJL2f?=\n\t=?iso-8859-1?q?bnRyMU0sQtqNr6ON0A/qGI8O7dPspLhpUQBXPLuWHGvQm3xjLL/qbgVYtQS0?=\n\t=?iso-8859-1?q?BWRdivGopMlnifHuzksBHbpVb3pR8AVYxQ8KfjLH7jXrJkf53G8vu0ZNV8aG?=\n\t=?iso-8859-1?q?9iMgQNDQF4kSBd00fVBaIrQwQNjo1Rl6a+QGet3TKYbfeodAQL4DE3CjrSg8?=\n\t=?iso-8859-1?q?uJ9HJCdxKG4SMIRSl+09bt7JEoRESka4VEGPK4xexxG4EHOu4Uj00ypt86ky?=\n\t=?iso-8859-1?q?Y9YMN9c1qmoneDceu0w19a3zQUn+g9+TelnbiLZGCrnD65tLitSh5FsqiAs7?=\n\t=?iso-8859-1?q?r5TMzzGyfCNB4/YPAkeWJCpi4FEFr3+M6tohbtqbUsSfPWRYrcNsWia/oPng?=\n\t=?iso-8859-1?q?cK1z5dC2xS1udjjo82dGSU0xQZMTlau3BpyH3nJW4fW0PIQ=3D=3D?=", "Content-Type": "text/plain; charset=\"iso-8859-1\"", "Content-Transfer-Encoding": "quoted-printable", "MIME-Version": "1.0", "X-Exchange-RoutingPolicyChecked": "\n fB20cY/HfQ3LZ3iB3D2wYyTMCoYbUKf+Gf5sAiNc8rtNlprH1IMC/CXMUOsKGw2z8hjmr3eXR3KWMfa4jJ07IARnsz67i/NP6oGv7fJbK9FHlIouaYCAGMZsI/9ppK9cZaH3cuXGB5HXDMfZjK5q0HOepsw8Q/+lCr1O39QXWHo7+rLAAPORrgXphfJmP5OL6wFn1f96bCgrMZKeWYYVkkad5Osg4N7HD6gExEvCxntTwDCoP480c4sskIUm0d9RhZThCCmKpJoLZXUN9PxBPJc659bv7dkJRPwsrR7jxmI8Lv8V/3KeUtn+96wyjnvuPDlPHX9XxTY/SO+epeGZVA==", "X-OriginatorOrg": "aspeedtech.com", "X-MS-Exchange-CrossTenant-AuthAs": "Internal", "X-MS-Exchange-CrossTenant-AuthSource": "TYPPR06MB8206.apcprd06.prod.outlook.com", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 96d9aa65-2bc1-4e2e-8d50-08dea9885e08", "X-MS-Exchange-CrossTenant-originalarrivaltime": "04 May 2026 02:53:49.0863 (UTC)", "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted", "X-MS-Exchange-CrossTenant-id": "43d4aa98-e35b-4575-8939-080e90d5a249", "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED", "X-MS-Exchange-CrossTenant-userprincipalname": "\n xFaXDCj6+vgWe0D6cZMx596/2Fo7o3WDfGreY8mUTXC7oUQYQ2JRQRhUL7zm/sdizmbxTEMyuVNi9DLYFVwyQeyPerrgLGOAwPqcU8E8wgc=", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "OSNPR06MB8442", "Received-SPF": "pass client-ip=2a01:111:f403:c405::7;\n envelope-from=jamin_lin@aspeedtech.com;\n helo=TYDPR03CU002.outbound.protection.outlook.com", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "EHCI supports 64-bit addressing when the 64-bit Addressing Capability\nbit in HCCPARAMS is set. In that mode, the CTRLDSSEGMENT register\nprovides the upper 32 bits that are concatenated with 32-bit link\npointer values to form 64-bit control data structure addresses\n(EHCI 1.0, section 2.3.5 and Appendix B).\n\nqTD link pointers (current_qtd/next_qtd/altnext_qtd and qTD.next)\nare stored as 32-bit values in the data structures and must be\nexpanded to full 64-bit descriptor addresses when 64-bit mode is\nenabled. Update the qTD traversal paths to use ehci_get_desc_addr()\nwhen following link pointers.\n\nAppendix B also defines high dword fields for qTD buffer pointers.\nAdd bufptr_hi[5] to EHCIqtd and extend qTD fetch and QH overlay\nhandling to load and propagate the high buffer pointer fields.\n\nWhen 64-bit capability is disabled, descriptor and buffer addresses\nremain 32-bit and existing behaviour is unchanged.\n\nSigned-off-by: Jamin Lin <jamin_lin@aspeedtech.com>\nReviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n hw/usb/hcd-ehci.h | 1 +\n hw/usb/hcd-ehci.c | 19 ++++++++++++-------\n 2 files changed, 13 insertions(+), 7 deletions(-)", "diff": "diff --git a/hw/usb/hcd-ehci.h b/hw/usb/hcd-ehci.h\nindex 3428839ec6..fc66aacd9f 100644\n--- a/hw/usb/hcd-ehci.h\n+++ b/hw/usb/hcd-ehci.h\n@@ -139,6 +139,7 @@ typedef struct EHCIqtd {\n uint32_t bufptr[5]; /* Standard buffer pointer */\n #define QTD_BUFPTR_MASK 0xfffff000\n #define QTD_BUFPTR_SH 12\n+ uint32_t bufptr_hi[5];\n } EHCIqtd;\n \n /* QH overlay: altnext_qtd, token, bufptr[5], bufptr_hi[5] */\ndiff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c\nindex e770f0a7fa..238f08b4a5 100644\n--- a/hw/usb/hcd-ehci.c\n+++ b/hw/usb/hcd-ehci.c\n@@ -472,7 +472,8 @@ static bool ehci_verify_qtd(EHCIPacket *p, EHCIqtd *qtd)\n (p->qtd.next != qtd->next)) ||\n (!NLPTR_TBIT(p->qtd.altnext) && (p->qtd.altnext != qtd->altnext)) ||\n p->qtd.token != qtd->token ||\n- p->qtd.bufptr[0] != qtd->bufptr[0]) {\n+ p->qtd.bufptr[0] != qtd->bufptr[0] ||\n+ p->qtd.bufptr_hi[0] != qtd->bufptr_hi[0]) {\n return false;\n } else {\n return true;\n@@ -1200,6 +1201,7 @@ static int ehci_qh_do_overlay(EHCIQueue *q)\n \n for (i = 0; i < 5; i++) {\n q->qh.bufptr[i] = p->qtd.bufptr[i];\n+ q->qh.bufptr_hi[i] = p->qtd.bufptr_hi[i];\n }\n \n if (!(q->qh.epchar & QH_EPCHAR_DTC)) {\n@@ -1233,7 +1235,8 @@ static int ehci_init_transfer(EHCIPacket *p)\n return -1;\n }\n \n- page = p->qtd.bufptr[cpage] & QTD_BUFPTR_MASK;\n+ page = ehci_get_buf_addr(p->queue->ehci, p->qtd.bufptr_hi[cpage],\n+ p->qtd.bufptr[cpage], QTD_BUFPTR_MASK);\n page += offset;\n plen = bytes;\n if (plen > 4096 - offset) {\n@@ -1727,7 +1730,7 @@ static EHCIQueue *ehci_state_fetchqh(EHCIState *ehci, int async)\n } else if ((q->qh.token & QTD_TOKEN_ACTIVE) &&\n (NLPTR_TBIT(q->qh.current_qtd) == 0) &&\n (q->qh.current_qtd != 0)) {\n- q->qtdaddr = q->qh.current_qtd;\n+ q->qtdaddr = ehci_get_desc_addr(ehci, q->qh.current_qtd);\n ehci_set_state(ehci, async, EST_FETCHQTD);\n \n } else {\n@@ -1805,14 +1808,14 @@ static int ehci_state_advqueue(EHCIQueue *q)\n */\n if (((q->qh.token & QTD_TOKEN_TBYTES_MASK) != 0) &&\n (NLPTR_TBIT(q->qh.altnext_qtd) == 0)) {\n- q->qtdaddr = q->qh.altnext_qtd;\n+ q->qtdaddr = ehci_get_desc_addr(q->ehci, q->qh.altnext_qtd);\n ehci_set_state(q->ehci, q->async, EST_FETCHQTD);\n \n /*\n * next qTD is valid\n */\n } else if (NLPTR_TBIT(q->qh.next_qtd) == 0) {\n- q->qtdaddr = q->qh.next_qtd;\n+ q->qtdaddr = ehci_get_desc_addr(q->ehci, q->qh.next_qtd);\n ehci_set_state(q->ehci, q->async, EST_FETCHQTD);\n \n /*\n@@ -1841,7 +1844,9 @@ static int ehci_state_fetchqtd(EHCIQueue *q)\n if (get_dwords(q->ehci, addr + 0, &qtd.next, 1) < 0 ||\n get_dwords(q->ehci, addr + 4, &qtd.altnext, 1) < 0 ||\n get_dwords(q->ehci, addr + 12, qtd.bufptr,\n- ARRAY_SIZE(qtd.bufptr)) < 0) {\n+ ARRAY_SIZE(qtd.bufptr)) < 0 ||\n+ get_dwords(q->ehci, addr + 32, qtd.bufptr_hi,\n+ ARRAY_SIZE(qtd.bufptr_hi)) < 0) {\n return 0;\n }\n ehci_trace_qtd(q, NLPTR_GET(q->qtdaddr), &qtd);\n@@ -1922,7 +1927,7 @@ static int ehci_fill_queue(EHCIPacket *p)\n if (NLPTR_TBIT(qtd.next) != 0) {\n break;\n }\n- qtdaddr = qtd.next;\n+ qtdaddr = ehci_get_desc_addr(q->ehci, qtd.next);\n /*\n * Detect circular td lists, Windows creates these, counting on the\n * active bit going low after execution to make the queue stop.\n", "prefixes": [ "v6", "05/11" ] }