From: Chris Wilson Subject: Re: [PATCH] drm/i915: pipe config quirk infrastructure plus sdvo mode.flags fix Date: Thu, 6 Jun 2013 14:51:37 +0100 Message-ID: <20130606135137.GC20552@cantiga.alporthouse.com> References: <1370523352-32601-1-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 fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D0C5E602F for ; Thu, 6 Jun 2013 06:51:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1370523352-32601-1-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 Thu, Jun 06, 2013 at 02:55:52PM +0200, Daniel Vetter wrote: > For various reasons the hw state readout might not be able to > faithfully match the hw state: > - broken hw (like the case which motivated this patch here where the > sdvo encoder does not implemented mandatory functionality > correctly). > - platforms which are not supported fully with the pipe config > infrastructure > - if our code doesn't support a given hw configuration natively, e.g. > special restrictions on the per-pipe panel fitters when they're used > in high-quality scaling modes. > > In all these cases both fastboot and the hw state cross checker need > to be aware of these cases and act accordingly. To be able to do this > add a new quirk flag to the pipe config structure. > > The specific case at hand is an sdvo encoder which doesn't implement > the get_timings function, so adjusted_mode flags will be wrong. The > strange thing though is that the encoder _does_ work, even though it > doesn't implement any of the timings functions (so neither get nor > set, neither for input nor output timings). > > Not that non-compliant sdvo encoder are any surprise at all ... > > v2: > - Don't read random garbage from the dtd if the get_timings call > failed (suggested by Chris). > - Still check the interlaced flag, that's read out from someplace > else. We want maximal paranoia, after all. > > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre