From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: kick any firmware framebuffers before claiming the gtt Date: Wed, 13 Jun 2012 13:30:44 +0200 Message-ID: <20120613113044.GG4829@phenom.ffwll.local> References: <1339489445-29108-1-git-send-email-daniel.vetter@ffwll.ch> <1339493297-23829-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 E06569E76C for ; Wed, 13 Jun 2012 04:29:13 -0700 (PDT) Received: by wibhm14 with SMTP id hm14so345465wib.12 for ; Wed, 13 Jun 2012 04:29:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1339493297-23829-1-git-send-email-daniel.vetter@ffwll.ch> 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: Intel Graphics Development Cc: Daniel Vetter , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Tue, Jun 12, 2012 at 11:28:17AM +0200, Daniel Vetter wrote: > Especially vesafb likes to map everything as uc- (yikes), and if that > mapping hangs around still while we try to map the gtt as wc the > kernel will downgrade our request to uc-, resulting in abyssal > performance. > > Unfortunately we can't do this as early as readon does (i.e. as the > first thing we do when initializing the hw) because our fb/mmio space > region moves around on a per-gen basis. So I've had to move it below > the gtt initialization, but that seems to work, too. The important > thing is that we do this before we set up the gtt wc mapping. > > Now an altogether different question is why people compile their > kernels with vesafb enabled, but I guess making things just work isn't > bad per se ... > > v2: > - s/radeondrmfb/inteldrmfb/ > - fix up error handling > > v3: Kill #ifdef X86, this is Intel after all. Noticed by Ben Widawsky. > > v4: Jani Nikula complained about the pointless bool primary > initialization. > > v5: Don't oops if we can't allocate, noticed by Chris Wilson. > > Reported-and-tested-by: "Kilarski, Bernard R" > Signed-Off-by: Daniel Vetter I've pushed this to dinq with Chris' irc bikeshed fixed and r-b added. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48