Skip to contentSkip to conversation

drm/i915/psr: Adds psrwake options for all platforms

PATCH In review vathsala nagaraju 6 participants 18 messages Jun 12, 2018 – Jun 15, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/psr: Adds psrwake options for all platforms

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 drivers/gpu/drm/i915/intel_bios.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +2 -1
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
 	 * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
 	 * Old decimal value is wake up time in multiples of 100 us.
 	 */
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv))) {
 		switch (psr_table->tp1_wakeup_time) {
 		case 0:
 			dev_priv->vbt.psr.tp1_wakeup_time_us = 500;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✓ Fi.CI.BAT: success for drm/i915/psr: Adds psrwake options for all platforms

== Series Details ==

== Series Details ==

Series: drm/i915/psr: Adds psrwake options for all platforms
URL : https://patchwork.freedesktop.org/series/44601/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4304 -> Patchwork_9267 =

== Summary - WARNING ==

Minor unknown changes coming with Patchwork_9267 need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_9267, 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/44601/revisions/1/mbox/

== Possible new issues ==

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

=== IGT changes ===

    ==== Warnings ====

    igt@gem_exec_gttfill@basic:
      fi-pnv-d510:        SKIP -> PASS

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_module_reload@basic-reload-inject:
      fi-glk-j4005:       PASS -> DMESG-WARN (fdo#106248, fdo#106725)

    igt@gem_exec_gttfill@basic:
      fi-byt-n2820:       PASS -> FAIL (fdo#106744)

    igt@kms_flip@basic-flip-vs-dpms:
      fi-glk-j4005:       PASS -> DMESG-WARN (fdo#106000)

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
      fi-snb-2520m:       PASS -> INCOMPLETE (fdo#103713)

    
    ==== Possible fixes ====

    igt@kms_flip@basic-flip-vs-modeset:
      fi-glk-j4005:       DMESG-WARN (fdo#106000) -> PASS

    igt@kms_flip@basic-plain-flip:
      fi-glk-j4005:       DMESG-WARN (fdo#106097) -> PASS +1

fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#106000 https://bugs.freedesktop.org/show_bug.cgi?id=106000
fdo#106097 https://bugs.freedesktop.org/show_bug.cgi?id=106097
fdo#106248 https://bugs.freedesktop.org/show_bug.cgi?id=106248
fdo#106725 https://bugs.freedesktop.org/show_bug.cgi?id=106725
fdo#106744 https://bugs.freedesktop.org/show_bug.cgi?id=106744

== Participating hosts (42 -> 36) ==

Missing (6): fi-ilk-m540 fi-skl-gvtdvm fi-byt-j1900 fi-bsw-cyan fi-ctg-p8600 fi-skl-6700hq

== Build changes ==

* Linux: CI_DRM_4304 -> Patchwork_9267

CI_DRM_4304: 2313a1dc588ef63d9650ccbaaf576bc4b47dc255 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4515: a0f2d23b7d3d4226a0a7637a9240bfa86f08c1d3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9267: 89cce6d3ac2261f69f7e3fec06bcbcbf9244175a @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

89cce6d3ac22 drm/i915/psr: Adds psrwake options for all platforms

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9267/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✓ Fi.CI.IGT: success for drm/i915/psr: Adds psrwake options for all platforms

In reply to vathsala nagaraju
== Series Details ==

== Series Details ==

Series: drm/i915/psr: Adds psrwake options for all platforms
URL : https://patchwork.freedesktop.org/series/44601/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4304_full -> Patchwork_9267_full =

== Summary - WARNING ==

Minor unknown changes coming with Patchwork_9267_full need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_9267_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

== Possible new issues ==

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

=== IGT changes ===

    ==== Warnings ====

    igt@gem_exec_schedule@deep-blt:
      shard-kbl:          PASS -> SKIP

    igt@gem_exec_schedule@deep-bsd1:
      shard-kbl:          SKIP -> PASS

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_exec_big:
      shard-hsw:          PASS -> INCOMPLETE (fdo#103540)

    igt@gem_exec_schedule@preempt-queue-contexts-chain-bsd1:
      shard-kbl:          PASS -> DMESG-WARN (fdo#106353)

    igt@kms_atomic_transition@1x-modeset-transitions-nonblocking:
      shard-glk:          PASS -> FAIL (fdo#105703)

    igt@kms_cursor_legacy@cursor-vs-flip-varying-size:
      shard-hsw:          PASS -> FAIL (fdo#103355)

    igt@kms_flip@2x-flip-vs-expired-vblank:
      shard-hsw:          PASS -> FAIL (fdo#102887)

    igt@kms_flip@plain-flip-fb-recreate-interruptible:
      shard-glk:          PASS -> FAIL (fdo#100368)

    igt@kms_flip_tiling@flip-to-x-tiled:
      shard-glk:          PASS -> FAIL (fdo#104724)

    igt@kms_flip_tiling@flip-x-tiled:
      shard-glk:          PASS -> FAIL (fdo#103822, fdo#104724) +1

    igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b-frame-sequence:
      shard-hsw:          PASS -> FAIL (fdo#103481)

    igt@perf@blocking:
      shard-hsw:          PASS -> FAIL (fdo#102252)

    
    ==== Possible fixes ====

    igt@drv_selftest@live_gtt:
      shard-kbl:          FAIL (fdo#105347) -> PASS
      shard-glk:          INCOMPLETE (k.org#198133, fdo#103359) -> PASS +1

    igt@drv_suspend@shrink:
      shard-hsw:          INCOMPLETE (fdo#103540) -> PASS

    igt@kms_flip@plain-flip-fb-recreate:
      shard-glk:          FAIL (fdo#100368) -> PASS

    igt@kms_rotation_crc@sprite-rotation-180:
      shard-hsw:          FAIL (fdo#104724, fdo#103925) -> PASS

fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103355 https://bugs.freedesktop.org/show_bug.cgi?id=103355
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103481 https://bugs.freedesktop.org/show_bug.cgi?id=103481
fdo#103540 https://bugs.freedesktop.org/show_bug.cgi?id=103540
fdo#103822 https://bugs.freedesktop.org/show_bug.cgi?id=103822
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105347 https://bugs.freedesktop.org/show_bug.cgi?id=105347
fdo#105703 https://bugs.freedesktop.org/show_bug.cgi?id=105703
fdo#106353 https://bugs.freedesktop.org/show_bug.cgi?id=106353
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* Linux: CI_DRM_4304 -> Patchwork_9267

CI_DRM_4304: 2313a1dc588ef63d9650ccbaaf576bc4b47dc255 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4515: a0f2d23b7d3d4226a0a7637a9240bfa86f08c1d3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9267: 89cce6d3ac2261f69f7e3fec06bcbcbf9244175a @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9267/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to vathsala nagaraju
Quoted 27 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 drivers/gpu/drm/i915/intel_bios.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644

drivers/gpu/drm/i915/intel_bios.c static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv, · line 714

Quoted 6 lines
drivers/gpu/drm/i915/intel_bios.c +2 -1
@@ -710,7 +710,8 @@ static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
 	 * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
 	 * Old decimal value is wake up time in multiples of 100 us.
 	 */
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv))) {

Please keep the version check.

Please tell anyone who asks, and also those who don't, that *all* of the VBT changes should be based on the *version*, and *none* of them should be based on the *platform*.

BR,
Jani.

Quoted 3 lines
drivers/gpu/drm/i915/intel_bios.c +0 -0
 		switch (psr_table->tp1_wakeup_time) {
 		case 0:
 			dev_priv->vbt.psr.tp1_wakeup_time_us = 500;
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw
Quoted 23 lines · Jani Nikula
Quoted 22 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
  drivers/gpu/drm/i915/intel_bios.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 12 lines

drivers/gpu/drm/i915/intel_bios.c static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv, · line 714

Quoted 11 lines
drivers/gpu/drm/i915/intel_bios.c +2 -1
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
  	 * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
  	 * Old decimal value is wake up time in multiples of 100 us.
  	 */
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv))) {

Please keep the version check.

Sure. For SKL , shall we use older interpretation for all bdb version as vbt team cannot confirm bdb version for SKL?

Quoted 10 lines

Please tell anyone who asks, and also those who don't, that *all* of the VBT changes should be based on the *version*, and *none* of them should be based on the *platform*.

BR,
Jani.

Quoted 3 lines
drivers/gpu/drm/i915/intel_bios.c +0 -0
  		switch (psr_table->tp1_wakeup_time) {
  		case 0:
  			dev_priv->vbt.psr.tp1_wakeup_time_us = 500;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw
Quoted 36 lines · Vathsala
Quoted 23 lines · Jani Nikula
Quoted 22 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
  drivers/gpu/drm/i915/intel_bios.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 12 lines

drivers/gpu/drm/i915/intel_bios.c static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv, · line 714

Quoted 11 lines
drivers/gpu/drm/i915/intel_bios.c +2 -1
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
  	 * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
  	 * Old decimal value is wake up time in multiples of 100 us.
  	 */
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv))) {

Please keep the version check.

Quoted 2 lines

Sure. For SKL , shall we use older interpretation for all bdb version as vbt team cannot confirm bdb version for SKL?

I guess.

BR,
Jani.

Quoted 12 lines
Quoted 11 lines

Please tell anyone who asks, and also those who don't, that *all* of the VBT changes should be based on the *version*, and *none* of them should be based on the *platform*.

BR,
Jani.

Quoted 3 lines
drivers/gpu/drm/i915/intel_bios.c +0 -0
  		switch (psr_table->tp1_wakeup_time) {
  		case 0:
  			dev_priv->vbt.psr.tp1_wakeup_time_us = 500;
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw
Quoted 47 lines · Jani Nikula
Quoted 45 lines · Vathsala
Quoted 43 lines · Jani Nikula
Quoted 36 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

---
  drivers/gpu/drm/i915/intel_bios.c | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int intel_bios_ssc_frequency(struct
 drm_i915_private *dev_priv,
   	 * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
   	 * Old decimal value is wake up time in multiples of

100 us.
    */

drivers/gpu/drm/i915/intel_bios.c static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv, · line 714

Quoted 3 lines
drivers/gpu/drm/i915/intel_bios.c +2 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv))) {

Please keep the version check.

Quoted 5 lines
Quoted 3 lines

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV releases had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 21 lines

BR,
Jani.

Quoted 17 lines
Quoted 17 lines

Please tell anyone who asks, and also those who don't, that *all* of the
VBT changes should be based on the *version*, and *none* of them should
be based on the *platform*.

BR,
Jani.

Quoted 5 lines

   switch (psr_table->tp1_wakeup_time) { case 0:
   dev_priv->vbt.psr.tp1_wakeup_time_us = 500;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#7 lore raw
Quoted 62 lines · Dhinakaran Pandiyan
Quoted 61 lines · Jani Nikula
Quoted 57 lines · Vathsala
Quoted 43 lines · Jani Nikula
Quoted 38 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
Quoted 1 line

---
  drivers/gpu/drm/i915/intel_bios.c | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int

intel_bios_ssc_frequency(struct
drm_i915_private *dev_priv,
    * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
    * Old decimal value is wake up time in multiples

Quoted 8 lines
Quoted 7 lines

of
100 us.
    */

drivers/gpu/drm/i915/intel_bios.c +2 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv)))

{

Please keep the version check.

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

Quoted 6 lines
Quoted 2 lines

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Said laptop is a SKL with bdb version 205.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw
Quoted 58 lines · Dhinakaran Pandiyan
Quoted 57 lines · Dhinakaran Pandiyan
Quoted 56 lines · Jani Nikula
Quoted 53 lines · Vathsala
Quoted 40 lines · Jani Nikula
Quoted 36 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int

intel_bios_ssc_frequency(struct
drm_i915_private *dev_priv,
    * New psr options 0=500us, 1=100us, 2=2500us,
3=0us
    * Old decimal value is wake up time in multiples

Quoted 8 lines
Quoted 7 lines

of
100 us.
    */

drivers/gpu/drm/i915/intel_bios.c +2 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv)))

{

Please keep the version check.

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake. I did a copy paste of the table provided by vbt team, will edit for skylake.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#9 lore raw
Quoted 80 lines · Vathsala
Quoted 78 lines · Dhinakaran Pandiyan
Quoted 76 lines · Dhinakaran Pandiyan
Quoted 65 lines · Jani Nikula

On Wed, 13 Jun 2018, "Nagaraju, Vathsala" <vathsala.nagaraju@in tel.
co

Quoted 60 lines · m> wrote:
Quoted 57 lines · Jani Nikula

On Tue, 12 Jun 2018, vathsala nagaraju <vathsala.nagaraju@i ntel
.c

Quoted 48 lines · om> wrote:

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might
help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the
above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

.com
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-

   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int

intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
     * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
     * Old decimal value is wake up time in multiples
of
100 us.
     */

drivers/gpu/drm/i915/intel_bios.c +0 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv))

{

drivers/gpu/drm/i915/intel_bios.c +2 -0
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) &&
Quoted 2 lines

!IS_SKYLAKE(dev_priv)))
{

Please keep the version check.

Quoted 5 lines
Quoted 3 lines

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 7 lines
Quoted 1 line

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake.
I did a copy paste of the table provided by vbt team, will edit for skylake.

We are not going to get this right for all combinations, the best we can do is make sure things work in most cases. I prefer to err on the side of using the new mapping because when translated incorrectly, 3 out of 4 values lead to >= intended training time. Given the fact that SKL PV releases also used the new mapping, I suggest you do this

if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

}

I don't know what the basis for the current check for version 209 is, other than it was the version on the KBL you tested.

-DK

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

maintainer
#10 lore raw
Quoted 81 lines · Dhinakaran
Quoted 80 lines · Vathsala
Quoted 78 lines · Dhinakaran Pandiyan
Quoted 76 lines · Dhinakaran Pandiyan
Quoted 65 lines · Jani Nikula

On Wed, 13 Jun 2018, "Nagaraju, Vathsala" <vathsala.nagaraju@in tel.
co

Quoted 60 lines · m> wrote:
Quoted 57 lines · Jani Nikula

On Tue, 12 Jun 2018, vathsala nagaraju <vathsala.nagaraju@i ntel
.c

Quoted 48 lines · om> wrote:

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might
help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the
above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

.com
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-

   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int

intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
     * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
     * Old decimal value is wake up time in multiples
of
100 us.
     */

drivers/gpu/drm/i915/intel_bios.c +0 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv))

{

drivers/gpu/drm/i915/intel_bios.c +2 -0
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) &&
Quoted 2 lines

!IS_SKYLAKE(dev_priv)))
{

Please keep the version check.

Quoted 5 lines
Quoted 3 lines

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake.
I did a copy paste of the table provided by vbt team, will edit for skylake.

We are not going to get this right for all combinations,

:(
it seems we have to live with it

Quoted 2 lines

the best we
can do is make sure things work in most cases.

I agree.

Quoted 7 lines

I prefer to err on the
side of using the new mapping because when translated incorrectly, 3 out of 4 values lead to >= intended training time. Given the fact that SKL PV releases also used the new mapping, I suggest you do this

if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) {

+1

Quoted 13 lines

/* new mapping */

}

I don't know what the basis for the current check for version 209 is, other than it was the version on the KBL you tested.

-DK

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#11 lore raw
In reply to Pandiyan, Dhinakaran

+ Ashutosh(VBT team) + maulik

209 is confirmed version on kbl both by vbt team (Maulik) and google, so we had used it.

DK's suggestion is
if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) || INTEL_GEN(dev_priv) >= 10) { /* new mapping */

As per Ashutosh, 203 Is not the right version, 205 is fine , but user can still provide decimal value for SKL. Jani/Rodrigo, should we use 205 for SKL or drop SKL from the new mapping?

-----Original Message-----
From: Pandiyan, Dhinakaran
Sent: Thursday, June 14, 2018 9:30 PM
To: Vivi, Rodrigo <[email protected]>; Nikula, Jani <[email protected]>; Nagaraju, Vathsala <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] drm/i915/psr: Adds psrwake options for all platforms

Quoted 74 lines · Vathsala
Quoted 72 lines · Dhinakaran Pandiyan
Quoted 70 lines · Dhinakaran Pandiyan
Quoted 60 lines · Jani Nikula

On Wed, 13 Jun 2018, "Nagaraju, Vathsala" <vathsala.nagaraju@in tel.
co

Quoted 55 lines · m> wrote:
Quoted 52 lines · Jani Nikula
Quoted 44 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might
help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

.com
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-

   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int 

intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
     * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
     * Old decimal value is wake up time in multiples of 100 us.
     */

drivers/gpu/drm/i915/intel_bios.c +0 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv))

{

drivers/gpu/drm/i915/intel_bios.c +2 -0
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) &&
Quoted 2 lines

!IS_SKYLAKE(dev_priv)))
{

Please keep the version check.

Quoted 4 lines
Quoted 2 lines

Sure. For SKL , shall we use older interpretation for all bdb version as vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 7 lines
Quoted 1 line

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake.
I did a copy paste of the table provided by vbt team, will edit for skylake.

We are not going to get this right for all combinations, the best we can do is make sure things work in most cases. I prefer to err on the side of using the new mapping because when translated incorrectly, 3 out of 4 values lead to >= intended training time. Given the fact that SKL PV releases also used the new mapping, I suggest you do this

if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

}

I don't know what the basis for the current check for version 209 is, other than it was the version on the KBL you tested.

-DK

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#12 lore raw
Quoted 5 lines · Vathsala

+ Ashutosh(VBT team)   + maulik

209 is confirmed version on kbl both by vbt team (Maulik) and google, so we had used it.

Quoted 7 lines

DK's suggestion is
if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

As per Ashutosh, 203 Is not the right version, 205 is fine , but user can still provide decimal value for SKL.


I am confused, why does the commit message mention 203 then?

Quoted 122 lines

Jani/Rodrigo, should we use 205 for SKL or  drop SKL from the new mapping?

-----Original Message-----
From: Pandiyan, Dhinakaran
Sent: Thursday, June 14, 2018 9:30 PM
To: Vivi, Rodrigo <[email protected]>; Nikula, Jani <jani.nikula @intel.com>; Nagaraju, Vathsala <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] drm/i915/psr: Adds psrwake options for all platforms

Quoted 91 lines · Vathsala
Quoted 88 lines · Dhinakaran Pandiyan
Quoted 85 lines · Dhinakaran Pandiyan
Quoted 72 lines · Jani Nikula

On Wed, 13 Jun 2018, "Nagaraju, Vathsala" <vathsala.nagaraju@ in
tel.
co

Quoted 65 lines · m> wrote:
Quoted 61 lines · Jani Nikula

On Tue, 12 Jun 2018, vathsala nagaraju <vathsala.nagaraju @i
ntel .c

Quoted 51 lines · om> wrote:

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+
might
help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for
the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

el
.com
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-

   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int 

intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
     * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
     * Old decimal value is wake up time in multiples of
100 us.
     */

drivers/gpu/drm/i915/intel_bios.c +0 -1
-	if (bdb->version >= 209 &&

IS_GEN9_BC(dev_priv))
{

drivers/gpu/drm/i915/intel_bios.c +2 -0
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) &&
Quoted 2 lines

!IS_SKYLAKE(dev_priv)))
{

Please keep the version check.

Quoted 5 lines
Quoted 3 lines

Sure. For SKL , shall we use older interpretation for all bdb
version as vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and
Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 7 lines
Quoted 1 line

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake.
I did a copy paste of the table provided by vbt team, will edit for skylake.

We are not going to get this right for all combinations, the best we can do is make sure things work in most cases. I prefer to err on the side of using the new mapping because when translated incorrectly, 3 out of 4 values lead to >= intended training time. Given the fact that
SKL PV releases also used the new mapping, I suggest you do this

if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

Quoted 11 lines

}

I don't know what the basis for the current check for version 209 is, other than it was the version on the KBL you tested.

-DK

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#13 lore raw
Quoted 11 lines · Dhinakaran Pandiyan
Quoted 10 lines · Vathsala

+ Ashutosh(VBT team)   + maulik

209 is confirmed version on kbl both by vbt team (Maulik) and google, so we had used it.

DK's suggestion is
if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

Quoted 4 lines
Quoted 2 lines

As per Ashutosh, 203 Is not the right version, 205 is fine , but user can still provide decimal value for SKL.


I am confused, why does the commit message mention 203 then?

Whatever the version, I want that to be required always. i.e.

	if (version >= N && (bunch of other conditions))

*not*

	if (version >= N || (bunch of other conditions))

BR,
Jani.

Quoted 135 lines
Quoted 135 lines

Jani/Rodrigo, should we use 205 for SKL or  drop SKL from the new mapping?

-----Original Message-----
From: Pandiyan, Dhinakaran
Sent: Thursday, June 14, 2018 9:30 PM
To: Vivi, Rodrigo <[email protected]>; Nikula, Jani <jani.nikula @intel.com>; Nagaraju, Vathsala <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] drm/i915/psr: Adds psrwake options for all platforms

Quoted 91 lines · Vathsala
Quoted 88 lines · Dhinakaran Pandiyan
Quoted 85 lines · Dhinakaran Pandiyan
Quoted 72 lines · Jani Nikula

On Wed, 13 Jun 2018, "Nagaraju, Vathsala" <vathsala.nagaraju@ in
tel.
co

Quoted 65 lines · m> wrote:
Quoted 61 lines · Jani Nikula

On Tue, 12 Jun 2018, vathsala nagaraju <vathsala.nagaraju @i
ntel .c

Quoted 51 lines · om> wrote:

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+
might
help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for
the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

el
.com
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-

   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int 

intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
     * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
     * Old decimal value is wake up time in multiples of
100 us.
     */

drivers/gpu/drm/i915/intel_bios.c +0 -1
-	if (bdb->version >= 209 &&

IS_GEN9_BC(dev_priv))
{

drivers/gpu/drm/i915/intel_bios.c +2 -0
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) &&
Quoted 2 lines

!IS_SKYLAKE(dev_priv)))
{

Please keep the version check.

Quoted 5 lines
Quoted 3 lines

Sure. For SKL , shall we use older interpretation for all bdb
version as vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and
Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 7 lines
Quoted 1 line

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake.
I did a copy paste of the table provided by vbt team, will edit for skylake.

We are not going to get this right for all combinations, the best we can do is make sure things work in most cases. I prefer to err on the side of using the new mapping because when translated incorrectly, 3 out of 4 values lead to >= intended training time. Given the fact that
SKL PV releases also used the new mapping, I suggest you do this

if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

}

I don't know what the basis for the current check for version 209 is, other than it was the version on the KBL you tested.

-DK

Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#14 lore raw
Quoted 16 lines · Jani Nikula
Quoted 14 lines · Dhinakaran Pandiyan
Quoted 12 lines · Vathsala

+ Ashutosh(VBT team)   + maulik

209 is confirmed version on kbl both by vbt team (Maulik) and google,
so we had used it.

DK's suggestion is
if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

As per Ashutosh, 203 Is not the right version, 205 is fine , but user
can still provide decimal value for SKL.


I am confused, why does the commit message mention 203 then?

Whatever the version, I want that to be required always. i.e.

	if (version >= N && (bunch of other conditions))

Using the version number as a guard makes sense but this means we need a version number that's applicable to all platforms.

Vathsala,
Can you please confirm if all platforms that you want to use the new mapping for have version numbers >= 205?

If that's the case, it should be easy to change the check to

if (version >= 205 && (IS_GEN9_BC() || IS_GEMINILAKE() || INTEL_GEN()

Quoted 4 lines

= 10))

Quoted 167 lines

*not*

	if (version >= N || (bunch of other conditions))

BR,
Jani.

Quoted 160 lines
Quoted 160 lines

Jani/Rodrigo, should we use 205 for SKL or  drop SKL from the new mapping?

-----Original Message-----
From: Pandiyan, Dhinakaran
Sent: Thursday, June 14, 2018 9:30 PM
To: Vivi, Rodrigo <[email protected]>; Nikula, Jani <jani.nikula
@intel.com>; Nagaraju, Vathsala <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] drm/i915/psr: Adds psrwake options for all platforms

Quoted 108 lines · Vathsala
Quoted 104 lines · Dhinakaran Pandiyan
Quoted 100 lines · Dhinakaran Pandiyan
Quoted 83 lines · Jani Nikula

On Wed, 13 Jun 2018, "Nagaraju, Vathsala"
<vathsala.nagaraju@
in
tel.
co

Quoted 74 lines · m> wrote:
Quoted 69 lines · Jani Nikula

On Tue, 12 Jun 2018, vathsala nagaraju
<vathsala.nagaraju
@i
ntel .c

Quoted 57 lines · om> wrote:

From: Vathsala Nagaraju <[email protected] m>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+
might
help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation
for
the above reason.

Cc: Jani Nikula <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Puthikorn Voravootivat <[email protected]>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel. com>

Signed-off-by: Vathsala Nagaraju <vathsala.nagaraju @int
el
.com
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-

   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int 

intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
     * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
     * Old decimal value is wake up time in multiples of
100 us.
     */

drivers/gpu/drm/i915/intel_bios.c +0 -1
-	if (bdb->version >= 209 &&

IS_GEN9_BC(dev_priv))
{

drivers/gpu/drm/i915/intel_bios.c +2 -0
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) &&
Quoted 2 lines

!IS_SKYLAKE(dev_priv)))
{

Please keep the version check.

Quoted 6 lines
Quoted 4 lines

Sure. For SKL , shall we use older interpretation for all
bdb
version as vbt team cannot confirm bdb version for SKL?

I guess.

Why not change the version check to >= 203, if that's what PV
releases
had as per your commit message? With the current code, Linux
and
Windows set 500 us and 2.5 ms respectively on my laptop.

Quoted 8 lines
Quoted 1 line

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake.
I did a copy paste of the table provided by vbt team, will edit for
skylake.

We are not going to get this right for all combinations, the best we
can do is make sure things work in most cases. I prefer to err on the
side of using the new mapping because when translated incorrectly, 3
out of 4 values lead to >= intended training time. Given the fact that
SKL PV releases also used the new mapping, I suggest you do this

if ((bdb->version >= 203 && IS_GEN9_BC(dev_priv)) || IS_GEMINILAKE(dev_priv) ||  INTEL_GEN(dev_priv) >= 10) { /* new mapping */

}

I don't know what the basis for the current check for version 209 is,
other than it was the version on the KBL you tested.

-DK

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#15 lore raw
In reply to Dhinakaran Pandiyan
Quoted 58 lines · Dhinakaran Pandiyan
Quoted 57 lines · Dhinakaran Pandiyan
Quoted 56 lines · Jani Nikula
Quoted 53 lines · Vathsala
Quoted 40 lines · Jani Nikula
Quoted 36 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int

intel_bios_ssc_frequency(struct
drm_i915_private *dev_priv,
    * New psr options 0=500us, 1=100us, 2=2500us,
3=0us
    * Old decimal value is wake up time in multiples

Quoted 8 lines
Quoted 7 lines

of
100 us.
    */

drivers/gpu/drm/i915/intel_bios.c +2 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv)))

