drm/i915: Corrupt DSI picture fix for GeminiLake
Subsystems (2)
PATCH v2 1/1 drm/i915: Corrupt DSI picture fix for GeminiLake
Currently due to regression CI machine displays show corrupt picture.
Problem is when CDCLK is as low as 79200, picture gets unstable, while DSI and DE pll values were confirmed to be correct.
Limiting to 158400 as agreed with Ville.
We could not come up with any better solution yet, as PLL divider values both for MIPI(DSI PLL) and CDCLK(DE PLL) are correct, however seems that due to some boundary conditions, when clocking is too low we get wrong timings for DSI display.
Similar workaround exists for VLV though, so just took similar condition into use. At least that way GLK platform will start to be usable again, with current drm-tip.
v2: Fixed commit subject as suggested.
--- drivers/gpu/drm/i915/intel_cdclk.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/i915/intel_cdclk.c +9 -0
@@ -2277,6 +2277,15 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state) IS_VALLEYVIEW(dev_priv)) min_cdclk =max (320000 , min_cdclk); +/* +* On Geminilake once the CDCLK gets as low as 79200 +* picture gets unstable, despite that values are +* correct for DSI PLL and DE PLL. +*/ +if (intel_crtc_has_type (crtc_state,INTEL_OUTPUT_DSI ) && +IS_GEMINILAKE (dev_priv)) + min_cdclk =max (158400 , min_cdclk); +if (min_cdclk > dev_priv->max_cdclk_freq) {DRM_DEBUG_KMS ("required cdclk (%d kHz) exceeds max (%d kHz)\n" , min_cdclk, dev_priv->max_cdclk_freq);
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerQuoted 17 lines · Stanislav Lisovskiy
Currently due to regression CI machine displays show corrupt picture.
Problem is when CDCLK is as low as 79200, picture gets unstable, while DSI and DE pll values were confirmed to be correct.
Limiting to 158400 as agreed with Ville.We could not come up with any better solution yet, as PLL divider values both for MIPI(DSI PLL) and CDCLK(DE PLL) are correct, however seems that due to some boundary conditions, when clocking is too low we get wrong timings for DSI display.
Similar workaround exists for VLV though, so just took similar condition into use. At least that way GLK platform will start to be usable again, with current drm-tip.
Quoted 4 lines
v2: Fixed commit subject as suggested.
Signed-off-by Stanislav Lisovskiy <[email protected]>Acked-by Ville Syrjälä <[email protected]>
Do we have a bugzilla link?
BR,
Jani.
Quoted 24 lines
--- drivers/gpu/drm/i915/intel_cdclk.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/i915/intel_cdclk.c +9
-0@@ -2277,6 +2277,15 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state) IS_VALLEYVIEW(dev_priv)) min_cdclk =max (320000 , min_cdclk); +/* +* On Geminilake once the CDCLK gets as low as 79200 +* picture gets unstable, despite that values are +* correct for DSI PLL and DE PLL. +*/ +if (intel_crtc_has_type (crtc_state,INTEL_OUTPUT_DSI ) && +IS_GEMINILAKE (dev_priv)) + min_cdclk =max (158400 , min_cdclk); +if (min_cdclk > dev_priv->max_cdclk_freq) {DRM_DEBUG_KMS ("required cdclk (%d kHz) exceeds max (%d kHz)\n" , min_cdclk, dev_priv->max_cdclk_freq);
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 21 lines · Jani Nikula
Quoted 19 lines · Stanislav Lisovskiy
Currently due to regression CI machine displays show corrupt picture.
Problem is when CDCLK is as low as 79200, picture gets unstable, while DSI and DE pll values were confirmed to be correct.
Limiting to 158400 as agreed with Ville.We could not come up with any better solution yet, as PLL divider values both for MIPI(DSI PLL) and CDCLK(DE PLL) are correct, however seems that due to some boundary conditions, when clocking is too low we get wrong timings for DSI display.
Similar workaround exists for VLV though, so just took similar condition into use. At least that way GLK platform will start to be usable again, with current drm-tip.v2: Fixed commit subject as suggested.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Stanislav Lisovskiy <[email protected]>Acked-by Ville Syrjälä <[email protected]>Do we have a bugzilla link?
BR,
Jani.
No, or at least I'm not aware of. I just got a machine from CI for investigation :) I guess it might be worth to create a bug for that.
Martin: do we have a bug for CI GLK issue?
-Stanislav
Quoted 16 lines
Quoted 16 lines
--- drivers/gpu/drm/i915/intel_cdclk.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -2277,6 +2277,15 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state) IS_VALLEYVIEW(dev_priv)) min_cdclk = max(320000, min_cdclk);
Quoted 15 lines
Quoted 11 lines
drivers/gpu/drm/i915/intel_cdclk.c +9
-0+/* +* On Geminilake once the CDCLK gets as low as 79200 +* picture gets unstable, despite that values are +* correct for DSI PLL and DE PLL. +*/ +if (intel_crtc_has_type (crtc_state,INTEL_OUTPUT_DSI ) && +IS_GEMINILAKE (dev_priv)) + min_cdclk =max (158400 , min_cdclk); +if (min_cdclk > dev_priv->max_cdclk_freq) { DRM_DEBUG_KMS("required cdclk (%d kHz) exceeds max (%dQuoted 2 lines
kHz)\n",
min_cdclk,dev_priv->max_cdclk_freq);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 27 lines · Stanislav
Quoted 26 lines · Jani Nikula
Quoted 17 lines · Stanislav Lisovskiy
Currently due to regression CI machine displays show corrupt picture.
Problem is when CDCLK is as low as 79200, picture gets unstable, while DSI and DE pll values were confirmed to be correct.
Limiting to 158400 as agreed with Ville.We could not come up with any better solution yet, as PLL divider values both for MIPI(DSI PLL) and CDCLK(DE PLL) are correct, however seems that due to some boundary conditions, when clocking is too low we get wrong timings for DSI display.
Similar workaround exists for VLV though, so just took similar condition into use. At least that way GLK platform will start to be usable again, with current drm-tip.Quoted 4 lines
v2: Fixed commit subject as suggested.
Signed-off-by Stanislav Lisovskiy <[email protected]>Acked-by Ville Syrjälä <[email protected]>Do we have a bugzilla link?
Quoted 8 lines
Quoted 2 lines
BR,
Jani.No, or at least I'm not aware of. I just got a machine from CI for investigation :) I guess it might be worth to create a bug for that.
Martin: do we have a bug for CI GLK issue?
No idea. Check it out:
http://gfx-ci.fi.intel.com/cibuglog-ng/results/knownfailures?query=machine_name+%3D+%27fi-glk-dsi%27+AND+NOT+status_name+%3D+%27skip%27
This possibly could explain all the CRC mismatches we get on GLK-dsi? Time will tell.
Martin
Quoted 35 lines
-Stanislav
Quoted 31 lines
Quoted 29 lines
--- drivers/gpu/drm/i915/intel_cdclk.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/i915/intel_cdclk.c +9
-0@@ -2277,6 +2277,15 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state) IS_VALLEYVIEW(dev_priv)) min_cdclk = max(320000, min_cdclk); +/* +* On Geminilake once the CDCLK gets as low as 79200 +* picture gets unstable, despite that values are +* correct for DSI PLL and DE PLL. +*/ + if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI) && +IS_GEMINILAKE (dev_priv)) + min_cdclk = max(158400, min_cdclk); + if (min_cdclk > dev_priv->max_cdclk_freq) { DRM_DEBUG_KMS("required cdclk (%d kHz) exceeds max (%dkHz)\n",
min_cdclk,dev_priv->max_cdclk_freq);
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
HI,
Quoted 32 lines
-----Original Message-----
From: Lisovskiy, Stanislav
Sent: tiistai 30. huhtikuuta 2019 11.01
To: [email protected]; [email protected]
Cc: Saarinen, Jani <[email protected]>; Peres, Martin <[email protected]>
Subject: Re: [Intel-gfx] [PATCH v2] drm/i915: Corrupt DSI picture fix for GeminiLakeQuoted 23 lines · Jani Nikula
Quoted 14 lines · Stanislav Lisovskiy
Currently due to regression CI machine displays show corrupt picture.
Problem is when CDCLK is as low as 79200, picture gets unstable, while DSI and DE pll values were confirmed to be correct. Limiting to 158400 as agreed with Ville.We could not come up with any better solution yet, as PLL divider values both for MIPI(DSI PLL) and CDCLK(DE PLL) are correct, however seems that due to some boundary conditions, when clocking is too low we get wrong timings for DSI display.
Similar workaround exists for VLV though, so just took similar condition into use. At least that way GLK platform will start to be usable again, with current drm-tip.Quoted 4 lines
v2: Fixed commit subject as suggested.
Signed-off-by Stanislav Lisovskiy <[email protected]>Acked-by Ville Syrjälä <[email protected]>Do we have a bugzilla link?
Quoted 8 lines
Quoted 2 lines
BR,
Jani.No, or at least I'm not aware of. I just got a machine from CI for investigation :) I guess it might be worth to create a bug for that.
Martin: do we have a bug for CI GLK issue?
We did had some bugs, but not sure if those are related to this issue.
Quoted 19 lines
-Stanislav
Quoted 16 lines
Quoted 16 lines
--- drivers/gpu/drm/i915/intel_cdclk.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -2277,6 +2277,15 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state) IS_VALLEYVIEW(dev_priv)) min_cdclk = max(320000, min_cdclk);
Quoted 15 lines
Quoted 11 lines
drivers/gpu/drm/i915/intel_cdclk.c int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state)
Quoted 11 lines
drivers/gpu/drm/i915/intel_cdclk.c +9
-0+/* +* On Geminilake once the CDCLK gets as low as 79200 +* picture gets unstable, despite that values are +* correct for DSI PLL and DE PLL. +*/ +if (intel_crtc_has_type (crtc_state,INTEL_OUTPUT_DSI ) && +IS_GEMINILAKE (dev_priv)) + min_cdclk =max (158400 , min_cdclk); +if (min_cdclk > dev_priv->max_cdclk_freq) { DRM_DEBUG_KMS("required cdclk (%d kHz) exceeds max (%dkHz)\n",
Quoted 3 lines
Quoted 1 line
min_cdclk,dev_priv->max_cdclk_freq);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for drm/i915: Corrupt DSI picture fix for GeminiLake
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915: Corrupt DSI picture fix for GeminiLake
URL : https://patchwork.freedesktop.org/series/60084/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Corrupt DSI picture fix for GeminiLake -O:drivers/gpu/drm/i915/intel_cdclk.c:2266:29: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_cdclk.c:2266:29: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_cdclk.c:2275:29: warning: expression using sizeof(void)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Corrupt DSI picture fix for GeminiLake
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915: Corrupt DSI picture fix for GeminiLake
URL : https://patchwork.freedesktop.org/series/60084/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6014 -> Patchwork_12902
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/60084/revisions/1/mbox/
Known issues
------------
Here are the changes found in Patchwork_12902 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [PASS][1] -> [INCOMPLETE][2] ([fdo#107718])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6014/fi-blb-e6850/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12902/fi-blb-e6850/igt@[email protected]
* igt@i915_selftest@live_contexts:
- fi-skl-gvtdvm: [PASS][3] -> [DMESG-FAIL][4] ([fdo#110235])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6014/fi-skl-gvtdvm/igt@i915_selftest@live_contexts.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12902/fi-skl-gvtdvm/igt@i915_selftest@live_contexts.html
#### Possible fixes ####
* igt@gem_ctx_create@basic-files:
- fi-icl-y: [INCOMPLETE][5] ([fdo#107713] / [fdo#109100]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6014/fi-icl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12902/fi-icl-y/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- fi-skl-iommu: [INCOMPLETE][7] ([fdo#108602] / [fdo#108744]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6014/fi-skl-iommu/igt@i915_selftest@live_hangcheck.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12902/fi-skl-iommu/igt@i915_selftest@live_hangcheck.html
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108602]: https://bugs.freedesktop.org/show_bug.cgi?id=108602
[fdo#108744]: https://bugs.freedesktop.org/show_bug.cgi?id=108744
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
Participating hosts (51 -> 42)
------------------------------
Additional (1): fi-skl-guc
Missing (10): fi-ilk-m540 fi-bsw-n3050 fi-hsw-4200u fi-glk-dsi fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-pnv-d510 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6014 -> Patchwork_12902
CI_DRM_6014: b5b621db8397c5c726f5493095682f14d295429d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4971: fc5e0467eb6913d21ad932aa8a31c77fdb5a9c77 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12902: 15f80f2efc96d825897faef3fb6ff532f8617aba @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
15f80f2efc96 drm/i915: Corrupt DSI picture fix for GeminiLake
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12902/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx