Skip to contentSkip to conversation

sna: avoid negative timeouts

PATCH In review Felipe Contreras 3 participants 10 messages Oct 3, 2013 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sna: avoid negative timeouts

It's nice to avoid X server crashes (by not passing negative values to select(3)).

For more information:
http://article.gmane.org/gmane.comp.freedesktop.xorg.devel/37388

---
 src/sna/sna_accel.c | 3 +++
 1 file changed, 3 insertions(+)
src/sna/sna_accel.c +3 -0
index 4838371..ce6da7d 100644
@@ -15978,6 +15978,9 @@ void sna_accel_block_handler(struct sna *sna, struct timeval **tv)
 		     __FUNCTION__, sna->timer_active));
 
 		timeout = sna->timer_expire[0] - TIME;
+		if (timeout < 0)
+			timeout = 0;
+
 		DBG(("%s: flush timer expires in %d [%d]\n",
 		     __FUNCTION__, timeout, sna->timer_expire[0]));
 
Signature · 6 lines
1.8.4-fc

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
#1 lore raw
Quoted 7 lines · Felipe Contreras

It's nice to avoid X server crashes (by not passing negative values to select(3)).

For more information:
http://article.gmane.org/gmane.comp.freedesktop.xorg.devel/37388

Thanks for the patch, I pushed a slightly different version to consume the expired flush timeout immediately.

However, in order for this to happen something within the BlockHandler must have run for at least 4ms. Which is itself very worrying - the two candidates are the throttle or lock contention. (The throttle is also prone to being influenced by a third party.) Such stalls are likely to be noticeable as jitter or judder, so if you can spot their source hopefully we can tackle the root cause.
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre

A message that is not in the archive (sent off-list or not yet received): 20131003073630.GJ21062-aII6DKEyn0pWYbfKqPwjAkR8Iwp7RQ6xAL8bYrjMMd8@public.gmane.org

#3 lore raw
Quoted 12 lines · Chris Wilson
Quoted 7 lines · Felipe Contreras

It's nice to avoid X server crashes (by not passing negative values to select(3)).

For more information:
http://article.gmane.org/gmane.comp.freedesktop.xorg.devel/37388

Thanks for the patch, I pushed a slightly different version to consume the expired flush timeout immediately.

Quoted 6 lines

However, in order for this to happen something within the BlockHandler must have run for at least 4ms. Which is itself very worrying - the two candidates are the throttle or lock contention. (The throttle is also prone to being influenced by a third party.) Such stalls are likely to be noticeable as jitter or judder, so if you can spot their source hopefully we can tackle the root cause.

What exactly do you mean by third party? I wouldn't notice if there was jitter because it's a loading screen, and there's absolutely no updates on the screen; it's static.

Do you mean you would like me to add debugging in sna_accel_block_handler() to figure exactly which block is taking too long to complete?

Signature · 5 lines
Felipe Contreras
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
#4 lore raw
Quoted 20 lines · Felipe Contreras
Quoted 12 lines · Chris Wilson
Quoted 7 lines · Felipe Contreras

It's nice to avoid X server crashes (by not passing negative values to select(3)).

For more information:
http://article.gmane.org/gmane.comp.freedesktop.xorg.devel/37388

Thanks for the patch, I pushed a slightly different version to consume the expired flush timeout immediately.

Quoted 6 lines

However, in order for this to happen something within the BlockHandler must have run for at least 4ms. Which is itself very worrying - the two candidates are the throttle or lock contention. (The throttle is also prone to being influenced by a third party.) Such stalls are likely to be noticeable as jitter or judder, so if you can spot their source hopefully we can tackle the root cause.

Quoted 3 lines

What exactly do you mean by third party? I wouldn't notice if there was jitter because it's a loading screen, and there's absolutely no updates on the screen; it's static.

Other users of /dev/dri/card0. The most likely cause for the delay here is waiting for the GPU to complete an operation or for waiting for access to the GPU.

Quoted 3 lines

Do you mean you would like me to add debugging in sna_accel_block_handler() to figure exactly which block is taking too long to complete?

Right, if you do something like:

src/sna/sna_accel.c +21 -4
index 21cd342..31ea1a3 100644
@@ -15931,6 +15931,8 @@ void sna_accel_close(struct sna *sna)
 
 void sna_accel_block_handler(struct sna *sna, struct timeval **tv)
 {
+	uint32_t duration[NUM_TIMERS] = { 0 };
+
 	sigtrap_assert();
 
 	if (sna->kgem.need_retire)
@@ -15947,19 +15949,28 @@ void sna_accel_block_handler(struct sna *sna, struct timeval **tv)
 	}
 
 restart:
-	if (sna_accel_do_flush(sna))
+	if (sna_accel_do_flush(sna)) {
+		duration[FLUSH_TIMER] = TIME;
 		sna_accel_flush(sna);
+		duration[FLUSH_TIMER] = TIME - duration[FLUSH_TIMER];
+	}
 	assert(sna_accel_scanout(sna) == NULL ||
 	       sna_accel_scanout(sna)->gpu_bo->exec == NULL ||
 	       sna->timer_active & (1<<(FLUSH_TIMER)));
 
-	if (sna_accel_do_throttle(sna))
+	if (sna_accel_do_throttle(sna)) {
+		duration[THROTTLE_TIMER] = TIME;
 		sna_accel_throttle(sna);
+		duration[THROTTLE_TIMER] = TIME - duration[THROTTLE_TIMER];
+	}
 	assert(!sna->kgem.need_retire ||
 	       sna->timer_active & (1<<(THROTTLE_TIMER)));
 
-	if (sna_accel_do_expire(sna))
+	if (sna_accel_do_expire(sna)) {
+		duration[EXPIRE_TIMER] = TIME;
 		sna_accel_expire(sna);
+		duration[EXPIRE_TIMER] = TIME - duration[EXPIRE_TIMER];
+	}
 	assert(!sna->kgem.need_expire ||
 	       sna->timer_active & (1<<(EXPIRE_TIMER)));
 
@@ -15981,8 +15992,14 @@ restart:
 		timeout = sna->timer_expire[FLUSH_TIMER] - TIME;
 		DBG(("%s: flush timer expires in %d [%d]\n",
 		     __FUNCTION__, timeout, sna->timer_expire[FLUSH_TIMER]));
-		if (timeout < 3)
+		if (timeout < 3) {
+			ErrorF("restarting timeout[%d] (%d, %d, %d)\n",
+			       timeout,
+			       duration[FLUSH_TIMER],
+			       duration[THROTTLE_TIMER],
+			       duration[EXPIRE_TIMER]);
 			goto restart;
+		}
 
 		if (*tv == NULL) {
 			*tv = &sna->timer_tv;

That will hopefully catch which path is consuming too much time -Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre

A message that is not in the archive (sent off-list or not yet received): 20131003081712.GK21062-aII6DKEyn0pWYbfKqPwjAkR8Iwp7RQ6xAL8bYrjMMd8@public.gmane.org

#6 lore raw
Quoted 95 lines · Chris Wilson
Quoted 20 lines · Felipe Contreras
Quoted 12 lines · Chris Wilson
Quoted 7 lines · Felipe Contreras

It's nice to avoid X server crashes (by not passing negative values to select(3)).

For more information:
http://article.gmane.org/gmane.comp.freedesktop.xorg.devel/37388

Thanks for the patch, I pushed a slightly different version to consume the expired flush timeout immediately.

Quoted 6 lines

However, in order for this to happen something within the BlockHandler must have run for at least 4ms. Which is itself very worrying - the two candidates are the throttle or lock contention. (The throttle is also prone to being influenced by a third party.) Such stalls are likely to be noticeable as jitter or judder, so if you can spot their source hopefully we can tackle the root cause.

Quoted 3 lines

What exactly do you mean by third party? I wouldn't notice if there was jitter because it's a loading screen, and there's absolutely no updates on the screen; it's static.

Other users of /dev/dri/card0. The most likely cause for the delay here is waiting for the GPU to complete an operation or for waiting for access to the GPU.

Quoted 3 lines

Do you mean you would like me to add debugging in sna_accel_block_handler() to figure exactly which block is taking too long to complete?

Right, if you do something like:

src/sna/sna_accel.c +21 -4
index 21cd342..31ea1a3 100644
@@ -15931,6 +15931,8 @@ void sna_accel_close(struct sna *sna)
 
 void sna_accel_block_handler(struct sna *sna, struct timeval **tv)
 {
+       uint32_t duration[NUM_TIMERS] = { 0 };
+
        sigtrap_assert();
 
        if (sna->kgem.need_retire)
@@ -15947,19 +15949,28 @@ void sna_accel_block_handler(struct sna *sna, struct timeval **tv)
        }
 
 restart:
-       if (sna_accel_do_flush(sna))
+       if (sna_accel_do_flush(sna)) {
+               duration[FLUSH_TIMER] = TIME;
                sna_accel_flush(sna);
+               duration[FLUSH_TIMER] = TIME - duration[FLUSH_TIMER];
+       }
        assert(sna_accel_scanout(sna) == NULL ||
               sna_accel_scanout(sna)->gpu_bo->exec == NULL ||
               sna->timer_active & (1<<(FLUSH_TIMER)));
 
-       if (sna_accel_do_throttle(sna))
+       if (sna_accel_do_throttle(sna)) {
+               duration[THROTTLE_TIMER] = TIME;
                sna_accel_throttle(sna);
+               duration[THROTTLE_TIMER] = TIME - duration[THROTTLE_TIMER];
+       }
        assert(!sna->kgem.need_retire ||
               sna->timer_active & (1<<(THROTTLE_TIMER)));
 
-       if (sna_accel_do_expire(sna))
+       if (sna_accel_do_expire(sna)) {
+               duration[EXPIRE_TIMER] = TIME;
                sna_accel_expire(sna);
+               duration[EXPIRE_TIMER] = TIME - duration[EXPIRE_TIMER];
+       }
        assert(!sna->kgem.need_expire ||
               sna->timer_active & (1<<(EXPIRE_TIMER)));
 
@@ -15981,8 +15992,14 @@ restart:
                timeout = sna->timer_expire[FLUSH_TIMER] - TIME;
                DBG(("%s: flush timer expires in %d [%d]\n",
                     __FUNCTION__, timeout, sna->timer_expire[FLUSH_TIMER]));
-               if (timeout < 3)
+               if (timeout < 3) {
+                       ErrorF("restarting timeout[%d] (%d, %d, %d)\n",
+                              timeout,
+                              duration[FLUSH_TIMER],
+                              duration[THROTTLE_TIMER],
+                              duration[EXPIRE_TIMER]);
                        goto restart;
+               }
 
                if (*tv == NULL) {
                        *tv = &sna->timer_tv;
Quoted 1 line

That will hopefully catch which path is consuming too much time

This is what I got:

restarting timeout[2] (14, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[2] (14, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[-1] (17, 0, 0)

Signature · 5 lines
Felipe Contreras
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
#7 lore raw
Quoted 5 lines · Felipe Contreras
Quoted 1 line · Chris Wilson

That will hopefully catch which path is consuming too much time

This is what I got:

Quoted 10 lines

restarting timeout[2] (14, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[2] (14, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[-1] (17, 0, 0)

Suspiciously like we block for an entire vrefresh to submit one batch. Hmm, do you mind sending me your complete Xorg.0.log? -Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre

A message that is not in the archive (sent off-list or not yet received): 20131003091533.GL21062-aII6DKEyn0pWYbfKqPwjAkR8Iwp7RQ6xAL8bYrjMMd8@public.gmane.org

#9 lore raw
Quoted 17 lines · Chris Wilson
Quoted 5 lines · Felipe Contreras
Quoted 1 line · Chris Wilson

That will hopefully catch which path is consuming too much time

This is what I got:

Quoted 10 lines

restarting timeout[2] (14, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[2] (14, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[-1] (17, 0, 0)

Quoted 2 lines

Suspiciously like we block for an entire vrefresh to submit one batch. Hmm, do you mind sending me your complete Xorg.0.log?

Here you go.

BTW, the game is free to play, you just need Steam.

Signature · 1 line
Felipe Contreras
[ 11097.539] 
X.Org X Server 1.14.3
Release Date: 2013-09-12
[ 11097.540] X Protocol Version 11, Revision 0
[ 11097.540] Build Operating System: Linux 3.11.2+ x86_64 
[ 11097.540] Current Operating System: Linux nysa 3.11.2+ #10 SMP Sat Sep 28 18:43:32 CDT 2013 x86_64
[ 11097.540] Kernel command line: root=UUID=f76b9264-50d3-46f6-b873-f0fb4ef0003e rw quiet add_efi_memmap initrd=EFI/arch/initramfs.img
[ 11097.540] Build Date: 30 September 2013  01:10:17PM
[ 11097.540]  
[ 11097.540] Current version of pixman: 0.30.2
[ 11097.540] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 11097.540] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 11097.540] (==) Log file: "/opt/xorg/var/log/Xorg.0.log", Time: Thu Oct  3 03:54:07 2013
[ 11097.541] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 11097.541] (==) Using system config directory "/opt/xorg/share/X11/xorg.conf.d"
[ 11097.542] (==) No Layout section.  Using the first Screen section.
[ 11097.542] (==) No screen section available. Using defaults.
[ 11097.542] (**) |-->Screen "Default Screen Section" (0)
[ 11097.542] (**) |   |-->Monitor "<default monitor>"
[ 11097.543] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[ 11097.543] (**) |   |-->Device "Intel Graphics"
[ 11097.543] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[ 11097.543] (**) Option "BlankTime" "0"
[ 11097.543] (==) Automatically adding devices
[ 11097.543] (==) Automatically enabling devices
[ 11097.543] (==) Automatically adding GPU devices
[ 11097.544] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 11097.544] 	Entry deleted from font path.
[ 11097.544] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 11097.544] 	Entry deleted from font path.
[ 11097.544] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 11097.544] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 11097.544] 	Entry deleted from font path.
[ 11097.544] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 11097.544] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/Type1/
[ 11097.544] (**) ModulePath set to "/opt/xorg/lib/xorg/modules,/usr/lib/xorg/modules"
[ 11097.544] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 11097.544] (II) Loader magic: 0x7f9760
[ 11097.544] (II) Module ABI versions:
[ 11097.544] 	X.Org ANSI C Emulation: 0.4
[ 11097.544] 	X.Org Video Driver: 14.1
[ 11097.544] 	X.Org XInput driver : 19.1
[ 11097.544] 	X.Org Server Extension : 7.0
[ 11097.544] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 11097.546] (--) PCI:*(0:0:2:0) 8086:0166:1043:1517 rev 9, Mem @ 0xf7800000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64
[ 11097.546] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 11097.546] Initializing built-in extension Generic Event Extension
[ 11097.546] Initializing built-in extension SHAPE
[ 11097.546] Initializing built-in extension MIT-SHM
[ 11097.546] Initializing built-in extension XInputExtension
[ 11097.546] Initializing built-in extension XTEST
[ 11097.546] Initializing built-in extension BIG-REQUESTS
[ 11097.546] Initializing built-in extension SYNC
[ 11097.546] Initializing built-in extension XKEYBOARD
[ 11097.546] Initializing built-in extension XC-MISC
[ 11097.546] Initializing built-in extension XINERAMA
[ 11097.546] Initializing built-in extension XFIXES
[ 11097.546] Initializing built-in extension RENDER
[ 11097.546] Initializing built-in extension RANDR
[ 11097.546] Initializing built-in extension COMPOSITE
[ 11097.546] Initializing built-in extension DAMAGE
[ 11097.546] Initializing built-in extension MIT-SCREEN-SAVER
[ 11097.546] Initializing built-in extension DOUBLE-BUFFER
[ 11097.546] Initializing built-in extension RECORD
[ 11097.546] Initializing built-in extension DPMS
[ 11097.546] Initializing built-in extension X-Resource
[ 11097.546] Initializing built-in extension XVideo
[ 11097.546] Initializing built-in extension XVideo-MotionCompensation
[ 11097.546] Initializing built-in extension XFree86-VidModeExtension
[ 11097.546] Initializing built-in extension XFree86-DGA
[ 11097.546] Initializing built-in extension XFree86-DRI
[ 11097.546] Initializing built-in extension DRI2
[ 11097.546] (II) LoadModule: "glx"
[ 11097.546] (II) Loading /opt/xorg/lib/xorg/modules/extensions/libglx.so
[ 11097.547] (II) Module glx: vendor="X.Org Foundation"
[ 11097.547] 	compiled for 1.14.3, module version = 1.0.0
[ 11097.547] 	ABI class: X.Org Server Extension, version 7.0
[ 11097.547] (==) AIGLX enabled
[ 11097.547] Loading extension GLX
[ 11097.547] (II) LoadModule: "intel"
[ 11097.547] (II) Loading /opt/xorg/lib/xorg/modules/drivers/intel_drv.so
[ 11097.548] (II) Module intel: vendor="X.Org Foundation"
[ 11097.548] 	compiled for 1.14.3, module version = 2.21.15
[ 11097.548] 	Module class: X.Org Video Driver
[ 11097.548] 	ABI class: X.Org Video Driver, version 14.1
[ 11097.548] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
	HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
	HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
	HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
	HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[ 11097.548] (--) using VT number 5
[ 11097.556] (II) intel(0): SNA compiled from 2.21.15-2-g0ec37ae
[ 11097.557] (II) intel(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[ 11097.557] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 11097.557] (==) intel(0): RGB weight 888
[ 11097.557] (==) intel(0): Default visual is TrueColor
[ 11097.557] (**) intel(0): Option "TearFree" "true"
[ 11097.557] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4000
[ 11097.557] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx
[ 11097.557] (**) intel(0): Framebuffer tiled
[ 11097.557] (**) intel(0): Pixmaps tiled
[ 11097.557] (**) intel(0): "Tear free" enabled
[ 11097.557] (**) intel(0): Forcing per-crtc-pixmaps? no
[ 11097.557] (II) intel(0): Output eDP1 has no monitor section
[ 11097.557] (--) intel(0): found backlight control interface acpi_video0 (type 'firmware')
[ 11097.557] (II) intel(0): Output VGA1 has no monitor section
[ 11097.557] (II) intel(0): Output HDMI1 has no monitor section
[ 11097.557] (II) intel(0): Output DP1 has no monitor section
[ 11097.557] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[ 11097.557] (==) intel(0): DPI set to (96, 96)
[ 11097.557] (II) Loading sub module "dri2"
[ 11097.557] (II) LoadModule: "dri2"
[ 11097.558] (II) Module "dri2" already built-in
[ 11097.558] (==) Depth 24 pixmap format is 32 bpp
[ 11097.558] (II) intel(0): SNA initialized with Ivybridge (gen7, gt2) backend
[ 11097.558] (==) intel(0): Backing store disabled
[ 11097.558] (==) intel(0): Silken mouse enabled
[ 11097.558] (II) intel(0): HW Cursor enabled
[ 11097.558] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 11097.559] (==) intel(0): DPMS enabled
[ 11097.559] (II) intel(0): [DRI2] Setup complete
[ 11097.559] (II) intel(0): [DRI2]   DRI driver: i965
[ 11097.559] (II) intel(0): direct rendering: DRI2 Enabled
[ 11097.559] (==) intel(0): hotplug detection: "enabled"
[ 11097.559] (--) RandR disabled
[ 11097.570] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 11097.570] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 11097.570] (II) AIGLX: enabled GLX_ARB_create_context
[ 11097.570] (II) AIGLX: enabled GLX_ARB_create_context_profile
[ 11097.570] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[ 11097.570] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 11097.570] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 11097.570] (II) AIGLX: Loaded and initialized i965
[ 11097.570] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 11097.572] (II) intel(0): switch to mode [email protected] on pipe 0 using eDP1, position (0, 0), rotation normal
[ 11097.583] (II) intel(0): Setting screen physical size to 508 x 285
[ 11097.629] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[ 11097.629] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 11097.629] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 11097.629] (II) LoadModule: "evdev"
[ 11097.630] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 11097.630] (II) Module evdev: vendor="X.Org Foundation"
[ 11097.630] 	compiled for 1.14.2, module version = 2.8.1
[ 11097.630] 	Module class: X.Org XInput Driver
[ 11097.630] 	ABI class: X.Org XInput driver, version 19.1
[ 11097.630] (II) Using input driver 'evdev' for 'Video Bus'
[ 11097.630] (**) Video Bus: always reports core events
[ 11097.630] (**) evdev: Video Bus: Device: "/dev/input/event3"
[ 11097.630] (--) evdev: Video Bus: Vendor 0 Product 0x6
[ 11097.630] (--) evdev: Video Bus: Found keys
[ 11097.630] (II) evdev: Video Bus: Configuring as keyboard
[ 11097.630] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input3/event3"
[ 11097.630] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 6)
[ 11097.630] (**) Option "xkb_rules" "evdev"
[ 11097.630] (**) Option "xkb_model" "pc104"
[ 11097.630] (**) Option "xkb_layout" "us"
[ 11097.656] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 11097.656] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 11097.656] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 11097.656] (II) Using input driver 'evdev' for 'Power Button'
[ 11097.656] (**) Power Button: always reports core events
[ 11097.656] (**) evdev: Power Button: Device: "/dev/input/event1"
[ 11097.656] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 11097.656] (--) evdev: Power Button: Found keys
[ 11097.656] (II) evdev: Power Button: Configuring as keyboard
[ 11097.656] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1/event1"
[ 11097.656] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[ 11097.656] (**) Option "xkb_rules" "evdev"
[ 11097.656] (**) Option "xkb_model" "pc104"
[ 11097.656] (**) Option "xkb_layout" "us"
[ 11097.656] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[ 11097.656] (II) No input driver specified, ignoring this device.
[ 11097.657] (II) This device may have been added with another device file.
[ 11097.657] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[ 11097.657] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[ 11097.657] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[ 11097.657] (II) Using input driver 'evdev' for 'Sleep Button'
[ 11097.657] (**) Sleep Button: always reports core events
[ 11097.657] (**) evdev: Sleep Button: Device: "/dev/input/event2"
[ 11097.657] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[ 11097.657] (--) evdev: Sleep Button: Found keys
[ 11097.657] (II) evdev: Sleep Button: Configuring as keyboard
[ 11097.657] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2/event2"
[ 11097.657] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[ 11097.657] (**) Option "xkb_rules" "evdev"
[ 11097.657] (**) Option "xkb_model" "pc104"
[ 11097.657] (**) Option "xkb_layout" "us"
[ 11097.657] (II) config/udev: Adding drm device (/dev/dri/card0)
[ 11097.657] (II) config/udev: Adding input device Logitech USB Laser Mouse (/dev/input/event5)
[ 11097.657] (**) Logitech USB Laser Mouse: Applying InputClass "evdev pointer catchall"
[ 11097.658] (**) Logitech USB Laser Mouse: Applying InputClass "evdev pointer catchall"
[ 11097.658] (II) Using input driver 'evdev' for 'Logitech USB Laser Mouse'
[ 11097.658] (**) Logitech USB Laser Mouse: always reports core events
[ 11097.658] (**) evdev: Logitech USB Laser Mouse: Device: "/dev/input/event5"
[ 11097.658] (--) evdev: Logitech USB Laser Mouse: Vendor 0x46d Product 0xc069
[ 11097.658] (--) evdev: Logitech USB Laser Mouse: Found 12 mouse buttons
[ 11097.658] (--) evdev: Logitech USB Laser Mouse: Found scroll wheel(s)
[ 11097.658] (--) evdev: Logitech USB Laser Mouse: Found relative axes
[ 11097.658] (--) evdev: Logitech USB Laser Mouse: Found x and y relative axes
[ 11097.658] (II) evdev: Logitech USB Laser Mouse: Configuring as mouse
[ 11097.658] (II) evdev: Logitech USB Laser Mouse: Adding scrollwheel support
[ 11097.658] (**) evdev: Logitech USB Laser Mouse: YAxisMapping: buttons 4 and 5
[ 11097.658] (**) evdev: Logitech USB Laser Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 11097.658] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/input/input5/event5"
[ 11097.658] (II) XINPUT: Adding extended input device "Logitech USB Laser Mouse" (type: MOUSE, id 9)
[ 11097.658] (II) evdev: Logitech USB Laser Mouse: initialized for relative axes.
[ 11097.658] (**) Logitech USB Laser Mouse: (accel) keeping acceleration scheme 1
[ 11097.658] (**) Logitech USB Laser Mouse: (accel) acceleration profile 0
[ 11097.658] (**) Logitech USB Laser Mouse: (accel) acceleration factor: 2.000
[ 11097.658] (**) Logitech USB Laser Mouse: (accel) acceleration threshold: 4
[ 11097.658] (II) config/udev: Adding input device Logitech USB Laser Mouse (/dev/input/mouse0)
[ 11097.658] (II) No input driver specified, ignoring this device.
[ 11097.658] (II) This device may have been added with another device file.
[ 11097.658] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[ 11097.658] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 11097.658] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 11097.658] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[ 11097.658] (**) AT Translated Set 2 keyboard: always reports core events
[ 11097.658] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event4"
[ 11097.658] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[ 11097.658] (--) evdev: AT Translated Set 2 keyboard: Found keys
[ 11097.659] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[ 11097.659] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
[ 11097.659] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 10)
[ 11097.659] (**) Option "xkb_rules" "evdev"
[ 11097.659] (**) Option "xkb_model" "pc104"
[ 11097.659] (**) Option "xkb_layout" "us"
[ 11097.659] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event6)
[ 11097.659] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall"
[ 11097.659] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall"
[ 11097.659] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
[ 11097.659] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
[ 11097.659] (II) LoadModule: "synaptics"
[ 11097.659] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[ 11097.659] (II) Module synaptics: vendor="X.Org Foundation"
[ 11097.659] 	compiled for 1.14.1, module version = 1.7.1
[ 11097.659] 	Module class: X.Org XInput Driver
[ 11097.659] 	ABI class: X.Org XInput driver, version 19.1
[ 11097.659] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad'
[ 11097.659] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 11097.659] (**) Option "Device" "/dev/input/event6"
[ 11097.682] (II) synaptics: ETPS/2 Elantech Touchpad: found clickpad property
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 3260 (res 32)
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 2119 (res 32)
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: pressure range 0 - 255
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: finger width range 0 - 15
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: buttons: left double triple
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: Vendor 0x2 Product 0xe
[ 11097.682] (**) Option "TapButton1" "1"
[ 11097.682] (**) Option "TapButton2" "2"
[ 11097.682] (**) Option "TapButton3" "3"
[ 11097.682] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[ 11097.682] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[ 11097.682] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 11097.692] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio4/input/input6/event6"
[ 11097.692] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 11)
[ 11097.692] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MinSpeed is now constant deceleration 2.5
[ 11097.692] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MaxSpeed is now 1.75
[ 11097.692] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) AccelFactor is now 0.051
[ 11097.692] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1
[ 11097.692] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 1
[ 11097.692] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[ 11097.692] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[ 11097.692] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[ 11097.692] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[ 11097.692] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"
[ 11097.890] (II) intel(0): EDID vendor "CMN", prod id 4931
[ 11097.890] (II) intel(0): Printing DDC gathered Modelines:
[ 11097.890] (II) intel(0): Modeline "1920x1080"x0.0  138.78  1920 1966 1996 2080  1080 1082 1086 1112 -hsync -vsync (66.7 kHz eP)
[ 11097.890] (II) intel(0): Modeline "1920x1080"x0.0   92.52  1920 1966 1996 2080  1080 1082 1086 1112 -hsync -vsync (44.5 kHz e)
[ 11148.714] restarting timeout[2] (14, 0, 0)
[ 11149.197] restarting timeout[0] (16, 0, 0)
[ 11149.514] restarting timeout[0] (16, 0, 0)
[ 11331.393] restarting timeout[2] (14, 0, 0)
[ 11342.526] restarting timeout[1] (15, 0, 0)
[ 11342.642] restarting timeout[0] (16, 0, 0)
[ 11342.792] restarting timeout[0] (16, 0, 0)
[ 11343.008] restarting timeout[1] (15, 0, 0)
[ 11343.308] restarting timeout[1] (15, 0, 0)
[ 11351.376] restarting timeout[-1] (17, 0, 0)
[ 11655.135] restarting timeout[2] (14, 0, 0)

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

#10 lore raw
Quoted 18 lines · Felipe Contreras
Quoted 17 lines · Chris Wilson
Quoted 15 lines · Felipe Contreras
Quoted 1 line · Chris Wilson

That will hopefully catch which path is consuming too much time

This is what I got:

restarting timeout[2] (14, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[2] (14, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[-1] (17, 0, 0)

Quoted 4 lines
Quoted 2 lines

Suspiciously like we block for an entire vrefresh to submit one batch. Hmm, do you mind sending me your complete Xorg.0.log?

Here you go.

Oh, TearFree. That explains it. I plan to fix that up very soon. Thanks,
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#11 lore raw
Quoted 19 lines · Chris Wilson
Quoted 18 lines · Felipe Contreras
Quoted 17 lines · Chris Wilson
Quoted 15 lines · Felipe Contreras
Quoted 1 line · Chris Wilson

That will hopefully catch which path is consuming too much time

This is what I got:

restarting timeout[2] (14, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[2] (14, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[0] (16, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[1] (15, 0, 0) restarting timeout[-1] (17, 0, 0)

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Suspiciously like we block for an entire vrefresh to submit one batch. Hmm, do you mind sending me your complete Xorg.0.log?

Here you go.

Oh, TearFree. That explains it. I plan to fix that up very soon.

Cool. Any idea why this happens only in this game, and only in that exact loading screen?

Signature · 1 line
Felipe Contreras
#12 lore raw
Quoted 5 lines · Felipe Contreras
Quoted 1 line · Chris Wilson

Oh, TearFree. That explains it. I plan to fix that up very soon.

Cool. Any idea why this happens only in this game, and only in that exact loading screen?

No. Just a perfect storm I would guess.
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre