Subject: port-sparc/4639: xdm kill le0 (sparc)
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 12/04/1997 10:38:53
>Number:         4639
>Category:       port-sparc
>Synopsis:       xdm kill le0 (sparc)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec  4 10:50:01 1997
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Release:        sparc snapshot 1997/12/02
>Environment:

System: NetBSD wsrcc.com 1.3_BETA NetBSD 1.3_BETA (GENERIC) #40: Tue Dec  2 12:56:07 PST 1997     root@atomic.clock.org:/usr/src/sys/arch/sparc/compile/GENERIC sparc

>Description:
	xdm locks up the le0 driver with the following syslog:

    Dec  3 23:08:03 wsrcc /netbsd: le0: lost carrier on UTP port
    Dec  3 23:08:08 wsrcc /netbsd: le0: device timeout
    Dec  3 23:08:08 wsrcc /netbsd: le0: lost carrier on UTP port
    Dec  3 23:08:13 wsrcc /netbsd: le0: device timeout
    Dec  3 23:08:23 wsrcc /netbsd: le0: lost carrier on UTP port

This only happens if xdm is started.  If xdm isn't started, then le0
will work just fine (just like its always worked for me for approx 1
year under netbsd/sparc).

Note, this bug will *not* happen when X is stated via startx.  It only
happens under xdm.

    NetBSD 1.3_BETA (GENERIC) #36: Sun Nov 30 16:45:51 PST 1997
	root@atomic.clock.org:/usr/src/sys/arch/sparc/compile/GENERIC
    real mem = 66785280
    avail mem = 60170240
    using 815 buffers containing 3338240 bytes of memory
    bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0
    mainbus0 (root): SUNW,SPARCstation-5
    cpu0 at mainbus0: MB86904 @ 85 MHz, on-chip FPU
    cpu0: 16K instruction (32 b/l), 8K data (16 b/l): cache enabled
    obio0 at mainbus0
    clock0 at obio0 addr 0x71200000: mk48t08 (eeprom)
    timer0 at obio0 addr 0x71d00000 delay constant 40
    zs0 at obio0 addr 0x71100000 pri 12, softpri 6
    zstty0 at zs0 channel 0
    zstty1 at zs0 channel 1
    zs1 at obio0 addr 0x71000000 pri 12, softpri 6
    kbd0 at zs1 channel 0 (console)
    ms0 at zs1 channel 1
    [slavioconfig at obio0] addr 0x71800000 not configured
    auxreg0 at obio0 addr 0x71900000
    power0 at obio0 addr 0x71910000
    fdc0 at obio0 addr 0x71400000 pri 11, softpri 4: chip 82077
    fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
    iommu0 at mainbus0 addr 0x10000000: version 0x4/0x0, page-size 4096, range 64MB
    sbus0 at iommu0: clock = 21.250 MHz
    dma0 at sbus0 slot 5 offset 0x8400000: rev 2
    esp0 at dma0 slot 0x5 offset 0x8800000 pri 4: ESP200, 40MHz, SCSI ID 7
    scsibus0 at esp0: 8 targets
    probe(esp0:0:0): max sync rate 10.00Mb/s
    sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST12400N, 9400> SCSI2 0/direct fixed
    sd0: 2048MB, 2621 cyl, 19 head, 84 sec, 512 bytes/sect x 4194685 sectors
    probe(esp0:1:0): max sync rate 10.00Mb/s
    sd1 at scsibus0 targ 1 lun 0: <SEAGATE, ST12400N, 9400> SCSI2 0/direct fixed
    sd1: 2048MB, 2621 cyl, 19 head, 84 sec, 512 bytes/sect x 4194685 sectors
    probe(esp0:3:0): max sync rate 10.00Mb/s
    sd2 at scsibus0 targ 3 lun 0: <SEAGATE, ST5660N  SUN0535, 0644> SCSI2 0/direct fixed
    sd2: 520MB, 3002 cyl, 4 head, 88 sec, 512 bytes/sect x 1065664 sectors
    probe(esp0:6:0): max sync rate 4.23Mb/s
    cd0 at scsibus0 targ 6 lun 0: <TOSHIBA, XM-4101TASUNSLCD, 3424> SCSI2 5/cdrom removable
    SUNW,bpp at sbus0 slot 5 offset 0xc800000 not configured
    ledma0 at sbus0 slot 5 offset 0x8400010: rev 2
    le0 at ledma0 slot 0x5 offset 0x8c00000 pri 6: address 08:00:20:77:55:16
    le0: 8 receive buffers, 2 transmit buffers
    SUNW,CS4231 at sbus0 slot 4 offset 0xc000000 not configured
    power-management at sbus0 slot 4 offset 0xa000000 not configured
    cgsix0 at sbus0 slot 3 offset 0x0: SUNW,501-2253, 1280 x 1024, rev 11 (console)
    cgsix0: attached to /dev/fb
    root on sd1a dumps on sd1b
    root file system type: ffs



The X11 used was compiled from sources sup-ed from "xsrc" on the
afternoon of 12/2/97.  The only changes to a stock install were to
uncomment the following line in xc/config/cf/site.def , and copy in
the "Wraphelp.c" file.

/* #define HasXdmAuth YES */

>How-To-Repeat:

	as root type:

	PATH=$PATH:/usr/X11R6/bin /usr/X11R6/bin/xdm

>Fix:
	workaround: run startx

	sorry, I've NFI


>Audit-Trail:
>Unformatted: