From nobody Tue Feb 10 00:46:43 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 4f92v767tkz6R500 for ; Tue, 10 Feb 2026 00:46:43 +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" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f92v74Vlfz4FqQ for ; Tue, 10 Feb 2026 00:46:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770684403; 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=5ZZyhcr1QTsE48GuJS9wtsbYT1DMAGjj7wuJf9Yx/KY=; b=Eld1sD8S/Qs0LlDjAR3c6087utCTnctZ3M8JPahkcMNo+QcZ5OyDUPSJTssKr2m8p78sqM qMrwteQnD9l+00uBqCIgj3ZqeqipZ/uYo9uzhqn24D9nNvjVgb3yQ//o94SEugRh5/yzQf BtJbP8oXLWT12bO25tKrf7+9MrUbwejKwrvoJaWxGDe3l+xdNsFLuTaKo/CpYw6Y+kVqDx iWpwKKfWbwyfwpMiZgPowfXhRaT+KjphNaA7lYOrTPaDtSSlKXM9/JHhSElsFU9gRPx/Xn ou2uM4s8xWK9dEesGl6NSzJIrB30s5QmtqrkgLi7Ppd2x0lYgIYiizAxQ723MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770684403; a=rsa-sha256; cv=none; b=KQkNSiPv/mXE2PYnqYpnO2ELWW37P/JmQkIxD6PPtCXP/LxbLHxBXh9a4oB8cOaw0DV9Du 5VAbPvPvhU6qq1uVp2zrVbqlUQnIrRAtxIAsNAqdSfD4B6Bi+VSxBnGNm9aVGh7rQBZ/D5 ia+TfNzykKAGu9RUS7FeU3Byp32/ROXXt83Iy7KqOLoI+DgOP+ia9a+9PE6pRY0poUF7OA flJUoCO+GbzTrSO6+gXeiCsDjsNoRDHUowWWJnc2vLoCwMlUn0NSuAiNSiHgLmuWRaVE8f /Whh8uUZuutM/BGyFdszKaTjpyKJws/7PHxHJARn8iZ9Gwkn7qiBUxVv6Ik5kg== 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=1770684403; 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=5ZZyhcr1QTsE48GuJS9wtsbYT1DMAGjj7wuJf9Yx/KY=; b=D5yzWUVvB7Cg7SDOhgZE8y78c7nScSX0IaDX9Ke68RDv59HvxQ6P83SnUN7SSoPAGTS0E2 QrsJgQyJ2Tb1WVMYVBHCqoaotd0YRk+xEIAIZ3kGHzdqCqcaTpxuIxXHuYkq2fYBWybs/d UBydrTP8eITonziVBlzDUddqdAmYZBFD9+g9x/9OK6TryxFipKJ293sAZhDgHZfYOu7Blp eJSEr8kqWPB/ffvaIcKkPd9l3sJD5QrSmunOO4XhjyQTtYVcMepOoVekxJtQ+5FwiToWzm Pd1ePwOzfp2BIKQH/U0JBgSraVGvLdwx+sLU0YkWdIgqU5jGDwFtr19950qcAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f92v743htzwYv for ; Tue, 10 Feb 2026 00:46:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31e5d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Feb 2026 00:46:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 1f19fc2632c9 - main - LinuxKPI: pci: make sure a tailq and lock are initialized 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 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/main X-Git-Reftype: branch X-Git-Commit: 1f19fc2632c98cfe653a082b5fcb02d16053ed06 Auto-Submitted: auto-generated Date: Tue, 10 Feb 2026 00:46:43 +0000 Message-Id: <698a7ff3.31e5d.1da86e2a@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=1f19fc2632c98cfe653a082b5fcb02d16053ed06 commit 1f19fc2632c98cfe653a082b5fcb02d16053ed06 Author: Bjoern A. Zeeb AuthorDate: 2026-01-24 22:16:36 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-02-09 21:49:30 +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 MFC after: 3 days Reviewed by: emaste, dumbbell Differential Revision: https://reviews.freebsd.org/D54861 --- 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 612a2cb5f46b..477cb321ea9e 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);