From: Jesse Barnes Subject: Re: [PATCH 1/2] drm/i915: add fbc enable flag, but disable by default Date: Thu, 5 May 2011 15:11:39 -0700 Message-ID: <20110505151139.257f8cec@jbarnes-desktop> References: <1304631746-6649-1-git-send-email-jbarnes@virtuousgeek.org> <4DC31FAF.3030303@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy6-pub.bluehost.com (oproxy6-pub.bluehost.com [67.222.54.6]) by gabe.freedesktop.org (Postfix) with SMTP id F09ED9E893 for ; Thu, 5 May 2011 15:11:45 -0700 (PDT) In-Reply-To: <4DC31FAF.3030303@redhat.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: Adam Jackson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 05 May 2011 18:07:43 -0400 Adam Jackson wrote: > On 5/5/11 5:42 PM, Jesse Barnes wrote: > > FBC has too many corner cases that we don't currently deal with, so > > disable it by default so we can enable more important features like RC6, > > which conflicts in some configurations. > > > > Signed-off-by: Jesse Barnes > > It's a bit weird to ... > > > +unsigned int i915_enable_fbc = 0; > > +module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600); > > + > > ... disable fbc by default ... > > > + if (!i915_enable_fbc) { > > + DRM_DEBUG_KMS("fbc disabled manually\n"); > > + dev_priv->no_fbc_reason = FBC_MANUAL_DISABLE; > > + goto out_disable; > > + } > > ... and then claim the user is to blame. Yeah suppose I could use something like "fbc disabled per module param". We just have no way of knowing whether the user passed i915_enable_fbc = 0 or the default was taken. -- Jesse Barnes, Intel Open Source Technology Center