Re: [PATCH v2] input: constify valuators passed in by input drivers.

2010-08-11 Thread Tiago Vignatti
Hi, On Tue, Aug 10, 2010 at 07:28:30AM +0200, ext Peter Hutterer wrote: On Tue, Aug 10, 2010 at 03:05:48PM +1000, Daniel Stone wrote: malloc() in a signal handler ftl urgh, yes, thanks. ... I guess you could just have a static int copied_valuators[MAX_VALUATORS]. I thought about

Re: [PATCH v2] input: constify valuators passed in by input drivers.

2010-08-11 Thread Fernando Carrijo
Tiago Vignatti tiago.vigna...@nokia.com wrote: Hi, On Tue, Aug 10, 2010 at 07:28:30AM +0200, ext Peter Hutterer wrote: On Tue, Aug 10, 2010 at 03:05:48PM +1000, Daniel Stone wrote: malloc() in a signal handler ftl urgh, yes, thanks. ... I guess you could just have a

Re: [PATCH v2] input: constify valuators passed in by input drivers.

2010-08-11 Thread Adam Jackson
On Wed, 2010-08-11 at 14:56 -0300, Fernando Carrijo wrote: If I'm not mistaken, the situation Daniel relates has more to do with the signal handler being unaware of the routine it interrupts. Thus, if during heap memory allocation a function is preempted by a signal handler that also

Re: [Xcb] X11R7.6 katamari planning

2010-08-11 Thread Barton C Massey
In message sa3wrrxcx7j@cigue.easter-eggs.fr you wrote: On Wed, Aug 11 2010, Julien Cristau wrote: It would be good to have a libxcb 1.7 release by then too. I'll take care of that. Thanks much. Bart ___ xorg-devel@lists.x.org:

Re: input thread [was Re: [PATCH v2] input: constify valuators passed in by input drivers.]

2010-08-11 Thread Keith Packard
On Wed, 11 Aug 2010 14:04:08 -0400, Adam Jackson a...@nwnk.net wrote: Threads will help when we're in D state, but only to the extent that they're not blocked by the main server. If the server is holding a read lock for the input queue, we're still going to lose if we try to write to it from

Re: [PATCH 2/4] CheckDeviceGrabs: Delete redundant pWin-optional test.

2010-08-11 Thread Peter Hutterer
On Wed, Aug 04, 2010 at 02:23:03PM -0700, Jamey Sharp wrote: CheckPassiveGrabsOnWindow returns FALSE if pWin-optional is NULL, because wPassiveGrabs uses wUseDefault, so don't bother checking at the caller. Signed-off-by: Jamey Sharp ja...@minilop.net Cc: Peter Hutterer

Re: protocol driver releases needed for Xorg 1.9

2010-08-11 Thread Peter Hutterer
On Tue, Aug 10, 2010 at 12:34:04AM -0700, Alan Coopersmith wrote: xf86-input-evdev: 37 commits since 2.4.0 xf86-input-keyboard: 29 commits since 1.4.0 xf86-input-mouse: 31 commits since 1.5.0, including Xorg 1.9 devPrivates fixes I don't expect much to come for

[RFC] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC when calling the function of clock_gettime in xserver/os/util.c

2010-08-11 Thread ykzhao
Hi, All I meet with an issue about posix timer in course of testing media workload on one machine. On this machine the HPET clock source is selected as TSC stops in course of entering the deep C-state. The issue is that the function of read_hpet will be called more than 2 every

RE: what is the effect of RADEON_ALIGN (macros) in ATI-driver?

2010-08-11 Thread Cui, Hunk
Hi, Tom, But I'm confused by the code, not really sure of the calculate: YDstPitch = (width + 31) ~31; UVDstPitch = ((width 1) + 15) ~15; '(variable + X) ~X' is a common idiom to align the variable to the next multiple of (X+1). Thank you for your hints, Could you give

[PATCH:xf86-input-keyboard] sun_kbd: Add mappings for Hangul and Hanja keys on Korean keyboard

2010-08-11 Thread Alan Coopersmith
From: Osamu Sayama osamu.say...@oracle.com Fixes Sun bug 6897086: Hangul and Hanja keys on Korean PC 105 keyboard are not recognized http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6897086 Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/sun_kbdMap.c | 15

Re: what is the effect of RADEON_ALIGN (macros) in ATI-driver?

2010-08-11 Thread Matt Turner
On Wed, Aug 11, 2010 at 10:55 PM, Cui, Hunk hunk@amd.com wrote:        I want to know why the variable should add X (in '(variable + X)'), what is the mainly intention? What are the different with HW operation? Good question. If I understand it correctly, I think I can help. Given some

RE: What kind of situation trigger the alloc_surface free_surface function in video.c (video-driver)

2010-08-11 Thread Cui, Hunk
Hi, Alex, Many thanks for your hints, about the xawtv, only know it is a television viewer-X11 application, I will try to it, any other info, I will reform to you. :) Thanks, Hunk Cui -Original Message- From: Alex Deucher [mailto:alexdeuc...@gmail.com] Sent: Thursday,

[PATCH:xf86-input-mouse] MouseCtrl doesn't need to save values we never use

2010-08-11 Thread Alan Coopersmith
Makes it into a no-op, like evdev's PtrCtrl function, now that mouse acceleration is completely handled in dix. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/mouse.c | 18 +++--- src/xf86OSmouse.h |3 --- 2 files changed, 3 insertions(+), 18

Fwd: Profiling Xorg

2010-08-11 Thread Matthew Fincham
Hi I sent the email below to the Xorg mailing list, but haven't had a response. Can anyone point me in the right direction for profiling Xorg? Many thanks Matthew Fincham Original Message Subject:Profiling Xorg Date: Tue, 10 Aug 2010 08:23:58 +0200 From:

Re: [RFC] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC when calling the function of clock_gettime in xserver/os/util.c

2010-08-11 Thread Daniel Stone
Hi, On Thu, Aug 12, 2010 at 09:47:23AM +0800, ykzhao wrote: The issue is that the function of read_hpet will be called more than 2 every second when playing video workload on one machine. And the matter is that it will take about 1800 cycles to read the HPET counter(About 1us

Re: Fwd: Profiling Xorg

2010-08-11 Thread Daniel Stone
On Thu, Aug 12, 2010 at 07:17:36AM +0200, Matthew Fincham wrote: I sent the email below to the Xorg mailing list, but haven't had a response. Can anyone point me in the right direction for profiling Xorg? I can't really help you with NetBSD not supporting sysprof or oprofile, but to do a -g