NetBSD Problem Report #16686

Received: (qmail 232 invoked from network); 6 May 2002 10:31:17 -0000
Message-Id: <200205061031.g46AVAn02545@sidewinder.home.loc>
Date: Mon, 6 May 2002 12:31:11 +0200 (CEST)
From: Bernd Sieker <bernd@sidewinder.home.loc>
Subject: HP 433t panics when exiting Xhpux on A1416A framebuffer
X-Send-Pr-Version: 3.95

>Number:         16686
>Category:       port-hp300
>Synopsis:       HP 433t panics when exiting Xhpux on A1416A framebuffer
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-hp300-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 06 10:32:00 +0000 2002
>Closed-Date:    Sun Jan 20 06:27:54 +0000 2008
>Last-Modified:  Sun Jan 20 06:27:54 +0000 2008
>Originator:     Bernd Sieker
>Release:        NetBSD 1.5.3

System: NetBSD sidewinder 1.5.3 NetBSD 1.5.3 (SIDEWINDER) #0: Tue Apr 23 17:50:55 CEST 2002 bernd@sidewinder:/usr/src/sys/arch/hp300/compile/SIDEWINDER hp300
Architecture: m68k
Machine: hp300

HP9000 433t (upgraded 425t), 48MB, diskless, netbooting from NetBSD-1.5.3/i386 server.

kernel includes HPUX emulation, and the Xhpux Xserver was installed following the guide

When running 
Install the Xhpux binaries as outlined in,
start and exit the Xhpux Xserver on a Topcat A1416A framebuffer (maybe others).
Sometimes it causes a kernel panic on exit.
Not known.

As suggested in
I made a quick-and-dirty patch to grf.c to work around this problem.
This is _not_ a real fix to the problem, but might help some people work around
it for the time being. I'm not an experienced kernel hacker so someone else
will have to do The Right Thing here.

Gregory McGarry <> asked me to file a PR and make the
workaround available, and as I could not find a PR specific to this problem,
here it is.

Apply the patch, rebuild the kernel and hope for the best. Good Luck.

--- sys/arch/hp300/dev/grf.c.orig       Mon May  6 11:59:55 2002
+++ sys/arch/hp300/dev/grf.c    Mon May  6 12:07:04 2002
@@ -661,7 +661,9 @@
        if (grfdebug & GDB_MMAP)
                printf("grfunmap(%d): dev %x addr %p\n", p->p_pid, dev, addr);
-       if (addr == 0)
+       if (addr != (void *) 0x1000000) /* XXX: this is a workaround for using Topcat
+                                          XXX: 8 bit adapters (A1416A) with Xhpux,
+                                          XXX: may not work in any other configuration! */
                return(EINVAL);         /* XXX: how do we deal with this? */
        (void) (*gp->g_sw->gd_mode)(gp, GM_UNMAP, 0);
        size = round_page(gp->g_display.gd_regsize + gp->g_display.gd_fbsize);

State-Changed-From-To: open->closed
State-Changed-When: Sun, 20 Jan 2008 15:27:54 +0900
COMPAT_HPUX(8) was not functional and has been removed.
I hope we will have wscons based native Xserver some day.


NetBSD Home
NetBSD PR Database Search

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