NetBSD Problem Report #41619

From www@NetBSD.org  Sat Jun 20 02:48:05 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 98F2963C278
	for <gnats-bugs@gnats.netbsd.org>; Sat, 20 Jun 2009 02:48:05 +0000 (UTC)
Message-Id: <20090620024805.6109F63BC2E@www.NetBSD.org>
Date: Sat, 20 Jun 2009 02:48:05 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: gnats-bugs@NetBSD.org
Subject: current-Xhpc clash with wsmouse
X-Send-Pr-Version: www-1.0

>Number:         41619
>Category:       xsrc
>Synopsis:       current-Xhpc clash with wsmouse
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    xsrc-manager
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 20 02:50:00 +0000 2009
>Closed-Date:    Sat Aug 29 05:49:46 +0000 2009
>Last-Modified:  Fri Oct 08 17:50:02 +0000 2010
>Originator:     Yasushi Oshima
>Release:        NetBSD/hpcmips current 5.99.13
>Organization:
>Environment:
NetBSD hpcmips 5.99.13 
>Description:
Xhpc crashes after 64bit time_t merging.

It is necessary that hpcKeyboard uses new ioctl. 

this occures not only hpcmips, but also hpcsh, hpcarm.
In addition, some Xserver based on wsconsole will be the same  (ex, Xdreamacast) .


>How-To-Repeat:
run Xserver on hpcmips current,
and move mouse/pointer or touch-screen.

>Fix:
This is for Xhpc.

--- xfree/xc/programs/Xserver/hw/netbsd/hpc/hpcMouse.c        3 Jan 2004 01:09:19 -0000       1.1
+++ xfree/xc/programs/Xserver/hw/netbsd/hpc/hpcMouse.c
@@ -149,6 +149,16 @@
                    hpcPtrPriv.bedev->bedev = &hpcPtrPriv;
            }

+#ifdef WSMOUSEIO_SETVERSION
+           {
+               int version = WSMOUSE_EVENT_VERSION;
+               if (ioctl(hpcPtrPriv.fd, WSMOUSEIO_SETVERSION, &version) == -1) {
+                   hpcError ("hpcMouseProc ioctl WSMOUSEIO_SETVERSION");
+                   return !Success;
+               }
+           }
+#endif
+
            hpcPtrPriv.bemask = 0;
            hpcPtrPriv.brmask = 0;
            hpcPtrPriv.ebdown = 0;

>Release-Note:

>Audit-Trail:

Subject: CVS commit: xsrc/xfree/xc/programs/Xserver/hw/netbsd/hpc
From: Jun Ebihara <jun@NetBSD.org>
To: source-changes@NetBSD.org
Date: Wed, 26 Aug 2009 12:54:11 +0000
Reply-To: source-changes-d@NetBSD.org
X-Mailer: log_accum

Module Name:    xsrc
Committed By:   jun
Date:           Wed Aug 26 12:54:11 UTC 2009

Modified Files:
        xsrc/xfree/xc/programs/Xserver/hw/netbsd/hpc: hpcMouse.c

Log Message:
Fix #41619,current-Xhpc crash with wsmouse.
set WSMOUSEIO_SETVERSION if needed.

tested on NetBSD/hpcmips current.


State-Changed-From-To: open->feedback
State-Changed-By: jun@NetBSD.org
State-Changed-When: Wed, 26 Aug 2009 12:59:27 +0000
State-Changed-Why:
apply patch & tested.


From: Yasushi Oshima <oshima-ya@yagoto-urayama.jp>
To: gnats-bugs@NetBSD.org
Cc: xsrc-manager@netbsd.org, netbsd-bugs@netbsd.org, jun@NetBSD.org
Subject: Re: xsrc/41619 (current-Xhpc clash with wsmouse)
Date: Sat, 29 Aug 2009 12:19:08 +0900 (JST)

 > apply patch & tested.

 I tested it, and it works fine on my jornada690.
 (NetBSD/hpcsh-current 20090827)

 thanks,

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 29 Aug 2009 05:49:46 +0000
State-Changed-Why:
confirmed fixed, thanks


From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41619 CVS commit: xsrc/xfree/xc/programs/Xserver/hw/netbsd
Date: Fri, 8 Oct 2010 17:49:26 +0000

 Module Name:	xsrc
 Committed By:	tsutsui
 Date:		Fri Oct  8 17:49:26 UTC 2010

 Modified Files:
 	xsrc/xfree/xc/programs/Xserver/hw/netbsd/alpha: alphaMouse.c
 	xsrc/xfree/xc/programs/Xserver/hw/netbsd/dec: decMouse.c
 	xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast: dreamcastMouse.c
 	xsrc/xfree/xc/programs/Xserver/hw/netbsd/ews4800mips:
 	    ews4800mipsMouse.c
 	xsrc/xfree/xc/programs/Xserver/hw/netbsd/macppc: macppcMouse.c
 	xsrc/xfree/xc/programs/Xserver/hw/netbsd/newsmips: newsmipsMouse.c

 Log Message:
 Handle WSMOUSEIO_SETVERSION in legacy XFree based MD servers
 for workaround until eventual Xorg migration.
 Taken from Xhpc as noted in PR xsrc/41619, but tested only on dreamcast.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 \
     xsrc/xfree/xc/programs/Xserver/hw/netbsd/alpha/alphaMouse.c
 cvs rdiff -u -r1.1 -r1.2 \
     xsrc/xfree/xc/programs/Xserver/hw/netbsd/dec/decMouse.c
 cvs rdiff -u -r1.1 -r1.2 \
     xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastMouse.c
 cvs rdiff -u -r1.1 -r1.2 \
     xsrc/xfree/xc/programs/Xserver/hw/netbsd/ews4800mips/ews4800mipsMouse.c
 cvs rdiff -u -r1.1.1.1 -r1.2 \
     xsrc/xfree/xc/programs/Xserver/hw/netbsd/macppc/macppcMouse.c
 cvs rdiff -u -r1.1 -r1.2 \
     xsrc/xfree/xc/programs/Xserver/hw/netbsd/newsmips/newsmipsMouse.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>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.