From: Damien Lespiau Subject: Re: [PATCH] drm/i915: Add debugfs hooks for messign with watermark latencies Date: Thu, 23 Jan 2014 09:24:54 +0000 Message-ID: <20140123092454.GA27939@strange.amr.corp.intel.com> References: <1390394168-10042-1-git-send-email-ville.syrjala@linux.intel.com> <20140122142626.GA32552@strange.amr.corp.intel.com> <20140122143811.GR9454@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id AAF27FBDFC for ; Thu, 23 Jan 2014 01:24:56 -0800 (PST) Content-Disposition: inline In-Reply-To: <20140122143811.GR9454@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@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, Jan 22, 2014 at 04:38:11PM +0200, Ville Syrj=E4l=E4 wrote: > On Wed, Jan 22, 2014 at 02:26:26PM +0000, Damien Lespiau wrote: > > On Wed, Jan 22, 2014 at 02:36:08PM +0200, ville.syrjala@linux.intel.com= wrote: > > > From: Ville Syrj=E4l=E4 > > > = > > > Add a few new debugfs files which allow changing the watermark memory > > > latency values during runtime. This can be used to determine the if t= he > > > original BIOS provided latency values are no good. > > > = > > > v2: Drop superfluous plane name from output > > > Take modeset locks around the latency value read/write > > = > > Huum, I was thinking that it may be practical to write the latencies in > > usec instead of the level dependent (and potentially platform dependent) > > units. It can also be done in the small helper from user space anyway. > = > Yeah I'm not really convinced I've designed this interface properly. I > also slightly dislike the fact that the input and output formats aren't > the same. So I was wondering if I should just change the output format > to match the non decorated input format, and then leave it up to the > userspace to make it look nicer. But it's debugfs so I'm not too worried > about the longevity of the design. On second thoughts, I think I'd really like writing the latencies as "x.y" (usec) in that file. Can be done later though. -- = Damien