Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227046/?format=api
{ "id": 2227046, "url": "http://patchwork.ozlabs.org/api/patches/2227046/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423051804.362095-11-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": "<20260423051804.362095-11-jamin_lin@aspeedtech.com>", "list_archive_url": null, "date": "2026-04-23T05:18:17", "name": "[v4,10/17] hw/usb/hcd-ehci: Implement 64-bit QH descriptor addressing", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ad1cdfe66c2b9fe2450f08a9bb80cca6f59504ed", "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/20260423051804.362095-11-jamin_lin@aspeedtech.com/mbox/", "series": [ { "id": 501145, "url": "http://patchwork.ozlabs.org/api/series/501145/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501145", "date": "2026-04-23T05:18:08", "name": "hw/usb/ehci: Add 64-bit descriptor addressing support", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/501145/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227046/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227046/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=r3ub6lDL;\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 4g1PZB6z7kz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 15:20:50 +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 1wFmSy-0007hS-9E; Thu, 23 Apr 2026 01:19:08 -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 1wFmSj-0007e1-TL; Thu, 23 Apr 2026 01:18:53 -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 1wFmSh-0003DU-Fe; Thu, 23 Apr 2026 01:18:53 -0400", "from TYPPR06MB8206.apcprd06.prod.outlook.com (2603:1096:405:383::19)\n by KUXPR06MB8534.apcprd06.prod.outlook.com (2603:1096:d10:9d::22)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.16; Thu, 23 Apr\n 2026 05:18:18 +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%3]) with mapi id 15.20.9846.021; Thu, 23 Apr 2026\n 05:18:17 +0000" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=KFFSOiUKNSqSk2teQocu2fxpJCkKkd5wcehtPJFqDZWEG19l71VKw30puRkgKGeSNpl791D8F/H+POQczf4Rh3TabzYJBZmnm4G9orKVd5fgKfzRvWGBlRMuBmjqIq4cr8H3zM6J3CNmjSyz0uozEp+JNumW3ns/2bn1QVg+VjXkkUVQdCBEYEUi8UB3LWJ2n6N2f22e/db/PgSZY/tRF8aqWiaOEOLlLS/b+FFt6LtM0zhRxOBJaBWVSfJZvPjOx72d8GDrd/0QleufpPpm1UN6ZyKdeY0Iu90ndu0/pVUbzD5wglk/ngUkjCCkU6YPZr2udJ4o8C+Y14UYES06ow==", "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=84a6H1AYkCG3PlZqCD6Dcg7C2Qm8Mm+r6Pi+HNsJuUc=;\n b=b2wj3TbyhAU+S6TJtgcMZ1HblZvNVhxZkb/fyPlJpOTdohu8eoVuw9nGn86/rfX8KvAyG94UPKkJ9hViX/o6oVt7raeJSnlSUbAGH19WWCIGfuKtgBYaAAyc+x/3fNHjrdnTkN3BujmSaS4oNfDVQKgTT8LfXOCiwS+Pqh6mXNBW3a1ORVZiPwvhDy/l2lunkHSKqlOrt4jP+CvP+Qcx2Wur82ira9M2zUwSex8y/2K4ZBlw/iLGmNiyIXRGu4Mv707ORs1nnheeSXfpztVWPTbxS2TU3IOpUluoV/yrFZqE1GAuv8J67uj+mqzF7YrvmowOp/1ACh9Grto6xSaYYw==", "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=84a6H1AYkCG3PlZqCD6Dcg7C2Qm8Mm+r6Pi+HNsJuUc=;\n b=r3ub6lDLR7aSZUHI+hcKAViUcp6fyJvMqHm7fznBGCWJaYz+Yxmi1s/WKDI5K7n6QZruO9EW0/69pMuD/W3v/iqHQ6iPTMwnSqxxzAg67UE1Qb0hboHZb66sEfklFgDUaaQkHbnnlJqzlfrxgchXQgelxfNrA2bbNKYpagWB8JBm+YA+g89CA43L6G7M5IyBpOE0dF+GGefJKU6i3GjH2oKMoi8HMu2G7xdKovM6pP+kjw5D7vYAZDGsA6ajCxCJWBavJfhs1zoOUC6h4lLx66fWrC8xZordfKp8XjEWKkf12942uR4RWXcGDvznFatSg5sCSGH/N9+1nojsliAaFg==", "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 Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Yanan Wang <wangyanan55@huawei.com>, 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 \"flwu@google.com\" <flwu@google.com>, \"nabihestefan@google.com\"\n <nabihestefan@google.com>, \"farosas@suse.de\" <farosas@suse.de>", "Subject": "[PATCH v4 10/17] hw/usb/hcd-ehci: Implement 64-bit QH descriptor\n addressing", "Thread-Topic": "[PATCH v4 10/17] hw/usb/hcd-ehci: Implement 64-bit QH descriptor\n addressing", "Thread-Index": "AQHc0uCYw6djoa5ZSk+U7a+LeVecxQ==", "Date": "Thu, 23 Apr 2026 05:18:17 +0000", "Message-ID": "<20260423051804.362095-11-jamin_lin@aspeedtech.com>", "References": "<20260423051804.362095-1-jamin_lin@aspeedtech.com>", "In-Reply-To": "<20260423051804.362095-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=r3ub6lDL;\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_|KUXPR06MB8534:EE_", "x-ms-office365-filtering-correlation-id": "ff8c536d-7762-44eb-7de8-08dea0f7ba7e", "x-ms-exchange-senderadcheck": "1", "x-ms-exchange-antispam-relay": "0", "x-microsoft-antispam": "BCL:0;\n ARA:13230040|376014|7416014|1800799024|366016|38070700021|921020|18002099003|22082099003|56012099003;", "x-microsoft-antispam-message-info": "\n kDattUptkqUu1gbKkT3h2J6l5p0WPFXF7JPgYKdcYjlJXkRtnOZJMJSM29cmR8DllZYFMMaHk6HAUbp5F2YZfCrn4LbALR9urEZWdnVYQOag5ayr5KIZAKPU/B7pY3osKNqST0VmZpQo6+hRfmrmQZ00qgjG7+KJKatwMoyGcei8/Xh7P4BWZzQiwheM2zlPdu7UW+6vea7oITRpQlFdUhq0PPBrY0TDueHvWKTbTbwZnkeePV+/IK3wpfz4rnLzRKfBWMkc1vPtIV+yavRl6pUqH0EUIzu9FOzKzBgCdrusJpAtBjzLoPUNfKQwzlAnGMtOtoSGqW8UFUfbp6E8lhNodW/UWxvrQYbBLL0lpfcyF2dj48g2/Yy+ji+z6C/HpTll6S3NkYEEuMb0kWyz3ImAGjAHzsEPv70ayRuzCK9uHCuBN7zDrSWcjmz0oKk6r5Tv5lr1HeZa1LA/rR6CBdPJNpNlVNWxsPvhUfBwrFvUoFcwBXeDdOUbUW8B+eTw/QNr9U+ZlYXLEmzO0IEgQX2+IEOSghEKqsFB6uSbZWP3PBtQAGGE1TSO0IxkO0aBqoFqhxpiXAx0OvTpLv+SikU1vNb+J03Z2w9GHOKfZtaioL4G/01Z0WT4SCuBzW65h9TovRcwGj28AAS7KPL/28StzFePB7MfU3GeASRSFehU4hOmNPzeotNN6wOVL7wwmDUv7WKylIGb4TCU2/WCAY/ryO9+NnZUJsvbrPLVuGYRdc62MosTty6KI2Da2EGbyXhsfSjjkUX4l+9XuZ6V2FgDuVdIVbzJbNWxNgXzB3aPIi5oqram+Z0DIhjWtXdg", "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)(376014)(7416014)(1800799024)(366016)(38070700021)(921020)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1102;", "x-ms-exchange-antispam-messagedata-chunkcount": "1", "x-ms-exchange-antispam-messagedata-0": "=?iso-8859-1?q?tTrb22JRh8VqmglPUJJWAAm?=\n\t=?iso-8859-1?q?XR6xiqZkSJO8EgXI1+XJOvTJibVYfcCTFkMMJgqydrXHCPHyFhz2WuTb32zQ?=\n\t=?iso-8859-1?q?rUqQvjxML3gYgxUNd9kYeMoGk84rxoHPNULR65GNeY9eD/IfpfIAmW5yr9Nv?=\n\t=?iso-8859-1?q?kPCQI0X3ZtP0d+u1xonAeU1NDBO7quIC4zWzhnyX4GbYiPENNOktjpS/37i4?=\n\t=?iso-8859-1?q?aOUlcsKR4MnX1KrSH93ED/uHmCScD0PucjbEWwDipS/WJzj2X/3ReRtvY+yA?=\n\t=?iso-8859-1?q?UzkpnREBqlkQiVBdyC2fWqujpjLKpKLYNsuIlXC+UteigsuHuIic5rgBrv3o?=\n\t=?iso-8859-1?q?xRkQtpE8/tfVFaCVh98JiQbWqztbaDGTZ9LyCAr5/Z+tw+aRY/E6Qj6xH0rS?=\n\t=?iso-8859-1?q?kP9bkWvbFTADECJkYJaLNxRrlkYdhwpZ6s2BYq9YAyjGyc30h/GcwPUeiFYs?=\n\t=?iso-8859-1?q?Fp+IdlxGp22Cp6WtE6tbANGiye2TccfOZjKvM5513gjEouXiMl6as2Ev4HmX?=\n\t=?iso-8859-1?q?k6d8tD5OvsDhtKmgFftbafW5hX1QrfwzVW1U15UmDcHNTPJiWFDEnd7gtiDH?=\n\t=?iso-8859-1?q?StVjS6YMI/a1Dfe6nNkkYLE68GPuYPapMRAqLZsBUFY8phR4h5z7h+Sob0kd?=\n\t=?iso-8859-1?q?v7dvf+URNGxz9urRmgBtu3WQ+c4wv59PNU0AJXIvtqZw44ED1VdBPC+MqhZK?=\n\t=?iso-8859-1?q?+VHU7w5HqsbXiSUqLJyPWk0hIFdRtROr5E9OurZrIuQgz4YdQnjqos8h4XRb?=\n\t=?iso-8859-1?q?7RSYZgDBYaeWck7SY4VtQ0WXzfDo0nVqLxzIjCueHhXvBwPnInqSGP888d+1?=\n\t=?iso-8859-1?q?4SWRRKfziIc3XY8EO+EMD8/KvckSb/hYPudS/LeDPringxAHdIxld/wGcqI/?=\n\t=?iso-8859-1?q?j2ybC/ex+shWKVmYnlHCyQzZx28i439iy5U9iUYeTod+h17tAdSl3zaVZFY/?=\n\t=?iso-8859-1?q?evc88PiiR0UOSQknKs1sL6xp2uyKN66yIqgNfizMlmMWl9mp15QePOpWi8SF?=\n\t=?iso-8859-1?q?l9jnZeV9KJtwXFhjA0+tC5C0wPyjtJQh97aJfZRprZm/DCLHWtPvl1Vq/DIE?=\n\t=?iso-8859-1?q?wGavJrBtnz3N0QoLy4jUpcnnRrOP4E6V4tNqHm/EsBt1hiPjbsRdaOOCfEKj?=\n\t=?iso-8859-1?q?3ZInhUO9pl95kigtvCcH8ywksqpmOsYYJwsCUt8/F+Mt47WBmwXwcQQ9Wu6p?=\n\t=?iso-8859-1?q?ZufA5ZjRQD1YO93gCXaB0awjsEQrtKrFK4J/FBcKG+qMUY/m2iqpwhl5X8RK?=\n\t=?iso-8859-1?q?g+Xt7h07bHceJoGFe3kJhmYCwbBpZ4Uvp8oTxgJwCI23cioYbADrUACrkhTX?=\n\t=?iso-8859-1?q?PYQg73wWlag9jzItq/E0z6OX2aNsd0ndJa7X9gzGObL4BJigEb1Ji89kFrox?=\n\t=?iso-8859-1?q?JkH8rTMRNJeF0fy3QTLbNeBmE+O1dbjdP3PFXqmbRjoBJrNrSmlGk6n66uHD?=\n\t=?iso-8859-1?q?sWq7FczBFSs/D8Or8mJFMMFZEA/dv7ikAPWjsjN7B2FMHP8Fci79tJNv6dlN?=\n\t=?iso-8859-1?q?V+nKy9iEAf0LE9D4OO+JxQ0r8p17VP/HWzy0eMmLucUqaSnk5GPXQF25P5oF?=\n\t=?iso-8859-1?q?LOZ2mQQgj/9oEwd3CZf2lkNjOjJC7GUx2Dooep3vC22VzKQSgSEg3m3Ti12P?=\n\t=?iso-8859-1?q?Lomfc4PeVQRnc0kKy9KuGnTKE0iIYAZqOft2cB/K7qCHLzkszicDQso/XJpd?=\n\t=?iso-8859-1?q?kfEi9QAJvJMYVHN9LAHiOCOgRf9P8aHNj0Cy/jknPNjzqy6FghqRqIH+IzXu?=\n\t=?iso-8859-1?q?7xtQ+2IK8nH540uCg0fyMoYXlRUKbJ6ehaIIvkcJFFEgrRw=3D=3D?=", "Content-Type": "text/plain; charset=\"iso-8859-1\"", "Content-Transfer-Encoding": "quoted-printable", "MIME-Version": "1.0", "X-Exchange-RoutingPolicyChecked": "\n PXMlSGTA105XQ4TtbKIb5WeWNW6g0/0Z1mDOM82EsOEfl4D9uDN9rOC4wAR+XcO/HKFlYDRHUBD8LT8B9JwHtlZqG62jqhO1luhX6ARUVTH5Q+59xVbFkXm4wrhj0P3l3uZAAVAKDr2D4u8m0CNFcWwGpwRiR8+u7otQs9Kw9jJzc/Qk8nOB8BgdBdJmzP/wOEtOQl4oiodfQR1+PdFfHTPY2hPpix4eAThwD6z9P3K4MtXuaDamdodJNTPyai81HEwpyzPT7BcFxQ2LK+abpf+SqxoLWjIy2GJz9nlBumqBEASlo8LilEQPvci6PTpQtSbjjjvnApcq/8NaclpxJA==", "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 ff8c536d-7762-44eb-7de8-08dea0f7ba7e", "X-MS-Exchange-CrossTenant-originalarrivaltime": "23 Apr 2026 05:18:17.9354 (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 lMcyRpZakzu+d6IHL461dOk8O26sRO84UuTlK3VrMK5hGHdUIvmIX/DlacPvZAvouZg5rhXDDz7hcuat3QDriYaLhx9ogNFouh2F/tpW0v0=", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "KUXPR06MB8534", "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 control data structure addressing when the\n64-bit Addressing Capability bit in HCCPARAMS is set. In that mode,\nthe CTRLDSSEGMENT register supplies the upper 32 bits which are\nconcatenated with 32-bit link pointer fields to form full 64-bit\ndescriptor addresses (EHCI 1.0, section 2.3.5 and Appendix B).\n\nThe current implementation assumes 32-bit QH descriptor addresses\nand directly uses link pointer values without applying the\nCTRLDSSEGMENT upper dword.\n\nIntroduce a helper, ehci_get_desc_addr(), to construct full 64-bit\ndescriptor addresses when 64-bit capability is enabled. Update QH\ntraversal paths (async list walk, horizontal QH link, and periodic\nschedule entry handling) to use the translated 64-bit addresses.\n\nEHCI 64-bit buffer pointer fields are defined in Appendix B as\nsplit 32-bit low/high parts located at separate offsets, rather\nthan a single contiguous 64-bit field. Therefore, the buffer\npointers cannot be represented as uint64_t bufptr[5] without\nviolating the descriptor layout defined by the specification.\n\nIntroduce ehci_get_buf_addr() to construct full 64-bit buffer\naddresses from bufptr[] and bufptr_hi[] fields. Use this helper\nwhen calculating transfer buffer addresses so that data buffers\nabove 4GB are correctly handled.\n\nAlso add bufptr_hi[5] to EHCIqh to support 64-bit buffer pointer\nfields as defined in Appendix B.\n\nWhen 64-bit capability is disabled, descriptor addresses remain\n32-bit and existing behaviour is unchanged.\n\nNote: Similar split 64-bit buffer pointer handling is required for\nqTD, iTD and siTD descriptors, which will be addressed in follow-up\nchanges.\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 | 4 ++++\n hw/usb/hcd-ehci.c | 47 ++++++++++++++++++++++++++++++++++-----------\n hw/usb/trace-events | 2 +-\n 3 files changed, 41 insertions(+), 12 deletions(-)", "diff": "diff --git a/hw/usb/hcd-ehci.h b/hw/usb/hcd-ehci.h\nindex f1f2fde578..3428839ec6 100644\n--- a/hw/usb/hcd-ehci.h\n+++ b/hw/usb/hcd-ehci.h\n@@ -141,6 +141,9 @@ typedef struct EHCIqtd {\n #define QTD_BUFPTR_SH 12\n } EHCIqtd;\n \n+/* QH overlay: altnext_qtd, token, bufptr[5], bufptr_hi[5] */\n+#define EHCI_QH_OVERLAY_COUNT 12\n+\n /*\n * EHCI spec version 1.0 Section 3.6\n */\n@@ -194,6 +197,7 @@ typedef struct EHCIqh {\n #define BUFPTR_FRAMETAG_MASK 0x0000001f\n #define BUFPTR_SBYTES_MASK 0x00000fe0\n #define BUFPTR_SBYTES_SH 5\n+ uint32_t bufptr_hi[5];\n } EHCIqh;\n \n enum async_state {\ndiff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c\nindex b23ff92e12..5ffd4c9885 100644\n--- a/hw/usb/hcd-ehci.c\n+++ b/hw/usb/hcd-ehci.c\n@@ -147,6 +147,23 @@ static const char *addr2str(hwaddr addr)\n return nr2str(ehci_mmio_names, ARRAY_SIZE(ehci_mmio_names), addr);\n }\n \n+static uint64_t ehci_get_buf_addr(const EHCIState *s, uint32_t hi,\n+ uint32_t lo, uint32_t lo_mask)\n+{\n+ uint64_t addr = lo & lo_mask;\n+\n+ if (s->caps_64bit_addr) {\n+ addr = deposit64(addr, 32, 32, hi);\n+ }\n+\n+ return addr;\n+}\n+\n+static uint64_t ehci_get_desc_addr(const EHCIState *s, uint32_t lo)\n+{\n+ return ehci_get_buf_addr(s, s->ctrldssegment, lo, UINT32_MAX);\n+}\n+\n static void ehci_trace_usbsts(uint32_t mask, int state)\n {\n /* interrupts */\n@@ -440,7 +457,7 @@ static bool ehci_verify_qh(EHCIQueue *q, EHCIqh *qh)\n (qh->current_qtd != q->qh.current_qtd) ||\n (q->async && qh->next_qtd != q->qh.next_qtd) ||\n (memcmp(&qh->altnext_qtd, &q->qh.altnext_qtd,\n- 7 * sizeof(uint32_t)) != 0) ||\n+ EHCI_QH_OVERLAY_COUNT * sizeof(uint32_t)) != 0) ||\n (q->dev != NULL && q->dev->addr != devaddr)) {\n return false;\n } else {\n@@ -1538,7 +1555,9 @@ static int ehci_state_waitlisthead(EHCIState *ehci, int async)\n EHCIqh qh;\n int i = 0;\n int again = 0;\n- uint64_t entry = ehci->asynclistaddr;\n+ uint64_t entry = 0;\n+\n+ entry = ehci_get_desc_addr(ehci, ehci->asynclistaddr);\n \n /* set reclamation flag at start event (4.8.6) */\n if (async) {\n@@ -1566,8 +1585,8 @@ static int ehci_state_waitlisthead(EHCIState *ehci, int async)\n goto out;\n }\n \n- entry = qh.next;\n- if (entry == ehci->asynclistaddr) {\n+ entry = ehci_get_desc_addr(ehci, qh.next);\n+ if (entry == ehci_get_desc_addr(ehci, ehci->asynclistaddr)) {\n break;\n }\n }\n@@ -1693,7 +1712,7 @@ static EHCIQueue *ehci_state_fetchqh(EHCIState *ehci, int async)\n }\n \n if (trace_event_get_state_backends(TRACE_USB_EHCI_FETCHQH_DBG)) {\n- if (q->qhaddr != q->qh.next) {\n+ if (q->qhaddr != ehci_get_desc_addr(ehci, q->qh.next)) {\n trace_usb_ehci_fetchqh_dbg(q->qhaddr,\n q->qh.epchar & QH_EPCHAR_H,\n q->qh.token & QTD_TOKEN_HALT,\n@@ -1876,10 +1895,12 @@ static int ehci_state_fetchqtd(EHCIQueue *q)\n \n static int ehci_state_horizqh(EHCIQueue *q)\n {\n+ uint64_t addr;\n int again = 0;\n \n- if (ehci_get_fetch_addr(q->ehci, q->async) != q->qh.next) {\n- ehci_set_fetch_addr(q->ehci, q->async, q->qh.next);\n+ addr = ehci_get_desc_addr(q->ehci, q->qh.next);\n+ if (ehci_get_fetch_addr(q->ehci, q->async) != addr) {\n+ ehci_set_fetch_addr(q->ehci, q->async, addr);\n ehci_set_state(q->ehci, q->async, EST_FETCHENTRY);\n again = 1;\n } else {\n@@ -2205,6 +2226,8 @@ static void ehci_advance_periodic_state(EHCIState *ehci)\n uint32_t entry;\n uint32_t list;\n const int async = 0;\n+ uint64_t entry64;\n+ uint64_t list64;\n \n /* 4.6 */\n \n@@ -2229,12 +2252,14 @@ static void ehci_advance_periodic_state(EHCIState *ehci)\n break;\n }\n list |= ((ehci->frindex & 0x1ff8) >> 1);\n-\n- if (get_dwords(ehci, list, &entry, 1) < 0) {\n+ list64 = ehci_get_desc_addr(ehci, list);\n+ if (get_dwords(ehci, list64, &entry, 1) < 0) {\n break;\n }\n- trace_usb_ehci_periodic_state_advance(ehci->frindex / 8, list, entry);\n- ehci_set_fetch_addr(ehci, async, entry);\n+ entry64 = ehci_get_desc_addr(ehci, entry);\n+ trace_usb_ehci_periodic_state_advance(ehci->frindex / 8,\n+ list64, entry64);\n+ ehci_set_fetch_addr(ehci, async, entry64);\n ehci_set_state(ehci, async, EST_FETCHENTRY);\n ehci_advance_state(ehci, async);\n ehci_queues_rip_unused(ehci, async);\ndiff --git a/hw/usb/trace-events b/hw/usb/trace-events\nindex 8c90688bb3..67249d69c2 100644\n--- a/hw/usb/trace-events\n+++ b/hw/usb/trace-events\n@@ -113,7 +113,7 @@ usb_ehci_dma_error(void) \"\"\n usb_ehci_execute_complete(uint64_t qhaddr, uint32_t next, uint64_t qtdaddr, int status, int actual_length) \"qhaddr=0x%\" PRIx64 \", next=0x%x, qtdaddr=0x%\" PRIx64 \", status=%d, actual_length=%d\"\n usb_ehci_fetchqh_reclaim_done(uint64_t qhaddr) \"QH 0x%\" PRIx64 \" H-bit set, reclamation status reset - done processing\"\n usb_ehci_fetchqh_dbg(uint64_t qhaddr, uint32_t h, uint32_t halt, uint32_t active, uint32_t next) \"QH 0x%\" PRIx64 \" (h 0x%x halt 0x%x active 0x%x) next 0x%08x\"\n-usb_ehci_periodic_state_advance(uint32_t frame, uint32_t list, uint32_t entry) \"frame=%d, list=0x%x, entry=0x%x\"\n+usb_ehci_periodic_state_advance(uint32_t frame, uint64_t list, uint64_t entry) \"frame=%d, list=0x%\" PRIx64 \", entry=0x%\" PRIx64\n usb_ehci_skipped_uframes(uint64_t skipped_uframes) \"skipped %\" PRIu64 \" uframes\"\n usb_ehci_log(const char *msg) \"%s\"\n \n", "prefixes": [ "v4", "10/17" ] }