Re: [PATCH sis 00/15] a bunch of cleanups, and a taste of things to come

2011-10-30 Thread Jeremy Huddleston
Wow, I wish I knew about this series before I started cleaning up the drivers... Where was this series sent? I don't see it in my xorg-devel log. By all means, take it over. Do you want to maintain it? If so, get yourself an fd.o account, so you can get yourself commit access to the driver.

Re: flagging implicit function declarations as errors (was: [PATCH] pci: Restore pciTag as a deprecated function)

2011-10-30 Thread Jeremy Huddleston
On Oct 20, 2011, at 15:22, Alan Coopersmith wrote: > I do see some warnings in build logs that it would turn into errors, and they > all seem to be in drivers, and frankly, only the first two of them do I really > care about: > > "radeon_accel.c", line 433: warning: implicit function declaration

[PATCH xf86-video-sis] Convert use of LookupWindow to dixLookupWindow

2011-10-29 Thread Jeremy Huddleston
Signed-off-by: Jeremy Huddleston --- 1) Is DixReadAccess the right access for these? 2) What conditional CPP logic should I use for doing LookupWindow on older servers? src/sis_driver.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sis_driver.c b/src

Re: [PATCH] xfree86: add nouveau as the first automatic driver for NVIDIA hardware

2011-10-29 Thread Jeremy Huddleston
Seems like "the right thing" to me Reviewed-by: Jeremy Huddleston On Oct 29, 2011, at 09:40, Anssi Hannula wrote: > On 20.04.2011 14:34, Anssi Hannula wrote: >> From 003e32786053eb01e2a84697487aa134214f140c Mon Sep 17 00:00:00 2001 >> From: Anssi Hannula >>

Re: "Blocker" bugs with patches or workarounds

2011-10-29 Thread Jeremy Huddleston
For future reference, please send patches to the list as a new thread, preferibly with git-send-email or git-format-patch and your own mailer. On Oct 29, 2011, at 12:54, Michal Suchanek wrote: > Hello, > > Sending the patch for bug 41653. > > The following changes since commit 91131037a2d2e070

Re: [PATCH] pci: Add identifier for Cirus Logic GD-7556

2011-10-29 Thread Jeremy Huddleston
On Oct 29, 2011, at 14:01, Tormod Volden wrote: > On Mon, Oct 17, 2011 at 10:53 AM, Jeremy Huddleston > wrote: >> So, what's the point of having all these in common? Why don't they just >> live in the drivers? It seems silly to have these defined in the serv

Re: [PATCH 2.5/5] matchDriverFromFiles: use one snprintf instead of strncpy/cat series

2011-10-29 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 29, 2011, at 10:39, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith > --- > > Split out of the prior patch "Convert strncpy/strncat to strlcpy/strlcat" > > hw/xfree86/common/xf86pciBus.c |5 ++--- > 1 fi

Re: [PATCH 1/6] Workaround conflict between Solaris & Xorg "list.h" definitions

2011-10-29 Thread Jeremy Huddleston
What about namespacing the ones in xserver instead? I'm sure it's possible they could conflict with other platforms as well. On Oct 29, 2011, at 10:24, Alan Coopersmith wrote: > On 10/29/11 00:16, Jeremy Huddleston wrote: >> Yuck. Is there really no other way to do that? W

Re: [PATCH 4/6] Don't require ld -wrap for tests that don't need it

2011-10-29 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston Why does xi2 "need" -wrap? Can we do these tests in a more portable way with some clever macros? On Oct 28, 2011, at 17:34, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith > --- > test/Makefile.am |2 -- > 1 files chang

Re: [PATCH 3/6] Enable memory checking during unit testing

2011-10-29 Thread Jeremy Huddleston
For darwin, please also add: DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib On Oct 28, 2011, at 17:34, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith > --- > configure.ac | 16 > test/Makefile.am |1 + > test/xi2/Makefile.am |1 + > 3 files change

Re: [PATCH 3/5] Convert dmxSetDefaultFontPath to use strdup instead of malloc+strncpy

2011-10-29 Thread Jeremy Huddleston
For all of them, Reviewed-by: Jeremy Huddleston In this one, it looks like fp should be a (const char *) also. If you throw that in there in a followup patch, consider it r-b as well. On Oct 28, 2011, at 21:41, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith > --- &g

Re: [PATCH 5/6] Add fallback implementation of strndup()

2011-10-29 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 28, 2011, at 17:34, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith > --- > configure.ac|2 + > include/dix-config.h.in |3 ++ > include/os.h|4 +++ > os/Makefile.am |4

Re: [PATCH 2/6] Fix Sun compiler check that got turned around

2011-10-29 Thread Jeremy Huddleston
Sorry. Reviewed-by: Jeremy Huddleston On Oct 28, 2011, at 17:34, Alan Coopersmith wrote: > Since the check is for !(compilers that support __builtin_constant_p) > it needs to be !(gcc or new enough Sun cc), but was written as > !(gcc or too old Sun cc). > > Signed-off-by: A

Re: [PATCH 1/6] Workaround conflict between Solaris & Xorg "list.h" definitions

2011-10-29 Thread Jeremy Huddleston
Yuck. Is there really no other way to do that? What exactly are the conflicts? On Oct 28, 2011, at 17:34, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith > --- > Xext/shm.c |6 ++ > hw/xfree86/os-support/xf86_OSlib.h |2 +- > 2 files changed, 7 inser

Re: [PATCH resend] dix: Reinstate GetImage window size check

2011-10-29 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 27, 2011, at 22:07, Aaron Plattner wrote: > Commit 587c3a2d1961834558193e8e14e8e381a077a253 fixed DoGetImage to > check windows against their backing drawables, rather than against the > screen dimensions, to prevent reading outside the bounds of r

"Blocker" bugs with patches or workarounds

2011-10-28 Thread Jeremy Huddleston
The following 7 bug reports are in either the 1.11 or 1.12 tracker and have patches attached or sent to the list which either fix the underlying issue or work around a crash due to the issue. I'd like to get these reviewed and merged. If you're in the CC of this email, then you have "dropped t

[PULL] Fix byte swapping in XWin and XQuartz event notifications

2011-10-26 Thread Jeremy Huddleston
The following changes since commit 5701ab4a441eb113abd0851b0d71b82d12112854: Merge remote-tracking branch 'whot/for-keith' (2011-10-24 22:09:00 -0700) are available in the git repository at: git://people.freedesktop.org/~jeremyhu/xserver master Jeremy Huddleston (3): XQuart

Re: [Bug 41653] New: Xorg crashes on exit [bisected]

2011-10-25 Thread Jeremy Huddleston
While we do need to get to the root cause, the extra sanity checking in here is good. Reviewed-by: Jeremy Huddleston On Oct 11, 2011, at 5:38 AM, Michal Suchanek wrote: >> Looks like Xorg crashes on exit after 463dd87 >> >> To reproduce: >> >> export DIS

Re: [PATCH] kdrive: switch to new InputOption API.

2011-10-25 Thread Jeremy Huddleston
On Oct 25, 2011, at 1:22 AM, Mark Kettenis wrote: >> From: Jeremy Huddleston >> Date: Mon, 24 Oct 2011 19:41:00 -0700 >> >> On Oct 24, 2011, at 7:05 PM, Keith Packard wrote: >> >>> And, do we allow the use of >>> strndup in the server? >>

Re: [PATCH] Remove a couple Error() instances left behind by 09dbfcb0ad7b6c8

2011-10-24 Thread Jeremy Huddleston
Thanks. Sorry for missing those. Reviewed-by: Jeremy Huddleston On Oct 24, 2011, at 8:41 PM, Alan Coopersmith wrote: > Two instances found in the SIOCGIFCONF code for listing network interfaces. > > Signed-off-by: Alan Coopersmith > --- > os/access.c |4 ++-- >

Re: [PATCH] kdrive: check for null memory, fix OOB

2011-10-24 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 24, 2011, at 7:59 PM, Peter Hutterer wrote: > If key/value allocation failed, don't bother adding another InputOption. And > make sure the memory allocated is large enough for the trailing \0 > > Signed-off-by: Peter Hutterer >

Re: [PATCH] kdrive: switch to new InputOption API.

2011-10-24 Thread Jeremy Huddleston
On Oct 24, 2011, at 7:05 PM, Keith Packard wrote: > And, do we allow the use of > strndup in the server? Alan just asked that a few days ago ;). I wouldn't be against using strndup, but there would need to be an in-tree implementation provided for systems that lack it (like OSX 10.6 and prior)

Re: [PATCH] Use new FP1616/FP3232 conversion functions

2011-10-24 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 23, 2011, at 23:02, Peter Hutterer wrote: > Signed-off-by: Peter Hutterer > --- > Xi/xiquerydevice.c |7 +++ > dix/eventconvert.c | 14 -- > 2 files changed, 7 insertions(+), 14 deletions(-) > > diff --git a/Xi

Re: [PATCH xserver] composite: Update borderClip in compAllocPixmap()

2011-10-24 Thread Jeremy Huddleston
On Oct 20, 2011, at 06:04, Ville Syrjälä wrote: > On Wed, Oct 19, 2011 at 05:26:09PM -0700, Keith Packard wrote: >> On Sun, 9 Oct 2011 01:11:04 +0300, Ville Syrjala wrote: >> >>> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=22566 >> >> Merged. >> e4787ec..a5266dc master -> master >

Re: [git pull] rhel fixes branch

2011-10-23 Thread Jeremy Huddleston
Should those commit messages really have "v2" and "v3" in them? It sounds like they were updated based on feedback during review, which isn't really something that needs to be mentioned in the commit log... On Oct 20, 2011, at 01:52, Dave Airlie wrote: > Fixes from RHEL coverity scan + fbdev

Re: [PATCH:libXfont 3/4] Fix printf warnings about incorrect argument types

2011-10-23 Thread Jeremy Huddleston
Why not change the format string to use %ld for sizeof() instead of casting? For the others (and this one if you feel strongly about the casting): Reviewed-by: Jeremy Huddleston On Oct 21, 2011, at 20:56, Alan Coopersmith wrote: > Mostly due to difference between sizeof & int on

Re: [PATCH 2/6] dix: drop unused argument from XISendDeviceChangedEvent

2011-10-21 Thread Jeremy Huddleston
I'm confused by the comment, "and just using master" ... because the prototype changes: > -XISendDeviceChangedEvent(DeviceIntPtr device, DeviceIntPtr master, > DeviceChangedEvent *dce) > +XISendDeviceChangedEvent(DeviceIntPtr device, DeviceChangedEvent *dce) which seems like you were just using

Re: [PATCH] Xnest: Remove socket and its lock file on exit

2011-10-20 Thread Jeremy Huddleston
On Oct 20, 2011, at 12:08, Julien Cristau wrote: >> if (xnestParentWindow != (Window) 0 && >>X.xdestroywindow.window == xnestParentWindow) >> +CloseWellKnownConnections(); >> +OsCleanup(1); >> exit (0); > That looks broken, don't you need braces around the if branch? Als

Re: [PATCH] pci: Restore pciTag as a deprecated function

2011-10-20 Thread Jeremy Huddleston
On Oct 19, 2011, at 23:45, Jamey Sharp wrote: >> I think we coddled the drivers enough with the current set of >> just-deprecations. This is too trivial. I'll just go through and >> make sure nobody is actually using it because drivers still build >> "successfully" due to us not using >> -Werro

Re: [PULL] bus cleanup

2011-10-19 Thread Jeremy Huddleston
On Oct 19, 2011, at 17:19, Keith Packard wrote: > Note that the intel driver does not build with this change; the ancient > i810/i815 bits rely on the old IOADDRESS apis. Yeah, you can probably do changes similar to the ones I made in other drivers to just restrict support to one PCI domain for

Re: [PATCH 4/5] kinput: allocate enough space for null character.

2011-10-19 Thread Jeremy Huddleston
>> tam_key = (strchr(string, '=') - string); >> -newopt->key = (char *)malloc(tam_key); >> +newopt->key = (char *)malloc(tam_key + 1); >> strncpy(newopt->key, string, tam_key); >> newopt->key[tam_key] = '\0'; >> newopt->value = strdup(strchr(strin

Re: [Pull v2] Glamor - fixed build failure, fixed coding style problem.

2011-10-19 Thread Jeremy Huddleston
On Oct 19, 2011, at 1:02 AM, Zhigang Gong wrote: >>> For >>> the client >>> side application, cairo is a good 2D libraries to utilize GPU hardware >>> acceleration. >>> I'm not familiar with spice. Just googled it, and it seems that it's a >>> protocol to offload >>> some CPU/GPU intensive tasks t

Re: [PATCH] test: Add unit test for mieq

2011-10-19 Thread Jeremy Huddleston
On Oct 18, 2011, at 10:03 PM, Peter Hutterer wrote: > On Mon, Oct 17, 2011 at 11:59:38PM -0700, Jeremy Huddleston wrote: >> >> Signed-off-by: Jeremy Huddleston >> --- >> >> The comments only really make sense wrt the mieq changes that I have >> pendi

Re: [PATCH] pci: Restore pciTag as a deprecated function

2011-10-19 Thread Jeremy Huddleston
ers still build "successfully" due to us not using -Werror=implicit-function-declaration Perhaps we should add -Werror=implicit-function-declaration to all the drivers... On Oct 19, 2011, at 12:20 AM, Jeremy Huddleston wrote: > > This partially reverts b3d56d06ef840bbbe16ec3c37e1

Re: [PATCH 5/5] xaa: avoid possible freed pointer reuse in epilogue

2011-10-19 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 19, 2011, at 9:01 AM, Dave Airlie wrote: > From: Dave Airlie > > If the pGCPriv->flags == 2, then we try to assign the freed pGCPriv->XAAOps > avoid this by clearing the flags in to be destroyed pGCPriv. > > Reported by coverity.

Re: [PATCH 4/5] kinput: allocate enough space for null character.

2011-10-19 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 19, 2011, at 9:01 AM, Dave Airlie wrote: > From: Dave Airlie > > this code wasn't allocating enough space and was assigning the NULL > one past the end. > > Pointed out by coverity. > > Signed-off-by: Dave Airlie > ---

Re: [PATCH 3/5] Xi: avoid overrun of callback array.

2011-10-19 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 19, 2011, at 9:01 AM, Dave Airlie wrote: > From: Dave Airlie > > This code had an off-by-one and would allow writing one past the end of > the callbacks array. > > Pointed out by coverity. > > Signed-off-by: Dave Airlie >

Re: [PATCH 2/5] xext: don't free uninitialised pointer when malloc fails.

2011-10-19 Thread Jeremy Huddleston
I actually prefer Alan's suggestion, so with his version: Reviewed-by: Jeremy Huddleston On Oct 19, 2011, at 9:51 AM, Alan Coopersmith wrote: > On 10/19/11 09:01, Dave Airlie wrote: >> From: Dave Airlie >> >> Initialise the pAttr->values to NULL so if the value

Re: [PATCH 1/5] fbdevhw: iterate over all modes that match a mode. (v2)

2011-10-19 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston Looks good, but style-wise, I liked the mode = pScrn->monitor->Modes where it was before ... meh On Oct 19, 2011, at 9:01 AM, Dave Airlie wrote: > From: Adam Jackson > > So on RHEL5 anaconda sets an xorg.conf with a fixed 800x600 mode in it, &g

[PATCH] pci: Restore pciTag as a deprecated function

2011-10-19 Thread Jeremy Huddleston
This partially reverts b3d56d06ef840bbbe16ec3c37e170078b7f98b04 to allow driver developers time to adjust. Signed-off-by: Jeremy Huddleston --- The commit that deprecated the PCITAG type had these leftovers that I didn't mean to get rid of just yet. hw/xfree86/os-support/bus/Pci.c |

tdfx's use of PIOOffset

2011-10-19 Thread Jeremy Huddleston
So the tdfx driver has this hunk of code in it currently does the following: #if USE_PCIVGAIO hwp->PIOOffset = pTDFX->PIOBase[0] - 0x300; #endif Can someone please explain to me why it's doing that? ___ xorg-devel@lists.x.org: X.Org development Archi

Re: [Pull v2] Glamor - fixed build failure, fixed coding style problem.

2011-10-18 Thread Jeremy Huddleston
On Oct 18, 2011, at 2:23 AM, Zhigang Gong wrote: >> -Original Message- >> From: Jeremy Huddleston [mailto:jerem...@apple.com] >> Sent: Tuesday, October 18, 2011 3:56 PM >> To: Zhigang Gong >> Cc: 'Keith Packard'; xorg-devel@lists.x.org >&g

Re: [Pull v2] Glamor - fixed build failure, fixed coding style problem.

2011-10-18 Thread Jeremy Huddleston
FWIW, there are a couple conflicts with my pending PULL request, but they're trivial to address: CONFLICT (content): Merge conflict in include/xorg-config.h.in CONFLICT (content): Merge conflict in hw/xfree86/dixmods/Makefile.am Your spacing in hw/xfree86/dixmods/Makefile.am is bad, and you're

Re: [PATCH] Xnest: Match the host's keymap

2011-10-18 Thread Jeremy Huddleston
ping On Oct 16, 2011, at 2:42 AM, Jeremy Huddleston wrote: > This was a regression. > > Introduced by: 08363c5830bdea34012dcd954b45ccfdc79a3a7e and > 32db27a7f867b503c2840ca7b815e96d10be9210 > Masked by: 1e69fd4a60147287b31e53bfc61543fb17bb82c8 > >

[PATCH] test: Add unit test for mieq

2011-10-17 Thread Jeremy Huddleston
Signed-off-by: Jeremy Huddleston --- The comments only really make sense wrt the mieq changes that I have pending, but the test should work regardless. test/input.c | 69 ++ 1 files changed, 69 insertions(+), 0 deletions(-) diff

Re: [PATCH 1/2 v5] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-17 Thread Jeremy Huddleston
On Oct 17, 2011, at 4:58 PM, Peter Hutterer wrote: >> +if (new_nevents <= eventQueue->nevents) >> +return FALSE; >> + >> +if (!eventQueue) { >> +ErrorF("[mi] mieqGrowQueue called with a NULL eventQueue\n"); >> +return FALSE; >> +} > > this condition needs to b

Re: [PATCH evdev v2] type-safe inline functions for bitmask manipulation

2011-10-17 Thread Jeremy Huddleston
Looks to me like you want those to be declared 'static inline' Why not have EvdevBitIsSet and EvdevSetBit use BitIsSet/SetBit with endianness-fu? On Oct 17, 2011, at 11:34 AM, Max Schwarz wrote: > We can't use BitIsSet/SetBit from the server (inputstr.h) since they > operate on byte arrays. Ev

Re: [PATCH RESEND xserver 2/2] XWinrc.man: fix warning: tab character in unquoted macro argument #35054

2011-10-17 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Oct 17, 2011, at 10:00 AM, Gaetan Nadon wrote: > Spaces or tabs do not affect the text output layout. > > Signed-off-by: Gaetan Nadon > --- > hw/xwin/man/XWinrc.man | 10 +- > 1 files changed, 5 insertions(+), 5 deletions(-) > &

[PATCH] configure.ac: Add -fno-strict-aliasing to CFLAGS

2011-10-17 Thread Jeremy Huddleston
This should force the server to have -fno-strict-aliasing even once it is removed from the warning flags. See: https://bugs.freedesktop.org/show_bug.cgi?id=31238 Signed-off-by: Jeremy Huddleston --- configure.ac |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git xorg

Re: [PATCH] pci: Add identifier for Cirus Logic GD-7556

2011-10-17 Thread Jeremy Huddleston
PCI_CHIP_GD7556 0x004C #endif if it wants to work on older servers without the change ... On Oct 17, 2011, at 1:48 AM, Jeremy Huddleston wrote: > > https://bugs.freedesktop.org/show_bug.cgi?id=1837 > > Signed-off-by: Jeremy Huddleston > --- > hw/xfree86/common/xf86PciInfo.h |1

[PATCH] pci: Add identifier for Cirus Logic GD-7556

2011-10-17 Thread Jeremy Huddleston
https://bugs.freedesktop.org/show_bug.cgi?id=1837 Signed-off-by: Jeremy Huddleston --- hw/xfree86/common/xf86PciInfo.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/xfree86/common/xf86PciInfo.h b/hw/xfree86/common/xf86PciInfo.h index 356c7db..2825ece 100644 --- a

Re: [PATCH 1/2 v5] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 10:30 PM, Keith Packard wrote: > On Sun, 16 Oct 2011 22:14:31 -0700, Jeremy Huddleston > wrote: > >> +if ((miEventQueue.tail - miEventQueue.head) % miEventQueue.nevents >= >> (miEventQueue.nevents >> 1) && > > I missed th

Re: [PATCH 1/2 v4] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 10:15 PM, Keith Packard wrote: > On Sun, 16 Oct 2011 21:56:43 -0700, Jeremy Huddleston > wrote: > >> n_events_at_tail ? I'm not really sure what to call it. > > If I had a good idea, I would have suggested it :-) Perhaps just don't > bot

Re: [PATCH 2/2 v4] mieq: Reserve some space in EQ for release and other special events

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 10:12 PM, Keith Packard wrote: > On Sun, 16 Oct 2011 21:16:13 -0700, Jeremy Huddleston > wrote: >> >> The last 64 events in the event queue will be reserved for release >> events in order to help return the system to a cleaner state when >> i

[PATCH 1/2 v5] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
identify the true hog in cases where one backtrace might be insufficient. Signed-off-by: Jeremy Huddleston --- Ok ... 5th time's the charm? Responded to Keith's recent comments mi/mieq.c | 174 - 1 files changed, 138 inserti

Re: [PATCH 1/2 v4] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 9:44 PM, Keith Packard wrote: > On Sun, 16 Oct 2011 21:16:09 -0700, Jeremy Huddleston > wrote: > >> +/* We block signals, so SIGIO does trigger mieqEnqueue to write to the >> + * queue as we're modifying it. >> + */ >> +

[PATCH 2/2 v4] mieq: Reserve some space in EQ for release and other special events

2011-10-16 Thread Jeremy Huddleston
The last 64 events in the event queue will be reserved for release events in order to help return the system to a cleaner state when it comes back from a soft wedge. Signed-off-by: Jeremy Huddleston --- mi/mieq.c | 50 +++--- 1 files changed, 39

[PATCH 1/2 v4] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
identify the true hog in cases where one backtrace might be insufficient. Signed-off-by: Jeremy Huddleston --- Changes since previous version: Respond to Peter's feedback mi/mieq.c | 169 - 1 files changed, 133 insertions(+

Re: [PATCH] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 8:44 AM, Keith Packard wrote: > On Sat, 15 Oct 2011 23:31:35 -0700, Jeremy Huddleston > wrote: > >> Yes. This patch was motivated by some server bugs I read through in >> bugzilla today. Apparently some DRI drivers can hog the CPU for a >> whil

Re: [PATCH] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 1:47 PM, Jeremy Huddleston wrote: >> I'm not sure we need to be even this verbose; just a single warning when >> the queue is blocked and another one when it starts working again should >> be sufficient. I fear flooding the disk with errors if this happ

Re: [PATCH 1/2] xfree86: Fix type of IOPortBase to be a pointer

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 9:32 AM, walter harms wrote: >> @@ -487,8 +487,7 @@ int ScreenNum; >> * actually mmap the start of the page, then the start of video >> * I/O space is added as an internal offset. >> */ >> -IOPortBase = (unsigned int)xf86MapInfoMap(memInfoP

[PATCH v3] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
identify the true hog in cases where one backtrace might be insufficient. Signed-off-by: Jeremy Huddleston --- Changes from v2: Responded to keithp's comments mi/mieq.c | 129 ++-- 1 files changed, 107 insertions(+), 22 deletions(-)

Re: [PATCH] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 8:44 AM, Keith Packard wrote: > On Sat, 15 Oct 2011 23:09:30 -0700, Jeremy Huddleston > wrote: > >> +if (new_queue == NULL) >> +FatalError("Unable to allocate memory for the event queue.\n"); > > This function should be

[PATCH 2/2] xfree86: Add Loongson MIPS support

2011-10-16 Thread Jeremy Huddleston
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41038 Signed-off-by: Matt Kraai Reviewed-by: Jeremy Huddleston --- Ok, so I really don't understand why ppc had its own ioBase in os-support/linux/lnx_video.c rather than using IOPortBase. In any event, I want to nuke this code r

[PATCH 1/2 v2] xfree86: Fix IOPortBase to be the size of a pointer

2011-10-16 Thread Jeremy Huddleston
This addresses issues on 64bit systems where the IOPortBase is higher in memory space. Partially fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41038 Signed-off-by: Jeremy Huddleston --- hw/xfree86/common/compiler.h |2 +- hw/xfree86/os-support/bsd/arm_video.c | 21

Re: [PATCH] xfree86: Fix prototype for ConfigFilter

2011-10-16 Thread Jeremy Huddleston
gt; From: Jeremy Huddleston >> Date: Sun, 16 Oct 2011 02:27:08 -0700 >> >> This allows scan.c to build with -Wincompatible-pointer-types >> >> Build regression introduced by: efa5269f23c2237eb5368bf5245ffbbf35714153 >> >> Signed-off-by: Jeremy Huddleston

Re: [PATCH v2] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
Did you not see v3 which was sent before your email? ;) On Oct 16, 2011, at 4:00 AM, Mark Kettenis wrote: >> From: Jeremy Huddleston >> Date: Sat, 15 Oct 2011 23:17:37 -0700 >> >> This patch changes from a static length event queue (512) to one that starts >>

Re: [PATCH 1/2] xfree86: Fix type of IOPortBase to be a pointer

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 3:49 AM, Mark Kettenis wrote: >> >> This addresses issues on 64bit systems where the IOPortBase is higher in >> memory space. > >> -_X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */ >> +_X_EXPORT pointer IOPortBase; /* Memory mapped I/O port area */ > >

[PATCH v3] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
identify the true hog in cases where one backtrace might be insufficient. Signed-off-by: Jeremy Huddleston --- Changes since v2: mieqGrowQueue is done in mieqProcessInputEvents rather than mieqEnqueue since the latter can be called from a signal handler mi/mieq.c | 122

Re: [PATCH] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-16 Thread Jeremy Huddleston
On Oct 16, 2011, at 2:19 AM, Julien Cristau wrote: > On Sat, Oct 15, 2011 at 23:09:30 -0700, Jeremy Huddleston wrote: > >> This patch changes from a static length event queue (512) to one that starts >> at 128 and grows to 4096 as it overflows, logging each time it grows.

[PATCH] Xnest: Match the host's keymap

2011-10-16 Thread Jeremy Huddleston
This was a regression. Introduced by: 08363c5830bdea34012dcd954b45ccfdc79a3a7e and 32db27a7f867b503c2840ca7b815e96d10be9210 Masked by: 1e69fd4a60147287b31e53bfc61543fb17bb82c8 Signed-off-by: Jeremy Huddleston --- hw/xnest/Keyboard.c | 25 + 1 files

[PATCH] xfree86: Fix prototype for ConfigFilter

2011-10-16 Thread Jeremy Huddleston
This allows scan.c to build with -Wincompatible-pointer-types Build regression introduced by: efa5269f23c2237eb5368bf5245ffbbf35714153 Signed-off-by: Jeremy Huddleston --- hw/xfree86/parser/scan.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xfree86/parser

Re: [PATCH] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-15 Thread Jeremy Huddleston
, at 11:23 PM, Keith Packard wrote: > On Sat, 15 Oct 2011 23:09:30 -0700, Jeremy Huddleston > wrote: > >> This patch changes from a static length event queue (512) to one that starts >> at 128 and grows to 4096 as it overflows, logging each time it grows. > > Are there c

[PATCH v2] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-15 Thread Jeremy Huddleston
identify the true hog in cases where one backtrace might be insufficient. Signed-off-by: Jeremy Huddleston --- Change since v1: Fixed whitespace indentation issues with the first version. mi/mieq.c | 96 - 1 files changed, 76 insertions

[PATCH] mieq: Provide better adaptability and diagnostics during mieq overflow

2011-10-15 Thread Jeremy Huddleston
identify the true hog in cases where one backtrace might be insufficient. Signed-off-by: Jeremy Huddleston --- I tested the logic by setting: #define INITIAL_QUEUE_SIZE 2 #define MAXIMUM_QUEUE_SIZE 8 #define DROP_BACKTRACE_FREQUENCY 2 #define DROP_BACKTRACE_MAX

Re: [PATCH] xfree86: Add Loongson MIPS support

2011-10-15 Thread Jeremy Huddleston
This version of the patch also isn't complete because ioBase_phys is an unsigned int. It allows iobases in the 0x100-0x range to work, but not 0x1 and higher. The followup 2-part series I just sent should work even if __NR_pciconfig_iobase is higher. The long term fix is t

[PATCH 2/2] xfree86: Add Loongson MIPS support

2011-10-15 Thread Jeremy Huddleston
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41038 Signed-off-by: Matt Kraai Reviewed-by: Jeremy Huddleston --- hw/xfree86/os-support/linux/lnx_video.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw

[PATCH 1/2] xfree86: Fix type of IOPortBase to be a pointer

2011-10-15 Thread Jeremy Huddleston
This addresses issues on 64bit systems where the IOPortBase is higher in memory space. Partially fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41038 Signed-off-by: Jeremy Huddleston --- hw/xfree86/common/compiler.h |2 +- hw/xfree86/os-support/bsd/arm_video.c | 11

Re: [PATCH] test: fix input test

2011-10-15 Thread Jeremy Huddleston
Rec)); >> +memset(&floating_sprite, 0, sizeof(SpriteInfoRec)); > > But changing these to: > memset(&vcp_sprite, 0, sizeof(vcp_sprite)); > et al would be even better ... > > With that: > Reviewed-by: Daniel Stone > > Cheers, > Daniel > __

[PATCH v4] dix: add utility functions for double to/fro FP1616/FP3232 conversion

2011-10-14 Thread Jeremy Huddleston
Co-authored-by: Jeremy Huddleston Signed-off-by: Peter Hutterer Reviewed-by: Peter Hutterer Reviewed-by: Jeremy Huddleston --- dix/inpututils.c | 63 include/inpututils.h |6 ++ test/input.c | 128

Re: [PATCH] Fix drain_console unregistration

2011-10-14 Thread Jeremy Huddleston
Is there a bug report open for this? I want to make sure it doesn't get lost since there hasn't been a review on it and it's still a bit in progress. I'm sorry I can't really comment on this patch as I'm not familiar with the those APIs. On Oct 11, 2011, at 12:11 AM, Tomáš Trnka wrote: > Bug

Re: [PATCH] Add option to use DPI calculated from EDID

2011-10-14 Thread Jeremy Huddleston
This looks mostly correct, but I want someone a bit more familiar with the Xorg DDX to comment on it as well. Reviewed-by: Jeremy Huddleston On Oct 11, 2011, at 10:16 AM, Michal Suchanek wrote: > Hello, > > this is a patch that fixes a long-standing issue with the X server. > &g

Re: [PATCH v3] NEED_SYNC_REPLY flag should be in Xim not in Xic

2011-10-14 Thread Jeremy Huddleston
Pushed, thanks. On Oct 12, 2011, at 4:05 PM, Choe Hwanjin wrote: > I've updated my patch to make it look more like the patch from SuSE. > My patch still have slight difference, because I've fix some bad tabs. > See the attachment. > > 2011/10/12 Jeremy Huddleston : >

Re: [PATCH] xfree86: Add Loongson MIPS support

2011-10-14 Thread Jeremy Huddleston
IOPortBase is exported. While I agree that compiler.h and most of the bus support in xf86 should die in a fire, you really shouldn't change the symbol name for no good reason. 1) I would prefer to see a fix for siliconmotion driver to have it "do the right thing" by not calling into this broke

Re: [PULL 1.11] input fixes for 1.11.2

2011-10-14 Thread Jeremy Huddleston
Merged 603ad66..bbe6a69 server-1.11-branch -> server-1.11-branch On Oct 13, 2011, at 23:35, Peter Hutterer wrote: > Commit bbe6a69da398dba93679c23c3c50f9916cb562ca > > The following changes since commit 603ad6608a0dbe2fb1bdc4bcd8b4117f2b0bc8b2: > > XQuartz: pbproxy: Add missing AM_OBJCFLAG

Re: [PATCH-V4] xserver: Optional backtrace handler

2011-10-12 Thread Jeremy Huddleston
On Oct 12, 2011, at 6:12 PM, Alan Coopersmith wrote: > On 10/12/11 10:50 AM, Keith Packard wrote: >> 2. I'd love to figure out how to fork at the time of the error; this >> would encourage people to actually use this option regularly. >> >> posix threads makes the usual libc fork() func

1.11.2 RC1 on Friday

2011-10-11 Thread Jeremy Huddleston
Please send any merge requests or nominations by Thursday for inclusion in 1.11.2 RC1. Thanks, Jeremy ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH v2] NEED_SYNC_REPLY flag should be in Xim not in Xic

