NetBSD Problem Report #1478

From gnats  Tue Sep 19 06:23:43 1995
Received: from silakka.jmp.fi (root@[193.185.236.3]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id GAA10531 for <gnats-bugs@gnats.netbsd.org>; Tue, 19 Sep 1995 06:23:04 -0400
Message-Id: <199509191022.NAA00293@silakka.jmp.fi>
Date: Tue, 19 Sep 1995 13:22:44 +0300
From: "Jukka Marin" <jmarin@metso.jmp.fi>
To: gnats-bugs@gnats.netbsd.org
Subject: if_ed.c bug fix for port-amiga

>Number:         1478
>Category:       port-amiga
>Synopsis:       corrupted Ethernet addresses
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 19 06:35:01 +0000 1995
>Closed-Date:    Thu Mar 21 21:03:51 +0000 1996
>Last-Modified:  Thu Mar 21 21:05:54 +0000 1996
>Originator:     Jukka Marin
>Release:        <NetBSD-current source date> 950826
>Organization:
JMP-Electronics

>Environment:
Amiga, NetBSD-current, if_ed.c ethernet driver

System: NetBSD silakka.jmp.fi 1.0A NetBSD 1.0A (SILAKKA) #27: Mon Sep 18 15:51:26 EET DST 1995 jmarin@silakka.jmp.fi:/local/src/sys/arch/amiga/compile/SILAKKA amiga


>Description:
Hydra Ethernet driver if_ed.c gets a wrong Ethernet hardware address from
the Hydra card if there are interrupts pending on the card.  This prevents
reboots using /dev/reload if the machine is connected to an active network
and the network interface hasn't been shut down first.

The cause of the problem is the fact that the interrupt output of the 8390
Ethernet chip is connected to one address line of the Ethernet address PROM.
The the interrupt is active, the address PROM supplies the name of the
Hydra card designer instead of an Ethernet address.  The name doesn't
correspond to a valid Ethernet address, so the system will be inaccessible
fro the network until a reboot.

>How-To-Repeat:
Activate the network interface, start moving data in the network and do a
reboot using cp /netbsd /dev/reload.  If an interrupt occurs in the 8390
chip before the Ethernet address is read, the address read is wrong.  Note
the Ethernet address reported in the boot messages: 47:52:41:48:41:4d
('GRAHAM' in ASCII).
>Fix:
The 8390 chip's interrupts must be disabled and cleared before reading the
Ethernet address from PROM.

1c1
< /*    $NetBSD: if_ed.c,v 1.15 1995/07/02 00:16:03 jmarin Exp $        */
---
> /*    $NetBSD: if_ed.c,v 1.14 1995/07/02 00:16:03 mycroft Exp $       */
228,229d227
<       NIC_PUT(sc, ED_P0_IMR, 0x00); /* disable ints */
<       NIC_PUT(sc, ED_P0_ISR, 0xff); /* clear ints */


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: is 
State-Changed-When: Sun Mar 17 14:10:42 EST 1996 
State-Changed-Why:  
Asked the submitter if thi is still the case with -1.1 or newer, as part of 
this is already done. 
-is 
State-Changed-From-To: feedback->closed 
State-Changed-By: is 
State-Changed-When: Thu Mar 21 16:03:51 EST 1996 
State-Changed-Why:  
After talking to the submitter, the right place to insert the fix could 
be identified. Applied patch. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.