drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9
Subsystems (2)
PATCH 1/1 drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9
The reply bit of the ring mode register is only valid on Gen 8. Therefore do not write this for Gen 9.
--- drivers/gpu/drm/i915/intel_lrc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_lrc.c +9 -3
@@ -1259,9 +1259,15 @@ static int gen8_init_common_ring(struct intel_engine_cs *engine)intel_engine_init_hangcheck (engine);I915_WRITE (RING_HWSTAM (engine->mmio_base),0xffffffff ); -I915_WRITE (RING_MODE_GEN7 (engine), -_MASKED_BIT_DISABLE (GFX_REPLAY_MODE ) | -_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE )); + +if (INTEL_GEN (dev_priv) >=9 ) +I915_WRITE (RING_MODE_GEN7 (engine), +_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE )); +else +I915_WRITE (RING_MODE_GEN7 (engine), +_MASKED_BIT_DISABLE (GFX_REPLAY_MODE ) | +_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE )); +I915_WRITE (RING_HWS_PGA (engine->mmio_base), engine->status_page.ggtt_offset);POSTING_READ (RING_HWS_PGA (engine->mmio_base));
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: success for drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9
== Series Details ==
== Series Details ==
Series: drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9
URL : https://patchwork.freedesktop.org/series/19875/
State : success
== Summary ==
Series 19875v1 drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9
https://patchwork.freedesktop.org/api/1.0/series/19875/revisions/1/mbox/
fi-bdw-5557u total:252 pass:241 dwarn:0 dfail:0 fail:0 skip:11 fi-bsw-n3050 total:252 pass:213 dwarn:0 dfail:0 fail:0 skip:39 fi-bxt-j4205 total:252 pass:233 dwarn:0 dfail:0 fail:0 skip:19 fi-bxt-t5700 total:83 pass:70 dwarn:0 dfail:0 fail:0 skip:12 fi-byt-j1900 total:252 pass:225 dwarn:0 dfail:0 fail:0 skip:27 fi-byt-n2820 total:252 pass:221 dwarn:0 dfail:0 fail:0 skip:31 fi-hsw-4770 total:252 pass:236 dwarn:0 dfail:0 fail:0 skip:16 fi-hsw-4770r total:252 pass:236 dwarn:0 dfail:0 fail:0 skip:16 fi-ilk-650 total:252 pass:202 dwarn:0 dfail:0 fail:0 skip:50 fi-ivb-3520m total:252 pass:234 dwarn:0 dfail:0 fail:0 skip:18 fi-ivb-3770 total:252 pass:234 dwarn:0 dfail:0 fail:0 skip:18 fi-kbl-7500u total:252 pass:234 dwarn:0 dfail:0 fail:0 skip:18 fi-skl-6260u total:252 pass:242 dwarn:0 dfail:0 fail:0 skip:10 fi-skl-6700hq total:252 pass:235 dwarn:0 dfail:0 fail:0 skip:17 fi-skl-6700k total:252 pass:230 dwarn:4 dfail:0 fail:0 skip:18 fi-skl-6770hq total:252 pass:242 dwarn:0 dfail:0 fail:0 skip:10 fi-snb-2520m total:252 pass:224 dwarn:0 dfail:0 fail:0 skip:28 fi-snb-2600 total:252 pass:223 dwarn:0 dfail:0 fail:0 skip:29
d13370a042e9d05329bcac34eb43c64e4f6704e0 drm-tip: 2017y-02m-17d-21h-23m-28s UTC integration manifest 8dcc17e drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3892/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 1 line · Kelvin Gardiner
The reply bit of the ring mode register is only valid on Gen 8.
s/reply/replay. Also, from the specs it looks like this bit is reserved in Gen8 production steppings, so we should be able to drop it entirely.
Thanks,
Daniele
Quoted 21 lines
Therefore do not write this for Gen 9.
Signed-off-by Kelvin Gardiner <[email protected]>--- drivers/gpu/drm/i915/intel_lrc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_lrc.c +2
-3@@ -1259,9 +1259,15 @@ static int gen8_init_common_ring(struct intel_engine_cs *engine)intel_engine_init_hangcheck (engine);I915_WRITE (RING_HWSTAM (engine->mmio_base),0xffffffff ); -I915_WRITE (RING_MODE_GEN7 (engine), -_MASKED_BIT_DISABLE (GFX_REPLAY_MODE ) | -_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE )); + +if (INTEL_GEN (dev_priv) >=9 )
drivers/gpu/drm/i915/intel_lrc.c static int gen8_init_common_ring(struct intel_engine_cs *engine) · line 1273
Quoted 10 lines
drivers/gpu/drm/i915/intel_lrc.c +7
-0+I915_WRITE (RING_MODE_GEN7 (engine), +_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE )); + else +I915_WRITE (RING_MODE_GEN7 (engine ), + _MASKED_BIT_DISABLE(GFX_REPLAY_MODE) | +_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE )); +I915_WRITE (RING_HWS_PGA (engine->mmio_base), engine->status_page.ggtt_offset);POSTING_READ (RING_HWS_PGA (engine->mmio_base));
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Joonas Lahtinen
maintainerQuoted 10 lines · Daniele
Quoted 2 lines · Kelvin Gardiner
The reply bit of the ring mode register is only valid on Gen 8.
s/reply/replay. Also, from the specs it looks like this bit is reserved in Gen8 production steppings, so we should be able to drop it entirely.
Thanks,
Daniele
Yeah, should be removed completely.
Regards, Joonas
Signature · 7 lines
Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx