From nobody Sat Feb 7 15:11:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7605A1802C4; Mon, 25 Mar 2024 07:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711350600; cv=none; b=Bq+sjz4gPAsR30Lg6OWNo4CP0Fzc3oilurWYQ4L0TOYEn3ascsufDMenxnXD+0ibkzCttktXYtpa2q88K/r6HEiBPxhl6I9wxAzVs8MAUfj2KzpmJlQx5c+SEcvtq9ple2eW/qSwWSEqHdb6MOuZLuOGczBUVzl1/fsBvnVFJuY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711350600; c=relaxed/simple; bh=25LpLFDUK7yCKsArH1FwhXbVER4eRwrvFSgeehcEArs=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ULmtWOzo1ksRYt1y2LOMHUaYeWym2te7MKEXIrGtFJhQOlsAv6/oQuGRShKUbL006IO29Uba0/fagE/63vihSzqrYLOoc3NxhnCchNn3rCMZdUTV8IeDFgtUVCAXshd3BnfaeVtXyl0H8SICvW4bXZcIgLN46HnAT9rfbiQmfhE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qa/X5yWD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qa/X5yWD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8644C433C7; Mon, 25 Mar 2024 07:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711350600; bh=25LpLFDUK7yCKsArH1FwhXbVER4eRwrvFSgeehcEArs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qa/X5yWDz6dwe5dMyQx+NAYSgAguUFLGgjV7qf/kSfDLz28KlIGCuz4ecgRcuRYEh MhMiBUGzmFjtWmCAW0g9zX1kk2TOIKNVnDVC1T3sPMaChkpUjwVoK66HXkjzQXaxwj obD0t0C9/R5oKN4/8kDBhoa/ji2zAPXTS5eoEIB2xHuTLdip8GhIUzq4NDe0OHtYxO /4MgNB27YKEAwlbKfQlIOeH+HtbNt+CqYPkNeLL6SQY8VeocEspxjnKCMtA8Hcxi7g e0qJ/Vo/kdc3N0oBfTC4d6XUKQkha+tp1pJ6MfAqLplXdY4MJZaC2hvLasDeZ7E+SA lWK7hbwqZQHCg== From: Damien Le Moal To: linux-pci@vger.kernel.org, Bjorn Helgaas , Manivannan Sadhasivami , linux-scsi@vger.kernel.org, "Martin K . Petersen" , Jaroslav Kysela , linux-sound@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, Hans de Goede , platform-driver-x86@vger.kernel.org, ntb@lists.linux.dev, Lee Jones , David Airlie , amd-gfx@lists.freedesktop.org, Jason Gunthorpe , linux-rdma@vger.kernel.org, "David S . Miller" , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/28] PCI: documentation: Use PCI_IRQ_INTX Date: Mon, 25 Mar 2024 16:09:14 +0900 Message-ID: <20240325070944.3600338-4-dlemoal@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240325070944.3600338-1-dlemoal@kernel.org> References: <20240325070944.3600338-1-dlemoal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Change all references to PCI_IRQ_LEGACY to PCI_IRQ_INTX in the PCI documentation to reflect that PCI_IRQ_LEGACY is deprecated. Signed-off-by: Damien Le Moal --- Documentation/PCI/msi-howto.rst | 2 +- Documentation/PCI/pci.rst | 2 +- Documentation/translations/zh_CN/PCI/msi-howto.rst | 2 +- Documentation/translations/zh_CN/PCI/pci.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/PCI/msi-howto.rst b/Documentation/PCI/msi-howto.= rst index 783d30b7bb42..0692c9aec66f 100644 --- a/Documentation/PCI/msi-howto.rst +++ b/Documentation/PCI/msi-howto.rst @@ -103,7 +103,7 @@ min_vecs argument set to this limit, and the PCI core w= ill return -ENOSPC if it can't meet the minimum number of vectors. =20 The flags argument is used to specify which type of interrupt can be used -by the device and the driver (PCI_IRQ_LEGACY, PCI_IRQ_MSI, PCI_IRQ_MSIX). +by the device and the driver (PCI_IRQ_INTX, PCI_IRQ_MSI, PCI_IRQ_MSIX). A convenient short-hand (PCI_IRQ_ALL_TYPES) is also available to ask for any possible kind of interrupt. If the PCI_IRQ_AFFINITY flag is set, pci_alloc_irq_vectors() will spread the interrupts around the available CP= Us. diff --git a/Documentation/PCI/pci.rst b/Documentation/PCI/pci.rst index cced568d78e9..dd7b1c0c21da 100644 --- a/Documentation/PCI/pci.rst +++ b/Documentation/PCI/pci.rst @@ -335,7 +335,7 @@ causes the PCI support to program CPU vector data into = the PCI device capability registers. Many architectures, chip-sets, or BIOSes do NOT support MSI or MSI-X and a call to pci_alloc_irq_vectors with just the PCI_IRQ_MSI and PCI_IRQ_MSIX flags will fail, so try to always -specify PCI_IRQ_LEGACY as well. +specify PCI_IRQ_INTX as well. =20 Drivers that have different interrupt handlers for MSI/MSI-X and legacy INTx should chose the right one based on the msi_enabled diff --git a/Documentation/translations/zh_CN/PCI/msi-howto.rst b/Documenta= tion/translations/zh_CN/PCI/msi-howto.rst index 1b9b5ea790d8..95baadf767e4 100644 --- a/Documentation/translations/zh_CN/PCI/msi-howto.rst +++ b/Documentation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= =BC=88PCI_IRQ_INTX, PCI_IRQ_MSI, PCI_IRQ_MSIX=EF=BC=89=E3=80=82=E4=B8=80=E4=B8=AA=E6=96=B9=E4=BE=BF=E7=9A= =84=E7=9F=AD=E8=AF=AD=EF=BC=88PCI_IRQ_ALL_TYPES=EF=BC=89=E4=B9=9F=E5=8F=AF= =E4=BB=A5=E7=94=A8=E6=9D=A5=E8=A6=81=E6=B1=82=E4=BB=BB=E4=BD=95=E5=8F=AF=E8= =83=BD=E7=9A=84=E4=B8=AD=E6=96=AD=E7=B1=BB=E5=9E=8B=E3=80=82 =E5=A6=82=E6=9E=9CPCI_IRQ_AFFINITY=E6=A0=87=E5=BF=97=E8=A2=AB=E8=AE=BE=E7= =BD=AE=EF=BC=8Cpci_alloc_irq_vectors()=E5=B0=86=E6=8A=8A=E4=B8=AD=E6=96=AD= =E5=88=86=E6=95=A3=E5=88=B0=E5=8F=AF=E7=94=A8=E7=9A=84CPU=E4=B8=8A=E3=80=82 =20 diff --git a/Documentation/translations/zh_CN/PCI/pci.rst b/Documentation/t= ranslations/zh_CN/PCI/pci.rst index 83c2a41d38d3..347f5c3f5ce9 100644 --- a/Documentation/translations/zh_CN/PCI/pci.rst +++ b/Documentation/translations/zh_CN/PCI/pci.rst @@ -304,7 +304,7 @@ MSI-X=E5=8F=AF=E4=BB=A5=E5=88=86=E9=85=8D=E5=87=A0=E4= =B8=AA=E5=8D=95=E7=8B=AC=E7=9A=84=E5=90=91=E9=87=8F=E3=80=82 =E7=9A=84PCI_IRQ_MSI=E5=92=8C/=E6=88=96PCI_IRQ_MSIX=E6=A0=87=E5=BF=97=E6= =9D=A5=E5=90=AF=E7=94=A8MSI=E5=8A=9F=E8=83=BD=E3=80=82=E8=BF=99=E5=B0=86=E5= =AF=BC=E8=87=B4PCI=E6=94=AF=E6=8C=81=E5=B0=86CPU=E5=90=91=E9=87=8F=E6=95=B0 =E6=8D=AE=E7=BC=96=E7=A8=8B=E5=88=B0PCI=E8=AE=BE=E5=A4=87=E5=8A=9F=E8=83= =BD=E5=AF=84=E5=AD=98=E5=99=A8=E4=B8=AD=E3=80=82=E8=AE=B8=E5=A4=9A=E6=9E=B6= =E6=9E=84=E3=80=81=E8=8A=AF=E7=89=87=E7=BB=84=E6=88=96BIOS=E4=B8=8D=E6=94= =AF=E6=8C=81MSI=E6=88=96MSI-X=EF=BC=8C=E8=B0=83=E7=94=A8 ``pci_alloc_irq_vectors`` =E6=97=B6=E5=8F=AA=E4=BD=BF=E7=94=A8PCI_IRQ_MSI= =E5=92=8CPCI_IRQ_MSIX=E6=A0=87=E5=BF=97=E4=BC=9A=E5=A4=B1=E8=B4=A5=EF=BC=8C -=E6=89=80=E4=BB=A5=E5=B0=BD=E9=87=8F=E4=B9=9F=E8=A6=81=E6=8C=87=E5=AE=9A `= `PCI_IRQ_LEGACY`` =E3=80=82 +=E6=89=80=E4=BB=A5=E5=B0=BD=E9=87=8F=E4=B9=9F=E8=A6=81=E6=8C=87=E5=AE=9A `= `PCI_IRQ_INTX`` =E3=80=82 =20 =E5=AF=B9MSI/MSI-X=E5=92=8C=E4=BC=A0=E7=BB=9FINTx=E6=9C=89=E4=B8=8D=E5=90= =8C=E4=B8=AD=E6=96=AD=E5=A4=84=E7=90=86=E7=A8=8B=E5=BA=8F=E7=9A=84=E9=A9=B1= =E5=8A=A8=E7=A8=8B=E5=BA=8F=E5=BA=94=E8=AF=A5=E5=9C=A8=E8=B0=83=E7=94=A8 ``pci_alloc_irq_vectors`` =E5=90=8E=E6=A0=B9=E6=8D=AE ``pci_dev``=E7=BB=93= =E6=9E=84=E4=BD=93=E4=B8=AD=E7=9A=84 ``msi_enabled`` --=20 2.44.0