From nobody Mon Mar 20 20:47:48 2023 X-Original-To: dev-commits-src-main@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 4PgRdK1KDpz40Dmv; Mon, 20 Mar 2023 20:47:49 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PgRdJ5vx9z3kGW; Mon, 20 Mar 2023 20:47:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679345268; 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=r0WbltFq5AdoP3gCW/yKCNZv4Us+tefpGGz7gv1T+rs=; b=AV12sdIg7T4PCJBMg4TNRWzzs29Yt3ud9AzQ15qkJDKwff4GR8u0NZt4ZX0+QrNz/0jNF6 6l/967PxK2ic9UosyDcJTJBWPAU+i45mfVudQ6yqjCcd5nYLaqct1RdDYyVfzAAed2i5ZZ lvdujNgIabjg8ezQDhZ/Nj6cU7qhYcMOYMjdMEGLVtvg8MeL44sXfitZut/W90xB21KQ+G sH9mYpTyZX9lUJZn0ONIwp3N3gSXarxoKYJlZ128p0gI+WfaFZjYRiLVRYt85+Rf7OTqlS 2rmc8bDVIjVLKLCKnmujM/14+389om6uxT59ONpli9Yc9n4kpK+bZA9aTEsAAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679345268; 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=r0WbltFq5AdoP3gCW/yKCNZv4Us+tefpGGz7gv1T+rs=; b=hAlplurwlsuRA36B6ijFLi7CppJ+x57RaP1u0jUc4gqlZPlGs9sFofK2k5aDks83av2bv7 9aO0K7xtiEGknrzdEiZg8dpg+VRvKCyDkQ1SxweFsuFIIXHHqnUwOeGrcmg8LTeGBK83Uz Pe0BJbSt+A4glL+EijP+wPx4dJ1oFXfBhvIbHTaudkgFmEjlh/bJkeeV5zo/ZQeIo77QRH Ah10cEuaCEqgbaxk3YtCSIx8oZ/7NeDUQ8txmB/F7RoxAzXcLzPnRkFqcgbnLH73FJMXCN mg9ippm2tjDdgBD2a9x6ajeSCsb21STunLSfBuz87yZbuPglpUNLaXf455ZGHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679345268; a=rsa-sha256; cv=none; b=xhjQDb22u7wmp11d26x70D4mnilw0/x0dwQ/KS3JpzSLNhXLgdtb/pBji+2y2KkMCkcaiZ 7mvFlD9zI8Wbfy2wkn6e+Eni6opa8eEtKAhX/rEKpxooQgxJ5nWOqNGxogOyvJG0m+6z1w TlKPmdEvFWhH85kuzxm70EWV6ciJQfzkUQOcTPKGyuakw7Ikgh91lE6jjRuPWJszzpHLUP QCECdmyP6K189kFd1pA+VV3+Hcy0sY3DnPMVt0hYq1g7mVD1QYfY2eF7a1GRpESKJRxZwN Jh+YlnBQzYy4yHsziRleLGb3o7n3ZOatMH5TDTryPI6p1UdruxGDixwZkHbBeQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PgRdJ4hWQzkqk; Mon, 20 Mar 2023 20:47:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32KKlmWp083270; Mon, 20 Mar 2023 20:47:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32KKlmPc083269; Mon, 20 Mar 2023 20:47:48 GMT (envelope-from git) Date: Mon, 20 Mar 2023 20:47:48 GMT Message-Id: <202303202047.32KKlmPc083269@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: af19988f6cd3 - main - linuxkpi: Define `pcie_aspm_enabled()` List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af19988f6cd3918fd222003540769a38abb63174 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2023-02-20 20:46:38 +0000 Commit: Jean-Sébastien Pédron 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) {