NetBSD Problem Report #22392

Received: (qmail 24954 invoked by uid 605); 7 Aug 2003 13:22:52 -0000
Message-Id: <200308071322.h77DMldR021989@skysensor.sm.sony.co.jp>
Date: Thu, 7 Aug 2003 22:22:48 +0900 (JST)
From: Shoichi Miyake <smi@sm.sony.co.jp>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: smi@sm.sony.co.jp
To: gnats-bugs@gnats.netbsd.org
Subject: ZAO board ixpcom driver problem
X-Send-Pr-Version: 3.95

>Number:         22392
>Category:       port-arm
>Synopsis:       ZAO board ixpcom driver problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 07 13:23:00 +0000 2003
>Closed-Date:    Thu Aug 07 13:34:30 +0000 2003
>Last-Modified:  Thu Aug 07 13:34:30 +0000 2003
>Originator:     Shoichi Miyake
>Release:        NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD 1.6U (ZAO425_MD) #30: Thu Aug  7 20:34:57 JST 2003 smi@skysensor:/work/nb/arch/evbarm/obj/sys/arch/evbarm/compile/ZAO425_MD
Architecture: armeb
Machine: evbarm
>Description:
	In user mode, ixpcom driver doesn't work well, since output fifo
	configuration register is reset on every interrupt.
>How-To-Repeat:
	Make a ramdisk and mdset'ed ZAO425_MD kernel, and boot it,
	then single user shell is out of control.
>Fix:
	Drop some bit from sc_fcr like followng patch.

Index: arch/arm/xscale/ixp425_com.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/xscale/ixp425_com.c,v
retrieving revision 1.11
diff -u -r1.11 ixp425_com.c
--- arch/arm/xscale/ixp425_com.c	2 Jul 2003 10:40:46 -0000	1.11
+++ arch/arm/xscale/ixp425_com.c	7 Aug 2003 13:14:52 -0000
@@ -247,6 +247,7 @@

 	sc->sc_fcr = FCR_TRIGGER_32 | FCR_RESETTF | FCR_RESETRF | FCR_ENABLE;
 	bus_space_write_4(iot, ioh, IXP425_UART_FCR, sc->sc_fcr);
+	sc->sc_fcr = FCR_TRIGGER_32 | FCR_ENABLE;

 	if (iot == ixp4xx_comcn_sc.sc_iot
 		&& sc->sc_baseaddr == ixp4xx_comcn_sc.sc_baseaddr) {

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ichiro 
State-Changed-When: Thu Aug 7 13:33:52 UTC 2003 
State-Changed-Why:  
Module Name:	src 
Committed By:	ichiro 
Date:		Thu Aug  7 13:32:28 UTC 2003 

Modified Files: 
src/sys/arch/arm/xscale: ixp425_com.c 

Log Message: 
fix dont reset register when every interrupt. 
pointed by Shoichi Miyake port-arm/22392 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.