drm/i915: Allow fuzzy matching in intel_compare_link_m_n
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 6 Jan 2016 12:54:43 +0000 (13:54 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 6 Jan 2016 13:20:30 +0000 (14:20 +0100)
commit31d10b5701964ed8806193807279ee7b4235e491
tree4117a8fd653f9361896961854786666036a2aa69
parentd93c037246104e403436ffe339bcb832185d0627
drm/i915: Allow fuzzy matching in intel_compare_link_m_n

This prevents a unnecessary modeset on a dell XPS 13 (2016).

N is always a power of 2, which means that for fuzzy matching we should
compare for inequality on the n values, then do fuzzy matching on the m
values.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tested-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/568D0E93.304@linux.intel.com
drivers/gpu/drm/i915/intel_display.c