From nobody Fri Feb 27 02:29:47 2026 X-Original-To: dev-commits-src-branches@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 4fMXNC5sszz6T7PM for ; Fri, 27 Feb 2026 02:29:47 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fMXNC4VKkz41Cl for ; Fri, 27 Feb 2026 02:29:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772159387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4jrMpghhSErTk+tXv8ddoznwpooCwotgDgPPWa1vbYI=; b=YaxuhUvEDwf2xQiYoMdIvcDf78gdyU0accTGDmJZuXG9ONm0Q/E8zSINHEsx7qbBx+EscA Ql/bneuitCk4R7fxhClqjQ9Ln1gdpmfHSapvDofn5bc0yIqIaD17KRQZ5qx9IpVsKFjUvl tOdmCxXAiKBDsXthL8qWbQlfuk1+MUl6tkYPweDJUTlV8oMKs7M0NfkbO0MOzioJVecsbn ah2kXPq3pO2wTcGKeUBB/lCg4JvOed5G64FC8wPB4sTZD8rJdF8PAGRmpv57vstfX4sK2B zxd0bWhEXESdcXdkFwsNw1/hif57QgL7mQ0PzPqZzUN3vq0no+OGJKtTyWZS3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772159387; a=rsa-sha256; cv=none; b=fb3qSOlRe/mt90jmYnXnBYju+eBIWL3C3idrIFha/vJlASbZJyuvc76WcQQmMd3oEhdxyr yfovj7MRYGjiRXd3Qb/8u162fBbOZOi0FP7Yu0OhZV51FmKVtW/c/5bRou1uitvn4VV2pW flphAmPRKCD8VypgTbxvAY6OOP4mquHRcXNLxQqjy4pTerkxjmDfF9hsbqLz6ZvKnRHuN7 Sf1P45eywZM9shi+GLBJycS6LeRl5K8GBWUIRd0WUzHd11ZqQl9k4qffPv2f/MIalfLWru /1KzwwSzaUeRi1Q9IEn+m3+I4l2GbndtnnIDJuzo8oAEWA+R2XIb/Rvcp4mRxA== 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=1772159387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4jrMpghhSErTk+tXv8ddoznwpooCwotgDgPPWa1vbYI=; b=rn14WVfTDzO4IpWl5GNCm7eikQDUcfHECcwV9JjM621sufYfmFFb6FehZ6YYQdX+amy4BF AHdhwVpzZJhDmILYHpFcD7Xu/X2qIjOtJMEXrLxieeM95R2f2D3Qvuy//L8k37oBMHt41u yqkZPqFWOS/XCngAiUtPfWIDqYuXCMuEtWYl4LXhD0GFrR/hL+Tye9Vbf0sVhxEeXWab+v uE6Xs/13lyMX4+DyEnNC756IREBoj6YoYJCRF4pCQlsb378hYFA2BKt66i3Zmx/RK0lNfz JDEMYsndKD4K+FNp6PK0G65liao6rE3as11J8dyNa6XD+9Tu9AlweUQ2WfEkrA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fMXNC42PWzycb for ; Fri, 27 Feb 2026 02:29:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 21a1f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 27 Feb 2026 02:29:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: f8713b7f8dda - stable/15 - LinuxKPI: pci: make sure a tailq and lock are initialized List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: f8713b7f8dda735e65c3a14a4634f9cc0427ae66 Auto-Submitted: auto-generated Date: Fri, 27 Feb 2026 02:29:47 +0000 Message-Id: <69a1019b.21a1f.12a39a59@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f8713b7f8dda735e65c3a14a4634f9cc0427ae66 commit f8713b7f8dda735e65c3a14a4634f9cc0427ae66 Author: Bjoern A. Zeeb AuthorDate: 2026-01-24 22:16:36 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-02-26 23:02:39 +0000 LinuxKPI: pci: make sure a tailq and lock are initialized Move the initializations of the tailq and lock from linux_pci_attach_device() into lkpifill_pci_dev() so that they are initialized in all cases we create a device (see all the possible callers of lkpifill_pci_dev()). Sponsored by: The FreeBSD Foundation Reviewed by: emaste, dumbbell Differential Revision: https://reviews.freebsd.org/D54861 (cherry picked from commit 1f19fc2632c98cfe653a082b5fcb02d16053ed06) --- sys/compat/linuxkpi/common/src/linux_pci.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index c8d1989f669b..c4f0564c7e35 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -385,14 +385,16 @@ lkpifill_pci_dev(device_t dev, struct pci_dev *pdev) pdev->dev.bsddev = dev; pdev->dev.parent = &linux_root_device; pdev->dev.release = lkpi_pci_dev_release; - INIT_LIST_HEAD(&pdev->dev.irqents); if (pci_msi_count(dev) > 0) pdev->msi_desc = malloc(pci_msi_count(dev) * sizeof(*pdev->msi_desc), M_DEVBUF, M_WAITOK | M_ZERO); + TAILQ_INIT(&pdev->mmio); + spin_lock_init(&pdev->pcie_cap_lock); spin_lock_init(&pdev->dev.devres_lock); INIT_LIST_HEAD(&pdev->dev.devres_head); + INIT_LIST_HEAD(&pdev->dev.irqents); return (0); } @@ -613,9 +615,6 @@ linux_pci_attach_device(device_t dev, struct pci_driver *pdrv, if (error) goto out_dma_init; - TAILQ_INIT(&pdev->mmio); - spin_lock_init(&pdev->pcie_cap_lock); - spin_lock(&pci_lock); list_add(&pdev->links, &pci_devices); spin_unlock(&pci_lock);