Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2026 21:43:13 +0000
From:      Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 73efade31de9 - stable/15 - linuxkpi: Add `pci_dev_is_disconnected()`
Message-ID:  <69f27b71.47df1.ca1a9c0@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=73efade31de96d4fdea752132d05c8d73ffab377

commit 73efade31de96d4fdea752132d05c8d73ffab377
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-04-22 14:34:00 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-04-29 21:04:23 +0000

    linuxkpi: Add `pci_dev_is_disconnected()`
    
    For now, it is an empty stub that always return false. On Linux, it
    looks at an internal error state of the device to determine if it is
    disconnected.
    
    The amdgpu DRM driver started this in Linux 6.12.x.
    
    Reviewed by:    bz
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 43b47418e769df02f43f2b4636dd5c7516fa51f8)
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index ba68a9ee0dc3..5cd87ff091bc 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -1333,6 +1333,13 @@ pci_dev_present(const struct pci_device_id *cur)
 	return (0);
 }
 
+static inline bool
+pci_dev_is_disconnected(const struct pci_dev *pdev)
+{
+	pr_debug("TODO: %s\n", __func__);
+	return (false);
+}
+
 static inline const struct pci_device_id *
 pci_match_id(const struct pci_device_id *ids, struct pci_dev *pdev)
 {


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f27b71.47df1.ca1a9c0>