diff mbox

drm/i915/skl: revert duplicated WaBarrierPerformanceFixDisable:skl

Message ID 1438197682-23297-1-git-send-email-marc.herbert@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc Herbert July 29, 2015, 7:21 p.m. UTC
With this simple git diff command one can see that skl_init_workarounds()
got two copies of WaBarrierPerformanceFixDisable:skl:

 git diff -U21 ca6e4405779e^1 ca6e4405779e drivers/gpu/drm/i915/intel_ringbuffer.c

This happened when the backmerge of drm-intel-fixes-2015-07-15
Merged the same fix on both sides. Same fix but not identical enough for
git: with a different surrounding context; hence the code duplication.

This commit merely reverts the output of the git command above
 = the duplication introduced in the backmerge.

(This duplication was found while running git sanity checks on a
_linearized_ i915 forklift for ChromeOS.)

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Rodrigo Vivi July 30, 2015, 9:52 p.m. UTC | #1
good catch.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

On Wed, Jul 29, 2015 at 12:21 PM, Marc Herbert <marc.herbert@intel.com> wrote:
> With this simple git diff command one can see that skl_init_workarounds()
> got two copies of WaBarrierPerformanceFixDisable:skl:
>
>  git diff -U21 ca6e4405779e^1 ca6e4405779e drivers/gpu/drm/i915/intel_ringbuffer.c
>
> This happened when the backmerge of drm-intel-fixes-2015-07-15
> Merged the same fix on both sides. Same fix but not identical enough for
> git: with a different surrounding context; hence the code duplication.
>
> This commit merely reverts the output of the git command above
>  = the duplication introduced in the backmerge.
>
> (This duplication was found while running git sanity checks on a
> _linearized_ i915 forklift for ChromeOS.)
>
> Signed-off-by: Marc Herbert <marc.herbert@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_ringbuffer.c | 7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
> index 177f7ed16cf0..1c14233d179f 100644
> --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> @@ -1041,13 +1041,6 @@ static int skl_init_workarounds(struct intel_engine_cs *ring)
>                 WA_SET_BIT_MASKED(HIZ_CHICKEN,
>                                   BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE);
>
> -       if (INTEL_REVID(dev) == SKL_REVID_C0 ||
> -           INTEL_REVID(dev) == SKL_REVID_D0)
> -               /* WaBarrierPerformanceFixDisable:skl */
> -               WA_SET_BIT_MASKED(HDC_CHICKEN0,
> -                                 HDC_FENCE_DEST_SLM_DISABLE |
> -                                 HDC_BARRIER_PERFORMANCE_DISABLE);
> -
>         if (INTEL_REVID(dev) <= SKL_REVID_D0) {
>                 /*
>                  *Use Force Non-Coherent whenever executing a 3D context. This
> --
> 2.1.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Shuang He July 30, 2015, 11:32 p.m. UTC | #2
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6895
-------------------------------------Summary-------------------------------------
Platform          Delta          drm-intel-nightly          Series Applied
ILK                 -1              297/297              296/297
SNB                                  315/315              315/315
IVB                                  342/342              342/342
BYT                 -1              282/282              281/282
HSW                                  378/378              378/378
-------------------------------------Detailed-------------------------------------
Platform  Test                                drm-intel-nightly          Series Applied
*ILK  igt@kms_flip@flip-vs-dpms-interruptible      PASS(1)      DMESG_WARN(1)
*BYT  igt@gem_tiled_partial_pwrite_pread@reads      PASS(1)      FAIL(1)
Note: You need to pay more attention to line start with '*'
Daniel Vetter Aug. 5, 2015, 8:17 a.m. UTC | #3
On Thu, Jul 30, 2015 at 02:52:07PM -0700, Rodrigo Vivi wrote:
> good catch.
> 
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

Queued for -next, thanks for the patch.
-Daniel

> 
> On Wed, Jul 29, 2015 at 12:21 PM, Marc Herbert <marc.herbert@intel.com> wrote:
> > With this simple git diff command one can see that skl_init_workarounds()
> > got two copies of WaBarrierPerformanceFixDisable:skl:
> >
> >  git diff -U21 ca6e4405779e^1 ca6e4405779e drivers/gpu/drm/i915/intel_ringbuffer.c
> >
> > This happened when the backmerge of drm-intel-fixes-2015-07-15
> > Merged the same fix on both sides. Same fix but not identical enough for
> > git: with a different surrounding context; hence the code duplication.
> >
> > This commit merely reverts the output of the git command above
> >  = the duplication introduced in the backmerge.
> >
> > (This duplication was found while running git sanity checks on a
> > _linearized_ i915 forklift for ChromeOS.)
> >
> > Signed-off-by: Marc Herbert <marc.herbert@intel.com>
> > ---
> >  drivers/gpu/drm/i915/intel_ringbuffer.c | 7 -------
> >  1 file changed, 7 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
> > index 177f7ed16cf0..1c14233d179f 100644
> > --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> > @@ -1041,13 +1041,6 @@ static int skl_init_workarounds(struct intel_engine_cs *ring)
> >                 WA_SET_BIT_MASKED(HIZ_CHICKEN,
> >                                   BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE);
> >
> > -       if (INTEL_REVID(dev) == SKL_REVID_C0 ||
> > -           INTEL_REVID(dev) == SKL_REVID_D0)
> > -               /* WaBarrierPerformanceFixDisable:skl */
> > -               WA_SET_BIT_MASKED(HDC_CHICKEN0,
> > -                                 HDC_FENCE_DEST_SLM_DISABLE |
> > -                                 HDC_BARRIER_PERFORMANCE_DISABLE);
> > -
> >         if (INTEL_REVID(dev) <= SKL_REVID_D0) {
> >                 /*
> >                  *Use Force Non-Coherent whenever executing a 3D context. This
> > --
> > 2.1.0
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> 
> 
> -- 
> Rodrigo Vivi
> Blog: http://blog.vivi.eng.br
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 177f7ed16cf0..1c14233d179f 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -1041,13 +1041,6 @@  static int skl_init_workarounds(struct intel_engine_cs *ring)
 		WA_SET_BIT_MASKED(HIZ_CHICKEN,
 				  BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE);
 
-	if (INTEL_REVID(dev) == SKL_REVID_C0 ||
-	    INTEL_REVID(dev) == SKL_REVID_D0)
-		/* WaBarrierPerformanceFixDisable:skl */
-		WA_SET_BIT_MASKED(HDC_CHICKEN0,
-				  HDC_FENCE_DEST_SLM_DISABLE |
-				  HDC_BARRIER_PERFORMANCE_DISABLE);
-
 	if (INTEL_REVID(dev) <= SKL_REVID_D0) {
 		/*
 		 *Use Force Non-Coherent whenever executing a 3D context. This