[PATCH app-xinit 0/3] Clean-up some dead code left by previous patches

2015-02-16 Thread Gaetan Nadon
Gaetan Nadon (3): Remove SCO support for SHELL_CMD and startx man page. Remove support for ancient A/UX 3.0 support Remove left over $(launchagents_DATA) in CLEANFILES Makefile.am | 2 +- configure.ac| 5 - man/Makefile.am | 1 - man/startx.man | 15 ---

[PATCH app-xinit 1/3] Remove SCO support for SHELL_CMD and startx man page.

2015-02-16 Thread Gaetan Nadon
SCO support was removed from startx.cpp and xinitrc.cpp earlier. Remove unixware / sco support http://cgit.freedesktop.org/xorg/app/xinit/commit/ ?id=fdf03cd2fdfd9cd5635334c5e4dc2bb23e92e37a Signed-off-by: Gaetan Nadon mems...@videotron.ca --- configure.ac| 5 -

[PATCH 3/4] modesetting: Use load_cursor_argb_check for sw cursor fallback

2015-02-16 Thread Takashi Iwai
The modesetting driver still has an everlasting bug of invisible cursor on cirrus and other KMS drivers where no hardware cursor is supported. This patch is a part of an attempt to address it. This patch particularly converts the current load_cursor_argb callback of modesetting driver to

[PATCH 0/4] A few modesetting driver fixes

2015-02-16 Thread Takashi Iwai
Hi, here is a series of fix patches for modesetting driver we've found on xserver-1.17.1 with QEMU cirrus and other KMS drivers. Some of them are ad hoc and might be rewritten in a better way, but it at least works. Takashi Iwai (4): modesetting: Fix 32bit breakage modesetting: Fix the

[PATCH 4/4] modesetting: Fix hw cursor check at the first call

2015-02-16 Thread Takashi Iwai
With the previous patch, the modesetting driver can now return whether the driver supports hw cursor. However, it alone doesn't suffice, unfortunately. drmmode_load_cursor_argb_check() is called in the following chain: xf86CursorSetCursor() - xf86SetCursor() -

Re: [PATCH app-xinit 1/3] Remove SCO support for SHELL_CMD and startx man page.

2015-02-16 Thread Alan Coopersmith
On 02/16/15 09:07 AM, Gaetan Nadon wrote: SCO support was removed from startx.cpp and xinitrc.cpp earlier. Remove unixware / sco support http://cgit.freedesktop.org/xorg/app/xinit/commit/ ?id=fdf03cd2fdfd9cd5635334c5e4dc2bb23e92e37a Signed-off-by: Gaetan Nadon

[PATCH 1/4] modesetting: Fix 32bit breakage

2015-02-16 Thread Takashi Iwai
The current modesetting driver fails with cirrus KMS and others on 32bit architecture. It aborts at mmap() call failure in dumb_bo.c, and it's because the offset is passed as 32bit off_t; this truncates DRM_FILE_PAGE_OFFSET bit and the KMS driver refuses the value. This is an ad hoc fix just to

[PATCH 2/4] modesetting: Fix the error check from DRM_IOCTL_MODE_CURSOR2

2015-02-16 Thread Takashi Iwai
The error value isn't always -EINVAL, e.g. the kernel drm core returns -ENXIO when the corresponding ops doesn't exist. Without this fix, DRM_IOCTL_MODE_CURSOR2 would be dealt as success even if it shouldn't. Signed-off-by: Takashi Iwai ti...@suse.de ---

[PATCH app-xinit 2/3] Remove support for ancient A/UX 3.0 support

2015-02-16 Thread Gaetan Nadon
This was Apple Computer’s implementation of the Unix operating system for some of their Macintosh computers. From 1988 to 1995. Signed-off-by: Gaetan Nadon mems...@videotron.ca --- startx.cpp | 5 - 1 file changed, 5 deletions(-) diff --git a/startx.cpp b/startx.cpp index ce4713f..8520399

[PATCH app-xinit 3/3] Remove left over $(launchagents_DATA) in CLEANFILES

2015-02-16 Thread Gaetan Nadon
This was left over when reorganizing layout of launchd sources in commit 567f59d3f8189b92bc46e2af1260f9340f462bdb Signed-off-by: Gaetan Nadon mems...@videotron.ca --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3867bea..c1eb5a9

[PATCH app-xinit 1/3] Remove SCO support for SHELL_CMD and startx man page.

2015-02-16 Thread Gaetan Nadon
SCO support was removed from startx.cpp and xinitrc.cpp earlier. Remove unixware / sco support http://cgit.freedesktop.org/xorg/app/xinit/commit/ ?id=fdf03cd2fdfd9cd5635334c5e4dc2bb23e92e37a Signed-off-by: Gaetan Nadon mems...@videotron.ca --- configure.ac| 5 -

Re: [PATCH:libpciaccess] Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64.

2015-02-16 Thread Alan Coopersmith
On 02/16/15 01:24 AM, Thomas Klausner wrote: From: Tobias Nygren t...@netbsd.org This patch is required for building on NetBSD/alpha (needs platform specific -lalpha) and NetBSD/sparc64 (no platform specific library, just -lpci). The patch also generalizes to support all NetBSD platforms with

Re: [PATCH app-xinit 2/3] Remove support for ancient A/UX 3.0 support

2015-02-16 Thread Alan Coopersmith
On 02/16/15 08:25 AM, Gaetan Nadon wrote: This was Apple Computer’s implementation of the Unix operating system for some of their Macintosh computers. From 1988 to 1995. Signed-off-by: Gaetan Nadon mems...@videotron.ca --- startx.cpp | 5 - 1 file changed, 5 deletions(-) diff --git

Re: [PATCH app-xinit 3/3] Remove left over $(launchagents_DATA) in CLEANFILES

2015-02-16 Thread Alan Coopersmith
On 02/16/15 08:25 AM, Gaetan Nadon wrote: This was left over when reorganizing layout of launchd sources in commit 567f59d3f8189b92bc46e2af1260f9340f462bdb Signed-off-by: Gaetan Nadon mems...@videotron.ca --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH app-xinit 1/3] Remove SCO support for SHELL_CMD and startx man page.

2015-02-16 Thread Alan Coopersmith
On 02/16/15 08:25 AM, Gaetan Nadon wrote: SCO support was removed from startx.cpp and xinitrc.cpp earlier. Remove unixware / sco support http://cgit.freedesktop.org/xorg/app/xinit/commit/ ?id=fdf03cd2fdfd9cd5635334c5e4dc2bb23e92e37a Signed-off-by: Gaetan Nadon

[OPW] Generated swapping and size-checking code integration

2015-02-16 Thread Asal Mirzaieva
Hi all, I am the Outreachy (called before OP, OPW) participant for Xorg (www.x.org/wiki/XorgOPW/ http://www.x.org/wiki/XorgOPW/) for project Server-side XCB, my task is to write generator for swapping and size-checking functions and integrate the generated code into Xsever. Here is the link

DRI2InvalidateWalk high in perf top profile

2015-02-16 Thread Loïc Yhuel
Hi, Please forgive me if my analysis is wrong for the current code, since I'm running Fedora 21, so xorg 1.16.3, but it doesn't seem to to have changed much. I was surprised to see DRI2InvalidateWalk high in perf top profile, both with an idle system, and when running some graphics tests, so I

Re: DRI2InvalidateWalk high in perf top profile

2015-02-16 Thread Chris Wilson
On Mon, Feb 16, 2015 at 09:30:43PM +0100, Loïc Yhuel wrote: Hi, Please forgive me if my analysis is wrong for the current code, since I'm running Fedora 21, so xorg 1.16.3, but it doesn't seem to to have changed much. I was surprised to see DRI2InvalidateWalk high in perf top profile,

Re: [PATCH 1/4] modesetting: Fix 32bit breakage

2015-02-16 Thread Takashi Iwai
At Tue, 17 Feb 2015 12:15:04 +0900, Michel Dänzer wrote: On 17.02.2015 01:00, Takashi Iwai wrote: The current modesetting driver fails with cirrus KMS and others on 32bit architecture. It aborts at mmap() call failure in dumb_bo.c, and it's because the offset is passed as 32bit off_t;

Re: [PATCH 1/4] modesetting: Fix 32bit breakage

2015-02-16 Thread Michel Dänzer
On 17.02.2015 15:13, Takashi Iwai wrote: At Tue, 17 Feb 2015 12:15:04 +0900, Michel Dänzer wrote: On 17.02.2015 01:00, Takashi Iwai wrote: The current modesetting driver fails with cirrus KMS and others on 32bit architecture. It aborts at mmap() call failure in dumb_bo.c, and it's because

Re: [OPW] Generated swapping and size-checking code integration

2015-02-16 Thread Peter Hutterer
Hi Asalle, On Mon, Feb 16, 2015 at 09:46:47PM +0200, Asal Mirzaieva wrote: Here is the link tobitbucket bitbucket.org/AsalleKim/gen_swap_check. I didn't create patch, because in my opinion it's pretty inconvenient to send patches with code written from scratch, though it's a powerful tool for

Re: [PATCH 1/4] modesetting: Fix 32bit breakage

2015-02-16 Thread Michel Dänzer
On 17.02.2015 01:00, Takashi Iwai wrote: The current modesetting driver fails with cirrus KMS and others on 32bit architecture. It aborts at mmap() call failure in dumb_bo.c, and it's because the offset is passed as 32bit off_t; this truncates DRM_FILE_PAGE_OFFSET bit and the KMS driver

Re: [PATCH 2/4] modesetting: Fix the error check from DRM_IOCTL_MODE_CURSOR2

2015-02-16 Thread Michel Dänzer
On 17.02.2015 01:00, Takashi Iwai wrote: The error value isn't always -EINVAL, e.g. the kernel drm core returns -ENXIO when the corresponding ops doesn't exist. Without this fix, DRM_IOCTL_MODE_CURSOR2 would be dealt as success even if it shouldn't. Signed-off-by: Takashi Iwai

regression due to os: Eliminate uninitialized value warnings from access.c

2015-02-16 Thread Dave Airlie
This patch totally breaks xhost +SI:localuser: for local sockets addr never gets set but siAddrMatch doesn't care about addr having a value it should be safe against it. I'll probably follow up with a patch once I've tested it. Dave. ___

[PATCH] os/access: fix regression in server interpreted auth

2015-02-16 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This was reported on irc on Fedora when rawhide went to 1.17.1. regression occured in: 2566835b4374edb3e5a8353d4f7c9e7ec4851c57 os: Eliminate uninitialized value warnings from access.c siAddrMatch doesn't need addr to be a useful value, it checks some

Re: [OPW] Generated swapping and size-checking code integration

2015-02-16 Thread chris
Hi Asalle and all, I am Asalle's OPW-mentor. Asalle, Thank you for your intro and for posting the result of your past 2+ months of work. The newest code in Asalle's repo at https://webmail.all-inkl.com/bitbucket.org/AsalleKim/gen_swap_check is in the branch basic_swapping, so please check out

[PATCH:libpciaccess] Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64.

2015-02-16 Thread Thomas Klausner
From: Tobias Nygren t...@netbsd.org This patch is required for building on NetBSD/alpha (needs platform specific -lalpha) and NetBSD/sparc64 (no platform specific library, just -lpci). The patch also generalizes to support all NetBSD platforms with pci bus.

[PATCH] present: Fix missed notify MSC computation

2015-02-16 Thread Chris Wilson
Only treat divisor==0 as async to immediately report the actual vblank. If the user species a non-zero divisor, we should compute the missed vblank properly or else we report too early. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- present/present.c | 2 +- 1 file changed, 1

[PATCH] present: Cancel the copy on unflip when aborting a pending flip

2015-02-16 Thread Chris Wilson
If we handle a vblank notification and perform a copy whilst a flip is still pending, we mark the pending flip for abort. After marking the next flip completion for abortion, we then proceed to copy the requested region into the restored Window drawable. However, when we then process the unflip