From nobody Fri May 29 15:20:39 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gRn9g3qKdz6fh9M for ; Fri, 29 May 2026 15:20:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRn9g1jyrz444j for ; Fri, 29 May 2026 15:20:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780068039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RP+0nrcfMBhIoURLpN3TL+SQ6UX8PpjMO/TluU5MmwA=; b=HQji9f4IP8VMw3scixSaqfASB4oFi+eyeWlXtGgv5LCB58IarLbC7WY+RoEHjlRi05c4sV VA50haatBBuS3aH8LK9P2ooZI8zvpVXXar2/XpiMRvG8I1jMuFdk7th+KsdvhsV+luRAIL opcfqAg+3g6K+ulzNDXmzwSkkBmTU8oKM1jMYjIkZnrijPh/h7evVwrc1AYcen0TM9Jz+f lzd/9YNG+PlR8v9YZKR1yFW1DdvRTqxpcRSSYgNKKXbcsQuka6nG33bLdB+oevkFJC4kH4 OuOlVWTMyAGzVPSFD7W6PqYnLFJMQGe5SLIyL44zDCt8k9Xa/odHgPLHCL9h2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780068039; a=rsa-sha256; cv=none; b=rRe/nyTCp5FjsB3XDo2Dea3JmlN1Kb0D/NcUfRFChu6uDij5pmiF8tG2DGzfOl7ANX5vpW k4VT/L/HWg5M+IhOXVc93lmMnSqTetJb79tpPq96SzSzXzSPRxjJIwOcq+ksZj98wFBUMd YJ54e6hthFQsa57UBgRtVCNfmIw0FgtlJf5snFCZf9UQxGJl02HxuEzo2NEBvhSL3oeLbp bCZK51pONeWG1c2v5YZcDH1OBtLfBMwJarAvCjHUrPPkTca3vdMFtKJ3Gw1yYLPrEXCgdG 2sYcrkNS9Zoh0dxliIVgLu0g0Pl+Hw6x1+K2vYC4ffye6hqz0FXMFTTswj044g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780068039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RP+0nrcfMBhIoURLpN3TL+SQ6UX8PpjMO/TluU5MmwA=; b=rcpS+uC4jjFiP4FlreD4x9AUOH47JIrr2Odq2lN/IfP82Dhn2b6RGWUXcLitJZxTKzXTTL oO1PvdVQhcbbIsWSWBxj8ctzhXbWi1icbhti99VZ0zuDyefZF6uWR/7bAnKdWSYIZje/39 nFeP2W4J/Rxf5sV8DUEB508gN3sk+dL19oPVhbfDFqrN+/VzbW2g8JT0OUU8LhPq2xPV9G E7ugjWFw6D/0flIA+iu3RG/sF2j+GwleIPrOlw59NOAgkhEWM+tvR9PBvaiYgzid3Le9lW LL9aMQwtaY0eH4BUCTjqn/XAErWQDIn0KlhdBrch26E8rx0wpV8xinGxuJqeyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRn9g1DT3zdkN for ; Fri, 29 May 2026 15:20:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26ec4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 15:20:39 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Gisle Nes From: ShengYi Hung Subject: git: ff5d0d7db769 - stable/15 - pci: use uint32_t for eecp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: aokblast X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ff5d0d7db769b7a32921ac650c0bae24afa333f7 Auto-Submitted: auto-generated Date: Fri, 29 May 2026 15:20:39 +0000 Message-Id: <6a19aec7.26ec4.220104a7@gitrepo.freebsd.org> The branch stable/15 has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=ff5d0d7db769b7a32921ac650c0bae24afa333f7 commit ff5d0d7db769b7a32921ac650c0bae24afa333f7 Author: Gisle Nes AuthorDate: 2026-04-07 16:48:15 +0000 Commit: ShengYi Hung CommitDate: 2026-05-29 15:19:49 +0000 pci: use uint32_t for eecp eecp holds the extended capability offset. If that offset is larger than 0xff, storing it in uint8_t truncates it, which can make the early EHCI/XHCI capability walk read the wrong location and loop during boot. Seen on AMD device 1022:151e, where HCCPARAMS1 = 0x0118ffc5 and the first xHCI extended capability offset is 0x460. Widen eecp to uint32_t in xhci_early_takeover(), matching xhci_pci_take_controller(). Signed-off-by: Gisle Nes Reviewed by: zlei, aokblast MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/2127 Closes: https://github.com/freebsd/freebsd-src/pull/2127 (cherry picked from commit 555ffd9022de0c497881bafc413e3e1d05af10d4) --- sys/dev/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 9a1dbc5f66ed..9e4b64f03171 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -3756,7 +3756,7 @@ xhci_early_takeover(device_t self) struct resource *res; uint32_t cparams; uint32_t eec; - uint8_t eecp; + uint32_t eecp; uint8_t bios_sem; uint8_t offs; int rid;