2011-10-11 Thread Jeremy Huddleston
On Oct 11, 2011, at 18:34, Choe Hwanjin wrote: > I've made my patch again against libX11 git master > 22ba43d198dcca86c88eb15a56fc7d8fc47c422e. > This patch already has changes that revert commit > 1a1a42a3ca1dfaf42f1094936b71c140fc030fcb. > I don't see any significant differences between your pat

[PULL ping/updated] BUS cleanup and pot pouri

2011-10-11 Thread Jeremy Huddleston
m fetch for !PC machines pci: Remove xf86MapDomainMemory int10: Port internal users off xf86MapVidMem Jeremy Huddleston (12): loader: when creating sdksyms.c only include shmint.h if MITSHM is enabled #29109 Xnest: Remove socket and its lock file on exit Xephyr: Remove

Re: [PATCH] Add new compose sequences

2011-10-11 Thread Jeremy Huddleston
On Oct 11, 2011, at 11:47, James Cloos wrote: >>>>>> "JH" == Jeremy Huddleston writes: > > JH> +: "ffi" Ufb03 # LATIN SMALL > LIGATURE FFI > JH> +: "ffl" Ufb04 # LATIN SMALL &

Re: [PATCH libpciaccess 2/2 v3] linux: Implement map_legacy

2011-10-11 Thread Jeremy Huddleston
Thanks Javier! Pushed. On Oct 11, 2011, at 00:46, Javier Pello wrote: > On Fri, 2011-10-07 at 10:18:20 -0700, Jeremy Huddleston wrote: >> +char name[PATH_MAX]; >> +int flags = O_RDONLY; >> +int prot = PROT_READ; >> +int fd; >> +int

Re: [PATCH] Add new compose sequences

2011-10-11 Thread Jeremy Huddleston
+ : "ffi" Ufb03 # LATIN SMALL LIGATURE FFI + : "ffl" Ufb04 # LATIN SMALL LIGATURE FFL Why are those notandinstead? On Oct 9, 2011, at 23:45, Marko Myllynen wrote: > This patch adds few new compose sequences to the en_US map, ligatures > common in

Re: [PATCH] Zero-fill holes in the buffer rather than leaving memory uninitialized.

2011-10-11 Thread Jeremy Huddleston
You are missing this in src/SMlibint.h: #include string.h includes the prototype for memset(). Also, please add a Signed-off-by: line to your commit message along with my: Reviewed-by: Jeremy Huddleston Once the above are fixed, please resend to the list, and I'll push it in. Thanks

[PATCH v2] NEED_SYNC_REPLY flag should be in Xim not in Xic

2011-10-11 Thread Jeremy Huddleston
ic. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=7869 Reviewed-by: Jeremy Huddleston --- This is the version that OpenSuSE pulled in modules/im/ximcp/imDefFlt.c | 16 ++-- modules/im/ximcp/imDefIc.c |4 modules/im/ximcp/imDefLkup.c | 12 module

Re: [PATCH] XIM: Make Xim handle NEED_SYNC_REPLY flag

