drm/i915/bios: Apply vlv_fixup_mipi_sequences() to v2 mipi-sequences too
Subsystems (3)
PATCH 1/1 drm/i915/bios: Apply vlv_fixup_mipi_sequences() to v2 mipi-sequences too
It turns out that the fixup from vlv_fixup_mipi_sequences() is necessary for some DSI panel's with version 2 mipi-sequences too.
Specifically the Acer Iconia One 8 A1-840 (not to be confused with the A1-840FHD which is different) has the following sequences:
BDB block 53 (1284 bytes) - MIPI sequence block:
Sequence block version v2
Panel 0 *
Sequence 2 - MIPI_SEQ_INIT_OTP
GPIO index 9, source 0, set 0 (0x00) Delay: 50000 us GPIO index 9, source 0, set 1 (0x01) Delay: 6000 us GPIO index 9, source 0, set 0 (0x00) Delay: 6000 us GPIO index 9, source 0, set 1 (0x01) Delay: 25000 us Send DCS: Port A, VC 0, LP, Type 39, Length 5, Data ff aa 55 a5 80 Send DCS: Port A, VC 0, LP, Type 39, Length 3, Data 6f 11 00 ... Send DCS: Port A, VC 0, LP, Type 05, Length 1, Data 29 Delay: 120000 us
Sequence 4 - MIPI_SEQ_DISPLAY_OFF
Send DCS: Port A, VC 0, LP, Type 05, Length 1, Data 28 Delay: 105000 us Send DCS: Port A, VC 0, LP, Type 05, Length 2, Data 10 00 Delay: 10000 us
Sequence 5 - MIPI_SEQ_ASSERT_RESET
Delay: 10000 us GPIO index 9, source 0, set 0 (0x00)
Notice how there is no MIPI_SEQ_DEASSERT_RESET, instead the deassert is done at the beginning of MIPI_SEQ_INIT_OTP, which is exactly what the fixup from vlv_fixup_mipi_sequences() fixes up.
Extend it to also apply to v2 sequences, this fixes the panel not working on the Acer Iconia One 8 A1-840.
--- drivers/gpu/drm/i915/display/intel_bios.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_bios.c +4 -4
@@ -1929,7 +1929,7 @@ static int get_init_otp_deassert_fragment_len(struct intel_display *display,int index, len;if (drm_WARN_ON (display->drm, - !data || panel->vbt.dsi.seq_version !=1 )) + !data || panel->vbt.dsi.seq_version >=3 ))return 0 ;/* index = 1 to skip sequence byte */
@@ -1952,7 +1952,7 @@ static int get_init_otp_deassert_fragment_len(struct intel_display *display, }/* -* Some v1 VBT MIPI sequences do the deassert in the init OTP sequence. +* Some v1/v2 VBT MIPI sequences do the deassert in the init OTP sequence. * The deassert must be done before calling intel_dsi_device_ready, so for * these devices we split the init OTP sequence into a deassert sequence and * the actual init OTP part.
@@ -1963,9 +1963,9 @@ static void vlv_fixup_mipi_sequences(struct intel_display *display,u8 *init_otp;int len; -/* Limit this to v1 vid-mode sequences */ +/* Limit this to v1/v2 vid-mode sequences */ if (panel->vbt.dsi.config->is_cmd_mode || - panel->vbt.dsi.seq_version !=1 ) + panel->vbt.dsi.seq_version >=3 )return ;/* Only do this if there are otp and assert seqs and no deassert seq */
Signature · 1 line
2.47.0
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/bios: Apply vlv_fixup_mipi_sequences() to v2 mipi-sequences too
== Series Details ==
== Series Details ==
Series: drm/i915/bios: Apply vlv_fixup_mipi_sequences() to v2 mipi-sequences too
URL : https://patchwork.freedesktop.org/series/141443/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_15710 -> Patchwork_141443v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_141443v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_141443v1, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/index.html
Participating hosts (47 -> 46)
------------------------------
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_141443v1:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live:
- bat-arls-5: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15710/bat-arls-5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/bat-arls-5/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_141443v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@workarounds:
- bat-arls-5: [PASS][3] -> [ABORT][4] ([i915#12061])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15710/bat-arls-5/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/bat-arls-5/igt@i915_selftest@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live:
- bat-mtlp-8: [ABORT][5] ([i915#12061]) -> [PASS][6] +1 other test pass
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15710/bat-mtlp-8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/bat-mtlp-8/igt@[email protected]
- {bat-arls-6}: [ABORT][7] -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15710/bat-arls-6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/bat-arls-6/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- {bat-arls-6}: [ABORT][9] ([i915#12061]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15710/bat-arls-6/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/bat-arls-6/igt@i915_selftest@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
Build changes
-------------
* Linux: CI_DRM_15710 -> Patchwork_141443v1
CI-20190529: 20190529
CI_DRM_15710: 9a7388467f79fb74c67a2444c5b1add91652f89e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8114: 8114
Patchwork_141443v1: 9a7388467f79fb74c67a2444c5b1add91652f89e @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141443v1/index.html