From: Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
To: ultralinux@vger.kernel.org
Subject: Re: Am I just crazy...?
Date: Fri, 26 Mar 1999 15:28:18 +0000 [thread overview]
Message-ID: <marc-linux-ultrasparc-92246269211509@msgid-missing> (raw)
In-Reply-To: <marc-linux-ultrasparc-92246168210534@msgid-missing>
>
> Either I'm absolutly nuts (a possibility), or something ain't right in the
> PCI stuff on sparc64... Here's why I'm leaning away from me being nuts.
>
> If I look at /proc/pci (yeah, i know, its depricated), I see that a
> device, lets pick the IDE controller for this one, Is on Bus 1, device 3,
> function 0. So I go to look at the data there, and I get
>
> [pjones@bart 01]$ od -tx1 -Ax 03.0
> 000000 95 10 46 06 05 00 80 02 03 8f 01 01 00 40 00 00
> 000010 01 00 c0 00 09 00 c0 00 11 00 c0 00 19 00 c0 00
> 000020 21 00 c0 00 00 00 00 00 00 00 00 00 95 10 46 06
> 000030 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 04
> 000040
>
> That says its on IRQ 4, right? (I'm actually somewhat unsure that its not
> saying IRQ of 02, becuase there appears to be some byte order wierdness
> here)
PCI_INTERRUPT_LINE is at offset 0x3c, AFAIK, so it is IRQ_LINE 0, IRQ_PIN 1,
I think.
But really, interrupts are not so straightforward on sparc64.
PCI bridge sends interrupt packets with identification which
device/function/pin is pending (and btw you can disable/enable each such
pin individually), so this is the second interrupt number (called INO), then
Linux receives a IRQ trap and based on this INO finds out which interrupt to
post, thus a third and final irq number comes in, this one is called PIL
(and this is the number you see in /proc/interrupts) and queues that PIL for
delivery.
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.2.4 on a sparc64 machine (3958.37 BogoMips)
___________________________________________________________________
next prev parent reply other threads:[~1999-03-26 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-26 15:14 Am I just crazy...? Peter Jones
1999-03-26 15:28 ` Jakub Jelinek [this message]
1999-03-26 16:06 ` Peter Jones
1999-03-26 21:50 ` David Miller
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=marc-linux-ultrasparc-92246269211509@msgid-missing \
--to=jj@sunsite.ms.mff.cuni.cz \
--cc=ultralinux@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.