From nobody Wed Nov 04 22:49:58 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 4jKgcr2Wj5z70Fh4 for ; Wed, 04 Nov 2026 22:50:04 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jKgcq6htTz3D5J for ; Wed, 04 Nov 2026 22:50:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793832603; 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=xwyTCVRxAoA37c5vBFtAKBXSU1siEIk5W3ZjzNuTdBE=; b=GgMsEDNH17qPfspQ+5H1vT/QrmuFep+DLsDKKetOOHA+r1cG2ccKQsvoEeIC1xRyRlQXl9 1MwbOdQ4gruYPu4pEOAGVHo+Xa8jNxQDJlZPHH7cM7Dhot54B0hq89RWYpvc9TX8NWzd/C /z+IKAu8GoLfooUXNoOEv3fMpzWc/eEt96doOlXsLqWATrBp5VAHEhSfaul6Citg3imE/s HsPGvTI/+ONwNF27TT8mwvoUfDUoj7mOHSvfJ/SwEOnP2uXiCl9ee1xsWx15W0NmhNpnnc YauPfYLI8tQEQRcXN4Ot6PdSH/rvk6icIM9StUYJJgyZeC1YTaGl5XlLcCPsxg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793832603; b=sbkIdDT/rwy83sSufT1fn9e6D5JQSHA2KZmhO/hAYTJoB0o8p0Lt3On52wDdqGMet8DcCZ 31ASD4BFw2Ulj0pHxyEmkLNH+/W0CY1pRbyI6OpKbp0erCdRal/U/IokijA/O/sOrQZcYk j7dlJj4g0aalN8IcuxwuwGN+ujtR7gV3WOauxYyDxwLaD8UL/RL/Df8vuuXlgaXI+f1Xox EPJ2zgBwJ4Vb9KTjVGr5jCciFdgyRvmUQaU062qupl6aaFIE9rfV0F6DBjHplzYIvqfVuF PtpPw5w/aXk/fwVo0t7ZQSftS+33nGsCdAR92CFVtfExF8MLeS4AXCpmgmuetA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793832603; 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=xwyTCVRxAoA37c5vBFtAKBXSU1siEIk5W3ZjzNuTdBE=; b=YVBhOISgKQ1AJNhPkcgGXptpnLQrnKg6D6TaTxj5kmedMbZvTPlVT72RqHcbreR0rWkv83 izDywoX53s5KzNXyiMES6oGzsRnWJdgGQavNk+JWZPXAjOaIa89tai66Nnpv16mMtRxkjb sgPt9w7fUbT+ubbuCjDRYpzNBgGrLNai2oyufR7vXY/y4b0yxrStxfA5QYFdRm0v7A4T5e nmAFaSDUNgIorl7KruIqkA5QLT3QmGpgRbsoc0u1bGxvb7u0M+Fy5YI317mIAXx+CU+uh8 vJ4G7vG2/zDYp3DpYIjhO/d3e6w8yi//QGmIFf4GaB4OHSITmHvdVyvGl1Fi4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jKgcq66CXzMqP for ; Wed, 04 Nov 2026 22:50:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 300ba by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 04 Nov 2026 22:49:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Quent=?utf-8?Q?in Th=C3=A9?=bault From: Adrian Chadd Subject: git: 0ecbb75c33d3 - main - LinuxKPI: set pci_dev msi_cap and msix_cap List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository 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: adrian X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0ecbb75c33d38645ea72dca7219c082eedbc8677 Auto-Submitted: auto-generated Date: Wed, 04 Nov 2026 22:49:58 +0000 Message-Id: <6aebb696.300ba.6bb4011e@gitrepo.freebsd.org> The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=0ecbb75c33d38645ea72dca7219c082eedbc8677 commit 0ecbb75c33d38645ea72dca7219c082eedbc8677 Author: Quentin Thébault AuthorDate: 2026-11-04 22:49:18 +0000 Commit: Adrian Chadd CommitDate: 2026-11-04 22:49:40 +0000 LinuxKPI: set pci_dev msi_cap and msix_cap Linux drivers find their MSI and MSI-X registers through pdev->msi_cap and pdev->msix_cap, which hold where those capabilities start in PCI config space. LinuxKPI never set them, so they stayed 0, and every access meant for the MSI registers went to the start of config space instead. Drivers using these fields, e.g. ath11k and amdgpu, are affected. Fill in both fields from the capability offsets that the native PCI code already records. Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D61125 Event: NetApp/Vendor Summit Hackathon 202611 --- sys/compat/linuxkpi/common/src/linux_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index 9509cc81fa72..8270f3bed54a 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -521,6 +521,8 @@ lkpi_pci_dev_init_common(device_t dev, struct pci_dev *pdev) */ pdev->bus->self = pdev; } + pdev->msi_cap = dinfo->cfg.msi.msi_location; + pdev->msix_cap = dinfo->cfg.msix.msix_location; pdev->dev.bsddev = dev; pdev->dev.parent = &linux_root_device;