From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 25/33] drm/i915: PLL and clock gating registers need an offset on VLV Date: Fri, 25 Jan 2013 17:06:51 +0100 Message-ID: <20130125160651.GL23080@phenom.ffwll.local> References: <1359034198-19678-1-git-send-email-ville.syrjala@linux.intel.com> <1359034198-19678-26-git-send-email-ville.syrjala@linux.intel.com> <20130124224153.GF23080@phenom.ffwll.local> <20130125105115.GQ9135@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CA6DE5D18 for ; Fri, 25 Jan 2013 08:04:45 -0800 (PST) Received: by mail-wg0-f52.google.com with SMTP id 12so336387wgh.7 for ; Fri, 25 Jan 2013 08:04:44 -0800 (PST) Content-Disposition: inline In-Reply-To: <20130125105115.GQ9135@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 Fri, Jan 25, 2013 at 12:51:15PM +0200, Ville Syrj=E4l=E4 wrote: > On Thu, Jan 24, 2013 at 11:41:53PM +0100, Daniel Vetter wrote: > > On Thu, Jan 24, 2013 at 03:29:50PM +0200, ville.syrjala@linux.intel.com= wrote: > > > #define DSTATE_GFX_RESET_I830 (1<<6) > > > #define DSTATE_PLL_D3_OFF (1<<3) > > > #define DSTATE_GFX_CLOCK_GATING (1<<1) > > > #define DSTATE_DOT_CLOCK_GATING (1<<0) > > > -#define DSPCLK_GATE_D 0x6200 > > > +#define DSPCLK_GATE_D (dev_priv->info->display_mmio_offset + 0x6200) > > = > > This one here seems to be only used up to gen4 ... > = > DSPCLK_GATE_D is used in intel_i2c_quirk_set(). OTOH gma500 has the > same code commented out, so it may be that we can skip it too. Anyone > have more details on this quirk? Afaict that quirk is for pnv only. > gma500 also seems to use DSPCLK_GATE_D to disable clock gating for > some DP stuff on CDV. Considering the lineage we need to find out > if that's something that affects VLV as well. I guess we could add it once we need it in a vlv clock gating functions. Generally we tend to only add clock gating defines when we need them, since there are soooooo many. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch