Re: [RFT][PATCH] i386 per cpu IDT (2.6.12-rc1-mm1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Chuck,

On Mon, 26 Sep 2005, Chuck Ebbert wrote:

> In-Reply-To: <[email protected]>
> > +/* Build the IRQ entry stubs */
> >  vector=0
> > -ENTRY(irq_entries_start)
> > +     .align IRQ_STUB_SIZE,0x90
> > +ENTRY(interrupt)
> >  .rept NR_IRQS
> >       ALIGN     <===================================
> 
>   That ALIGN could cause problems if someone changed default i386 alignment to
> something larger than IRQ_STUB_SIZE.  Why is it there?

Yep, that's dead code and should go.

> > +#define IRQ_STUB_SIZE 16        <=================================
> > +#define NR_IRQ_NODES 1
> >  #define NR_IRQ_VECTORS NR_IRQS
> >  #endif
> >  #endif
> >  
> > +/* number of vectors available for external interrupts in Linux */
> > +#define NR_DEVICE_VECTORS    190
> > +
> >  #endif /* _ASM_IRQ_VECTORS_LIMITS_H */
> 
>  Can't these be 8 bytes when there are only 16 IRQs?

It actually should be constant regardless of IRQ count since it's used to 
provide a 'size' for the code (since it's indexed via C and an array).

>  And is there any way to special-case kernels built with max of two CPUs so there are
> only 24 IRQs allocated?  That seems to be the maximum for that case.

My 2 processor Xeon(HT) has 3 IOAPICs and currently has IRQ48 in use;

           CPU0       CPU1       CPU2       CPU3
  0:   30914980   30909270   30971083   30937399    IO-APIC-edge  timer
  1:      85361      88979      71974     119655    IO-APIC-edge  i8042
  8:      15080      10142      18495      20252    IO-APIC-edge  rtc
  9:          0          0          0          0   IO-APIC-level  acpi
 12:     559735     572493     467452     687913    IO-APIC-edge  i8042
 14:    3921063    2503225     767373    5974789    IO-APIC-edge  ide0
 15:     959112     612792     354578    1413090    IO-APIC-edge  ide1
 16:        657       2755        611       3090   IO-APIC-level  uhci_hcd
 19:    1088213   26750060    1845615       4948   IO-APIC-level  uhci_hcd, eth0
 20:      69658      19831     472397      55840   IO-APIC-level  eth3
 22:     239568     115070      53537     307576   IO-APIC-level  ide2, ide3
 23:      19206      70661      46499     481665   IO-APIC-level  eth4
 24:       1247      99474      43945     517674   IO-APIC-level  eth1
 28:    3950153    1827325    3359121    2111991   IO-APIC-level  EMU10K1
 48:     129473          0     616272      37889   IO-APIC-level  eth2

Thanks for all the feedback, i'll incorporate your suggestions.

	Zwane

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux