List Info

Thread: Old World interrupts again




Old World interrupts again
user name
2006-09-24 22:45:16
Hello,

since I'm hacking the PB3400c I ran into various issues, one
of them 
was that the built-in tlp didn't work, apparently because
the interrupt 
handler was never called.
Turned out the issue is a lot deeper than it looks like:
- OF lies about the IRQ pin used - claims 27 but uses 60
- the PB3400c has two interrupt controllers, our current
code finds 
only one and guess which one the tlp is hooked up to.

So what I did is to frob the tlp's IRQ line to 60 in
pci_machdep.c when 
finding a 2nd ohare interrupt controller and rewrite half of
extintr.c 
to support the following configurations:
- single PIC with 32 lines - Grand Central, ohare etc.
- single PIC with 64 lines - Heathrow
- two PICs with 32 lines each, cascaded - 2x ohare
other configurations can be easily added.
The patch is still a bit rough but it worked well for a
couple days on 
a beige G3 ( which has a Heathrow PIC ) and said PB3400c.

If nobody finds something wrong with the principle I'm going
to commit.

have fun
Michael


Old World interrupts again
user name
2006-09-24 23:53:09
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 24, 2006, at 18:45, Michael Lorenz wrote:

> If nobody finds something wrong with the principle I'm
going to commit.

Typo:
- - if (OF_finddevice("/bandit/pci106b,7") > 0)
{
+ if (OF_finddevice("/bandit/pci106b,7") != -1) {

DOH.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRRcaZspnzkX8Yg2nAQIs7Qf7B4Q+5cs447zsvW64GLCJTyKoOVW5
7/jM
QezAirM5t2O5s0k1j+oFPy2DPIHF0k+GjRl64ZBmKJrpoWNsD459/J4+2+5n
gfn2
d9iife7zz2veOp90XhKG4v2eWSXIVT5FSOM68Awjn72P4DtkBiM/HR57Vrzk
UQ7S
TLHesxtaw0Luso0KjfXLWzRDg3hpXo74exC45NyJn/eMLxWt4QzWWd7m47cV
8aDW
Qouifi/NlAMu3PRYxejP30dnfcgcQ8fgKc+hU/P8xMfUBJbSbg9HQMaJ0bD8
2eRH
++c37cy7oPOVqXvA3QJdoFE8zV0qn9jT5yzl34yQHFC++//wkOFy+Q==
=rwAH
-----END PGP SIGNATURE-----

Old World interrupts again
user name
2006-09-25 01:04:40
On Sun, Sep 24, 2006 at 06:45:16PM -0400, Michael Lorenz
wrote:
> So what I did is to frob the tlp's IRQ line to 60 in
pci_machdep.c when 
> finding a 2nd ohare interrupt controller and rewrite
half of extintr.c 
> to support the following configurations:

Looks good to me!

-allen

-- 
Allen Briggs  |  http://www.ninthw
onder.com/~briggs/  |  briggsninthwonder.com
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )