drm/i915: Set the Z inversion overlap field
Subsystems (2)
PATCH 1/1 drm/i915: Set the Z inversion overlap field
Dual link Z-inversion overlap field is present
in MIPI_CTRL register unlike the older platforms,
hence setting the same in this patch.
--- drivers/gpu/drm/i915/i915_reg.h | 2 ++ drivers/gpu/drm/i915/intel_dsi.c | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -8350,6 +8350,8 @@ enum {#define _MIPIA_CTRL (dev_priv->mipi_mmio_base + 0xb104)#define _MIPIC_CTRL (dev_priv->mipi_mmio_base + 0xb904)#define MIPI_CTRL (port) _MMIO_MIPI(port, _MIPIA_CTRL, _MIPIC_CTRL) +#define BXT_PIXEL_OVERLAP_CNT_MASK (0xf << 10) +#define BXT_PIXEL_OVERLAP_CNT_SHIFT 10#define ESCAPE_CLOCK_DIVIDER_SHIFT 5/* A only */ #define ESCAPE_CLOCK_DIVIDER_MASK (3 << 5)#define ESCAPE_CLOCK_DIVIDER_1 (0 << 5)
drivers/gpu/drm/i915/intel_dsi.c +13 -4
@@ -455,12 +455,21 @@ static void intel_dsi_port_enable(struct intel_encoder *encoder)if (intel_dsi->dual_link ==DSI_DUAL_LINK_FRONT_BACK ) {u32 temp; - - temp =I915_READ (VLV_CHICKEN_3 ); - temp &= ~PIXEL_OVERLAP_CNT_MASK | +if (IS_BROXTON (dev_priv)) { +for_each_dsi_port (port, intel_dsi->ports) { + temp =I915_READ (MIPI_CTRL (port)); + temp &= ~BXT_PIXEL_OVERLAP_CNT_MASK | + intel_dsi->pixel_overlap << +BXT_PIXEL_OVERLAP_CNT_SHIFT ; +I915_WRITE (MIPI_CTRL (port), temp); + } + }else { + temp =I915_READ (VLV_CHICKEN_3 ); + temp &= ~PIXEL_OVERLAP_CNT_MASK | intel_dsi->pixel_overlap <<PIXEL_OVERLAP_CNT_SHIFT ; -I915_WRITE (VLV_CHICKEN_3 , temp); +I915_WRITE (VLV_CHICKEN_3 , temp); + } }for_each_dsi_port (port, intel_dsi->ports) {
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: warning for drm/i915: Set the Z inversion overlap field
== Series Details ==
== Series Details ==
Series: drm/i915: Set the Z inversion overlap field
URL : https://patchwork.freedesktop.org/series/14704/
State : warning
== Summary ==
Series 14704v1 drm/i915: Set the Z inversion overlap field
https://patchwork.freedesktop.org/api/1.0/series/14704/revisions/1/mbox/
Test kms_busy:
Subgroup basic-flip-default-b:
pass -> DMESG-WARN (fi-ilk-650)
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-varying-size:
pass -> DMESG-WARN (fi-ilk-650)
Test kms_flip:
Subgroup basic-flip-vs-wf_vblank:
pass -> SKIP (fi-byt-n2820)
Test kms_pipe_crc_basic:
Subgroup bad-nb-words-3:
dmesg-warn -> PASS (fi-ilk-650)
Subgroup bad-source:
dmesg-warn -> PASS (fi-ilk-650)
Subgroup hang-read-crc-pipe-a:
dmesg-warn -> PASS (fi-ilk-650)
Subgroup nonblocking-crc-pipe-b:
pass -> DMESG-WARN (fi-ilk-650)
Subgroup read-crc-pipe-a-frame-sequence:
pass -> DMESG-WARN (fi-ilk-650)fi-bdw-5557u total:241 pass:226 dwarn:0 dfail:0 fail:0 skip:15 fi-bsw-n3050 total:241 pass:201 dwarn:0 dfail:0 fail:0 skip:40 fi-bxt-t5700 total:241 pass:213 dwarn:0 dfail:0 fail:0 skip:28 fi-byt-j1900 total:241 pass:213 dwarn:0 dfail:0 fail:0 skip:28 fi-byt-n2820 total:241 pass:208 dwarn:0 dfail:0 fail:0 skip:33 fi-hsw-4770 total:241 pass:221 dwarn:0 dfail:0 fail:0 skip:20 fi-hsw-4770r total:241 pass:220 dwarn:0 dfail:0 fail:0 skip:21 fi-ilk-650 total:241 pass:181 dwarn:6 dfail:0 fail:0 skip:54 fi-ivb-3520m total:241 pass:218 dwarn:0 dfail:0 fail:0 skip:23 fi-ivb-3770 total:241 pass:218 dwarn:0 dfail:0 fail:0 skip:23 fi-kbl-7200u total:241 pass:219 dwarn:0 dfail:0 fail:0 skip:22 fi-skl-6260u total:241 pass:227 dwarn:0 dfail:0 fail:0 skip:14 fi-skl-6700hq total:241 pass:220 dwarn:0 dfail:0 fail:0 skip:21 fi-skl-6700k total:241 pass:219 dwarn:1 dfail:0 fail:0 skip:21 fi-skl-6770hq total:241 pass:227 dwarn:0 dfail:0 fail:0 skip:14 fi-snb-2520m total:241 pass:208 dwarn:0 dfail:0 fail:0 skip:33 fi-snb-2600 total:241 pass:207 dwarn:0 dfail:0 fail:0 skip:34
c5ad9c11e819eebcad5b9be5aa5e991e89b26965 drm-intel-nightly: 2016y-11m-01d-16h-36m-25s UTC integration manifest 138d57c drm/i915: Set the Z inversion overlap field
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_2882/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx