Subject: port-arm/23005: /dev/console dies by ixp425_comclose
To: None <gnats-bugs@gnats.netbsd.org>
From: Shoichi Miyake <smi@sm.sony.co.jp>
List: netbsd-bugs
Date: 09/29/2003 21:17:59
>Number:         23005
>Category:       port-arm
>Synopsis:       /dev/console dies by ixp425_comclose
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 29 12:19:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Shoichi Miyake
>Release:        NetBSD 1.6W
>Organization:
Sony Corporation
>Environment:
System: NetBSD zao1 1.6W NetBSD 1.6W (ZAO425) #31: Mon Sep 29 20:34:21 JST 2003  smi@mandolin:/work/nb/arch/evbarm/obj/sys/arch/evbarm/compile/ZAO425 evbarm
Architecture: arm
Machine: evbarm
>Description:
	Uart port configured as /dev/console dies by ixp425_comclose()
since ixp425_com_shutdown() disables that port completly.
>How-To-Repeat:
	Go to multi user mode and see whether getty on /dev/console
runs or not.
>Fix:
	Add a missing bit into sc_ier.
Index: arch/arm/xscale/ixp425_com.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/xscale/ixp425_com.c,v
retrieving revision 1.13
diff -u -c -r1.13 ixp425_com.c
*** arch/arm/xscale/ixp425_com.c	2003/08/07 16:26:55	1.13
--- arch/arm/xscale/ixp425_com.c	2003/09/29 11:33:22
***************
*** 686,692 ****
  	/* Turn off interrupts. */
  #if 1
  	if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) {
! 		sc->sc_ier = IER_RAVIE | IER_RTOIE;
  	} else
  		sc->sc_ier = IER_UUE;
  	bus_space_write_4(sc->sc_iot, sc->sc_ioh, IXP425_UART_IER,
--- 686,692 ----
  	/* Turn off interrupts. */
  #if 1
  	if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) {
! 		sc->sc_ier = IER_UUE | IER_RAVIE | IER_RTOIE;
  	} else
  		sc->sc_ier = IER_UUE;
  	bus_space_write_4(sc->sc_iot, sc->sc_ioh, IXP425_UART_IER,
>Release-Note:
>Audit-Trail:
>Unformatted: