* Re: IRQ's (was Re: Linux Driver)
@ 2000-11-04 1:07 Robert M. Riches Jr.
0 siblings, 0 replies; 10+ messages in thread
From: Robert M. Riches Jr. @ 2000-11-04 1:07 UTC (permalink / raw)
To: axp-list
> Date: Fri, 03 Nov 2000 13:35:57 -0600
> From: "W Bauske" <wsb@paralleldata.com>
>
> It appears my dual PIII motherboard also uses interrupts above 15:
>
> CPU0 CPU1
> 0: 12903677 14055458 IO-APIC-edge timer
> 1: 1815 1917 IO-APIC-edge keyboard
> 2: 0 0 XT-PIC cascade
> 12: 522 96 IO-APIC-edge PS/2 Mouse
> 13: 0 0 XT-PIC fpu
> 14: 33744 26522 IO-APIC-edge ide0
> 15: 60 51 IO-APIC-edge ide1
> 18: 138908 135458 IO-APIC-level eth0
> 20: 152 152 IO-APIC-level ide4, ide5
> 22: 23588 23422 IO-APIC-level ide2
>
> So I suppose it would have similar problems with such cards. Course
> it doesn't do sound or modems.... Only disks.
>
> Seems odd though the distribution on my UP2K is quite
> uneven while the PIII board is very even.
>
> UP2K:
>
> CPU0 CPU1
> 1: 144 0 keyboard
> 8: 1686590099 1686589932 timer
> 12: 0 0 PS/2 Mouse
> 14: 462584 0 +ide0
> 19: 45 0 aic7xxx
> 23: 22879 0 ide5
> 27: 6310020 0 ide2, ide3
> 47: 125946091 0 eth0
>
>
> Possibly due to the kernel levels. I use 2.4.test9
> on the SMP PIII.
With Redhat 6.1 (kernel 2.2.13) on a UP2K with only one
processor, I get the following:
1: 1110144 keyboard
8: 1620749026 timer
12: 6547423 PS/2 Mouse
19: 1667072 aic7xxx
27: 106359573 +bttv
39: 911850 eth0
43: 32827 sym53c8xx
Actually, /proc/pci says I also have an Ensoniq ES1371 AudioPCI
at IRQ 31, a Voodoo 3 at IRQ 23, and a 3Com 3C905B at IRQ 39.
One of the problems I had with the sound card is both the 4Front
and ALSA drivers only look for IRQs up through 31, so I had to
put the sound card on the lower PCI bus.
So, it isn't the 2.4 kernel or the test kernel that makes IRQ
numbers a bit strange-looking on a UP2K.
Robert Riches
richesr1@inetarena.com
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Linux Driver
@ 2000-11-03 22:16 Maurice Hilarius
[not found] ` <Pine.OSF.4.05.10011031743390.1373-100000@caesar.iplink.net >
0 siblings, 1 reply; 10+ messages in thread
From: Maurice Hilarius @ 2000-11-03 22:16 UTC (permalink / raw)
To: axp-list
With regards to your message at 02:28 PM 11/3/00, Alvin Starr. Where you
stated:
> > It's a WinModem Tom.
>[snip]
>
>take a look at http://www.math.sunysb.edu/~comech/tools/PCImodems.html
>
>there are a list of "real" pci modems. I personaly have not tested any of
>these since I have an aversion to modems on cards(To reset the modem you
>sometimes have to power off the computer) and only use external modems.
>But I do agree with your sentiments.
>
>Alvin Starr || voice: (416)585-9971
Let's not forget that "it works on Intel" is NOT equal to "It works on Alpha".
Case in point: We just finished modifying the drivers for the Rocketport
serial multiport cards to work on Alpha. For years they were just dandy on
X86 boxes, with probably half the Linux and FreeBSD ISPs in the universe
using them for dialup servers. Alpha was another story.
Fortunately with the source, and the skills of some interested people it
got ported to Alpha.
God Bless Open Source!
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <Pine.OSF.4.05.10011031743390.1373-100000@caesar.iplink.net >]
* Re: Linux Driver [not found] ` <Pine.OSF.4.05.10011031743390.1373-100000@caesar.iplink.net > @ 2000-11-03 23:24 ` Maurice Hilarius 2000-11-03 23:50 ` Michal Jaegermann 0 siblings, 1 reply; 10+ messages in thread From: Maurice Hilarius @ 2000-11-03 23:24 UTC (permalink / raw) To: axp-list With regards to your message at 04:06 PM 11/3/00, Alvin Starr. Where you stated: > > Let's not forget that "it works on Intel" is NOT equal to "It works on > Alpha". > > Case in point: We just finished modifying the drivers for the Rocketport > > serial multiport cards to work on Alpha. For years they were just dandy on > > X86 boxes, with probably half the Linux and FreeBSD ISPs in the universe > > using them for dialup servers. Alpha was another story. > > Fortunately with the source, and the skills of some interested people it > > got ported to Alpha. >That is true. But there is a basic difference between 32/64 bit problems >and hardware that is dependant on specific software that is not availble. > >There are PCI modems that use serial chips connected to modem hardware >much like the ISA devices of old. These can be made to work with the >available resources. Modems that require special DSP code to run on the >main system CPU are MUCH harder to get to work. True, but sometimes the problem is that cards and chips are built that take some pretty liberal assumptions about PCI bus architecture. I remember watching Michal making dark mutterings about some of the Soundblaster PCI cards last year. Essentially they "assumed" that PCI would only use 16 bit addressing space.. > > God Bless Open Source! > >OH yah gotta love it. If it weren't for open source I would have to work >on M$ systems or possibly take up plumbing. Hmmm, I would rather do plumbing.. Hell, I would rather CLEAN plumbing! With our best regards, Maurice W. Hilarius Telephone: 01-780-456-9771 Hard Data Ltd. FAX: 01-780-456-9772 11060 - 166 Avenue mailto:maurice@harddata.com Edmonton, AB, Canada http://www.harddata.com/ T5X 1Y3 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux Driver 2000-11-03 23:24 ` Maurice Hilarius @ 2000-11-03 23:50 ` Michal Jaegermann 2000-11-03 19:35 ` IRQ's (was Re: Linux Driver) W Bauske 0 siblings, 1 reply; 10+ messages in thread From: Michal Jaegermann @ 2000-11-03 23:50 UTC (permalink / raw) To: axp-list On Fri, Nov 03, 2000 at 04:24:02PM -0700, Maurice Hilarius wrote: > I remember watching Michal making dark mutterings about some of the > Soundblaster PCI cards last year. Essentially they "assumed" that PCI would > only use 16 bit addressing space.. I think that you are thinking about four bits for interrupts thus making only 0 to 15 available. (Did one ever heard about a computer with such weird IRQ assignments like these? ............ 20: 144686 sym53c8xx 44: 351038 eth0 :-) Sound cards are infamous for cutting PCI spec corners. Such card which got IRQ 37 will think that is really on 5. Oops! Other devices seems to be quite a bit better in this respect. Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* IRQ's (was Re: Linux Driver) 2000-11-03 23:50 ` Michal Jaegermann @ 2000-11-03 19:35 ` W Bauske 2000-11-04 2:20 ` Michal Jaegermann 2000-11-04 6:51 ` Maurice Hilarius 0 siblings, 2 replies; 10+ messages in thread From: W Bauske @ 2000-11-03 19:35 UTC (permalink / raw) To: axp-list Michal Jaegermann wrote: > > On Fri, Nov 03, 2000 at 04:24:02PM -0700, Maurice Hilarius wrote: > > I remember watching Michal making dark mutterings about some of the > > Soundblaster PCI cards last year. Essentially they "assumed" that PCI would > > only use 16 bit addressing space.. > > I think that you are thinking about four bits for interrupts thus > making only 0 to 15 available. (Did one ever heard about a computer > with such weird IRQ assignments like these? > ............ > 20: 144686 sym53c8xx > 44: 351038 eth0 >:-) > > Sound cards are infamous for cutting PCI spec corners. Such card which > got IRQ 37 will think that is really on 5. Oops! Other devices seems to > be quite a bit better in this respect. > It appears my dual PIII motherboard also uses interrupts above 15: CPU0 CPU1 0: 12903677 14055458 IO-APIC-edge timer 1: 1815 1917 IO-APIC-edge keyboard 2: 0 0 XT-PIC cascade 12: 522 96 IO-APIC-edge PS/2 Mouse 13: 0 0 XT-PIC fpu 14: 33744 26522 IO-APIC-edge ide0 15: 60 51 IO-APIC-edge ide1 18: 138908 135458 IO-APIC-level eth0 20: 152 152 IO-APIC-level ide4, ide5 22: 23588 23422 IO-APIC-level ide2 So I suppose it would have similar problems with such cards. Course it doesn't do sound or modems.... Only disks. Seems odd though the distribution on my UP2K is quite uneven while the PIII board is very even. UP2K: CPU0 CPU1 1: 144 0 keyboard 8: 1686590099 1686589932 timer 12: 0 0 PS/2 Mouse 14: 462584 0 +ide0 19: 45 0 aic7xxx 23: 22879 0 ide5 27: 6310020 0 ide2, ide3 47: 125946091 0 eth0 Possibly due to the kernel levels. I use 2.4.test9 on the SMP PIII. Wes ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-03 19:35 ` IRQ's (was Re: Linux Driver) W Bauske @ 2000-11-04 2:20 ` Michal Jaegermann 2000-11-04 6:51 ` Maurice Hilarius 1 sibling, 0 replies; 10+ messages in thread From: Michal Jaegermann @ 2000-11-04 2:20 UTC (permalink / raw) To: axp-list On Fri, Nov 03, 2000 at 01:35:57PM -0600, W Bauske wrote: > Michal Jaegermann wrote: > > > > Sound cards are infamous for cutting PCI spec corners. Such card which > > got IRQ 37 will think that is really on 5. Oops! Other devices seems to > > be quite a bit better in this respect. > > > > It appears my dual PIII motherboard also uses interrupts above 15: Sure, but everybody knows that a sound card is on 7 or, in the worst case on 5 where it has to compete with a printer. (For the humour impaired - this was a joke; maybe a bitter a bit but still.) Not all soundcards will have that, or other, spec deviation. What I am saying is that with soundcards you have the best chance to run into issues like that. Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-03 19:35 ` IRQ's (was Re: Linux Driver) W Bauske 2000-11-04 2:20 ` Michal Jaegermann @ 2000-11-04 6:51 ` Maurice Hilarius 2000-11-04 8:31 ` W Bauske 1 sibling, 1 reply; 10+ messages in thread From: Maurice Hilarius @ 2000-11-04 6:51 UTC (permalink / raw) To: axp-list With regards to your message at 12:35 PM 11/3/00, W Bauske. Where you stated: >It appears my dual PIII motherboard also uses interrupts above 15: > > CPU0 CPU1 > 0: 12903677 14055458 IO-APIC-edge timer > 1: 1815 1917 IO-APIC-edge keyboard > 2: 0 0 XT-PIC cascade > 12: 522 96 IO-APIC-edge PS/2 Mouse > 13: 0 0 XT-PIC fpu > 14: 33744 26522 IO-APIC-edge ide0 > 15: 60 51 IO-APIC-edge ide1 > 18: 138908 135458 IO-APIC-level eth0 > 20: 152 152 IO-APIC-level ide4, ide5 > 22: 23588 23422 IO-APIC-level ide2 > >So I suppose it would have similar problems with such cards. Course >it doesn't do sound or modems.... Only disks. Actually it doesn't. It has 2 PCI buses. One is using the first 16 interrupts, the other the next 16. Still, all cards are getting 4 bit addresses. The BIOS reports numbers like this so they are distinguishable. Ultimately it all maps to one PCI controller through a PCI-PCI bridge chip. UP2K does the same, but is capable of assigning interrupts to much wider range of numbers. Note on your UP2K the one line: 47: 125946091 0 eth0 That's IRQ 47. Do you see any IRQ #'s reported above 32 on the P3 box? With our best regards, Maurice W. Hilarius Telephone: 01-780-456-9771 Hard Data Ltd. FAX: 01-780-456-9772 11060 - 166 Avenue mailto:maurice@harddata.com Edmonton, AB, Canada http://www.harddata.com/ T5X 1Y3 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-04 6:51 ` Maurice Hilarius @ 2000-11-04 8:31 ` W Bauske 2000-11-04 13:12 ` Rich Payne 2000-11-04 17:10 ` Michal Jaegermann 0 siblings, 2 replies; 10+ messages in thread From: W Bauske @ 2000-11-04 8:31 UTC (permalink / raw) To: axp-list Maurice Hilarius wrote: > > With regards to your message at 12:35 PM 11/3/00, W Bauske. Where you stated: > >It appears my dual PIII motherboard also uses interrupts above 15: > > > > CPU0 CPU1 > > 0: 12903677 14055458 IO-APIC-edge timer > > 1: 1815 1917 IO-APIC-edge keyboard > > 2: 0 0 XT-PIC cascade > > 12: 522 96 IO-APIC-edge PS/2 Mouse > > 13: 0 0 XT-PIC fpu > > 14: 33744 26522 IO-APIC-edge ide0 > > 15: 60 51 IO-APIC-edge ide1 > > 18: 138908 135458 IO-APIC-level eth0 > > 20: 152 152 IO-APIC-level ide4, ide5 > > 22: 23588 23422 IO-APIC-level ide2 > > > >So I suppose it would have similar problems with such cards. Course > >it doesn't do sound or modems.... Only disks. > Actually it doesn't. > It has 2 PCI buses. One is using the first 16 interrupts, the other the > next 16. Still, all cards are getting 4 bit addresses. > The BIOS reports numbers like this so they are distinguishable. Ultimately > it all maps to one PCI controller through a PCI-PCI bridge chip. > UP2K does the same, but is capable of assigning interrupts to much wider > range of numbers. > Note on your UP2K the one line: > 47: 125946091 0 eth0 > > That's IRQ 47. > Do you see any IRQ #'s reported above 32 on the P3 box? > Nope. Just surprised me when I saw them that way. Makes sense they could be split across the two processors but I thought PCI bridges don't generate additional IRQ's, they just feed across the ones that they're attached to. I'm not an EE guy so someone who knows can tell the real story. I guess it just depends on the chipset. This PIII uses the Serverworks LE chipset. Runs the same memory as a UP2K/XP1000. I don't remember if it has two PCI bus segments or not. I know it has both 64bit and 32bit slots so maybe they're separated that way?? Also, if they're split, how come both cpus can service all the interrupts? Must be something related to that IO-APIC description... This is a little off topic but I thought the comparison was interesting. The lack of interrupts on the second cpu of the UP2K I find a bit worrisome. Implies that the interrupts aren't split so one processor is more loaded if you do heavy I/O or network accesses. I'd prefer the overhead be spread across both cpus. Thats because my codes assume both cpus are equal and by only putting overhead on one cpu, it slows BOTH cpus down to that slower level, essentially wasting cycles on the second cpu because it can get it's workload done more quickly than the other cpu servicing interrupts... Wes ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-04 8:31 ` W Bauske @ 2000-11-04 13:12 ` Rich Payne 2000-11-09 3:56 ` Jay Estabrook 2000-11-04 17:10 ` Michal Jaegermann 1 sibling, 1 reply; 10+ messages in thread From: Rich Payne @ 2000-11-04 13:12 UTC (permalink / raw) To: axp-list > This is a little off topic but I thought the comparison > was interesting. The lack of interrupts on the second cpu > of the UP2K I find a bit worrisome. Implies that the > interrupts aren't split so one processor is more loaded if you > do heavy I/O or network accesses. I'd prefer the overhead > be spread across both cpus. Thats because my codes assume > both cpus are equal and by only putting overhead on one > cpu, it slows BOTH cpus down to that slower level, essentially > wasting cycles on the second cpu because it can get it's > workload done more quickly than the other cpu servicing > interrupts... This is fixed in 2.4. There may even be patches against 2.2 that distribute the interupts. I think it was Andrea Arcangeli who did the work. --rdp -- Rich Payne rpayne@alphalinux.org www.alphalinux.org ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-04 13:12 ` Rich Payne @ 2000-11-09 3:56 ` Jay Estabrook 2000-11-09 6:17 ` Paul Jakma 0 siblings, 1 reply; 10+ messages in thread From: Jay Estabrook @ 2000-11-09 3:56 UTC (permalink / raw) To: axp-list On Sat, Nov 04, 2000 at 08:12:00AM -0500, Rich Payne wrote: > > > This is a little off topic but I thought the comparison > > was interesting. The lack of interrupts on the second cpu > > of the UP2K I find a bit worrisome. Implies that the > > interrupts aren't split so one processor is more loaded if you > > do heavy I/O or network accesses. I'd prefer the overhead > > be spread across both cpus. Thats because my codes assume > > both cpus are equal and by only putting overhead on one > > cpu, it slows BOTH cpus down to that slower level, essentially > > wasting cycles on the second cpu because it can get it's > > workload done more quickly than the other cpu servicing > > interrupts... > > This is fixed in 2.4. There may even be patches against 2.2 that > distribute the interupts. I think it was Andrea Arcangeli who > did the work. Yes, the original patches were Andrea's, but they actually broadcast the interrupt to all the CPUs. This is wasteful/inefficient, so Richard Henderson completed the work by doling out interrupts to CPUs on a sort-of static round-robin allocation at register_interrupt() time, which however can be overridden via command-line args (and I think the overriding code came from Andrea :-). --Jay++ ----------------------------------------------------------------------------- Jay A Estabrook Alpha Engineering - LINUX Project Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080 200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com ----------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-09 3:56 ` Jay Estabrook @ 2000-11-09 6:17 ` Paul Jakma 2000-11-09 15:26 ` Jay Estabrook 0 siblings, 1 reply; 10+ messages in thread From: Paul Jakma @ 2000-11-09 6:17 UTC (permalink / raw) To: axp-list On Wed, 8 Nov 2000, Jay Estabrook wrote: > > Richard Henderson completed the work by doling out interrupts to CPUs > on a sort-of static round-robin allocation at register_interrupt() how is IRQ distribution done on i386 SMP? iirc it's a lot more dynamic on it, (irq's are routed to cpu randomly?) what's holding the alpha port back from a similar dynamic IRQ scheme? i imagine alpha PIC must be at least as sophisticated as i386 APIC if not more.. :) > time, which however can be overridden via command-line args (and I > think the overriding code came from Andrea :-). > > --Jay++ > regards, -- Paul Jakma paul@clubi.ie PGP5 key: http://www.clubi.ie/jakma/publickey.txt ------------------------------------------- Fortune: When some people discover the truth, they just can't understand why everybody isn't eager to hear it. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-09 6:17 ` Paul Jakma @ 2000-11-09 15:26 ` Jay Estabrook 0 siblings, 0 replies; 10+ messages in thread From: Jay Estabrook @ 2000-11-09 15:26 UTC (permalink / raw) To: axp-list On Thu, Nov 09, 2000 at 06:17:47AM +0000, Paul Jakma wrote: > On Wed, 8 Nov 2000, Jay Estabrook wrote: > > > > > Richard Henderson completed the work by doling out interrupts to CPUs > > on a sort-of static round-robin allocation at register_interrupt() > > how is IRQ distribution done on i386 SMP? iirc it's a lot more > dynamic on it, (irq's are routed to cpu randomly?) That's the way the IO-APIC hardware works, IIRC; only one CPU gets it, and the APIC tries to use some heuristic to determine which one. I'm not really sure I want the chip designers to decide something like that for *me*... ;-} > what's holding the alpha port back from a similar dynamic IRQ > scheme? i imagine alpha PIC must be at least as sophisticated as i386 > APIC if not more.. :) Our hardware doesn't work that way, and I'm not sure we'd want the "sophistication"; ask some of the folks who've had to make that code work how hard it was... :-\ As I said, Andrea's first working attempts used a broadcast of the interrupt to *all* CPUs, with the first one "getting there" doing the processing. Unfortunately, on Alpha, there's a *lot* more overhead in terms of delivering an interrupt, so those CPUs that do NOT get there first take a real hit in terms of overhead (pipeline flushing, PAL mode entry/exit, etc). --Jay++ ----------------------------------------------------------------------------- Jay A Estabrook Alpha Engineering - LINUX Project Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080 200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com ----------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IRQ's (was Re: Linux Driver) 2000-11-04 8:31 ` W Bauske 2000-11-04 13:12 ` Rich Payne @ 2000-11-04 17:10 ` Michal Jaegermann 1 sibling, 0 replies; 10+ messages in thread From: Michal Jaegermann @ 2000-11-04 17:10 UTC (permalink / raw) To: axp-list On Sat, Nov 04, 2000 at 02:31:19AM -0600, W Bauske wrote: > Maurice Hilarius wrote: > > .... > > Nope. Just surprised me when I saw them that way. > Makes sense they could be split across the two processors A number of PCI busses and a number of processors are two independent variables. It is true that higher end machines are more likely have more PCI busses but also every CardBus laptop will have a bridge and what amounts to the second PCI bus. I do not recall hearing about dual processor laptops yet. Or I am just not paying enough attention? There is quite a few more machines around with a single processor and more that one PCI bus. The above was just an example. > > The lack of interrupts on the second cpu > of the UP2K I find a bit worrisome. Implies that the > interrupts aren't split so one processor is more loaded if you > do heavy I/O or network accesses. You are right to worry about that and this is a deficiency in a 2.2 kernel. 2.4 will have that fixed and there should be around patches for 2.2 to do that as well. It is not critical in that sense that if your second CPU has some work to do it should be busy anyway but it may be important. Keep in mind that spreading interrupt servicing is not without costs (you have to worry more about TLBs, and poisoning caches, and synchronization, ... ). Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2000-11-09 15:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-04 1:07 IRQ's (was Re: Linux Driver) Robert M. Riches Jr.
-- strict thread matches above, loose matches on Subject: below --
2000-11-03 22:16 Linux Driver Maurice Hilarius
[not found] ` <Pine.OSF.4.05.10011031743390.1373-100000@caesar.iplink.net >
2000-11-03 23:24 ` Maurice Hilarius
2000-11-03 23:50 ` Michal Jaegermann
2000-11-03 19:35 ` IRQ's (was Re: Linux Driver) W Bauske
2000-11-04 2:20 ` Michal Jaegermann
2000-11-04 6:51 ` Maurice Hilarius
2000-11-04 8:31 ` W Bauske
2000-11-04 13:12 ` Rich Payne
2000-11-09 3:56 ` Jay Estabrook
2000-11-09 6:17 ` Paul Jakma
2000-11-09 15:26 ` Jay Estabrook
2000-11-04 17:10 ` Michal Jaegermann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox