Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2026 20:47:28 +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-main@FreeBSD.org
Subject:   git: 43b47418e769 - main - linuxkpi: Add `pci_dev_is_disconnected()`
Message-ID:  <69e933e0.254e9.373a469@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=43b47418e769df02f43f2b4636dd5c7516fa51f8

commit 43b47418e769df02f43f2b4636dd5c7516fa51f8
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-22 20:46:58 +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
    Differential Revision: https://reviews.freebsd.org/D56582
---
 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?69e933e0.254e9.373a469>