2011-10-11 Thread Jeremy Huddleston
Choe, I'm a bit confused here. This looks like an older version of your patch from: https://bugs.freedesktop.org/attachment.cgi?id=13405 Bernd provided an updated version https://bugs.freedesktop.org/attachment.cgi?id=21093 which took into account changes in libX11 http://cgit.freedesktop.org/x

Re: [PATCH/libX11] Return name instead of value in XGetIMValues() and XSetIMValues()

2011-10-11 Thread Jeremy Huddleston
Ok, thanks for addressing my concerns. Reviewed-by: Jeremy Huddleston On Oct 11, 2011, at 06:08, Yann Droneaud wrote: > Le lundi 10 octobre 2011 à 14:00 -0700, Jeremy Huddleston a écrit : >> The src changes look right, but I'm wondering if this is a documentation bug >

Re: valgrind errors in X server

2011-10-11 Thread Jeremy Huddleston
On Oct 11, 2011, at 02:52, Michal Suchanek wrote: > Hello, > > While valgrinding the X server to track a double free in one of my > patches I found the errors below. > > I run Xorg +extension GLX +extension RANDR +extension RENDER -logfile > /scratch/xdummy.log -config ~hramrach/xdummy.conf :1

Re: [PATCH] Bug 38420: Xvfb crashes in miInitVisuals() when started with depth=2

2011-10-11 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On Sep 23, 2011, at 20:42, Alan Coopersmith wrote: > From: Christopher Yeleighton > > https://bugs.freedesktop.org/show_bug.cgi?id=38420 > > Exit with fatal error message, not segfault. > > Signed-off-by: Alan Coopersmith > --- >

[PATCH] os: Remove Error()

2011-10-10 Thread Jeremy Huddleston
Signed-off-by: Jeremy Huddleston --- doc/Xserver-spec.xml | 10 +- include/os.h |1 - os/backtrace.c |5 +++-- os/log.c | 14 -- os/xprintf.c |5 +++-- 5 files changed, 7 insertions(+), 28 deletions(-) diff --git a/doc

Re: [PATCH] os: Print a newline when Error is called

2011-10-10 Thread Jeremy Huddleston
On Oct 10, 2011, at 18:24, Peter Hutterer wrote: > There are only very few callers. IMO we should replace them with >ErrorF("%s", strerror(errno)); > and remove this one completely. Except that it is exported: os.h:extern _X_EXPORT void Error(const char *str); How about deprecating it in

<    1   2   3   4   5   6   7   8   9   10   >