drm/i915: Don't compare has_drrs strictly in pipe config
Subsystems (2)
PATCH 1/1 drm/i915: Don't compare has_drrs strictly in pipe config
The commit [cfb23ed622d0: drm/i915: Allow fuzzy matching in pipe_config_compare, v2] relaxed the way to compare the pipe configurations, but one new comparison sneaked in there: it added the strict has_drrs value check. This causes a regression on many
machines, typically HP laptops with a docking port, where the kernel
spews warnings and eventually fails to set the mode properly like:
[drm:intel_pipe_config_compare [i915]] *ERROR* mismatch in has_drrs (expected 1, found 0)
------------[ cut here ]------------ WARNING: CPU: 0 PID: 79 at drivers/gpu/drm/i915/intel_display.c:12700 intel_modeset_check_state+0x5aa/0x870 [i915]() pipe state doesn't match! ....
This patch just removes the check again for fixing the regression.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=104041
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92456
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=956397
--- drivers/gpu/drm/i915/intel_display.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +0 -1
@@ -12460,7 +12460,6 @@ intel_pipe_config_compare(struct drm_device *dev,if (INTEL_INFO (dev)->gen <8 ) {PIPE_CONF_CHECK_M_N (dp_m_n); -PIPE_CONF_CHECK_I (has_drrs);if (current_config->has_drrs)PIPE_CONF_CHECK_M_N (dp_m2_n2); }else
Signature · 6 lines
2.6.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 14 lines · Takashi Iwai
The commit [
cfb23ed622d0: drm/i915: Allow fuzzy matching inpipe_config_compare, v2] relaxed the way to compare the pipe configurations, but one new comparison sneaked in there: it added the stricthas_drrsvalue check. This causes a regression on many
machines, typically HP laptops with a docking port, where the kernel
spews warnings and eventually fails to set the mode properly like:
[drm:intel_pipe_config_compare [i915]] *ERROR* mismatch inhas_drrs(expected 1, found 0)------------[ cut here ]------------ WARNING: CPU: 0 PID: 79 at drivers/gpu/drm/i915/intel_display.c:12700 intel_modeset_check_state+0x5aa/0x870 [i915]() pipe state doesn't match! ....This patch just removes the check again for fixing the regression.
Quoted 7 lines
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=104041
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92456
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=956397Fixes cfb23ed622d0 ('drm/i915: Allow fuzzy matching in pipe_config_compare, v2')Cc <[email protected]> # v4.3+Reported-and-tested-by Max Lin <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Quoted 23 lines
--- drivers/gpu/drm/i915/intel_display.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/i915/intel_display.c +0
-1@@ -12460,7 +12460,6 @@ intel_pipe_config_compare(struct drm_device *dev,if (INTEL_INFO (dev)->gen <8 ) {PIPE_CONF_CHECK_M_N (dp_m_n); -PIPE_CONF_CHECK_I (has_drrs);if (current_config->has_drrs)PIPE_CONF_CHECK_M_N (dp_m2_n2); }else Signature · 6 lines
2.6.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
AppliedQuoted 23 lines · Daniel Vetter
Quoted 14 lines · Takashi Iwai
The commit [
cfb23ed622d0: drm/i915: Allow fuzzy matching inpipe_config_compare, v2] relaxed the way to compare the pipe configurations, but one new comparison sneaked in there: it added the stricthas_drrsvalue check. This causes a regression on many
machines, typically HP laptops with a docking port, where the kernel
spews warnings and eventually fails to set the mode properly like:
[drm:intel_pipe_config_compare [i915]] *ERROR* mismatch inhas_drrs(expected 1, found 0)------------[ cut here ]------------ WARNING: CPU: 0 PID: 79 at drivers/gpu/drm/i915/intel_display.c:12700 intel_modeset_check_state+0x5aa/0x870 [i915]() pipe state doesn't match! ....This patch just removes the check again for fixing the regression.
Quoted 7 lines
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=104041
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92456
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=956397Fixes cfb23ed622d0 ('drm/i915: Allow fuzzy matching in pipe_config_compare, v2')Cc <[email protected]> # v4.3+Reported-and-tested-by Max Lin <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Quoted 1 line
Reviewed-by Daniel Vetter <[email protected]>
Pushed to drm-intel-fixes, thanks for the patch and review.
BR,
Jani.
Quoted 24 lines
Quoted 24 lines
--- drivers/gpu/drm/i915/intel_display.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/i915/intel_display.c +0
-1@@ -12460,7 +12460,6 @@ intel_pipe_config_compare(struct drm_device *dev,if (INTEL_INFO (dev)->gen <8 ) {PIPE_CONF_CHECK_M_N (dp_m_n); -PIPE_CONF_CHECK_I (has_drrs);if (current_config->has_drrs)PIPE_CONF_CHECK_M_N (dp_m2_n2); }else Signature · 6 lines
2.6.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx