Re: [PATCH 3/4] PCI: Add implementation for PRI capability

From: Geert Uytterhoeven
Date: Sat Oct 29 2011 - 15:46:14 EST


On Tue, Sep 27, 2011 at 15:57, Joerg Roedel <joerg.roedel@xxxxxxx> wrote:
> Implement the necessary functions to handle PRI capabilities
> on PCIe devices. With PRI devices behind an IOMMU can signal
> page fault conditions to software and recover from such
> faults.
>
> Signed-off-by: Joerg Roedel <joerg.roedel@xxxxxxx>
> ---
> Âdrivers/pci/Kconfig   Â|  Â9 +++
> Âdrivers/pci/ats.c    Â| Â167 ++++++++++++++++++++++++++++++++++++++++++++++
> Âinclude/linux/pci-ats.h Â| Â 42 ++++++++++++
> Âinclude/linux/pci_regs.h | Â 12 +++
> Â4 files changed, 230 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
> index 1d8ce83..fb1e9707 100644
> --- a/drivers/pci/Kconfig
> +++ b/drivers/pci/Kconfig
> @@ -85,6 +85,15 @@ config PCI_IOV
>
> Â Â Â Â ÂIf unsure, say N.
>
> +config PCI_PRI
> + Â Â Â bool "PCI PRI support"

Shouldn't this depend on PCI?

It doesn't seem to hurt on PCI-less platforms, but I prefer not seeing
PCI-related
questions when CONFIG_PCI is not set.

> + Â Â Â select PCI_ATS
> + Â Â Â help
> + Â Â Â Â PRI is the PCI Page Request Interface. It allows PCI devices that are
> + Â Â Â Â behind an IOMMU to recover from page faults.
> +
> + Â Â Â Â If unsure, say N.
> +

Gr{oetje,eeting}s,

            Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
             Â Â -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/