{

Please keep the version check.

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Said laptop is a SKL with bdb version 205.

+ ashutosh(VBT team)
Since VBT team cannot confirm version for SKL ,so skipped for skylake. I did a copy paste of the table provided by vbt team, will edit for skylake

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#16 lore raw
In reply to Dhinakaran Pandiyan
Quoted 58 lines · Dhinakaran Pandiyan
Quoted 57 lines · Dhinakaran Pandiyan
Quoted 56 lines · Jani Nikula
Quoted 53 lines · Vathsala
Quoted 40 lines · Jani Nikula
Quoted 36 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help
but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
   drivers/gpu/drm/i915/intel_bios.c | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644
@@ -710,7 +710,8 @@ static int

intel_bios_ssc_frequency(struct
drm_i915_private *dev_priv,
    * New psr options 0=500us, 1=100us, 2=2500us,
3=0us
    * Old decimal value is wake up time in multiples

Quoted 8 lines
Quoted 7 lines

of
100 us.
    */

drivers/gpu/drm/i915/intel_bios.c +2 -1
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv)))

{

Please keep the version check.

Sure. For SKL , shall we use older interpretation for all bdb version as
vbt team cannot confirm bdb version for SKL?

Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

I guess.

Why not change the version check to >= 203, if that's what PV releases
had as per your commit message? With the current code, Linux and Windows set 500 us and 2.5 ms respectively on my laptop.

Said laptop is a SKL with bdb version 205.

I did a copy paste of the table provided by vbt team, will edit for skylake Since VBT team cannot confirm version for SKL ,so skipping for skylake.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#17 lore raw
In reply to vathsala nagaraju
Quoted 27 lines · vathsala nagaraju

From: Vathsala Nagaraju <[email protected]>

Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All
SKL All PV releases (Check for 203+ might help but cannot be foolproof)
BXT Uses old interpretation.
CNL/ICL+ All
GLK All

For SKL, we will continue to use older interpretation for the above reason.

Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Puthikorn Voravootivat <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 drivers/gpu/drm/i915/intel_bios.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_bios.c +0 -0
index 465dff4..010ff68 100644

drivers/gpu/drm/i915/intel_bios.c static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv, · line 714

Quoted 6 lines
drivers/gpu/drm/i915/intel_bios.c +2 -1
@@ -710,7 +710,8 @@ static int intel_bios_ssc_frequency(struct drm_i915_private *dev_priv,
 	 * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
 	 * Old decimal value is wake up time in multiples of 100 us.
 	 */
-	if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+	if ((INTEL_GEN(dev_priv) >= 10) ||
+	    (IS_GEN9_BC(dev_priv) && !IS_SKYLAKE(dev_priv))) {

That doesn't match your commit message.

Quoted 10 lines
drivers/gpu/drm/i915/intel_bios.c +0 -0
 		switch (psr_table->tp1_wakeup_time) {
 		case 0:
 			dev_priv->vbt.psr.tp1_wakeup_time_us = 500;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx