mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Yinghai Lu" <yinghai@kernel.org>
To: "Dean Nelson" <dcn@sgi.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	"Alan Mayer" <ajm@sgi.com>,
	jeremy@goop.org, rusty@rustcorp.com.au,
	suresh.b.siddha@intel.com, torvalds@linux-foundation.org,
	linux-kernel@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Yinghai Lu" <Yinghai.lu@amd.com>
Subject: Re: [PATCH] x86, UV: add uv_setup_irq() and uv_teardown_irq() functions
Date: Thu, 2 Oct 2008 09:19:04 -0700	[thread overview]
Message-ID: <86802c440810020919p4391cbebva0eaa5591e7915be@mail.gmail.com> (raw)
In-Reply-To: <20081001114415.GA3281@sgi.com>

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

  parent reply	other threads:[~2008-10-02 16:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 11:44 Dean Nelson
2008-10-02  8:42 ` Ingo Molnar
2008-10-02 11:45   ` [PATCH] x86, UV: add uv_setup_irq() and uv_teardown_irq() functions v.2 Dean Nelson
2008-10-02 16:19 ` Yinghai Lu [this message]
2008-10-02 16:44   ` [PATCH] x86, UV: add uv_setup_irq() and uv_teardown_irq() functions H. Peter Anvin
2008-10-02 17:18     ` [PATCH] x86, UV: add uv_setup_irq() and uv_teardown_irq() functions v.3 Dean Nelson
2008-10-03  8:59       ` Ingo Molnar
2008-10-03  9:40         ` x86, UV: add uv_setup_irq() and uv_teardown_irq() functions, v3, fix Ingo Molnar
2008-11-12 18:31         ` sgi-gru drivers need of up to 8192 irqs Dean Nelson
2008-11-12 18:46           ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86802c440810020919p4391cbebva0eaa5591e7915be@mail.gmail.com \
    --to=yinghai@kernel.org \
    --cc=Yinghai.lu@amd.com \
    --cc=ajm@sgi.com \
    --cc=dcn@sgi.com \
    --cc=ebiederm@xmission.com \
    --cc=hpa@zytor.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --cc=suresh.b.siddha@intel.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®