From owner-freebsd-x11@FreeBSD.ORG Sun Apr 13 23:07:50 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CD711DB; Sun, 13 Apr 2014 23:07:50 +0000 (UTC) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 088BB1118; Sun, 13 Apr 2014 23:07:49 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id f51so6835440qge.12 for ; Sun, 13 Apr 2014 16:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ljfdmh7zsWxGTGqsYNGHiM81l93bXcgh41hhj1mNhEY=; b=EnPvkxHFhoPvT/3RLQ+LH+d5UJ2r6tnOA4LPjm6shV3L6YjUcSLGTuzpjje7o3cxim W5FRUB6PbHLGW4eQK8MvjwISNO+D4FOMXfe1O6xLFVgEIBK0H1PykbYNUecZNMxwfDcB QC4mjyiOcknb858BAmJuaRjY8DyC2Uyl+ssgcQdgne2hv87eM+4upA4H+kqy/pBDPV+7 axiu6yA886jpsCH6Deb9UA8dJufpappFwUmDmYmZWmw9SsC1S5pmRPyILqcCB3JsMc9X /YHjp6Es+RBRLGffEFOwoA5CnZXHqxaj0WPazmaKaQx8moZco0lz4FFqe6TP4rqIAi4d F/rw== MIME-Version: 1.0 X-Received: by 10.140.40.229 with SMTP id x92mr43625258qgx.13.1397430469154; Sun, 13 Apr 2014 16:07:49 -0700 (PDT) Received: by 10.96.110.234 with HTTP; Sun, 13 Apr 2014 16:07:49 -0700 (PDT) In-Reply-To: References: <201404081719.41379.jhb@freebsd.org> Date: Mon, 14 Apr 2014 03:07:49 +0400 Message-ID: Subject: Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10? From: Ivan Rokotov To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: Kevin Oberman , freebsd-x11@freebsd.org, "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 23:07:50 -0000 2014-04-14 2:03 GMT+04:00 Adrian Chadd : > Hi! > > So why does this particular retry hack work? Is there some bug in the > drm/i915 code that isn't correctly handling submitted requests in > certain circumstances? > > What's the value of 'ret' from that call? Hi Adrian, With this code xf86DrvMsg(scrn->scrnIndex, X_WARNING, "retrying batchbuffer submit, ret=%d\n", ret); I got after resume: [ 8572.583] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.636] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.687] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.742] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.795] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.850] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.904] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8572.958] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.009] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.064] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.118] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.172] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.226] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.280] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.334] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.388] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.442] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.496] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.550] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8573.604] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8575.827] (WW) intel(0): retrying batchbuffer submit, ret=-16 [ 8575.936] (II) AIGLX: Suspending AIGLX clients for VT switch [ 8575.937] (WW) intel(0): drmDropMaster failed: Unknown error: -22 [ 8577.146] (II) AIGLX: Resuming AIGLX clients after VT switch [ 8577.248] (II) intel(0): EDID vendor "CMN", prod id 5239 [ 8577.248] (II) intel(0): Printing DDC gathered Modelines: [ 8577.248] (II) intel(0): Modeline "1366x768"x0.0 71.59 1366 1410 1439 1512 768 771 775 789 -hsync -vsync (47.3 kHz eP) Ivan