All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling
@ 2019-03-07 10:32 Imre Deak
  2019-03-07 15:46 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2) Patchwork
  2019-03-07 17:59 ` [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Rodrigo Vivi
  0 siblings, 2 replies; 6+ messages in thread
From: Imre Deak @ 2019-03-07 10:32 UTC (permalink / raw)
  To: intel-gfx

Pretend that we have only 1 DBuf slice and that 1 slice is always
enabled, until we have a proper way for on-demand toggling of the second
slice.  Currently we'll try to incorrectly enable DBuf even when all
pipes are disabled and we are already runtime suspended (as the computed
number of DBuf slices will be 1 in that case).

This also means we'll leave the second slice enabled redundantly (except
when suspended), but that's an acceptable tradeoff until we have a
proper solution.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108756
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c         |  7 ++++++-
 drivers/gpu/drm/i915/intel_runtime_pm.c | 12 ++++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 9c97a95c1816..bece16ae6d15 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3624,7 +3624,12 @@ static u8 intel_enabled_dbuf_slices_num(struct drm_i915_private *dev_priv)
 	if (INTEL_GEN(dev_priv) < 11)
 		return enabled_slices;
 
-	if (I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE)
+	/*
+	 * FIXME: for now we'll only ever use 1 slice; pretend that we have
+	 * only that 1 slice enabled until we have a proper way for on-demand
+	 * toggling of the second slice.
+	 */
+	if (0 && I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE)
 		enabled_slices++;
 
 	return enabled_slices;
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index aa974b11928a..676a89bb8194 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -3576,7 +3576,11 @@ static void icl_dbuf_enable(struct drm_i915_private *dev_priv)
 	    !(I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
 		DRM_ERROR("DBuf power enable timeout\n");
 	else
-		dev_priv->wm.skl_hw.ddb.enabled_slices = 2;
+		/*
+		 * FIXME: for now pretend that we only have 1 slice, see
+		 * intel_enabled_dbuf_slices_num().
+		 */
+		dev_priv->wm.skl_hw.ddb.enabled_slices = 1;
 }
 
 static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
@@ -3591,7 +3595,11 @@ static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
 	    (I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
 		DRM_ERROR("DBuf power disable timeout!\n");
 	else
-		dev_priv->wm.skl_hw.ddb.enabled_slices = 0;
+		/*
+		 * FIXME: for now pretend that the first slice is always
+		 * enabled, see intel_enabled_dbuf_slices_num().
+		 */
+		dev_priv->wm.skl_hw.ddb.enabled_slices = 1;
 }
 
 static void icl_mbus_init(struct drm_i915_private *dev_priv)
-- 
2.13.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
  2019-03-07 10:32 [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Imre Deak
@ 2019-03-07 15:46 ` Patchwork
  2019-03-07 15:52   ` Imre Deak
  2019-03-07 17:59 ` [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Rodrigo Vivi
  1 sibling, 1 reply; 6+ messages in thread
From: Patchwork @ 2019-03-07 15:46 UTC (permalink / raw)
  To: Imre Deak; +Cc: intel-gfx

== Series Details ==

Series: drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
URL   : https://patchwork.freedesktop.org/series/57687/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_5714 -> Patchwork_12404
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with Patchwork_12404 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in Patchwork_12404, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/57687/revisions/2/mbox/

Possible new issues
-------------------

  Here are the unknown changes that may have been introduced in Patchwork_12404:

### IGT changes ###

#### Possible regressions ####

  * igt@i915_pm_rpm@module-reload:
    - fi-kbl-7560u:       NOTRUN -> CRASH

  
Known issues
------------

  Here are the changes found in Patchwork_12404 that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@amdgpu/amd_basic@cs-compute:
    - fi-kbl-8809g:       NOTRUN -> FAIL [fdo#108094]

  * igt@amdgpu/amd_basic@cs-sdma:
    - fi-kbl-7560u:       NOTRUN -> SKIP [fdo#109271] +17

  * igt@amdgpu/amd_basic@query-info:
    - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] +55

  * igt@gem_exec_basic@basic-bsd2:
    - fi-kbl-7500u:       NOTRUN -> SKIP [fdo#109271] +9

  * igt@gem_exec_basic@gtt-bsd:
    - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] +103

  * igt@gem_exec_suspend@basic-s3:
    - fi-blb-e6850:       PASS -> INCOMPLETE [fdo#107718]

  * igt@i915_selftest@live_execlists:
    - fi-apl-guc:         NOTRUN -> INCOMPLETE [fdo#103927] / [fdo#109720]

  * igt@kms_busy@basic-flip-c:
    - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
    - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
    - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] / [fdo#109278]

  * igt@kms_chamelium@dp-crc-fast:
    - fi-kbl-7500u:       NOTRUN -> DMESG-WARN [fdo#103841]

  * igt@kms_chamelium@hdmi-crc-fast:
    - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] +52

  * igt@kms_chamelium@vga-edid-read:
    - fi-skl-6600u:       NOTRUN -> SKIP [fdo#109271] +41

  * igt@kms_force_connector_basic@force-load-detect:
    - fi-bxt-j4205:       NOTRUN -> SKIP [fdo#109271] +47

  * igt@kms_frontbuffer_tracking@basic:
    - fi-byt-clapper:     PASS -> FAIL [fdo#103167]

  * igt@kms_psr@primary_page_flip:
    - fi-apl-guc:         NOTRUN -> SKIP [fdo#109271] +50

  * igt@runner@aborted:
    - fi-kbl-7500u:       NOTRUN -> FAIL [fdo#103841]
    - fi-apl-guc:         NOTRUN -> FAIL [fdo#108622] / [fdo#109720]

  
#### Possible fixes ####

  * igt@amdgpu/amd_basic@userptr:
    - fi-kbl-8809g:       DMESG-WARN [fdo#108965] -> PASS

  * igt@i915_module_load@reload-with-fault-injection:
    - fi-kbl-7560u:       INCOMPLETE -> PASS

  * igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
    - fi-byt-clapper:     FAIL [fdo#103191] / [fdo#107362] -> PASS

  
  [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
  [fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
  [fdo#103841]: https://bugs.freedesktop.org/show_bug.cgi?id=103841
  [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
  [fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
  [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
  [fdo#108094]: https://bugs.freedesktop.org/show_bug.cgi?id=108094
  [fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
  [fdo#108965]: https://bugs.freedesktop.org/show_bug.cgi?id=108965
  [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
  [fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
  [fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720


Participating hosts (40 -> 40)
------------------------------

  Additional (7): fi-byt-j1900 fi-bwr-2160 fi-apl-guc fi-kbl-7500u fi-bxt-j4205 fi-bsw-kefka fi-skl-6600u 
  Missing    (7): fi-kbl-soraka fi-ilk-m540 fi-bsw-n3050 fi-hsw-4200u fi-byt-squawks fi-ctg-p8600 fi-byt-n2820 


Build changes
-------------

    * Linux: CI_DRM_5714 -> Patchwork_12404

  CI_DRM_5714: f0591e61349e96e8faba5348515043884e5ba542 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_4876: 51b8d4cfde8d5b0176180b9683accea91474c7ff @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  Patchwork_12404: 93c4c9abe3b1108b2c5180879fdfcf18db46193e @ git://anongit.freedesktop.org/gfx-ci/linux


== Linux commits ==

93c4c9abe3b1 drm/i915/icl: Prevent incorrect DBuf enabling

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12404/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
  2019-03-07 15:46 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2) Patchwork
@ 2019-03-07 15:52   ` Imre Deak
  2019-03-08  8:16     ` Imre Deak
  0 siblings, 1 reply; 6+ messages in thread
From: Imre Deak @ 2019-03-07 15:52 UTC (permalink / raw)
  To: intel-gfx; +Cc: Martin Peres

On Thu, Mar 07, 2019 at 03:46:23PM +0000, Patchwork wrote:
> == Series Details ==
> 
> Series: drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
> URL   : https://patchwork.freedesktop.org/series/57687/
> State : failure
> 
> == Summary ==
> 
> CI Bug Log - changes from CI_DRM_5714 -> Patchwork_12404
> ====================================================
> 
> Summary
> -------
> 
>   **FAILURE**
> 
>   Serious unknown changes coming with Patchwork_12404 absolutely need to be
>   verified manually.
>   
>   If you think the reported changes have nothing to do with the changes
>   introduced in Patchwork_12404, please notify your bug team to allow them
>   to document this new failure mode, which will reduce false positives in CI.
> 
>   External URL: https://patchwork.freedesktop.org/api/1.0/series/57687/revisions/2/mbox/
> 
> Possible new issues
> -------------------
> 
>   Here are the unknown changes that may have been introduced in Patchwork_12404:
> 
> ### IGT changes ###
> 
> #### Possible regressions ####
> 
>   * igt@i915_pm_rpm@module-reload:
>     - fi-kbl-7560u:       NOTRUN -> CRASH

The change only affects ICLs, so the above issue must be unrelated.

> 
>   
> Known issues
> ------------
> 
>   Here are the changes found in Patchwork_12404 that come from known issues:
> 
> ### IGT changes ###
> 
> #### Issues hit ####
> 
>   * igt@amdgpu/amd_basic@cs-compute:
>     - fi-kbl-8809g:       NOTRUN -> FAIL [fdo#108094]
> 
>   * igt@amdgpu/amd_basic@cs-sdma:
>     - fi-kbl-7560u:       NOTRUN -> SKIP [fdo#109271] +17
> 
>   * igt@amdgpu/amd_basic@query-info:
>     - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] +55
> 
>   * igt@gem_exec_basic@basic-bsd2:
>     - fi-kbl-7500u:       NOTRUN -> SKIP [fdo#109271] +9
> 
>   * igt@gem_exec_basic@gtt-bsd:
>     - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] +103
> 
>   * igt@gem_exec_suspend@basic-s3:
>     - fi-blb-e6850:       PASS -> INCOMPLETE [fdo#107718]
> 
>   * igt@i915_selftest@live_execlists:
>     - fi-apl-guc:         NOTRUN -> INCOMPLETE [fdo#103927] / [fdo#109720]
> 
>   * igt@kms_busy@basic-flip-c:
>     - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
>     - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
>     - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
> 
>   * igt@kms_chamelium@dp-crc-fast:
>     - fi-kbl-7500u:       NOTRUN -> DMESG-WARN [fdo#103841]
> 
>   * igt@kms_chamelium@hdmi-crc-fast:
>     - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] +52
> 
>   * igt@kms_chamelium@vga-edid-read:
>     - fi-skl-6600u:       NOTRUN -> SKIP [fdo#109271] +41
> 
>   * igt@kms_force_connector_basic@force-load-detect:
>     - fi-bxt-j4205:       NOTRUN -> SKIP [fdo#109271] +47
> 
>   * igt@kms_frontbuffer_tracking@basic:
>     - fi-byt-clapper:     PASS -> FAIL [fdo#103167]
> 
>   * igt@kms_psr@primary_page_flip:
>     - fi-apl-guc:         NOTRUN -> SKIP [fdo#109271] +50
> 
>   * igt@runner@aborted:
>     - fi-kbl-7500u:       NOTRUN -> FAIL [fdo#103841]
>     - fi-apl-guc:         NOTRUN -> FAIL [fdo#108622] / [fdo#109720]
> 
>   
> #### Possible fixes ####
> 
>   * igt@amdgpu/amd_basic@userptr:
>     - fi-kbl-8809g:       DMESG-WARN [fdo#108965] -> PASS
> 
>   * igt@i915_module_load@reload-with-fault-injection:
>     - fi-kbl-7560u:       INCOMPLETE -> PASS
> 
>   * igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
>     - fi-byt-clapper:     FAIL [fdo#103191] / [fdo#107362] -> PASS
> 
>   
>   [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
>   [fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
>   [fdo#103841]: https://bugs.freedesktop.org/show_bug.cgi?id=103841
>   [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
>   [fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
>   [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
>   [fdo#108094]: https://bugs.freedesktop.org/show_bug.cgi?id=108094
>   [fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
>   [fdo#108965]: https://bugs.freedesktop.org/show_bug.cgi?id=108965
>   [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
>   [fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
>   [fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
> 
> 
> Participating hosts (40 -> 40)
> ------------------------------
> 
>   Additional (7): fi-byt-j1900 fi-bwr-2160 fi-apl-guc fi-kbl-7500u fi-bxt-j4205 fi-bsw-kefka fi-skl-6600u 
>   Missing    (7): fi-kbl-soraka fi-ilk-m540 fi-bsw-n3050 fi-hsw-4200u fi-byt-squawks fi-ctg-p8600 fi-byt-n2820 
> 
> 
> Build changes
> -------------
> 
>     * Linux: CI_DRM_5714 -> Patchwork_12404
> 
>   CI_DRM_5714: f0591e61349e96e8faba5348515043884e5ba542 @ git://anongit.freedesktop.org/gfx-ci/linux
>   IGT_4876: 51b8d4cfde8d5b0176180b9683accea91474c7ff @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
>   Patchwork_12404: 93c4c9abe3b1108b2c5180879fdfcf18db46193e @ git://anongit.freedesktop.org/gfx-ci/linux
> 
> 
> == Linux commits ==
> 
> 93c4c9abe3b1 drm/i915/icl: Prevent incorrect DBuf enabling
> 
> == Logs ==
> 
> For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12404/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling
  2019-03-07 10:32 [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Imre Deak
  2019-03-07 15:46 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2) Patchwork
@ 2019-03-07 17:59 ` Rodrigo Vivi
  2019-03-07 19:45   ` Imre Deak
  1 sibling, 1 reply; 6+ messages in thread
From: Rodrigo Vivi @ 2019-03-07 17:59 UTC (permalink / raw)
  To: Imre Deak; +Cc: intel-gfx

On Thu, Mar 07, 2019 at 12:32:35PM +0200, Imre Deak wrote:
> Pretend that we have only 1 DBuf slice and that 1 slice is always
> enabled, until we have a proper way for on-demand toggling of the second
> slice.  Currently we'll try to incorrectly enable DBuf even when all
> pipes are disabled and we are already runtime suspended (as the computed
> number of DBuf slices will be 1 in that case).
> 
> This also means we'll leave the second slice enabled redundantly (except
> when suspended), but that's an acceptable tradeoff until we have a
> proper solution.

redundant is the word of the week :)

> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108756
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Imre Deak <imre.deak@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_pm.c         |  7 ++++++-
>  drivers/gpu/drm/i915/intel_runtime_pm.c | 12 ++++++++++--
>  2 files changed, 16 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 9c97a95c1816..bece16ae6d15 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -3624,7 +3624,12 @@ static u8 intel_enabled_dbuf_slices_num(struct drm_i915_private *dev_priv)
>  	if (INTEL_GEN(dev_priv) < 11)
>  		return enabled_slices;
>  
> -	if (I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE)
> +	/*
> +	 * FIXME: for now we'll only ever use 1 slice; pretend that we have
> +	 * only that 1 slice enabled until we have a proper way for on-demand
> +	 * toggling of the second slice.
> +	 */
> +	if (0 && I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE)

what if just add a check for enabled_slices >= 2 and avoid the FIXME here?

but up to you:

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

>  		enabled_slices++;
>  
>  	return enabled_slices;
> diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
> index aa974b11928a..676a89bb8194 100644
> --- a/drivers/gpu/drm/i915/intel_runtime_pm.c
> +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
> @@ -3576,7 +3576,11 @@ static void icl_dbuf_enable(struct drm_i915_private *dev_priv)
>  	    !(I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
>  		DRM_ERROR("DBuf power enable timeout\n");
>  	else
> -		dev_priv->wm.skl_hw.ddb.enabled_slices = 2;
> +		/*
> +		 * FIXME: for now pretend that we only have 1 slice, see
> +		 * intel_enabled_dbuf_slices_num().
> +		 */
> +		dev_priv->wm.skl_hw.ddb.enabled_slices = 1;
>  }
>  
>  static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
> @@ -3591,7 +3595,11 @@ static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
>  	    (I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
>  		DRM_ERROR("DBuf power disable timeout!\n");
>  	else
> -		dev_priv->wm.skl_hw.ddb.enabled_slices = 0;
> +		/*
> +		 * FIXME: for now pretend that the first slice is always
> +		 * enabled, see intel_enabled_dbuf_slices_num().
> +		 */
> +		dev_priv->wm.skl_hw.ddb.enabled_slices = 1;
>  }
>  
>  static void icl_mbus_init(struct drm_i915_private *dev_priv)
> -- 
> 2.13.2
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling
  2019-03-07 17:59 ` [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Rodrigo Vivi
@ 2019-03-07 19:45   ` Imre Deak
  0 siblings, 0 replies; 6+ messages in thread
From: Imre Deak @ 2019-03-07 19:45 UTC (permalink / raw)
  To: Rodrigo Vivi; +Cc: intel-gfx

On Thu, Mar 07, 2019 at 09:59:39AM -0800, Rodrigo Vivi wrote:
> On Thu, Mar 07, 2019 at 12:32:35PM +0200, Imre Deak wrote:
> > Pretend that we have only 1 DBuf slice and that 1 slice is always
> > enabled, until we have a proper way for on-demand toggling of the second
> > slice.  Currently we'll try to incorrectly enable DBuf even when all
> > pipes are disabled and we are already runtime suspended (as the computed
> > number of DBuf slices will be 1 in that case).
> > 
> > This also means we'll leave the second slice enabled redundantly (except
> > when suspended), but that's an acceptable tradeoff until we have a
> > proper solution.
> 
> redundant is the word of the week :)
> 
> > 
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108756
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> >  drivers/gpu/drm/i915/intel_pm.c         |  7 ++++++-
> >  drivers/gpu/drm/i915/intel_runtime_pm.c | 12 ++++++++++--
> >  2 files changed, 16 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> > index 9c97a95c1816..bece16ae6d15 100644
> > --- a/drivers/gpu/drm/i915/intel_pm.c
> > +++ b/drivers/gpu/drm/i915/intel_pm.c
> > @@ -3624,7 +3624,12 @@ static u8 intel_enabled_dbuf_slices_num(struct drm_i915_private *dev_priv)
> >  	if (INTEL_GEN(dev_priv) < 11)
> >  		return enabled_slices;
> >  
> > -	if (I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE)
> > +	/*
> > +	 * FIXME: for now we'll only ever use 1 slice; pretend that we have
> > +	 * only that 1 slice enabled until we have a proper way for on-demand
> > +	 * toggling of the second slice.
> > +	 */
> > +	if (0 && I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE)
> 
> what if just add a check for enabled_slices >= 2 and avoid the FIXME here?

You mean >= 1 during state verification? That would also need its own
FIXME:) And this one here matches better what we do elsewhere to keep
things working.

> 
> but up to you:
> 
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> 
> >  		enabled_slices++;
> >  
> >  	return enabled_slices;
> > diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
> > index aa974b11928a..676a89bb8194 100644
> > --- a/drivers/gpu/drm/i915/intel_runtime_pm.c
> > +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
> > @@ -3576,7 +3576,11 @@ static void icl_dbuf_enable(struct drm_i915_private *dev_priv)
> >  	    !(I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
> >  		DRM_ERROR("DBuf power enable timeout\n");
> >  	else
> > -		dev_priv->wm.skl_hw.ddb.enabled_slices = 2;
> > +		/*
> > +		 * FIXME: for now pretend that we only have 1 slice, see
> > +		 * intel_enabled_dbuf_slices_num().
> > +		 */
> > +		dev_priv->wm.skl_hw.ddb.enabled_slices = 1;
> >  }
> >  
> >  static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
> > @@ -3591,7 +3595,11 @@ static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
> >  	    (I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
> >  		DRM_ERROR("DBuf power disable timeout!\n");
> >  	else
> > -		dev_priv->wm.skl_hw.ddb.enabled_slices = 0;
> > +		/*
> > +		 * FIXME: for now pretend that the first slice is always
> > +		 * enabled, see intel_enabled_dbuf_slices_num().
> > +		 */
> > +		dev_priv->wm.skl_hw.ddb.enabled_slices = 1;
> >  }
> >  
> >  static void icl_mbus_init(struct drm_i915_private *dev_priv)
> > -- 
> > 2.13.2
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
  2019-03-07 15:52   ` Imre Deak
@ 2019-03-08  8:16     ` Imre Deak
  0 siblings, 0 replies; 6+ messages in thread
From: Imre Deak @ 2019-03-08  8:16 UTC (permalink / raw)
  To: intel-gfx, Rodrigo Vivi; +Cc: Martin Peres

On Thu, Mar 07, 2019 at 05:52:08PM +0200, Imre Deak wrote:
> On Thu, Mar 07, 2019 at 03:46:23PM +0000, Patchwork wrote:
> > == Series Details ==
> > 
> > Series: drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
> > URL   : https://patchwork.freedesktop.org/series/57687/
> > State : failure
> > 
> > == Summary ==

Thanks for the review, pushed to -dinq.

> > 
> > CI Bug Log - changes from CI_DRM_5714 -> Patchwork_12404
> > ====================================================
> > 
> > Summary
> > -------
> > 
> >   **FAILURE**
> > 
> >   Serious unknown changes coming with Patchwork_12404 absolutely need to be
> >   verified manually.
> >   
> >   If you think the reported changes have nothing to do with the changes
> >   introduced in Patchwork_12404, please notify your bug team to allow them
> >   to document this new failure mode, which will reduce false positives in CI.
> > 
> >   External URL: https://patchwork.freedesktop.org/api/1.0/series/57687/revisions/2/mbox/
> > 
> > Possible new issues
> > -------------------
> > 
> >   Here are the unknown changes that may have been introduced in Patchwork_12404:
> > 
> > ### IGT changes ###
> > 
> > #### Possible regressions ####
> > 
> >   * igt@i915_pm_rpm@module-reload:
> >     - fi-kbl-7560u:       NOTRUN -> CRASH
> 
> The change only affects ICLs, so the above issue must be unrelated.
> 
> > 
> >   
> > Known issues
> > ------------
> > 
> >   Here are the changes found in Patchwork_12404 that come from known issues:
> > 
> > ### IGT changes ###
> > 
> > #### Issues hit ####
> > 
> >   * igt@amdgpu/amd_basic@cs-compute:
> >     - fi-kbl-8809g:       NOTRUN -> FAIL [fdo#108094]
> > 
> >   * igt@amdgpu/amd_basic@cs-sdma:
> >     - fi-kbl-7560u:       NOTRUN -> SKIP [fdo#109271] +17
> > 
> >   * igt@amdgpu/amd_basic@query-info:
> >     - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] +55
> > 
> >   * igt@gem_exec_basic@basic-bsd2:
> >     - fi-kbl-7500u:       NOTRUN -> SKIP [fdo#109271] +9
> > 
> >   * igt@gem_exec_basic@gtt-bsd:
> >     - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] +103
> > 
> >   * igt@gem_exec_suspend@basic-s3:
> >     - fi-blb-e6850:       PASS -> INCOMPLETE [fdo#107718]
> > 
> >   * igt@i915_selftest@live_execlists:
> >     - fi-apl-guc:         NOTRUN -> INCOMPLETE [fdo#103927] / [fdo#109720]
> > 
> >   * igt@kms_busy@basic-flip-c:
> >     - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
> >     - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
> >     - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
> > 
> >   * igt@kms_chamelium@dp-crc-fast:
> >     - fi-kbl-7500u:       NOTRUN -> DMESG-WARN [fdo#103841]
> > 
> >   * igt@kms_chamelium@hdmi-crc-fast:
> >     - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] +52
> > 
> >   * igt@kms_chamelium@vga-edid-read:
> >     - fi-skl-6600u:       NOTRUN -> SKIP [fdo#109271] +41
> > 
> >   * igt@kms_force_connector_basic@force-load-detect:
> >     - fi-bxt-j4205:       NOTRUN -> SKIP [fdo#109271] +47
> > 
> >   * igt@kms_frontbuffer_tracking@basic:
> >     - fi-byt-clapper:     PASS -> FAIL [fdo#103167]
> > 
> >   * igt@kms_psr@primary_page_flip:
> >     - fi-apl-guc:         NOTRUN -> SKIP [fdo#109271] +50
> > 
> >   * igt@runner@aborted:
> >     - fi-kbl-7500u:       NOTRUN -> FAIL [fdo#103841]
> >     - fi-apl-guc:         NOTRUN -> FAIL [fdo#108622] / [fdo#109720]
> > 
> >   
> > #### Possible fixes ####
> > 
> >   * igt@amdgpu/amd_basic@userptr:
> >     - fi-kbl-8809g:       DMESG-WARN [fdo#108965] -> PASS
> > 
> >   * igt@i915_module_load@reload-with-fault-injection:
> >     - fi-kbl-7560u:       INCOMPLETE -> PASS
> > 
> >   * igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
> >     - fi-byt-clapper:     FAIL [fdo#103191] / [fdo#107362] -> PASS
> > 
> >   
> >   [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
> >   [fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
> >   [fdo#103841]: https://bugs.freedesktop.org/show_bug.cgi?id=103841
> >   [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
> >   [fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
> >   [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
> >   [fdo#108094]: https://bugs.freedesktop.org/show_bug.cgi?id=108094
> >   [fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
> >   [fdo#108965]: https://bugs.freedesktop.org/show_bug.cgi?id=108965
> >   [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
> >   [fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
> >   [fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
> > 
> > 
> > Participating hosts (40 -> 40)
> > ------------------------------
> > 
> >   Additional (7): fi-byt-j1900 fi-bwr-2160 fi-apl-guc fi-kbl-7500u fi-bxt-j4205 fi-bsw-kefka fi-skl-6600u 
> >   Missing    (7): fi-kbl-soraka fi-ilk-m540 fi-bsw-n3050 fi-hsw-4200u fi-byt-squawks fi-ctg-p8600 fi-byt-n2820 
> > 
> > 
> > Build changes
> > -------------
> > 
> >     * Linux: CI_DRM_5714 -> Patchwork_12404
> > 
> >   CI_DRM_5714: f0591e61349e96e8faba5348515043884e5ba542 @ git://anongit.freedesktop.org/gfx-ci/linux
> >   IGT_4876: 51b8d4cfde8d5b0176180b9683accea91474c7ff @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
> >   Patchwork_12404: 93c4c9abe3b1108b2c5180879fdfcf18db46193e @ git://anongit.freedesktop.org/gfx-ci/linux
> > 
> > 
> > == Linux commits ==
> > 
> > 93c4c9abe3b1 drm/i915/icl: Prevent incorrect DBuf enabling
> > 
> > == Logs ==
> > 
> > For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12404/
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-08  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07 10:32 [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Imre Deak
2019-03-07 15:46 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2) Patchwork
2019-03-07 15:52   ` Imre Deak
2019-03-08  8:16     ` Imre Deak
2019-03-07 17:59 ` [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling Rodrigo Vivi
2019-03-07 19:45   ` Imre Deak

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.