From: Daniel Vetter Subject: Re: [PATCH 45/89] drm/i915/skl: Definition of SKL WM param structs for pipe/plane Date: Tue, 23 Sep 2014 10:16:17 +0200 Message-ID: <20140923081617.GT15734@phenom.ffwll.local> References: <1409830075-11139-1-git-send-email-damien.lespiau@intel.com> <1409830075-11139-46-git-send-email-damien.lespiau@intel.com> <20140922140610.GU12416@intel.com> <20140922142122.GN10951@strange.ger.corp.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-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 4CAD46E0B9 for ; Tue, 23 Sep 2014 01:16:22 -0700 (PDT) Received: by mail-wi0-f177.google.com with SMTP id q5so4490757wiv.10 for ; Tue, 23 Sep 2014 01:16:21 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140922142122.GN10951@strange.ger.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Damien Lespiau Cc: intel-gfx@lists.freedesktop.org, Pradeep Bhat List-Id: intel-gfx@lists.freedesktop.org On Mon, Sep 22, 2014 at 03:21:22PM +0100, Damien Lespiau wrote: > On Mon, Sep 22, 2014 at 05:06:11PM +0300, Ville Syrj=E4l=E4 wrote: > > > +struct skl_pipe_wm { > > > + struct skl_wm_level wm[8]; > > > + struct skl_wm_level trans_wm; > > > + uint32_t linetime; > > > +}; > > > + > > > struct intel_crtc { > > > struct drm_crtc base; > > > enum pipe pipe; > > > @@ -431,9 +437,11 @@ struct intel_crtc { > > > bool pch_fifo_underrun_disabled; > > > = > > > /* per-pipe watermark state */ > > > - struct { > > > + union { > > = > > I almost gave my r-b, but then I noticed this. It's going to mess up my > > pending watermark series. I'm going to add tons of junk here, so union > > is not really acceptable for me. Needs some other solution. > = > Well, you could use an anonymous structure in that union? We could also > try to merge skl_pipe_wm and intel_pipe_wm at a later point? or just > leaving this a struct, wasting a tiny bit of memory be good enough for > now? We only have 3 pipes ... you can waste a few kb and no one will notice at all ;-) -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch