Subject: sparc kernel (2.0_RCn) doesn't like -mcpu=v8?
To: None <port-sparc@netbsd.org>
From: Joachim Thiemann <jthiem@tsp.ece.mcgill.ca>
List: port-sparc
Date: 11/22/2004 00:25:59
--Apple-Mail-8-387391990
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Hello, my sparc just finished doing a build release, with sources 
updated a few days ago, so it's now at at RC5. My machine is a SS5 with 
the TurboSparc upgrade, dmesg attached.

I have the options CFLAGS+=-mcpu=v8 -mtune=v8 -pipe and the same for 
COPTS set in mk.conf.

It seems that a kernel compiled with those options hangs; the last line 
printed is
"power0 at obio0 slot 0 offset 0x910000 level 2", the screen (17E20, 
attached to cgsix) flashes briefly, and then it just hangs.  no 
keyboard combos do anything, until I see the watchdog timer reset and 
I'm back at the OK prompt.

A kernel compiled without the options works seemingly fine - and all 
userland compiled with the v8 options is fine, too.  There seems just 
one teeensy bit of the kernel that doesn't like the -mcpu=v8 setting.

Anyone has seen this before?

Thanks,
Joe.


--Apple-Mail-8-387391990
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="dmesg"
Content-Disposition: attachment;
	filename=dmesg

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0_RC5 (GENERIC) #1: Mon Nov 22 00:18:05 EST 2004
	root@eriador.primus.ca:/home/source/sys/arch/sparc/compile/GENERIC
total memory = 255 MB
avail memory = 246 MB
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0
mainbus0 (root): SUNW,SPARCstation-5: hostid 80375698
cpu0 at mainbus0: DVMA coherent : MB86907 @ 161 MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 16K data (32 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08
timer0 at obio0 slot 0 offset 0xd00000: delay constant 77
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200 (console input)
ms0 at zs1 channel 1: baud rate 1200
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000
power0 at obio0 slot 0 offset 0x910000 level 2
fdc0 at obio0 slot 0 offset 0x400000 level 11: no drives attached
iommu0 at mainbus0 addr 0x10000000: version 0x5/0x0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 20.125 MHz
dma0 at sbus0 slot 5 offset 0x8400000: DMA rev 2
esp0 at dma0 slot 5 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
bpp0 at sbus0 slot 5 offset 0xc800000 level 2 (ipl 3): DMA rev 2
ledma0 at sbus0 slot 5 offset 0x8400010: DMA rev 2
le0 at ledma0 slot 5 offset 0x8c00000 level 6: address 08:00:20:22:e8:99
le0: 8 receive buffers, 2 transmit buffers
audiocs0 at sbus0 slot 4 offset 0xc000000 level 9: CS4231
audio0 at audiocs0: full duplex
power-management at sbus0 slot 4 offset 0xa000000 not configured
hme0 at sbus0 slot 2 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
hme0: Ethernet address 08:00:20:22:e8:99
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
esp1 at sbus0 slot 2 offset 0x8800000 level 3 (ipl 5): FAS366/HME, 40MHz, SCSI ID 7
scsibus1 at esp1: 16 targets, 8 luns per target
cgsix0 at sbus0 slot 3 offset 0x0 level 9: SUNW,501-2325, 1152 x 900, rev 11 (console)
cgsix0: attached to /dev/fb
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <IBM-PCCO, DDRS-39130Y   !#, S97B> disk fixed
sd0: 8678 MB, 8387 cyl, 10 head, 211 sec, 512 bytes/sect x 17774160 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
sd1 at scsibus1 target 4 lun 0: <FUJITSU, M2954ESP SUN4.2G, 2848> disk fixed
sd1: 4094 MB, 3882 cyl, 16 head, 135 sec, 512 bytes/sect x 8385121 sectors
sd1: sync (100.00ns offset 15), 16-bit (20.000MB/s) transfers, tagged queueing
root on sd0a dumps on sd0b
root file system type: ffs

--Apple-Mail-8-387391990--