Re: ICU_LEN with IO APIC

2002-06-03 Thread Aaro J Koskinen

On Fri, 31 May 2002, Terry Lambert wrote:

 Bosko Milekic wrote:
I'm not sure but perhaps this is historical (and now also required
again), but if we use a word to mask out interrupts than after 32 we
run out of bits.  Who needs more than 32 interrupts anyway?! :-)

 Who needs more than 4?

OK, so you guys are running systems with a single IO APIC and even a
single PCI bus... Scalable design. :-)

A.

-- 
Aaro Koskinen
E-mail: [EMAIL PROTECTED]I'm the ocean, I'm the giant undertow.
http://www.iki.fi/aaro


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: ICU_LEN with IO APIC

2002-05-31 Thread Bosko Milekic


On Fri, May 31, 2002 at 12:12:00PM +0300, Aaro J Koskinen wrote:
 Hello,
 
 Is there any particular reason why the number of interrupts is limited
 to 32 on APIC systems? Is it just a conservative guess on the number of
 interrupts anyone might want to need...?

  I'm not sure but perhaps this is historical (and now also required
  again), but if we use a word to mask out interrupts than after 32 we
  run out of bits.  Who needs more than 32 interrupts anyway?! :-)

 A.
 
 -- 
 Aaro Koskinen
 E-mail: [EMAIL PROTECTED]I'm the ocean, I'm the giant undertow.
 http://www.iki.fi/aaro

Regards,
-- 
Bosko Milekic
[EMAIL PROTECTED]
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: ICU_LEN with IO APIC

2002-05-31 Thread John Baldwin


On 31-May-2002 Bosko Milekic wrote:
 
 On Fri, May 31, 2002 at 12:12:00PM +0300, Aaro J Koskinen wrote:
 Hello,
 
 Is there any particular reason why the number of interrupts is limited
 to 32 on APIC systems? Is it just a conservative guess on the number of
 interrupts anyone might want to need...?
 
   I'm not sure but perhaps this is historical (and now also required
   again), but if we use a word to mask out interrupts than after 32 we
   run out of bits.  Who needs more than 32 interrupts anyway?! :-)

Actually, the historical value in stable is 24 because the same 32-bit word
shares the 8 softinterrupts with 24 hardware interrupts.  I think the APIC
only has 32 interrupt pins however.

-- 

John Baldwin [EMAIL PROTECTED]http://www.FreeBSD.org/~jhb/
Power Users Use the Power to Serve!  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: ICU_LEN with IO APIC

2002-05-31 Thread Peter Wemm

John Baldwin wrote:
 
 On 31-May-2002 Bosko Milekic wrote:
  
  On Fri, May 31, 2002 at 12:12:00PM +0300, Aaro J Koskinen wrote:
  Hello,
  
  Is there any particular reason why the number of interrupts is limited
  to 32 on APIC systems? Is it just a conservative guess on the number of
  interrupts anyone might want to need...?
  
I'm not sure but perhaps this is historical (and now also required
again), but if we use a word to mask out interrupts than after 32 we
run out of bits.  Who needs more than 32 interrupts anyway?! :-)
 
 Actually, the historical value in stable is 24 because the same 32-bit word
 shares the 8 softinterrupts with 24 hardware interrupts.  I think the APIC
 only has 32 interrupt pins however.

Historically it was because ipending and friends were a 32 bit word.  Even
now, we have a stack of 32 bit bitfields in this area.

It isn't uncommon to have 2 IO apics with 24 pins each.  Fortunately there
are rarely more than about 20 or so in use in total.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
All of this is for nothing if we don't go to the stars - JMS/B5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: ICU_LEN with IO APIC

2002-05-31 Thread Terry Lambert

Bosko Milekic wrote:
 On Fri, May 31, 2002 at 12:12:00PM +0300, Aaro J Koskinen wrote:
  Is there any particular reason why the number of interrupts is limited
  to 32 on APIC systems? Is it just a conservative guess on the number of
  interrupts anyone might want to need...?
 
   I'm not sure but perhaps this is historical (and now also required
   again), but if we use a word to mask out interrupts than after 32 we
   run out of bits.  Who needs more than 32 interrupts anyway?! :-)

Who needs more than 4?

Foo on PCI.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message