All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: xen-devel@lists.xensource.com, M A Young <m.a.young@durham.ac.uk>
Subject: Re: Re: Continuing problems booting
Date: Tue, 10 Mar 2009 10:13:40 -0700	[thread overview]
Message-ID: <49B69FC4.9050204@goop.org> (raw)
In-Reply-To: <49B6356D.20603@redhat.com>

Gerd Hoffmann wrote:
> Jeremy Fitzhardinge wrote:
>   
>> Yes, that's what I suspected.   Can you write up a proper patch?
>>     
>
> I've two patches for you.  The first turns the silly "xen-pirq-pirq" in
> /proc/interrupts into something useful.  The second does proper legacy
> irq setup on top of that.
>   

Could you s-o-b them too?

> +	if (0 == nr_ioapics) {
> +		for (irq=0; irq < NR_IRQS_LEGACY; irq++)
> +			xen_allocate_pirq(irq, "legacy");
> +		return;
> +	}
>   

I guess the assumption here is that if there's no ioapics, we don't have 
acpi?  Or I guess it doesn't matter because we can't program the 
triggering anyway.

> +
>  	/* Pre-allocate legacy irqs */
>  	for (irq=0; irq < NR_IRQS_LEGACY; irq++) {
> -		int trigger, polarity;
> -
> -		if (acpi_get_override_irq(irq, &trigger, &polarity) == -1)
> -			continue;
> +		int trigger= 1, polarity = 0;
>  
> +		acpi_get_override_irq(irq, &trigger, &polarity);
>  		xen_register_gsi(irq,
>  			trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE,
>  			polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH);

I don't think this is correct, for two reasons.  1: I think the default 
ISA triggering is edge/active low, so this will result in screaming 
interrupts if we ever use the defaults, but 2: acpi_get_override_irq() 
returns the appropriate default for ISA anyway, and we shouldn't do 
anything if it fails (otherwise we might try to do things to magic-irq 2 
which could upset things, though I suspect Xen will stop anything really 
bad from happening).

    J

  reply	other threads:[~2009-03-10 17:13 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 12:50 Continuing problems booting M A Young
2009-02-20 16:19 ` M A Young
2009-02-21 12:34   ` M A Young
2009-02-21 15:43     ` Jeremy Fitzhardinge
2009-02-21 15:52       ` M A Young
2009-02-21 22:26       ` M A Young
2009-02-22  6:54     ` Jeremy Fitzhardinge
2009-02-22  9:38       ` M A Young
2009-02-22 14:58         ` M A Young
2009-02-22 17:13           ` Jeremy Fitzhardinge
2009-02-22 23:02             ` M A Young
2009-02-22 23:19               ` Jeremy Fitzhardinge
2009-02-23  0:20                 ` M A Young
2009-02-23  6:27                   ` Jeremy Fitzhardinge
2009-02-25  0:56                     ` M A Young
2009-02-27 23:27                       ` M A Young
2009-02-28  1:18                         ` Jeremy Fitzhardinge
2009-03-02 10:05                           ` Gerd Hoffmann
2009-03-02 10:38                             ` M A Young
2009-03-02 10:56                               ` Gerd Hoffmann
2009-03-05  5:15                             ` Jeremy Fitzhardinge
2009-03-05  7:35                               ` Gerd Hoffmann
2009-03-05 11:01                                 ` Gerd Hoffmann
2009-03-05 18:56                                   ` Jeremy Fitzhardinge
2009-03-06 14:15                                     ` Gerd Hoffmann
2009-03-06 14:56                                       ` Gerd Hoffmann
2009-03-06 15:21                                         ` Jeremy Fitzhardinge
2009-03-09 15:38                                           ` Gerd Hoffmann
2009-03-09 15:56                                             ` Gerd Hoffmann
2009-03-09 16:35                                               ` Jeremy Fitzhardinge
2009-03-06 15:20                                       ` Jeremy Fitzhardinge
2009-03-06 15:34                                         ` Gerd Hoffmann
2009-03-06 16:08                                           ` Jeremy Fitzhardinge
2009-03-09  8:02                                             ` Gerd Hoffmann
2009-03-09 13:20                                             ` Gerd Hoffmann
2009-03-09 16:24                                               ` Jeremy Fitzhardinge
2009-03-10  9:39                                                 ` Gerd Hoffmann
2009-03-10 17:13                                                   ` Jeremy Fitzhardinge [this message]
2009-03-10 22:00                                                     ` Gerd Hoffmann
2009-03-10 22:46                                                       ` Jeremy Fitzhardinge
2009-03-11 10:33                                                         ` Gerd Hoffmann
2009-03-05 15:57                                 ` Pasi Kärkkäinen
2009-03-05  1:52                         ` Jeremy Fitzhardinge
2009-03-05 20:23                           ` M A Young
2009-03-05 20:34                             ` Jeremy Fitzhardinge
2009-03-06  1:07                               ` M A Young
     [not found]                               ` <49B0BF8B.9070002@zytor.com>
2009-03-06 19:35                                 ` M A Young
  -- strict thread matches above, loose matches on Subject: below --
2009-02-21 22:59 Jeremy Fitzhardinge
2009-02-21 23:57 ` M A Young
2009-02-22  4:47 ` Keir Fraser

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=49B69FC4.9050204@goop.org \
    --to=jeremy@goop.org \
    --cc=kraxel@redhat.com \
    --cc=m.a.young@durham.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.