diff mbox

[2/3] drm/i915/vlv: remove pre-production hardware workaround

Message ID 1444205866-5355-2-git-send-email-jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jani Nikula Oct. 7, 2015, 8:17 a.m. UTC
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Ville Syrjälä Oct. 7, 2015, 1:27 p.m. UTC | #1
On Wed, Oct 07, 2015 at 11:17:45AM +0300, Jani Nikula wrote:
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_gem_gtt.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index 620d57e2526b..4e328f71a454 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -133,13 +133,6 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
>  	}
>  #endif
>  
> -	/* Early VLV doesn't have this */
> -	if (IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) &&
> -	    dev->pdev->revision < 0xb) {
> -		DRM_DEBUG_DRIVER("disabling PPGTT on pre-B3 step VLV\n");
> -		return 0;
> -	}

IIRC B2 may have gotten out into the wild, so we can't kill this check
unfortunately. Well, unless it magically got fixed in the meantime. I
don't think anyone ever figured out what the problems was with PPGTT on
B2 and earlier.

So NAK, unless someone knows better.

> -
>  	if (INTEL_INFO(dev)->gen >= 8 && i915.enable_execlists)
>  		return 2;
>  	else
> -- 
> 2.1.4
Daniel Vetter Oct. 7, 2015, 2:30 p.m. UTC | #2
On Wed, Oct 07, 2015 at 04:27:24PM +0300, Ville Syrjälä wrote:
> On Wed, Oct 07, 2015 at 11:17:45AM +0300, Jani Nikula wrote:
> > Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> > ---
> >  drivers/gpu/drm/i915/i915_gem_gtt.c | 7 -------
> >  1 file changed, 7 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> > index 620d57e2526b..4e328f71a454 100644
> > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> > @@ -133,13 +133,6 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
> >  	}
> >  #endif
> >  
> > -	/* Early VLV doesn't have this */
> > -	if (IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) &&
> > -	    dev->pdev->revision < 0xb) {
> > -		DRM_DEBUG_DRIVER("disabling PPGTT on pre-B3 step VLV\n");
> > -		return 0;
> > -	}
> 
> IIRC B2 may have gotten out into the wild, so we can't kill this check
> unfortunately. Well, unless it magically got fixed in the meantime. I
> don't think anyone ever figured out what the problems was with PPGTT on
> B2 and earlier.

Note "into the wild" isn't valid imo - we've had snb workarounds that we
killed which made a few sdvs used by distros and oems broken. I applied it
anyway.

It's only for stuff that's sold in general that I'm counting as "shipped
hw".
-Daniel

> 
> So NAK, unless someone knows better.
> 
> > -
> >  	if (INTEL_INFO(dev)->gen >= 8 && i915.enable_execlists)
> >  		return 2;
> >  	else
> > -- 
> > 2.1.4
> 
> -- 
> Ville Syrjälä
> Intel OTC
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Ville Syrjälä Oct. 7, 2015, 3:35 p.m. UTC | #3
On Wed, Oct 07, 2015 at 04:30:06PM +0200, Daniel Vetter wrote:
> On Wed, Oct 07, 2015 at 04:27:24PM +0300, Ville Syrjälä wrote:
> > On Wed, Oct 07, 2015 at 11:17:45AM +0300, Jani Nikula wrote:
> > > Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> > > ---
> > >  drivers/gpu/drm/i915/i915_gem_gtt.c | 7 -------
> > >  1 file changed, 7 deletions(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> > > index 620d57e2526b..4e328f71a454 100644
> > > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> > > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> > > @@ -133,13 +133,6 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
> > >  	}
> > >  #endif
> > >  
> > > -	/* Early VLV doesn't have this */
> > > -	if (IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) &&
> > > -	    dev->pdev->revision < 0xb) {
> > > -		DRM_DEBUG_DRIVER("disabling PPGTT on pre-B3 step VLV\n");
> > > -		return 0;
> > > -	}
> > 
> > IIRC B2 may have gotten out into the wild, so we can't kill this check
> > unfortunately. Well, unless it magically got fixed in the meantime. I
> > don't think anyone ever figured out what the problems was with PPGTT on
> > B2 and earlier.
> 
> Note "into the wild" isn't valid imo - we've had snb workarounds that we
> killed which made a few sdvs used by distros and oems broken. I applied it
> anyway.
> 
> It's only for stuff that's sold in general that I'm counting as "shipped
> hw".

My statement was meant as "shipped". Poor choice of words.
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 620d57e2526b..4e328f71a454 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -133,13 +133,6 @@  static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
 	}
 #endif
 
-	/* Early VLV doesn't have this */
-	if (IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) &&
-	    dev->pdev->revision < 0xb) {
-		DRM_DEBUG_DRIVER("disabling PPGTT on pre-B3 step VLV\n");
-		return 0;
-	}
-
 	if (INTEL_INFO(dev)->gen >= 8 && i915.enable_execlists)
 		return 2;
 	else