From nobody Wed Jan 25 22:15:13 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 4P2J7552rQz3bbn8; Wed, 25 Jan 2023 22:15:13 +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 4P2J754Hfdz478f; Wed, 25 Jan 2023 22:15:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674684913; 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=El5S3sJyCT826uYwJV95vYrGja781r35KovVnpD17q8=; b=mXqNnKXodnKnXKhNKwuP8+fnvCgMMoQF+L7EcrRH/uIAdySHAMySBFUAYKiIP2mcC7YY4l +pzh7b+b2TBVyXjc0NKmAoWlLsxp754eNX1Tj3yME1R142LfqBmp5nI79lXzwFkgbMNkgL 7comuFZCdOaFAWvOfM8dMdBRFXHeIBMru9+o2lXWgigoCwtIPQ/TN+VHArTC4W6KMXx54T 0r0WneWjWMqr4rtGWx7kacvbdVojmyzjLNw7ofnBeubKNpR7TZgEpduP/V31HIfo/X094E SF92MOY5NVdsDlk9RBfJcotHc/evlxxxnVun39mOPk9XALW0MFMeEzdTGCgn2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674684913; 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=El5S3sJyCT826uYwJV95vYrGja781r35KovVnpD17q8=; b=XZ9fVPP84xyrosbkGfItanOjwQ73V/0zcrPddZuyl1g46cfGG+ash+3vap2NUPElvVVbir 9rRgVBt5dB7oVdOzJQ/vit/5/MUSeHwPvS4c0mg0IwDzA+/G13zoTmQNoKiY3WQf0C4kKW IlzfdlJdgirxjfKkiky0Il4+J12pUl2z1LIbq+uRlHRoANy0VKGtGFcKXkh7bR0YyNdyO/ 72IXWsGuxxs8KyyZ3Lf5hFQswwt3Ug2wVMnN0nRHRQfOPlASK/czyHng5SxbomiizQ2Yz8 QSrV8qp91SkELPeC8rDf9B6y1AeNIa5DAyWaBjIZs7g+aMDadO3uUiHQMQ9KXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674684913; a=rsa-sha256; cv=none; b=CWW6DYg1fjMg+e1a0w7f3nJiaitPLa7CT9FqwHVbMyObkj1qQ/xzk7Y4DqDYWBW1jIzSSr RgK7+8whzP5i6b4iN3AQ/mYe2qEC4/IF/wUj3wUehzhxfLbTTfjyKiFUnCxXSmqpzw58GD OqR6vNV/dsJ/zX7IABcSdYa2AOre3NFy3WJg+wGUHHEKsdDnyqgddAEQ+9BoeP/UbhGLjx g6DSBvcgXN6suJz4dmrOC0YRtM6ntpTNzuW5EfM/9SesodSc87yc4IOqbN2gyGasycZ0Nf clgMCbuj3+syJiv2sNZXCRld2xCMqbrBbLTfQNoqSYN0p0a5XqYm555pG3D8Zg== 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 4P2J753Ld9z15lF; Wed, 25 Jan 2023 22:15:13 +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 30PMFDXg064445; Wed, 25 Jan 2023 22:15:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30PMFD5A064444; Wed, 25 Jan 2023 22:15:13 GMT (envelope-from git) Date: Wed, 25 Jan 2023 22:15:13 GMT Message-Id: <202301252215.30PMFD5A064444@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: 4152ce213954 - main - linuxkpi: Add `msix_cap` to `struct pci_dev` 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: 4152ce2139548e3e3c28c1e224747fa5d10ae656 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=4152ce2139548e3e3c28c1e224747fa5d10ae656 commit 4152ce2139548e3e3c28c1e224747fa5d10ae656 Author: Jean-Sébastien Pédron AuthorDate: 2023-01-20 19:23:59 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-01-25 21:57:08 +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 --- 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 b54b5cc8dd70..07ea473a4c56 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -170,6 +170,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 @@ -323,6 +325,7 @@ struct pci_dev { uint32_t class; uint8_t revision; uint8_t msi_cap; + uint8_t msix_cap; bool managed; /* devres "pcim_*(). */ bool want_iomap_res; bool msi_enabled;