xserver-xorg-video-intel: Changes to 'ubuntu-saucy'

2014-01-10 Thread Timo Aaltonen
New branch 'ubuntu-saucy' available with the following commits:
commit 46c721e7d852661a7a649720b229872eed5c347a
Author: Timo Aaltonen tjaal...@ubuntu.com
Date:   Fri Jan 10 11:27:28 2014 +0200

really add sna-sanitize-output-crtc.diff


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1w1cr3-by...@moszumanska.debian.org



xserver-xorg-video-intel: Changes to 'ubuntu-saucy'

2014-01-10 Thread Robert Hooker
 debian/changelog|7 +++
 debian/patches/baytrail-sna-vsync.patch |   70 
 debian/patches/haswell-sna-vsync.patch  |   33 +++
 debian/patches/series   |2 
 4 files changed, 112 insertions(+)

New commits:
commit 63a2c517608379e61cd30a29ad4e88b031d59d37
Author: Robert Hooker sarv...@ubuntu.com
Date:   Fri Jan 10 11:28:39 2014 -0500

Backport 2 fixes to fix vsync on baytrail and haswell.

diff --git a/debian/changelog b/debian/changelog
index 2dc47d9..c064fda 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xserver-xorg-video-intel (2:2.99.904-0ubuntu2.1) saucy-proposed; urgency=low
+
+  * Add two patch series to fix vsync hangs on haswell and baytrail devices.
+Thanks timo-jyrinki and timchen119! (LP: #1243261)
+
+ -- Robert Hooker sarv...@ubuntu.com  Fri, 10 Jan 2014 11:24:45 -0500
+
 xserver-xorg-video-intel (2:2.99.904-0ubuntu2) saucy-proposed; urgency=low
 
   * sna-sanitize-output-crtc.diff: Fix a crash when failing to probe the
diff --git a/debian/patches/baytrail-sna-vsync.patch 
b/debian/patches/baytrail-sna-vsync.patch
new file mode 100644
index 000..1147847
--- /dev/null
+++ b/debian/patches/baytrail-sna-vsync.patch
@@ -0,0 +1,70 @@
+This is a squash of bd22abee8f33b20ff6bc7297b0a9ae8708d18727 and 
+0e692800055827cf526c7539515c71aecb58bf30 from xf86-video-intel git backported
+to 2.99.904.
+
+=== modified file 'src/sna/sna_display.c'
+--- a/src/sna/sna_display.c2014-01-10 04:13:58 +
 b/src/sna/sna_display.c2014-01-10 08:15:02 +
+@@ -3571,6 +3571,52 @@
+   return true;
+ }
+ 
++static bool sna_emit_wait_for_scanline_vlv(struct sna *sna,
++ xf86CrtcPtr crtc,
++ int pipe, int y1, int y2,
++ bool full_height)
++{
++  uint32_t display_base = 0x18;
++  uint32_t event;
++  uint32_t *b;
++
++  return false; /* synchronisation? I've heard of that */
++
++  if (!sna-kgem.has_secure_batches)
++  return false;
++
++  assert(y1 = 0);
++  assert(y2  y1);
++  assert(sna-kgem.mode);
++
++  /* Always program one less than the desired value */
++  if (--y1  0)
++  y1 = crtc-bounds.y2;
++  y2--;
++
++  b = kgem_get_batch(sna-kgem);
++  sna-kgem.nbatch += 4;
++
++  if (pipe == 0) {
++  if (full_height)
++  event = MI_WAIT_FOR_PIPEA_SVBLANK;
++  else
++  event = MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW;
++  } else {
++  if (full_height)
++  event = MI_WAIT_FOR_PIPEB_SVBLANK;
++  else
++  event = MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW;
++  }
++  b[0] = MI_LOAD_REGISTER_IMM | 1;
++  b[1] = display_base + 0x70004 + 0x1000 * pipe;
++  b[2] = (1  31) | (y1  16) | y2;
++  b[3] = MI_WAIT_FOR_EVENT | event;
++
++  sna-kgem.batch_flags |= I915_EXEC_SECURE;
++  return true;
++}
++
+ static bool sna_emit_wait_for_scanline_ivb(struct sna *sna,
+  xf86CrtcPtr crtc,
+  int pipe, int y1, int y2,
+@@ -3792,7 +3838,7 @@
+   else if (sna-kgem.gen = 075)
+   ret = sna_emit_wait_for_scanline_hsw(sna, crtc, pipe, y1, y2, 
full_height);
+   else if (sna-kgem.gen == 071)
+-  ret =sna_emit_wait_for_scanline_gen6(sna, crtc, pipe, y1, y2, 
full_height);
++  ret =sna_emit_wait_for_scanline_vlv(sna, crtc, pipe, y1, y2, 
full_height);
+   else if (sna-kgem.gen = 070)
+   ret = sna_emit_wait_for_scanline_ivb(sna, crtc, pipe, y1, y2, 
full_height);
+   else if (sna-kgem.gen = 060)
+
diff --git a/debian/patches/haswell-sna-vsync.patch 
b/debian/patches/haswell-sna-vsync.patch
new file mode 100644
index 000..c0f33b6
--- /dev/null
+++ b/debian/patches/haswell-sna-vsync.patch
@@ -0,0 +1,33 @@
+From 68cef6cd281572fcfb76a341dc45b7c8e5baffe6 Mon Sep 17 00:00:00 2001
+From: Chris Wilson ch...@chris-wilson.co.uk
+Date: Thu, 07 Nov 2013 13:09:25 +
+Subject: sna/gen7: Request secure batches for Haswell vsync
+
+Since commit 8ff8eb2b38dc705f5c86f524c1cd74a811a7b04c
+Author: Chris Wilson ch...@chris-wilson.co.uk
+Date:   Mon Sep 9 16:23:04 2013 +0100
+
+sna/hsw: Scanline waits require both DERRMR and forcewake
+
+we have been emitting LRI to enable vsync on the render ring. This
+requires a privileged batch buffer, and whilst we were checking for
+kernel support, we forgot to actually tell the kernel to submit the
+batch with the right privileges.
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71328
+Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk
+---
+diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
+index eb30dfa..889019c 100644
+--- a/src/sna/sna_display.c
 b/src/sna/sna_display.c

Bug#734944: xutils-dev: imake is broken (missing DEBUG CFLAGS) on arm64

2014-01-10 Thread Wookey
Source: xutils-dev
Version: 7.7+1
Severity: normal
Tags: patch
User: debian-...@lists.debian.org
Usertag: arm64

This version of xutils-dev has arm64/aarch64 patches in it, but the
result is not quite right. The problem is discovered building nas, which FTBFS 
with:
gcc -c DefaultGcc2AArch64Opt 
no such file: DefaultGcc2AArch64Opt

That line should read:
gcc -c -g -O2 -fno-strict-aliasing ...

It turned out (after some rune-peering as I've never touched imake before) that 
xmkmf processing was setting
CXXDEBUGFLAGS = DefaultGcc2Aarch64Opt in all the Makefiles.

This value came from /usr/lib/X11/config/linux.cf
where DefaultGcc2archOpt had been changed in the debian patch for all arches 
except the new Aarch64.

This patch fixes that omission. And nas builds as a result.

It may be that more arm64-specific changes are needed in this package,
but I don't know enough (i.e anything!) about how all the .cf files
interact to do that now. This fixes the known issues.

-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-kvm-i386-20110111 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -Nru xutils-dev-7.7+1/debian/changelog xutils-dev-7.7+1arm64.1/debian/changelog
--- xutils-dev-7.7+1/debian/changelog	2013-09-09 18:23:24.0 +
+++ xutils-dev-7.7+1arm64.1/debian/changelog	2014-01-10 23:04:28.0 +
@@ -1,3 +1,9 @@
+xutils-dev (1:7.7+1arm64.1) unstable; urgency=low
+
+  * Add missing AArch64/arm64 default C options
+
+ -- Wookey woo...@debian.org  Fri, 10 Jan 2014 23:02:20 +
+
 xutils-dev (1:7.7+1) unstable; urgency=low
 
   * xorg-cf-files: Debian GNU/Hurd uses /usr as ProjectRoot and /usr/share/man
diff -Nru xutils-dev-7.7+1/debian/patches/04_xutils-dev-debian.diff xutils-dev-7.7+1arm64.1/debian/patches/04_xutils-dev-debian.diff
--- xutils-dev-7.7+1/debian/patches/04_xutils-dev-debian.diff	2013-08-16 20:45:08.0 +
+++ xutils-dev-7.7+1arm64.1/debian/patches/04_xutils-dev-debian.diff	2014-01-10 22:59:00.0 +
@@ -1717,7 +1717,16 @@
  # endif
  # define LinuxMachineDefines   -D__amd64__
  # define ServerOSDefines	XFree86ServerOSDefines -DDDXTIME
-@@ -1032,26 +1136,6 @@ InstallNamedTargetNoClobber(install,file
+@@ -991,7 +1095,7 @@
+ 
+ #ifdef AArch64Architecture
+ # ifndef OptimizedCDebugFlags
+-#  define OptimizedCDebugFlags DefaultGcc2AArch64Opt
++#  define OptimizedCDebugFlags DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
+ # endif
+ # define LinuxMachineDefines   -D__aarch64__
+ # define ServerOSDefines   XFree86ServerOSDefines -DDDXTIME
+@@ -1032,26 +1136,6 @@
  # define ConnectionFlags	-DUNIXCONN -DTCPCONN
  #endif