public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Mika Penttilä" <mika.penttila@kolumbus.fi>
To: jamesclv@us.ibm.com
Cc: Zwane Mwaikambo <zwane@arm.linux.org.uk>,
	"Nakajima, Jun" <jun.nakajima@intel.com>,
	Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>,
	Chris McDermott <lcm@us.ibm.com>,
	"Martin J. Bligh" <mbligh@aracnet.com>
Subject: Re: [PATCH] 2.6.1-mm2: Get irq_vector size right for generic subarch UP installer kernels
Date: Fri, 16 Jan 2004 00:42:10 +0200	[thread overview]
Message-ID: <40071742.10809@kolumbus.fi> (raw)
In-Reply-To: <200401151357.16807.jamesclv@us.ibm.com>



James Cleverdon wrote:

>On Wednesday 14 January 2004 8:36 pm, Zwane Mwaikambo wrote:
>  
>
>>On Wed, 14 Jan 2004, Nakajima, Jun wrote:
>>    
>>
>>>I tend to agree. I think the confusing part is the range of the IRQs on
>>>that machine. Assuming that irq_vector[NR_IRQ_VECTORS = 1024] requires
>>>more entries, then the IRQs should take that range, because
>>>IO_APCI_VECTOR(irq) is just irq_vector[irq], for example. If NR_IRQS is
>>>still 224, how can do_IRQ() can get the correct IRQ (i.e. >= 224) ? So
>>>in that case, the IRQ should be smaller than 224, then irq_vector[]
>>>should be smaller.
>>>      
>>>
>>In my opinion we should be breaking after we've exceeded the maximum
>>external vectors we can install. This will of course mean less than
>>the number of RTEs. James have you actually managed to use the devices
>>connected to the high (over ~224) RTEs?
>>    
>>
>
>No, I haven't exceeded the available vectors, but wli has on a large NUMA-Q 
>box.
>
>The x440 and x445's problems are pre-reserving lots of bus numbers in the 
>BIOS, more than one per PCI slot.  They must be anticipating PCI cards with 
>bridge chips on them.
>
>I believe that the reason for irq_vector being so large is to allow IRQ (and 
>eventually vector) sharing.  The array is to map from RTE to vector.
>  
>
Any attempt to  setup an irq >= NR_IRQS will crash, because for instance 
entry.c interrupt stubs are an array of NR_IRQS entries...NR_IRQ_VECTORS 
 > NR_IRQS really doesn't make sense as is.

We do support irq sharing among devices, but not vector sharing among 
irqs. For that the handler should loop through irq_vector[] to find 
every index, index != irq, irq_vector[index] == irq_vector[irq].

--Mika



  parent reply	other threads:[~2004-01-15 22:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-14 23:13 [PATCH] 2.6.1-mm2: Get irq_vector size right for generic subarch UP installer kernels Nakajima, Jun
2004-01-15  4:36 ` Zwane Mwaikambo
2004-01-15 21:57   ` James Cleverdon
2004-01-15 22:40     ` Zwane Mwaikambo
2004-01-16  5:45       ` William Lee Irwin III
2004-01-15 22:42     ` Mika Penttilä [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-16  2:35 Nakajima, Jun
2004-01-18 19:06 ` Zwane Mwaikambo
2004-01-14 21:50 Nakajima, Jun
2004-01-14 22:20 ` Zwane Mwaikambo
2004-01-14 19:34 James Bottomley
2004-01-14 20:01 ` James Cleverdon
2004-01-14 21:49   ` James Bottomley
2004-01-14  0:26 James Cleverdon
2004-01-14  1:00 ` Zwane Mwaikambo
2004-01-14 19:59   ` James Cleverdon
2004-01-14 22:22     ` Zwane Mwaikambo

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=40071742.10809@kolumbus.fi \
    --to=mika.penttila@kolumbus.fi \
    --cc=akpm@osdl.org \
    --cc=jamesclv@us.ibm.com \
    --cc=jun.nakajima@intel.com \
    --cc=lcm@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=torvalds@osdl.org \
    --cc=zwane@arm.linux.org.uk \
    /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