* [PATCH] drm/i915: Enable fastset by default, except on initial modeset
@ 2018-05-16 10:38 Maarten Lankhorst
2018-05-16 11:07 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-05-16 19:02 ` ✗ Fi.CI.IGT: failure " Patchwork
0 siblings, 2 replies; 3+ messages in thread
From: Maarten Lankhorst @ 2018-05-16 10:38 UTC (permalink / raw)
To: intel-gfx
We may not be perfect at reading out the initial mode, but when the mode
is sanitized by our first modeset we know for sure the state is compatible,
so we can compare with intel_pipe_config_compare.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e6babd9ae07a..9985236b488b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -12179,6 +12179,22 @@ static int calc_watermark_data(struct drm_atomic_state *state)
return 0;
}
+static bool can_fastset(struct drm_i915_private *dev_priv,
+ struct intel_crtc_state *old_crtc_state,
+ struct intel_crtc_state *new_crtc_state)
+{
+ bool reset_mode =
+ old_crtc_state->base.mode.private_flags &&
+ !new_crtc_state->base.mode.private_flags;
+
+ /* Without fastboot, we always want to modeset the initial mode. */
+ if (reset_mode && !i915_modparams.fastboot)
+ return false;
+
+ return intel_pipe_config_compare(dev_priv, old_crtc_state,
+ new_crtc_state, true);
+}
+
/**
* intel_atomic_check - validate state object
* @dev: drm device
@@ -12209,6 +12225,8 @@ static int intel_atomic_check(struct drm_device *dev,
for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, crtc_state, i) {
struct intel_crtc_state *pipe_config =
to_intel_crtc_state(crtc_state);
+ struct intel_crtc_state *old_intel_crtc_state =
+ to_intel_crtc_state(old_crtc_state);
if (!needs_modeset(crtc_state))
continue;
@@ -12225,10 +12243,7 @@ static int intel_atomic_check(struct drm_device *dev,
return ret;
}
- if (i915_modparams.fastboot &&
- intel_pipe_config_compare(dev_priv,
- to_intel_crtc_state(old_crtc_state),
- pipe_config, true)) {
+ if (can_fastset(dev_priv, old_intel_crtc_state, pipe_config)) {
crtc_state->mode_changed = false;
pipe_config->update_pipe = true;
}
--
2.17.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* ✓ Fi.CI.BAT: success for drm/i915: Enable fastset by default, except on initial modeset
2018-05-16 10:38 [PATCH] drm/i915: Enable fastset by default, except on initial modeset Maarten Lankhorst
@ 2018-05-16 11:07 ` Patchwork
2018-05-16 19:02 ` ✗ Fi.CI.IGT: failure " Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2018-05-16 11:07 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: intel-gfx
== Series Details ==
Series: drm/i915: Enable fastset by default, except on initial modeset
URL : https://patchwork.freedesktop.org/series/43248/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4191 -> Patchwork_9014 =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9014 need to be verified
manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_9014, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/43248/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9014:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_gttfill@basic:
fi-pnv-d510: PASS -> SKIP
igt@kms_force_connector_basic@force-edid:
fi-snb-2520m: SKIP -> PASS +3
== Known issues ==
Here are the changes found in Patchwork_9014 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_frontbuffer_tracking@basic:
fi-hsw-peppy: PASS -> DMESG-FAIL (fdo#102614, fdo#106103)
igt@kms_pipe_crc_basic@read-crc-pipe-c-frame-sequence:
fi-cfl-s3: PASS -> FAIL (fdo#103481)
==== Possible fixes ====
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
fi-bxt-dsi: INCOMPLETE (fdo#103927) -> PASS
fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103481 https://bugs.freedesktop.org/show_bug.cgi?id=103481
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#106103 https://bugs.freedesktop.org/show_bug.cgi?id=106103
== Participating hosts (42 -> 34) ==
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-hsw-4770 fi-glk-j4005 fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4191 -> Patchwork_9014
CI_DRM_4191: 70daebf1a83c2ed6eff118d2a2806086c0c89027 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4484: b7432bf309d5d5a6e07e8a0d8b522302fb0b4502 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9014: bbcc416a11672c244b7abeee11e6eda5ac2123cf @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4484: 62ef6b0db8967e7021fd3e0b57d03ff164b984fe @ git://anongit.freedesktop.org/piglit
== Linux commits ==
bbcc416a1167 drm/i915: Enable fastset by default, except on initial modeset
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9014/issues.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* ✗ Fi.CI.IGT: failure for drm/i915: Enable fastset by default, except on initial modeset
2018-05-16 10:38 [PATCH] drm/i915: Enable fastset by default, except on initial modeset Maarten Lankhorst
2018-05-16 11:07 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-05-16 19:02 ` Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2018-05-16 19:02 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: intel-gfx
== Series Details ==
Series: drm/i915: Enable fastset by default, except on initial modeset
URL : https://patchwork.freedesktop.org/series/43248/
State : failure
== Summary ==
= CI Bug Log - changes from CI_DRM_4191_full -> Patchwork_9014_full =
== Summary - FAILURE ==
Serious unknown changes coming with Patchwork_9014_full absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_9014_full, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/43248/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9014_full:
=== IGT changes ===
==== Possible regressions ====
igt@kms_rotation_crc@bad-pixel-format:
shard-apl: PASS -> DMESG-WARN +1
igt@kms_rotation_crc@exhaust-fences:
shard-glk: PASS -> DMESG-WARN
igt@kms_rotation_crc@sprite-rotation-270:
shard-kbl: PASS -> DMESG-WARN +2
==== Warnings ====
igt@kms_atomic_transition@plane-primary-toggle-with-vblank-wait:
shard-snb: PASS -> SKIP +1
igt@pm_rc6_residency@rc6-accuracy:
shard-kbl: SKIP -> PASS +1
== Known issues ==
Here are the changes found in Patchwork_9014_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_eio@in-flight-10ms:
shard-snb: PASS -> DMESG-WARN (fdo#106523) +1
igt@gem_eio@in-flight-contexts-10ms:
shard-glk: PASS -> DMESG-WARN (fdo#106523) +1
igt@gem_eio@in-flight-internal-immediate:
shard-apl: PASS -> DMESG-WARN (fdo#106523) +1
igt@kms_flip@2x-wf_vblank-ts-check-interruptible:
shard-glk: PASS -> FAIL (fdo#100368)
igt@kms_flip@plain-flip-fb-recreate:
shard-hsw: PASS -> FAIL (fdo#100368)
igt@kms_flip_tiling@flip-x-tiled:
shard-glk: PASS -> FAIL (fdo#104724) +1
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-pgflip-blt:
shard-glk: PASS -> FAIL (fdo#104724, fdo#103167)
==== Possible fixes ====
igt@gem_eio@in-flight-contexts-1us:
shard-apl: DMESG-WARN (fdo#106523) -> PASS +2
shard-glk: DMESG-WARN (fdo#106523) -> PASS +1
igt@gem_eio@in-flight-internal-10ms:
shard-snb: DMESG-WARN (fdo#106523) -> PASS
igt@kms_atomic_transition@1x-modeset-transitions-nonblocking:
shard-glk: FAIL (fdo#105703) -> PASS
igt@kms_cursor_legacy@flip-vs-cursor-toggle:
shard-hsw: FAIL (fdo#102670) -> PASS
igt@kms_flip@2x-flip-vs-expired-vblank:
shard-hsw: FAIL (fdo#102887) -> PASS
igt@kms_flip@plain-flip-ts-check-interruptible:
shard-glk: FAIL (fdo#100368) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc:
shard-kbl: DMESG-WARN (fdo#103558, fdo#105602) -> PASS +1
igt@kms_setmode@basic:
shard-kbl: FAIL (fdo#99912) -> PASS
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102670 https://bugs.freedesktop.org/show_bug.cgi?id=102670
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105703 https://bugs.freedesktop.org/show_bug.cgi?id=105703
fdo#106523 https://bugs.freedesktop.org/show_bug.cgi?id=106523
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (5 -> 5) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4191 -> Patchwork_9014
CI_DRM_4191: 70daebf1a83c2ed6eff118d2a2806086c0c89027 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4484: b7432bf309d5d5a6e07e8a0d8b522302fb0b4502 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9014: bbcc416a11672c244b7abeee11e6eda5ac2123cf @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4484: 62ef6b0db8967e7021fd3e0b57d03ff164b984fe @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9014/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-16 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 10:38 [PATCH] drm/i915: Enable fastset by default, except on initial modeset Maarten Lankhorst
2018-05-16 11:07 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-05-16 19:02 ` ✗ Fi.CI.IGT: failure " Patchwork
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.