From nobody Thu Feb 16 11:56:02 2023 X-Original-To: dev-commits-src-branches@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 4PHYLV3g7Sz3q5nl; Thu, 16 Feb 2023 11:56:02 +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 4PHYLV2swZz49Z3; Thu, 16 Feb 2023 11:56:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548562; 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=+Ls0+wG6KGKMDwFEipx84BokMMeyQ1AnPkmWqtq/BoQ=; b=HYHrWPqdmPlOSacdxaHVNZRc/dXhzcBCrzlPNXZhgmv454HdrAUgJCFeBABEvNSpxHHMU1 zEpnVXVy4vsmPd4nzID/by72yPPdtzIgoihdDv/yMo9Xvcba2jxjvhuHTnSq5GTjN38BJt xxAoqY+MBmasJv55ROOR4D+CDWsfhfUrewE9EBd6R8UbxLXEs5i0RS29xwPdjCaTwSNq1v 6SHKp6RNSOfWsnfKuSNO3JqX4HWiuVjcgHdKKBE1oFCGfAUFFfoiW94Rd9f+PW+JfbFulM 00g5lTt8hBBIDcbTwPqH36u2OLkfBn7lkrLAvw9Hd9d4A3WPmmOQQruFixV1qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548562; 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=+Ls0+wG6KGKMDwFEipx84BokMMeyQ1AnPkmWqtq/BoQ=; b=OkKXxXoWLv+85PR/asHJOFagH3o1/gWFHNQGz8GAftY4nCANDqbbqGBYnCy9o8fFBqdzGe gP7LRmKwiC2VJB5EFpRz8ApY1AHgrDZgXDijJDK2Cli2iSRKsHwfedsHliYzQf5fsdSawE WU5zqV5sBP2gycd9G1pIJSiGhDPRbk3uj4rCnVqBqj68Q3BCcgOGVUHvQy0eoId4p7omc5 asFh+wEMXFRZPDJaVc9xgg5yY917nDfmePnt8ETz4dljjNK+WIXC4qqCwoyjixDIQgFj35 jg6XA0QKWH7ZTPF0mKRIlW/TAVoPUVW6beFovhLSAe0ijl3pWsHapGQOVVIHvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548562; a=rsa-sha256; cv=none; b=b3PPVKhQOIHif6z6Osz4Sseq+yk69maI9RRnLw3HtDkLGbaE6tCoR3/FZzNh3FF388fBLr vxmR4xocESePVYMTPtVxeglf1/vsG4pL9ydGxZbWnPLYHC/IhuboQ8wANWh5A4rRfR4gT5 8Jjb0+OrhFrSVkuq9XAQDk3PfgBIxY7ZSzMseM3KekUMv1q9tlhEzszvkAwE0amNNlKotc 4BtPoaOdpdgo6KemFtF5eVuaoY+ISQ9HmfbyBxt2VnbTjsrpM4AW4VP3+Z9qj5oBE7z0Hb RZ7nTAeicRVkUyznXxe7lf27dCAHK/Cctl+jP44hHoSxRtv5Hiv1RA4ndq59zA== 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 4PHYLV1skPz12fX; Thu, 16 Feb 2023 11:56:02 +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 31GBu2YI055495; Thu, 16 Feb 2023 11:56:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBu29h055494; Thu, 16 Feb 2023 11:56:02 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:02 GMT Message-Id: <202302161156.31GBu29h055494@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: ad7aa28c1d1a - stable/13 - linuxkpi: Add `msix_cap` to `struct pci_dev` List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: ad7aa28c1d1a522e423627f05188e432149490eb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=ad7aa28c1d1a522e423627f05188e432149490eb commit ad7aa28c1d1a522e423627f05188e432149490eb Author: Jean-Sébastien Pédron AuthorDate: 2023-01-20 19:23:59 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:15 +0000 linuxkpi: Add `msix_cap` to `struct pci_dev` At the same time, define `PCI_MSIX_FLAGS`and `PCI_MSIX_FLAGS_ENABLE`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38160 (cherry picked from commit 4152ce2139548e3e3c28c1e224747fa5d10ae656) --- sys/compat/linuxkpi/common/include/linux/pci.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index ad7589e692f2..b0c52c3f062e 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -172,6 +172,8 @@ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \ #define PCI_MSI_ADDRESS_HI PCIR_MSI_ADDR_HIGH #define PCI_MSI_FLAGS PCIR_MSI_CTRL #define PCI_MSI_FLAGS_ENABLE PCIM_MSICTRL_MSI_ENABLE +#define PCI_MSIX_FLAGS PCIR_MSIX_CTRL +#define PCI_MSIX_FLAGS_ENABLE PCIM_MSIXCTRL_MSIX_ENABLE #define PCI_EXP_LNKCAP_CLKPM 0x00040000 #define PCI_EXP_DEVSTA_TRPND 0x0020 @@ -327,6 +329,7 @@ struct pci_dev { unsigned int devfn; uint32_t class; uint8_t revision; + uint8_t msix_cap; bool msi_enabled; TAILQ_HEAD(, pci_mmio_region) mmio;