]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/i915: cache the EDID for eDP panels
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 14 Jun 2012 19:28:33 +0000 (15:28 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 16 Jun 2012 13:39:02 +0000 (15:39 +0200)
commitd6f24d0fa6cdf3431a2fe3330a74bc6c5871f496
tree51543b813773c65f397774dbb496e5d1363d7c92
parent6b4e0a93ff6e45714c72bdce193f719ed94810e3
drm/i915: cache the EDID for eDP panels

They aren't going anywhere, and probing on DDC can cause the panel to
blank briefly, so read them up front and cache them for later queries.

v2: fix potential NULL derefs in intel_dp_get_edid_modes and
    intel_dp_get_edid (Jani)
    copy full EDID length, including extension blocks (Takashi)
    free EDID on teardown (Takashi)
v3: malloc a new EDID buffer that's big enough for the memcpy (Chris)
v4: change handling of NULL EDIDs, just preserve the NULL behavior
    across detects and mode list fetches rather than trying to re-fetch
    the EDID (Chris)
v5: be glad that Chris is around to remind me to hit C-x C-s before
    committing.

References: https://bugs.freedesktop.org/show_bug.cgi?id=46856
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c