drm/i915/icl: Prevent incorrect DBuf enabling
Subsystems (2)
PATCH 1/1 drm/i915/icl: Prevent incorrect DBuf enabling
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
--- drivers/gpu/drm/i915/intel_pm.c | 7 ++++++- drivers/gpu/drm/i915/intel_runtime_pm.c | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +6 -1
@@ -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;
drivers/gpu/drm/i915/intel_runtime_pm.c +10 -2
@@ -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)
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
== Series Details ==
== 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
Quoted 28 lines · Patchwork
== 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_12404absolutely 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
-------------------
Quoted 8 lines
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.
Quoted 103 lines
Known issues
------------Here are the changes found in
Patchwork_12404that 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=109720Participating 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-n2820Build 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
Quoted 7 lines
== Linux commits ==
93c4c9abe3b1drm/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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)
Quoted 8 lines · Imre Deak
Quoted 7 lines · Patchwork
== 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.
Quoted 139 lines
Quoted 21 lines
CI Bug Log - changes from
CI_DRM_5714->Patchwork_12404
====================================================Summary
-------**FAILURE**
Serious unknown changes coming with
Patchwork_12404absolutely 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
-------------------Quoted 8 lines
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 -> CRASHThe change only affects ICLs, so the above issue must be unrelated.
Quoted 107 lines
Known issues
------------Here are the changes found in
Patchwork_12404that 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=109720Participating 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-n2820Build 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 ==
93c4c9abe3b1drm/i915/icl: Prevent incorrect DBuf enabling
Quoted 7 lines
Quoted 3 lines
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12404/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 9 lines · Imre Deak
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 :)
Quoted 14 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108756
Cc Ville Syrjälä <[email protected]>Signed-off-by Imre Deak <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 7 ++++++- drivers/gpu/drm/i915/intel_runtime_pm.c | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_pm.c +0
-0
drivers/gpu/drm/i915/intel_pm.c static u8 intel_enabled_dbuf_slices_num(struct drm_i915_private *dev_priv) · line 3632
Quoted 10 lines
drivers/gpu/drm/i915/intel_pm.c +6
-1@@ -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:
Quoted 40 lines
drivers/gpu/drm/i915/intel_pm.c +0
-0enabled_slices++;return enabled_slices;drivers/gpu/drm/i915/intel_runtime_pm.c +10
-2@@ -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)Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 30 lines · Rodrigo Vivi
Quoted 9 lines · Imre Deak
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 :)
Quoted 17 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108756
Cc Ville Syrjälä <[email protected]>Signed-off-by Imre Deak <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 7 ++++++- drivers/gpu/drm/i915/intel_runtime_pm.c | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_pm.c +0
-0@@ -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;
Quoted 9 lines
drivers/gpu/drm/i915/intel_pm.c static u8 intel_enabled_dbuf_slices_num(struct drm_i915_private *dev_priv) · line 3632
Quoted 7 lines
drivers/gpu/drm/i915/intel_pm.c +6
-1-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.
Quoted 37 lines
but up to you:
Reviewed-by Rodrigo Vivi <[email protected]>Quoted 32 lines
drivers/gpu/drm/i915/intel_pm.c +0
-0enabled_slices++;return enabled_slices;drivers/gpu/drm/i915/intel_runtime_pm.c +10
-2@@ -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; }
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/intel_runtime_pm.c +0
-0static void icl_mbus_init (struct drm_i915_private *dev_priv)Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx