From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 1/7] drm/i915: Prevent using uninitialized MMIO funcs Date: Tue, 8 Oct 2013 17:23:16 +0200 Message-ID: <20131008152316.GG8303@phenom.ffwll.local> References: <1380946975-14431-1-git-send-email-benjamin.widawsky@intel.com> <20131008133822.GB27819@strange.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f175.google.com (mail-ea0-f175.google.com [209.85.215.175]) by gabe.freedesktop.org (Postfix) with ESMTP id C5C1CE6E66 for ; Tue, 8 Oct 2013 08:22:59 -0700 (PDT) Received: by mail-ea0-f175.google.com with SMTP id m14so4022443eaj.6 for ; Tue, 08 Oct 2013 08:22:57 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20131008133822.GB27819@strange.amr.corp.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: Damien Lespiau Cc: Intel GFX , Ben Widawsky , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Tue, Oct 08, 2013 at 02:38:22PM +0100, Damien Lespiau wrote: > On Fri, Oct 04, 2013 at 09:22:49PM -0700, Ben Widawsky wrote: > > For upcoming patches which will have GEN specific MMIO functions, we'll > > need to initialize the uncore data structure earlier than we do today. > > > > If we do not do this, the following will be problematic: > > > > intel_uncore_sanitize > > intel_disable_gt_powersave > > gen6_disable_rps > > I915_WRITE(GEN6_RC_CONTROL, 0); <--- MMIO > > intel_uncore_init // initializes MMIO > > > > By initializing the function pointers first, we should be safe. > > > > Signed-off-by: Ben Widawsky > > For the whole series: > > Reviewed-by: Damien Lespiau All merged, thanks for patches&review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch