* [PATCH] drm/i915: Disable FBC on Haswell
@ 2014-06-06 9:37 Chris Wilson
2014-06-06 16:25 ` [Intel-gfx] " Daniel Vetter
2014-06-09 18:12 ` Jani Nikula
0 siblings, 2 replies; 7+ messages in thread
From: Chris Wilson @ 2014-06-06 9:37 UTC (permalink / raw)
To: intel-gfx; +Cc: stable
It causes black screen on bootup and is approximately 100x slower than
running with FBC disabled, so the GPU runs at a high frequency for much
longer - completely contrary to the power saving claims. It also still
has mutex deadlocks in multi-head scenarios, which can lead to a
system/X lockup. These bugs were known before FBC was enabled by default
on Haswell and still have not been fixed.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
---
drivers/gpu/drm/i915/intel_pm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index e403010540a5..0b8a6010427e 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
obj = intel_fb->obj;
adjusted_mode = &intel_crtc->config.adjusted_mode;
- if (i915.enable_fbc < 0 &&
- INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
+ if (i915.enable_fbc < 0) {
if (set_no_fbc_reason(dev_priv, FBC_CHIP_DEFAULT))
DRM_DEBUG_KMS("disabled per chip default\n");
goto out_disable;
--
2.0.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: Disable FBC on Haswell
2014-06-06 9:37 [PATCH] drm/i915: Disable FBC on Haswell Chris Wilson
@ 2014-06-06 16:25 ` Daniel Vetter
2014-06-09 18:12 ` Jani Nikula
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2014-06-06 16:25 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx, stable
On Fri, Jun 06, 2014 at 10:37:11AM +0100, Chris Wilson wrote:
> It causes black screen on bootup and is approximately 100x slower than
> running with FBC disabled, so the GPU runs at a high frequency for much
> longer - completely contrary to the power saving claims. It also still
> has mutex deadlocks in multi-head scenarios, which can lead to a
> system/X lockup. These bugs were known before FBC was enabled by default
> on Haswell and still have not been fixed.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
> Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Jani, please pick up for -fixes.
-Daniel
> ---
> drivers/gpu/drm/i915/intel_pm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index e403010540a5..0b8a6010427e 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
> obj = intel_fb->obj;
> adjusted_mode = &intel_crtc->config.adjusted_mode;
>
> - if (i915.enable_fbc < 0 &&
> - INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
> + if (i915.enable_fbc < 0) {
> if (set_no_fbc_reason(dev_priv, FBC_CHIP_DEFAULT))
> DRM_DEBUG_KMS("disabled per chip default\n");
> goto out_disable;
> --
> 2.0.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: Disable FBC on Haswell
2014-06-06 9:37 [PATCH] drm/i915: Disable FBC on Haswell Chris Wilson
2014-06-06 16:25 ` [Intel-gfx] " Daniel Vetter
@ 2014-06-09 18:12 ` Jani Nikula
2014-06-09 18:36 ` Ville Syrjälä
1 sibling, 1 reply; 7+ messages in thread
From: Jani Nikula @ 2014-06-09 18:12 UTC (permalink / raw)
To: Chris Wilson, intel-gfx; +Cc: stable
On Fri, 06 Jun 2014, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> It causes black screen on bootup and is approximately 100x slower than
> running with FBC disabled, so the GPU runs at a high frequency for much
> longer - completely contrary to the power saving claims. It also still
> has mutex deadlocks in multi-head scenarios, which can lead to a
> system/X lockup. These bugs were known before FBC was enabled by default
> on Haswell and still have not been fixed.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
> Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: stable@vger.kernel.org
> ---
> drivers/gpu/drm/i915/intel_pm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index e403010540a5..0b8a6010427e 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
> obj = intel_fb->obj;
> adjusted_mode = &intel_crtc->config.adjusted_mode;
>
> - if (i915.enable_fbc < 0 &&
> - INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
> + if (i915.enable_fbc < 0) {
Not only does this disable FBC by default on Haswell but also on all
current and future platforms, including Broadwell. Shouldn't you leave
the INTEL_INFO(dev)->gen <= 7 part intact?
BR,
Jani.
> if (set_no_fbc_reason(dev_priv, FBC_CHIP_DEFAULT))
> DRM_DEBUG_KMS("disabled per chip default\n");
> goto out_disable;
> --
> 2.0.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: Disable FBC on Haswell
2014-06-09 18:12 ` Jani Nikula
@ 2014-06-09 18:36 ` Ville Syrjälä
2014-06-09 19:06 ` Jani Nikula
0 siblings, 1 reply; 7+ messages in thread
From: Ville Syrjälä @ 2014-06-09 18:36 UTC (permalink / raw)
To: Jani Nikula; +Cc: intel-gfx, stable
On Mon, Jun 09, 2014 at 09:12:18PM +0300, Jani Nikula wrote:
> On Fri, 06 Jun 2014, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > It causes black screen on bootup and is approximately 100x slower than
> > running with FBC disabled, so the GPU runs at a high frequency for much
> > longer - completely contrary to the power saving claims. It also still
> > has mutex deadlocks in multi-head scenarios, which can lead to a
> > system/X lockup. These bugs were known before FBC was enabled by default
> > on Haswell and still have not been fixed.
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
> > Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: stable@vger.kernel.org
> > ---
> > drivers/gpu/drm/i915/intel_pm.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> > index e403010540a5..0b8a6010427e 100644
> > --- a/drivers/gpu/drm/i915/intel_pm.c
> > +++ b/drivers/gpu/drm/i915/intel_pm.c
> > @@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
> > obj = intel_fb->obj;
> > adjusted_mode = &intel_crtc->config.adjusted_mode;
> >
> > - if (i915.enable_fbc < 0 &&
> > - INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
> > + if (i915.enable_fbc < 0) {
>
> Not only does this disable FBC by default on Haswell but also on all
> current and future platforms, including Broadwell. Shouldn't you leave
> the INTEL_INFO(dev)->gen <= 7 part intact?
The current FBC code is universally broken.
--
Ville Syrjälä
Intel OTC
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: Disable FBC on Haswell
2014-06-09 18:36 ` Ville Syrjälä
@ 2014-06-09 19:06 ` Jani Nikula
2014-06-10 7:06 ` [Intel-gfx] " Daniel Vetter
0 siblings, 1 reply; 7+ messages in thread
From: Jani Nikula @ 2014-06-09 19:06 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: intel-gfx, stable
On Mon, 09 Jun 2014, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Mon, Jun 09, 2014 at 09:12:18PM +0300, Jani Nikula wrote:
>> On Fri, 06 Jun 2014, Chris Wilson <chris@chris-wilson.co.uk> wrote:
>> > It causes black screen on bootup and is approximately 100x slower than
>> > running with FBC disabled, so the GPU runs at a high frequency for much
>> > longer - completely contrary to the power saving claims. It also still
>> > has mutex deadlocks in multi-head scenarios, which can lead to a
>> > system/X lockup. These bugs were known before FBC was enabled by default
>> > on Haswell and still have not been fixed.
>> >
>> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
>> > Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
>> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>> > Cc: stable@vger.kernel.org
>> > ---
>> > drivers/gpu/drm/i915/intel_pm.c | 3 +--
>> > 1 file changed, 1 insertion(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
>> > index e403010540a5..0b8a6010427e 100644
>> > --- a/drivers/gpu/drm/i915/intel_pm.c
>> > +++ b/drivers/gpu/drm/i915/intel_pm.c
>> > @@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
>> > obj = intel_fb->obj;
>> > adjusted_mode = &intel_crtc->config.adjusted_mode;
>> >
>> > - if (i915.enable_fbc < 0 &&
>> > - INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
>> > + if (i915.enable_fbc < 0) {
>>
>> Not only does this disable FBC by default on Haswell but also on all
>> current and future platforms, including Broadwell. Shouldn't you leave
>> the INTEL_INFO(dev)->gen <= 7 part intact?
>
> The current FBC code is universally broken.
Well, then the commit message should reflect that! :p
BR,
Jani.
>
> --
> Ville Syrjälä
> Intel OTC
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: Disable FBC on Haswell
2014-06-09 19:06 ` Jani Nikula
@ 2014-06-10 7:06 ` Daniel Vetter
2014-06-10 16:44 ` Jani Nikula
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Vetter @ 2014-06-10 7:06 UTC (permalink / raw)
To: Jani Nikula; +Cc: Ville Syrjälä, intel-gfx, stable
On Mon, Jun 09, 2014 at 10:06:29PM +0300, Jani Nikula wrote:
> On Mon, 09 Jun 2014, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> > On Mon, Jun 09, 2014 at 09:12:18PM +0300, Jani Nikula wrote:
> >> On Fri, 06 Jun 2014, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> >> > It causes black screen on bootup and is approximately 100x slower than
> >> > running with FBC disabled, so the GPU runs at a high frequency for much
> >> > longer - completely contrary to the power saving claims. It also still
> >> > has mutex deadlocks in multi-head scenarios, which can lead to a
> >> > system/X lockup. These bugs were known before FBC was enabled by default
> >> > on Haswell and still have not been fixed.
> >> >
> >> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
> >> > Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
> >> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> >> > Cc: stable@vger.kernel.org
> >> > ---
> >> > drivers/gpu/drm/i915/intel_pm.c | 3 +--
> >> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >> >
> >> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> >> > index e403010540a5..0b8a6010427e 100644
> >> > --- a/drivers/gpu/drm/i915/intel_pm.c
> >> > +++ b/drivers/gpu/drm/i915/intel_pm.c
> >> > @@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
> >> > obj = intel_fb->obj;
> >> > adjusted_mode = &intel_crtc->config.adjusted_mode;
> >> >
> >> > - if (i915.enable_fbc < 0 &&
> >> > - INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
> >> > + if (i915.enable_fbc < 0) {
> >>
> >> Not only does this disable FBC by default on Haswell but also on all
> >> current and future platforms, including Broadwell. Shouldn't you leave
> >> the INTEL_INFO(dev)->gen <= 7 part intact?
> >
> > The current FBC code is universally broken.
>
> Well, then the commit message should reflect that! :p
s/Haswell/Haswell+/ and it's correct ;-)
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: Disable FBC on Haswell
2014-06-10 7:06 ` [Intel-gfx] " Daniel Vetter
@ 2014-06-10 16:44 ` Jani Nikula
0 siblings, 0 replies; 7+ messages in thread
From: Jani Nikula @ 2014-06-10 16:44 UTC (permalink / raw)
To: Daniel Vetter; +Cc: Ville Syrjälä, intel-gfx, stable
On Tue, 10 Jun 2014, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Mon, Jun 09, 2014 at 10:06:29PM +0300, Jani Nikula wrote:
>> On Mon, 09 Jun 2014, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
>> > On Mon, Jun 09, 2014 at 09:12:18PM +0300, Jani Nikula wrote:
>> >> On Fri, 06 Jun 2014, Chris Wilson <chris@chris-wilson.co.uk> wrote:
>> >> > It causes black screen on bootup and is approximately 100x slower than
>> >> > running with FBC disabled, so the GPU runs at a high frequency for much
>> >> > longer - completely contrary to the power saving claims. It also still
>> >> > has mutex deadlocks in multi-head scenarios, which can lead to a
>> >> > system/X lockup. These bugs were known before FBC was enabled by default
>> >> > on Haswell and still have not been fixed.
>> >> >
>> >> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79716
>> >> > Reported-and-tested-by: Jon Kristensen <info@jonkri.com>
>> >> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>> >> > Cc: stable@vger.kernel.org
>> >> > ---
>> >> > drivers/gpu/drm/i915/intel_pm.c | 3 +--
>> >> > 1 file changed, 1 insertion(+), 2 deletions(-)
>> >> >
>> >> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
>> >> > index e403010540a5..0b8a6010427e 100644
>> >> > --- a/drivers/gpu/drm/i915/intel_pm.c
>> >> > +++ b/drivers/gpu/drm/i915/intel_pm.c
>> >> > @@ -511,8 +511,7 @@ void intel_update_fbc(struct drm_device *dev)
>> >> > obj = intel_fb->obj;
>> >> > adjusted_mode = &intel_crtc->config.adjusted_mode;
>> >> >
>> >> > - if (i915.enable_fbc < 0 &&
>> >> > - INTEL_INFO(dev)->gen <= 7 && !IS_HASWELL(dev)) {
>> >> > + if (i915.enable_fbc < 0) {
>> >>
>> >> Not only does this disable FBC by default on Haswell but also on all
>> >> current and future platforms, including Broadwell. Shouldn't you leave
>> >> the INTEL_INFO(dev)->gen <= 7 part intact?
>> >
>> > The current FBC code is universally broken.
>>
>> Well, then the commit message should reflect that! :p
>
> s/Haswell/Haswell+/ and it's correct ;-)
Pushed to -fixes with a little more verbose change. Thanks for the patch
and review.
BR,
Jani.
> -Daniel
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> +41 (0) 79 365 57 48 - http://blog.ffwll.ch
--
Jani Nikula, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-10 16:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 9:37 [PATCH] drm/i915: Disable FBC on Haswell Chris Wilson
2014-06-06 16:25 ` [Intel-gfx] " Daniel Vetter
2014-06-09 18:12 ` Jani Nikula
2014-06-09 18:36 ` Ville Syrjälä
2014-06-09 19:06 ` Jani Nikula
2014-06-10 7:06 ` [Intel-gfx] " Daniel Vetter
2014-06-10 16:44 ` Jani Nikula
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.