From: Jesse Barnes Subject: Re: [PATCH 31/58] drm/i915: check connector hw/sw state Date: Wed, 5 Sep 2012 09:26:24 -0700 Message-ID: <20120905092624.04b30e8a@jbarnes-desktop> References: <1345403595-9678-1-git-send-email-daniel.vetter@ffwll.ch> <1345403595-9678-32-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by gabe.freedesktop.org (Postfix) with SMTP id 691A69E7FB for ; Wed, 5 Sep 2012 09:26:25 -0700 (PDT) In-Reply-To: <1345403595-9678-32-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Sun, 19 Aug 2012 21:12:48 +0200 Daniel Vetter wrote: > Atm we can only check the connector state after a dpms call - while > doing modeset with the copy&pasted crtc helper code things are too > ill-defined for proper checking. But the idea is very much to call > this check from the modeset code, too. > > v2: Fix dpms check and don't presume that if the hw isn't on that it > must not be linked up with an encoder (it could simply be switched off > with the dpms state). Nice. Only comment is that we may want to call it assert_state() to match our other assertions. But no biggie. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center