Port-sparc64 archive

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

Re: port/sparc64 known working on Netra X1?



On Fri, 7 May 2010 16:37:49 -0400
Dave McGuire <mcguire%neurotica.com@localhost> wrote:

> I ran 4.0.1 on an X1
Hmmm. I tried to boot a 4.0.1 kernel and got the same hang:

NetBSD 4.0.1 (INSTALL) #0: Wed Oct  8 01:13:04 PDT 2008
        
builds@wb32:/home/builds/ab/netbsd-4-0-1-RELEASE/sparc64/200810080053Z-obj/home/builds/ab/netbsd-4-0-1-RELEASE/src/sys/arch/sparc64/compile/INSTALL
[...]
psycho0 at mainbus0
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 0; PCI bus 0


I sprinkled printf(9)s around psycho_attach() and located the problem.
When I comment out the following lines:
                psycho_set_intr(sc, 15, psycho_powerfail,
                        &sc->sc_regs->power_int_map,
                        &sc->sc_regs->power_clr_int);
the machine boots fine. (Diskless, single user only. NFS-root is not
configured for more then single user.)

I continued with printf(9)s in psycho_set_intr() and it fails in the
last line:
printf("psycho_set_intr 9\n");
        *(ih->ih_map) |= INTMAP_V|(CPU_UPAID << INTMAP_TID_SHIFT);
printf("psycho_set_intr 10\n");
The first printf(9) gets to the console, then the machine hangs.

I noticed this difference: (psycho.c compiled with DEBUG defined and
printf(9)s added by me.)

This is a Netra X1:
psycho0 at mainbus0
psycho0: SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 0; PCI bus 0
psycho_attach 1
psycho_attach 2
extent `psycho mem' (0x0 - 0xffffffff), flags = 0x0
     0x0 - 0x3fff
     0x40000 - 0xbffff
     0x1000000 - 0x1ffffff
     0x60000000 - 0x7fffffff
     0xc0000000 - 0xdfffffff
     0xf0000000 - 0xffffffff
extent `psycho io' (0x0 - 0xffffff), flags = 0x0
     0x0 - 0x1022f
     0xc10000 - 0xffffff
psycho_attach 3

And this a Netra T1:
psycho0 at mainbus0
psycho0: SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 2; PCI bus 0
psycho_attach 1
psycho_attach 2
psycho_alloc_extent: no "available" property
psycho_alloc_extent: no "available" property
psycho_attach 3

Now I am lost. Maybe a sparc64 hardware guru can help. I have no clue
about the inner workings of (Ultra)SPARCs.
-- 


tschüß,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/



Home | Main Index | Thread Index | Old Index