Skip to content

drm/i915: Fix PCH eDP support for SNB

Keith Packard dri-devel intel-gfx lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_controldrivers/gpu/drm/i915/intel_dp.c+19 -182 replies
2/7drm/i915: Remove link_status field from intel_dp structuredrivers/gpu/drm/i915/intel_dp.c+36 -291 reply
3/7drm/i915: Treat PCH eDP like DP in most placesdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_dp.c+81 -3414 replies
4/7drm/i915: Let panel power sequencing hardware do its jobdrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_dp.c+87 -686 replies
5/7drm/i915: Make DP prepare/commit consistent with DP dpmsdrivers/gpu/drm/i915/intel_dp.c+13 -94 replies
6/7drm/i915: Try harder during dp pattern 1 link trainingdrivers/gpu/drm/i915/intel_dp.c+27 -145 replies
7/7drm/i915: Remove trailing white spacedrivers/gpu/drm/i915/intel_dp.c+2 -23 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchJesse BarnesAdam Jackson
1/7
2/7R-b
3/7R-b R-b R-b
4/7R-b
5/7
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] drm/i915: Fix PCH eDP support for SNB

Here's a patch sequence which makes my PCH-connected eDP panel work. The main bug was a pile of places where the driver was incorrectly treating a PCH connected eDP panel like a CPU connected eDP panel, setting incorrect bits in the DP_CTL register and failing to configure the TRANS_DP_CTL register entirely.

Beyond that, this eDP panel appears very sensitive to panel power sequencing, and I found a bunch of minor errors there. I switched from using blind timings to polling the panel power sequencing status register to make sure we waited until that thought things were done, and so that any panel power sequencing errors would show up in the kernel log.

Finally, I noticed that the BIOS tried harder to get the link trained, by simply starting over when it failed and trying the whole sequence up to 5 times. This is not part of the DP spec, but given how bad failing to train a panel is, it seems like it might be a good idea.

The three most interesting patches are the one which handles PCH eDP more like PCH DP, the one which switches to using the panel power sequencing hardware for all delays and finally the patch which tries to do the panel power-up/down in the same order for both dp_prepare/commit and dp_dpms.

All of these patches are on my pch-edp-fixes branch at

git://people.freedesktop.org/~keithp/linux

If you've got a PCH connected eDP display, I'd love to know if this makes it work. If you've got a CPU connected eDP display or PCH connected DP, please see if this causes any problems.

(I've got several machines failing to resume with this patch, but I've checked and it's not the fault of anything in the i915 directory; applying this sequence to v3.1 makes suspend/resume work fine).