drm/i915: do not stop engines on sanitize if i915.reset=0
Subsystems (2)
RFC 1/1 drm/i915: do not stop engines on sanitize if i915.reset=0
Since commit 5896a5c8c9c0 (drm/i915: Always stop the rings before a missing GPU reset) we attempt to stop the engines during gem_sanitize even if reset=0 and nothing bad happened on the gpu.
The specs says that the STOP_RINGS bit needs to be cleared to resume normal operation, but for some reason the value of the bit seems to be changing without us writing to it (maybe rc6 entry/exit?), so normal operation resumes correctly. However, it still feels incorrect to stop the engines if there hasn't been any issue so skip the whole reset call in gem_sanitize if i915.reset=0
--- drivers/gpu/drm/i915/i915_gem.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -4
@@ -4882,10 +4882,8 @@ void i915_gem_sanitize(struct drm_i915_private *i915)* it may impact the display and we are uncertain about the stability * of the reset, so this could be applied to even earlier gen. */ -if (INTEL_GEN (i915) >=5 ) { -int reset =intel_gpu_reset (i915,ALL_ENGINES ); -WARN_ON (reset && reset != -ENODEV ); - } +if (INTEL_GEN (i915) >=5 &&intel_has_gpu_reset (i915)) +WARN_ON (intel_gpu_reset (i915,ALL_ENGINES )); }int i915_gem_suspend (struct drm_i915_private *dev_priv)
Signature · 6 lines
2.16.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Daniele Ceraolo Spurio (2018-02-07 21:24:40)
Quoted 22 lines
Since commit
5896a5c8c9c0(drm/i915: Always stop the rings before a missing GPU reset) we attempt to stop the engines duringgem_sanitizeeven if reset=0 and nothing bad happened on the gpu.
The specs says that theSTOP_RINGSbit needs to be cleared to resume normal operation, but for some reason the value of the bit seems to be changing without us writing to it (maybe rc6 entry/exit?), so normal operation resumes correctly. However, it still feels incorrect to stop the engines if there hasn't been any issue so skip the whole reset call ingem_sanitizeif i915.reset=0Cc Chris Wilson <[email protected]>Cc Mika Kuoppala <[email protected]>Signed-off-by Daniele Ceraolo Spurio <[email protected]>--- drivers/gpu/drm/i915/i915_gem.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_gem.c +0
-0
drivers/gpu/drm/i915/i915_gem.c void i915_gem_sanitize(struct drm_i915_private *i915) · line 4886
Quoted 9 lines
drivers/gpu/drm/i915/i915_gem.c +2
-4@@ -4882,10 +4882,8 @@ void i915_gem_sanitize(struct drm_i915_private *i915)* it may impact the display and we are uncertain about the stability * of the reset, so this could be applied to even earlier gen. */ -if (INTEL_GEN (i915) >=5 ) { -int reset =intel_gpu_reset (i915,ALL_ENGINES ); -WARN_ON (reset && reset != -ENODEV ); - } +if (INTEL_GEN (i915) >=5 &&intel_has_gpu_reset (i915)) +WARN_ON (intel_gpu_reset (i915,ALL_ENGINES ));
I'll buy just because it makes the code tidier and should make the warning more understandable, otherwise I look at i915.reset=0 (or lack of reset implementation) as something that should be fixed rather than worked around.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: do not stop engines on sanitize if i915.reset=0
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: drm/i915: do not stop engines on sanitize if i915.reset=0
URL : https://patchwork.freedesktop.org/series/37846/
State : success
== Summary ==
Series 37846v1 drm/i915: do not stop engines on sanitize if i915.reset=0
https://patchwork.freedesktop.org/api/1.0/series/37846/revisions/1/mbox/
Test gem_mmap_gtt:
Subgroup basic-small-bo-tiledx:
fail -> PASS (fi-gdg-551) fdo#102575
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
pass -> INCOMPLETE (fi-snb-2520m) fdo#103713
Subgroup suspend-read-crc-pipe-c:
incomplete -> PASS (fi-bdw-5557u) fdo#104162fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#104162 https://bugs.freedesktop.org/show_bug.cgi?id=104162
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:419s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:421s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:372s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:493s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:288s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:480s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:488s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:472s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:459s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:565s fi-cnl-y3 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:585s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:415s fi-gdg-551 total:288 pass:180 dwarn:0 dfail:0 fail:0 skip:108 time:284s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:512s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:391s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:413s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:448s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:418s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:457s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:500s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:454s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:501s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:595s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:430s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:512s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:525s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:483s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:478s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:414s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:429s fi-snb-2520m total:245 pass:211 dwarn:0 dfail:0 fail:0 skip:33 fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:396s
Blacklisted hosts:
fi-glk-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:471s
1e92fee09fd4e434bf016248b72827cd8bd3fd21 drm-tip: 2018y-02m-07d-20h-56m-16s UTC integration manifest 0b2c5af01f98 drm/i915: do not stop engines on sanitize if i915.reset=0
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7931/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for drm/i915: do not stop engines on sanitize if i915.reset=0
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: drm/i915: do not stop engines on sanitize if i915.reset=0
URL : https://patchwork.freedesktop.org/series/37846/
State : failure
== Summary ==
Test pm_rpm:
Subgroup system-suspend-execbuf:
pass -> INCOMPLETE (shard-hsw) fdo#103375
Test kms_flip:
Subgroup 2x-dpms-vs-vblank-race-interruptible:
fail -> PASS (shard-hsw) fdo#103060 +2
Subgroup flip-vs-modeset-vs-hang-interruptible:
dmesg-warn -> PASS (shard-snb) fdo#104311
Test kms_vblank:
Subgroup pipe-a-ts-continuation-dpms-suspend:
skip -> PASS (shard-hsw)
Test kms_plane_lowres:
Subgroup pipe-a-tiling-none:
pass -> FAIL (shard-apl)
Subgroup pipe-b-tiling-y:
fail -> PASS (shard-apl) fdo#103166fdo#103375 https://bugs.freedesktop.org/show_bug.cgi?id=103375
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#104311 https://bugs.freedesktop.org/show_bug.cgi?id=104311
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
shard-apl total:3391 pass:1763 dwarn:1 dfail:0 fail:21 skip:1605 time:12498s shard-hsw total:3414 pass:1744 dwarn:1 dfail:0 fail:11 skip:1656 time:11504s shard-snb total:3444 pass:1350 dwarn:1 dfail:0 fail:9 skip:2084 time:6631s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7931/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.IGT: failure for drm/i915: do not stop engines on sanitize if i915.reset=0
Quoting Patchwork (2018-02-08 05:13:08)
Quoted 9 lines
== Series Details ==
Series: drm/i915: do not stop engines on sanitize if i915.reset=0
URL : https://patchwork.freedesktop.org/series/37846/
State : failure== Summary ==
Test
pm_rpm:
Quoted 15 lines
Subgroup system-suspend-execbuf:
pass -> INCOMPLETE (shard-hsw) fdo#103375
Test kms_flip:
Subgroup 2x-dpms-vs-vblank-race-interruptible:
fail -> PASS (shard-hsw) fdo#103060 +2
Subgroup flip-vs-modeset-vs-hang-interruptible:
dmesg-warn -> PASS (shard-snb) fdo#104311
Test kms_vblank:
Subgroup pipe-a-ts-continuation-dpms-suspend:
skip -> PASS (shard-hsw)
Test kms_plane_lowres:
Subgroup pipe-a-tiling-none:
pass -> FAIL (shard-apl)
Subgroup pipe-b-tiling-y:
fail -> PASS (shard-apl) fdo#103166And clear. Pushed, thanks for the patch.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx