From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 1/2] drm/i915/tv: add ->get_config callback Date: Mon, 18 Nov 2013 22:59:32 +0100 Message-ID: <20131118215932.GA5794@phenom.ffwll.local> References: <1384761659-4915-1-git-send-email-daniel.vetter@ffwll.ch> <20131118201426.GQ7819@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EE9AFB2C9 for ; Mon, 18 Nov 2013 13:59:01 -0800 (PST) Received: by mail-ea0-f174.google.com with SMTP id b10so503694eae.33 for ; Mon, 18 Nov 2013 13:59:00 -0800 (PST) Content-Disposition: inline In-Reply-To: <20131118201426.GQ7819@intel.com> 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: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: Jani Nikula , Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Mon, Nov 18, 2013 at 10:14:26PM +0200, Ville Syrj=E4l=E4 wrote: > On Mon, Nov 18, 2013 at 09:00:58AM +0100, Daniel Vetter wrote: > > We need this to properly fill in adjusted_mode.crtc_clock, otherwise > > the state checker gets unhappy. This seems to have been forgotten in > > the big clock rework in > > = > > commit 18442d08786472c63a0a80c27f92b033dffc26de > > Author: Ville Syrj=E4l=E4 > > Date: Fri Sep 13 16:00:08 2013 +0300 > > = > > drm/i915: Fix port_clock and adjusted_mode.clock readout all over > > = > > Cc: Ville Syrj=E4l=E4 > > Cc: Jani Nikula > > Signed-off-by: Daniel Vetter > = > For the series: > Reviewed-by: Ville Syrj=E4l=E4 Thanks for the review, patches merged to -fixes > Although using adjusted_mode.crtc_clock in intel_tv compute_config and > get_config is a bit wrong I think. That's not really the pixel clock > we're shoveling into it, so we're going to be computing the watermarks > incorrectly. > = > To do it really right, I think we should stick the tv_mode clock to > port_clock, and then compute the pixel rate based on the input mode > and the refresh rate. Or maybe we just need a TV out specific version > of ilk_pipe_pixel_rate() (just like we'd need one for GMCH panel fitter). > The TV out scaler is essentially just another panel fitter anyway. Yeah, it's just duct-tape over duct-tape at this point. But meh, it's tv-out. I have a similar series bubbling for sdvo-tv, but that's still stalled since my g33 decided to be a bit more hang-happy than I'd prefer. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch