From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH 47/89] drm/i915/skl: SKL Watermark Computation Date: Mon, 22 Sep 2014 23:36:39 +0100 Message-ID: <20140922223639.GA32353@strange.ger.corp.intel.com> References: <1409830075-11139-1-git-send-email-damien.lespiau@intel.com> <1409830075-11139-48-git-send-email-damien.lespiau@intel.com> <20140917120751.GL12416@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTP id 812AD6E4F2 for ; Mon, 22 Sep 2014 15:36:42 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140917120751.GL12416@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Hi Satheesh, On Wed, Sep 17, 2014 at 03:07:51PM +0300, Ville Syrj=E4l=E4 wrote: > > +static bool skl_compute_plane_wm(struct skl_pipe_wm_parameters *p, > > + struct intel_plane_wm_parameters *p_params, > > + uint16_t max_page_buff_alloc, > > + uint32_t mem_value, > > + uint16_t *res_blocks, /* out */ > > + uint8_t *res_lines /* out */) > > +{ > > + uint32_t method1, method2, plane_bytes_per_line; > > + uint32_t result_bytes; > > + > > + if (!p->active || !p_params->enabled) { > > + *res_blocks =3D PLANE_WM_BLOCKS_DEFAULT; > > + *res_lines =3D PLANE_WM_LINES_DEFAULT; > = > Why do we need to set !=3D0 values for disabled planes? > = > > + return false; > > + } Do you remember why we would program some default numbers of blocks/lines for disabled planes? Can't find a reason to do so now. Thanks, -- = Damien