From: Daniel Vetter Subject: Re: [PATCH 15/15] drm/i915: implement fdi auto-dithering Date: Mon, 29 Apr 2013 21:35:39 +0200 Message-ID: <20130429193539.GY6169@phenom.ffwll.local> References: <1366363487-15926-1-git-send-email-daniel.vetter@ffwll.ch> <1366363487-15926-16-git-send-email-daniel.vetter@ffwll.ch> <1367244140.6390.66.camel@intelbox> <20130429144359.GX6169@phenom.ffwll.local> <1367247593.6390.70.camel@intelbox> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E790E5EA3 for ; Mon, 29 Apr 2013 12:32:35 -0700 (PDT) Received: by mail-wi0-f178.google.com with SMTP id hm14so3188195wib.5 for ; Mon, 29 Apr 2013 12:32:34 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1367247593.6390.70.camel@intelbox> 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: Imre Deak Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Mon, Apr 29, 2013 at 05:59:53PM +0300, Imre Deak wrote: > On Mon, 2013-04-29 at 16:43 +0200, Daniel Vetter wrote: > > On Mon, Apr 29, 2013 at 05:02:20PM +0300, Imre Deak wrote: > > > On Fri, 2013-04-19 at 11:24 +0200, Daniel Vetter wrote: [snip] > > > > @@ -7714,10 +7733,23 @@ intel_modeset_pipe_config(struct drm_crtc *crtc, > > > > } > > > > } > > > > > > > > - if (!(intel_crtc_compute_config(crtc, pipe_config))) { > > > > + ret = intel_crtc_compute_config(crtc, pipe_config); > > > > + if (ret < 0) { > > > > DRM_DEBUG_KMS("CRTC fixup failed\n"); > > > > goto fail; > > > > } > > > > + > > > > + if (ret == RETRY) { > > > > + if (WARN(!retry, "loop in pipe configuration computation\n")) { > > > > + ret = -EINVAL; > > > > + goto fail; > > > > > > Isn't it possible that intel_dp_compute_config increases pipe_bpp when > > > it forces pipe_bpp to what the firmware has set? In that case could hit > > > this WARN. > > > > Yeah, but that would mean that the firmware asks us for a configuration > > for which we simply do not have enough bandwidth. So I don't think that > > we'll actually hit this in reality. > > > > If we do I guess we need to add a check into intel_dp_compute_config to > > see whether we're in the a) retry loop and b) try to increase bpp and then > > just fail the compute_config stage. But as long as the entire eDP mess is > > a bit unclear I'd like to avoid such complexity until we have a proven > > need. > > > > Want me to add something like the above to the commit message? > > Ok, after the IRC discussion things are clearer now. Yea, would be good > to have have it in the commit message that eDP is a non-issue. With > that: > > Reviewed-by: Imre Deak Ok, slurped in the entire series, with this patch's commit message amended to reflect our discussion. Thanks for the review, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch