From: Grant Grundler <grundler@cup.hp.com>
To: Helge Deller <deller@gmx.de>
Cc: parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] /proc/interrupts
Date: Wed, 18 Oct 2000 09:36:31 -0700 [thread overview]
Message-ID: <200010181636.JAA14184@milano.cup.hp.com> (raw)
In-Reply-To: Your message of "Wed, 18 Oct 2000 03:41:22 PDT." <00101803412200.00279@P100>
Hi Helge!
Helge Deller wrote:
...
> 1. The until now used virtual IRQ's gets new numbers and increments in every
> region by 32 for parisc32 and 64 for parisc64. The old IRQ regions
> incremented by 256.
prumpf did something like this too.
It's better - but IMHO not "optimal".
I've been thinking about an "optimal" solution but haven't had a chance
to try it out. Here's my proposal:
o "invent" (yeah...I heard you, Carly! :^) a global "action" table.
o All IRQ allocation will get an "action" entry from the global table.
o And each IRQ region is a table of "action" pointers.
o "busy" IRQ region entries point to entries in the global "action" table.
"action" is a IRQ handler + arguments stuffed in a data structure.
Here are some examples of why I think this is "optimal":
o Older Workstations typically only need 10-20 "action" entries in
2-4 IRQ regions.
o A500/C3000/J5000/L2000 might need about the same number of "action"
entries but spread over 8 IRQ regions (4 CPU + 4 I/O Sapic).
o N-4000 might use over 60 entries in 22 IRQ regions!
(12*4+8+5) That's 12 PCI Slots, 8 CPUs, and 5 built-in PCI devices
spread over 8 CPU + 14 I/O Sapic.
o I don't know the limits of Superdome which was just announced.
I've been asked about running linux on Superdome and my reply is
first get it running on N-class (which isn't currently "in-plan"
officially).
(Note: Even though today we only allocate one IRQ region for all CPUs,
in the future I'd like to see each CPU get it's own region.)
> 2. since we now shift by values of 5 (parisc32) or 6 (parisc64) bits, the
> time needed to calculate the offsets may have changed. This needs to be
> inspected.
I don't think this will be an issue.
I doubt a shift op takes longer (as measured in cycles) to shift more/less.
> 3. the new algorithm needs less memory than before.
yup - hypothetically by 4x or 8x. That's a good thing.
> By default I left the current behaviour in CVS, but you may activate the new
> algorithm by changing the "#if 0" to "#if 1" in asm-parsic/irq.h and tell me
> what you think.
That's cool...I'll enable it here for testing.
Remember - no news is good news :^)
thanks!
grant
Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253
prev parent reply other threads:[~2000-10-18 16:30 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-14 5:50 [parisc-linux] Troubles following the 'recipe' Brian Poole
2000-10-14 7:50 ` Alan Modra
2000-10-14 20:10 ` Brian Poole
2000-10-14 22:00 ` David Huggins-Daines
2000-10-14 22:12 ` Brian Poole
2000-10-15 0:38 ` Alan Modra
2000-10-15 0:59 ` Brian Poole
2000-10-15 3:53 ` Alan Modra
2000-10-14 20:26 ` John David Anglin
2000-10-14 21:18 ` Brian Poole
2000-10-14 21:30 ` John David Anglin
2000-10-16 4:32 ` Grant Grundler
2000-10-16 12:08 ` Alan Modra
2000-10-17 8:34 ` Bruno Vidal
2000-10-17 9:08 ` Alan Modra
2000-10-17 15:19 ` David Huggins-Daines
2000-11-16 20:16 ` [parisc-linux] Troubles with read only file system Thomas Marteau
2000-10-16 19:24 ` Grant Grundler
2000-10-18 1:41 ` [parisc-linux] /proc/interrupts Helge Deller
2000-10-18 16:36 ` Grant Grundler [this message]
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=200010181636.JAA14184@milano.cup.hp.com \
--to=grundler@cup.hp.com \
--cc=deller@gmx.de \
--cc=parisc-linux@thepuffingroup.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox