Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbeABTfh convert rfc822-to-8bit (ORCPT + 1 other); Tue, 2 Jan 2018 14:35:37 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:52470 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751127AbeABTfg (ORCPT ); Tue, 2 Jan 2018 14:35:36 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Rodrigo Vivi , "Jiri Kosina" From: Chris Wilson In-Reply-To: <20180102192108.nrs4xdcyihpwbvuk@intel.com> Cc: "Jani Nikula" , "Joonas Lahtinen" , "Daniel Vetter" , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20180102192108.nrs4xdcyihpwbvuk@intel.com> Message-ID: <151492173173.21495.13198187594203309957@mail.alporthouse.com> User-Agent: alot/0.3.6 Subject: Re: [Intel-gfx] Graphics on thinkpad x270 after dock/undock works only for the first time (CPU pipe B FIFO underrun) Date: Tue, 02 Jan 2018 19:35:31 +0000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Quoting Rodrigo Vivi (2018-01-02 19:21:08) > On Sat, Dec 30, 2017 at 12:53:58PM +0000, Jiri Kosina wrote: > > On Sat, 30 Dec 2017, Jiri Kosina wrote: > > > > > Seems like disabling RC6 on the kernel command line works this around, and > > > I can dock / undock several times in a row with the image always coming > > > up properly on the external display. > > > > > > On the first undock, the WARN_ONCE() below triggers, so I believe each > > > undock leaks memory. > > > > > > [ 38.755084] Failed to release pages: bind_count=1, pages_pin_count=1, pin_global=0 > > > [ 38.755138] WARNING: CPU: 3 PID: 96 at ../drivers/gpu/drm/i915/i915_gem_userptr.c:89 cancel_userptr+0xe5/0xf0 [i915] Not a leak, just a warning the shadow pte are stale due to someone pinning a (gfx) vma. > > OK, I am seeing this warning with current Linus' tree (5aa90a845) even > > without any attempt to dock/undock, so it's probably unrelated to external > > outputs and it only by coincidence appeared originally at the same time I > > docked the machine. > > > > So there are two separate issues on this machine with latest kernel > > (neither of them probably being regression): > > > > - I have to disable i915 RC6 at the kernel cmdline, otherwise external > > (dock) display gets output only randomly (seems like always only on > > first dock) > > Joonas, Chris, time to bring rc6_enable back on next-fixes before we > remove this support entirely? No. It's precisely because of this mistake (thinking that rc6 has anything to do with the issue when it's the consequential shotgun disabling of rpm) that the modparam is not coming back. -Chris