From: bugzilla-daemon@freedesktop.org Subject: [Bug 99130] [IVB] CONFIG_PROVE_LOCKING=y causes igt/gem_exec/basic-wait-all (and possibly others) to fail Date: Sat, 17 Dec 2016 17:42:49 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1037741477==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B7C776E29D for ; Sat, 17 Dec 2016 17:42:48 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1037741477== Content-Type: multipart/alternative; boundary="14819965681.C94EbFC74.31095"; charset="UTF-8" --14819965681.C94EbFC74.31095 Date: Sat, 17 Dec 2016 17:42:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99130 --- Comment #3 from Chris Wilson --- Looks like the timeout value isn't being computed properly (possibly just t= hat too much time is unaccounted?). Can you apply: diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_ge= m.c index 1b2f18d0ca2b..dfe751b350ad 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -3019,6 +3019,7 @@ i915_gem_wait_ioctl(struct drm_device *dev, void *dat= a, struct drm_file *file) { struct drm_i915_gem_wait *args =3D data; struct drm_i915_gem_object *obj; + u64 prev_timeout =3D args->timeout_ns; ktime_t start; long ret; @@ -3042,6 +3043,12 @@ i915_gem_wait_ioctl(struct drm_device *dev, void *da= ta, struct drm_file *file) args->timeout_ns =3D 0; } + pr_info("%s: timeout %d.%09d -> %d.%09d\n", __func__, + prev_timeout < 0 ? -1 : ns_to_timespec(prev_timeout).tv_sec, + prev_timeout < 0 ? 0 : ns_to_timespec(prev_timeout).tv_nsec, + args->timeout_ns < 0 ? -1 : ns_to_timespec(args->timeout_ns).tv_sec, + args->timeout_ns < 0 ? 0 : ns_to_timespec(args->timeout_ns).tv_nsec); + i915_gem_object_put(obj); return ret; } and get the output for a failure? --=20 You are receiving this mail because: You are the assignee for the bug.= --14819965681.C94EbFC74.31095 Date: Sat, 17 Dec 2016 17:42:48 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 3 on bug 99130<= /a> from Chris Wilson
Looks like the timeout value isn't being computed properly (po=
ssibly just that
too much time is unaccounted?). Can you apply:

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_ge=
m.c
index 1b2f18d0ca2b..dfe751b350ad 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3019,6 +3019,7 @@ i915_gem_wait_ioctl(struct drm_device=
 *dev, void *data,
struct drm_file *file)
 {
        struct drm_i915_gem_wait *args =3D data;
        struct drm_i915_gem_object *obj;
+       u64 prev_timeout =3D args->timeout_ns;
        ktime_t start;
        long ret;

@@ -3042,6 +3043,12 @@ i915_gem_wait_ioctl(struct drm_devic=
e *dev, void *data,
struct drm_file *file)
                        args->timeout_ns =3D 0;
        }

+       pr_info("%s: timeout %d.%09d -> %d.%09d\n", __func__,
+               prev_timeout < 0 ? -1 : ns_to_timespec(prev_timeout).tv_=
sec,
+               prev_timeout < 0 ? 0 : ns_to_timespec(prev_timeout).tv_n=
sec,
+               args->timeout_ns < 0 ? -1 :
ns_to_timespec(args->timeout_ns).tv_sec,
+               args->timeout_ns < 0 ? 0 :
ns_to_timespec(args->timeout_ns).tv_nsec);
+
        i915_gem_object_put(obj);
        return ret;
 }

and get the output for a failure?


You are receiving this mail because:
  • You are the assignee for the bug.
= --14819965681.C94EbFC74.31095-- --===============1037741477== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1037741477==--