From lindroos@nls.fi  Fri Oct  4 01:21:44 2002
Return-Path: <lindroos@nls.fi>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8A82737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  4 Oct 2002 01:21:44 -0700 (PDT)
Received: from darth.nls.fi (darth.nls.fi [195.156.38.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8B57043E42
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  4 Oct 2002 01:21:39 -0700 (PDT)
	(envelope-from lindroos@nls.fi)
Received: from can.nls.fi (can.nls.fi [194.252.80.16])
	by darth.nls.fi (8.12.2/8.12.2) with ESMTP id g948LcBZ019886
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 4 Oct 2002 11:21:38 +0300 (EEST)
Received: from nls.fi (caligula.nls.fi [194.252.83.98])
	by can.nls.fi (8.10.2/8.10.2) with ESMTP id g948LcR25480
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 4 Oct 2002 11:21:38 +0300 (EET DST)
Received: (from lindroos@localhost)
	by nls.fi (8.12.3/8.12.3/Submit) id g948LZGT000725;
	Fri, 4 Oct 2002 11:21:35 +0300 (EEST)
Message-Id: <200210040821.g948LZGT000725@nls.fi>
Date: Fri, 4 Oct 2002 11:21:35 +0300 (EEST)
From: Dennis Lindroos <lindroos@nls.fi>
Reply-To: Dennis Lindroos <lindroos@nls.fi>
To: FreeBSD-gnats-submit@freebsd.org
Cc: dns@nls.fi
Subject: rl(8) driver causes unaligned access trap on alpha
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43654
>Category:       alpha
>Synopsis:       rl(8) driver causes unaligned access trap on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 04 01:30:02 PDT 2002
>Closed-Date:    Fri Oct 04 10:41:49 PDT 2002
>Last-Modified:  Fri Oct 04 10:41:49 PDT 2002
>Originator:     Dennis Lindroos
>Release:        FreeBSD 4.6.2-RELEASE alpha
>Organization:
National Land Survey of Finland
>Environment:
System: FreeBSD Alpha-flight.nls.fi 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #5: Fri Oct 4 08:29:34 EEST 2002 root@Alpha-flight.nls.fi:/usr/src/sys/compile/IPANA alpha
Hardware model: AlphaServer 1000A 5/400
Ethernet card: Accton MPX 5038B PCI

>Description:
In sys/pci/if_rl.c function rl_stop(), the expression:
CSR_WRITE_4(sc, RL_TXADDR0 + i, 0x0000000);
causes a fatal trap on alpha systems, when the rl(4) interface is up and
running.

>How-To-Repeat:
Enable the interface and set it to 100BaseTX full-duplex, then
try something like spray(8) with options -c1024 -l4096 a few times.
Probably many other network-intensive application will trigger the bug.

>Fix:
Replacing the expression mentioned in the description above with:
CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(u_int32_t)), 0x0000000);
should work.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Fri Oct 4 10:41:10 PDT 2002 
State-Changed-Why:  

Duplicate of PR 43653. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43654 
>Unformatted:
