From: Daniel Vetter Subject: Re: [PATCH 00/19] ddi: respin of runtime PM for DPMS Date: Fri, 11 Jul 2014 17:51:25 +0200 Message-ID: <20140711155125.GB17271@phenom.ffwll.local> References: <1403722924-26738-1-git-send-email-imre.deak@intel.com> <20140710201511.GH17271@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C46C6E003 for ; Fri, 11 Jul 2014 08:51:18 -0700 (PDT) Received: by mail-wg0-f46.google.com with SMTP id m15so1271833wgh.29 for ; Fri, 11 Jul 2014 08:51:17 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140710201511.GH17271@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Paulo Zanoni Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Thu, Jul 10, 2014 at 10:15:11PM +0200, Daniel Vetter wrote: > On Tue, Jul 01, 2014 at 06:33:50PM -0300, Paulo Zanoni wrote: > > 2014-06-25 16:01 GMT-03:00 Imre Deak : > > > This is a respin of the unmerged part of Daniel's runtime PM for DPMS > > > patchset [1]. The original one also included a refactoring of the DDI > > > PCH/CRT encoder modesetting path, I left the corresponding patches out > > > from this series. This is because there hasn't been yet an agreement on > > > those parts, but people would like to see the RPM DPMS support already > > > applied. > > > > > > Some patches needed to be updated/rebased because of the above omission, > > > but these weren't anywhere significant so I just marked the fact > > > with my s-o-b line. I also added two minor change to keep the > > > modeset sequence at its current order and collected all the reviewed-by > > > lines. > > > > > > Tested on HSW DP/VGA, with basic DPMS on/off and igt/pm_rpm. > > > > For patches 2, 4, 5, 6, 7, 19: Reviewed-by: Paulo Zanoni > > > > > > However, I tested these patches on a HSW Machine with eDP+HDMI, and > > there are WARNs on dmesg for the dpms-non-lpsp subtest. I found at > > least two problems: > > 1 - Function hsw_ddi_pll_get_hw_state() reads registers while the > > device is suspended. > > 2 - When _intel_set_mode() calls intel_crtc_disable(), it calls > > assert_plane() which reads register 0x71180, which triggers an > > "Unclaimed register" error. I didn't investigate this deeply, so I > > don't have a suggestion for a solution. > > > > I can reproduce these errors 100% of the time. > > Ok, I've pulled in the series (hopefully all of it with all the right > fixup and in the right order), except for the last patch. I'll do that one > once your unclaimed register write fixes are in to avoid regressions. Paulo clarified on irc that the remaining patches are just to make the unclaimed register debug support more useful on bdw. So I've gone ahead and pulled in patch 19, too. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch