Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2023 20:47:48 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: af19988f6cd3 - main - linuxkpi: Define `pcie_aspm_enabled()`
Message-ID:  <202303202047.32KKlmPc083269@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell:

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

commit af19988f6cd3918fd222003540769a38abb63174
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-02-20 20:46:38 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-03-20 20:47:36 +0000

    linuxkpi: Define `pcie_aspm_enabled()`
    
    This is not the same as querying the PCIE ASPM capability. The function
    should return if the feature is actually enabled or not. It always
    return false on FreeBSD.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D39053
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index c9ebdf546696..2c222bf1cdbe 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -1370,6 +1370,12 @@ pcie_bandwidth_available(struct pci_dev *pdev,
 	return (nwidth * PCIE_SPEED2MBS_ENC(nspeed));
 }
 
+static inline bool
+pcie_aspm_enabled(struct pci_dev *pdev)
+{
+	return (false);
+}
+
 static inline struct pci_dev *
 pcie_find_root_port(struct pci_dev *pdev)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303202047.32KKlmPc083269>