lkml.org 
[lkml]   [2008]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86, UV: add uv_setup_irq() and uv_teardown_irq() functions
On Wed, Oct 1, 2008 at 4:44 AM, Dean Nelson <dcn@sgi.com> wrote:
> Provide a means for UV interrupt MMRs to be setup with the message to be sent
> when an MSI is raised.
>
> Signed-off-by: Dean Nelson <dcn@sgi.com>
>
> ---
>
> This functionality is needed by drivers/misc/sgi-xp. And a patch will be
> submitted shortly.
>
> arch/x86/kernel/Makefile | 2
> arch/x86/kernel/io_apic.c | 95 ++++++++++++++++++++++++++++++++++++++++
> arch/x86/kernel/uv_irq.c | 50 +++++++++++++++++++++
> include/asm-x86/uv/uv_irq.h | 34 ++++++++++++++
> kernel/irq/chip.c | 1
> 5 files changed, 181 insertions(+), 1 deletion(-)
>
> Index: linux/arch/x86/kernel/io_apic.c
> ===================================================================
> --- linux.orig/arch/x86/kernel/io_apic.c 2008-09-30 09:07:42.000000000 -0500
> +++ linux/arch/x86/kernel/io_apic.c 2008-09-30 12:54:12.000000000 -0500
> @@ -58,6 +58,8 @@
> #include <asm/setup.h>
> #include <asm/irq_remapping.h>
> #include <asm/hpet.h>
> +#include <asm/uv/uv_hub.h>
> +#include <asm/uv/uv_irq.h>
>
> #include <mach_ipi.h>
> #include <mach_apic.h>
> @@ -3694,6 +3696,99 @@ int arch_setup_ht_irq(unsigned int irq,
> }
> #endif /* CONFIG_HT_IRQ */
>
> +#ifdef CONFIG_X86_64
> +static void noop(unsigned int irq)
> +{
> +}
> +
> +static unsigned int noop_ret(unsigned int irq)
> +{
> + return 0;
> +}
> +
> +static void ack_apic(unsigned int irq)
> +{
> + ack_APIC_irq();
> +}
> +
> +static struct irq_chip uv_irq_chip = {
> + .name = "UV_MSI",

anything to do with MSI?

YH


\
 
 \ /
  Last update: 2008-10-02 18:21    [W:0.085 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site