drm/i915: Fix wrong escape clock divisor init for GLK
Subsystems (3)
PATCH v2 1/1 drm/i915: Fix wrong escape clock divisor init for GLK
According to Bspec clock divisor registers in GeminiLake should be initialized by shifting 1(<<) to amount of correspondent divisor. While i915 was writing all this time that value as is.
Surprisingly that it by accident worked, until we met some issues with Microtech Etab.
v2: Added Fixes tag and cc
--- drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/vlv_dsi_pll.c +2 -2
@@ -396,8 +396,8 @@ static void glk_dsi_program_esc_clock(struct drm_device *dev,else txesc2_div =10 ; -I915_WRITE (MIPIO_TXESC_CLK_DIV1 , txesc1_div &GLK_TX_ESC_CLK_DIV1_MASK ); -I915_WRITE (MIPIO_TXESC_CLK_DIV2 , txesc2_div &GLK_TX_ESC_CLK_DIV2_MASK ); +I915_WRITE (MIPIO_TXESC_CLK_DIV1 , (1 << (txesc1_div -1 )) &GLK_TX_ESC_CLK_DIV1_MASK ); +I915_WRITE (MIPIO_TXESC_CLK_DIV2 , (1 << (txesc2_div -1 )) &GLK_TX_ESC_CLK_DIV2_MASK ); }/* Program BXT Mipi clocks and dividers */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: Fix wrong escape clock divisor init for GLK (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915: Fix wrong escape clock divisor init for GLK (rev2)
URL : https://patchwork.freedesktop.org/series/63505/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip a0b1ea18d27c drm/i915: Fix wrong escape clock divisor init for GLK -:41: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Stanislav Lisovskiy <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 10 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Stanislav Lisovskiy
According to Bspec clock divisor registers in GeminiLake should be initialized by shifting 1(<<) to amount of correspondent divisor. While i915 was writing all this time that value as is.
Surprisingly that it by accident worked, until we met some issues with Microtech Etab.
v2: Added Fixes tag and cc
Signed-off-by [email protected]
Your git is a bit misconfigured
-:46: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Stanislav Lisovskiy <[email protected]>'
And I think we want cc:stable on this as well.
Quoted 31 lines
Reviewed-by Vandita Kulkarni <[email protected]>Fixes bcc657004841 ("drm/i915/glk: Program txesc clock divider for GLK")Cc Deepak M <[email protected]>Cc Madhav Chauhan <[email protected]>Cc Jani Nikula <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/vlv_dsi_pll.c +2
-2@@ -396,8 +396,8 @@ static void glk_dsi_program_esc_clock(struct drm_device *dev,else txesc2_div =10 ; -I915_WRITE (MIPIO_TXESC_CLK_DIV1 , txesc1_div &GLK_TX_ESC_CLK_DIV1_MASK ); -I915_WRITE (MIPIO_TXESC_CLK_DIV2 , txesc2_div &GLK_TX_ESC_CLK_DIV2_MASK ); +I915_WRITE (MIPIO_TXESC_CLK_DIV1 , (1 << (txesc1_div -1 )) &GLK_TX_ESC_CLK_DIV1_MASK ); +I915_WRITE (MIPIO_TXESC_CLK_DIV2 , (1 << (txesc2_div -1 )) &GLK_TX_ESC_CLK_DIV2_MASK ); }/* Program BXT Mipi clocks and dividers */ Signature · 1 line
2.17.1
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Fix wrong escape clock divisor init for GLK (rev2)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915: Fix wrong escape clock divisor init for GLK (rev2)
URL : https://patchwork.freedesktop.org/series/63505/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6460 -> Patchwork_13623
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13623/
Known issues
------------
Here are the changes found in Patchwork_13623 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-blb-e6850: [PASS][1] -> [INCOMPLETE][2] ([fdo#107718])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6460/fi-blb-e6850/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13623/fi-blb-e6850/igt@[email protected]
#### Possible fixes ####
* igt@gem_close_race@basic-threads:
- {fi-icl-u4}: [INCOMPLETE][3] ([fdo#107713]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6460/fi-icl-u4/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13623/fi-icl-u4/igt@[email protected]
* igt@i915_selftest@live_contexts:
- fi-skl-iommu: [INCOMPLETE][5] ([fdo#111050]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6460/fi-skl-iommu/igt@i915_selftest@live_contexts.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13623/fi-skl-iommu/igt@i915_selftest@live_contexts.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#111050]: https://bugs.freedesktop.org/show_bug.cgi?id=111050
Participating hosts (50 -> 47)
------------------------------
Additional (2): fi-icl-u3 fi-apl-guc
Missing (5): fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6460 -> Patchwork_13623
CI_DRM_6460: 32d52650873db547f6702f12ebdbae3e8e052dad @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5094: d7f140b5b02d054183a74842b4579cf7f5533927 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13623: a0b1ea18d27c9e818358a60789c8c472c0e3a0ff @ git://anongit.freedesktop.org/gfx-ci/linux
== Kernel 32bit build ==
Warning: Kernel 32bit buildtest failed:
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13623/build_32bit.log
CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 112 modules
ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[1]: *** [__modpost] Error 1
Makefile:1287: recipe for target 'modules' failed
make: *** [modules] Error 2
== Linux commits ==
a0b1ea18d27c drm/i915: Fix wrong escape clock divisor init for GLK
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13623/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx