From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 14/28] drm/i915: disable watermarks on VLV, pondicherry takes care of this Date: Wed, 6 Mar 2013 20:14:54 +0100 Message-ID: <20130306191454.GA9021@phenom.ffwll.local> References: <1362172471-7643-1-git-send-email-jbarnes@virtuousgeek.org> <1362172471-7643-15-git-send-email-jbarnes@virtuousgeek.org> <20130306185633.GS9021@phenom.ffwll.local> <20130306190906.GL4469@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 7E556E5C77 for ; Wed, 6 Mar 2013 11:12:21 -0800 (PST) Received: by mail-wi0-f169.google.com with SMTP id l13so3165102wie.0 for ; Wed, 06 Mar 2013 11:12:20 -0800 (PST) Content-Disposition: inline In-Reply-To: <20130306190906.GL4469@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: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Mar 06, 2013 at 09:09:06PM +0200, Ville Syrj=E4l=E4 wrote: > On Wed, Mar 06, 2013 at 07:56:33PM +0100, Daniel Vetter wrote: > > On Fri, Mar 01, 2013 at 01:14:17PM -0800, Jesse Barnes wrote: > > > For current usage, not needed. > > > = > > > Signed-off-by: Vijay Purushothaman > > > --- > > > drivers/gpu/drm/i915/intel_pm.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > = > > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/i= ntel_pm.c > > > index 7de8cec..b8f5a17 100644 > > > --- a/drivers/gpu/drm/i915/intel_pm.c > > > +++ b/drivers/gpu/drm/i915/intel_pm.c > > > @@ -4211,7 +4211,9 @@ void intel_init_pm(struct drm_device *dev) > > > } else > > > dev_priv->display.update_wm =3D NULL; > > > } else if (IS_VALLEYVIEW(dev)) { > > > - dev_priv->display.update_wm =3D valleyview_update_wm; > > > +// dev_priv->display.update_wm =3D valleyview_update_wm; > > > + dev_priv->display.update_wm =3D NULL; > > > +// dev_priv->display.update_sprite_wm =3D valleyview_update_sprite_= wm; > > = > > Either kill this all (it's kzalloced so no need for NULL assignments) or > > add a giant comment explaining what's going on. Adding commented-out co= de > > without comment is strange ... > = > The whole premise that pondicherry magically handles things is a bit > weird too. I suppose all it really means is that the default WMs were > high enough to avoid underruns for the guys who tested this. > = > Actually wasn't there a comment on an earlier version of this patch > that there was a div by zero or something, and that's the real reason > for this patch? Fyi the patch which fixed div-by-zero on other platforms is: commit 3490ea5de6ac4af309c3df8a26a5cca61306334c Author: Chris Wilson Date: Mon Jan 7 10:11:40 2013 +0000 drm/i915: Treat crtc->mode.clock =3D=3D 0 as disabled Cheers, Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch