Skip to content

Haswell fixes

Eugeni Dodonov intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25drm/i915: add new Haswell DIP controls registersdrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_hdmi.c+90 -04 replies
1/25drm/i915: add new Haswell DIP controls registersdrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_hdmi.c+55 -00 replies
2/25drm/i915: reuse Ivy Bridge interrupts code for Haswelldrivers/gpu/drm/i915/i915_irq.c+9 -20 replies
3/25drm/i915: add support for SBI opsdrivers/gpu/drm/i915/intel_display.c+63 -00 replies
4/25drm/i915: calculate watermarks for devices that have 3 pipesdrivers/gpu/drm/i915/intel_pm.c+1 -20 replies
5/25drm/i915: properly check for pipe countdrivers/gpu/drm/i915/intel_display.c+4 -100 replies
6/25drm/i915: show unknown sdvox registers on hdmi initdrivers/gpu/drm/i915/intel_hdmi.c+4 -00 replies
7/25drm/i915: do not use fdi_normal_train on Haswelldrivers/gpu/drm/i915/intel_display.c+2 -10 replies
8/25drm/i915: detect PCH encoders on Haswelldrivers/gpu/drm/i915/intel_display.c+16 -01 reply
8/25drm/i915: detect PCH encoders on Haswelldrivers/gpu/drm/i915/intel_display.c+16 -00 replies
9/25drm/i915: enable power wells on Haswell initdrivers/gpu/drm/i915/intel_pm.c+36 -01 reply
9/25drm/i915: enable power wells on Haswell initdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_pm.c+39 -02 replies
10/25drm/i915: add LPT PCH checksdrivers/gpu/drm/i915/intel_display.c+16 -20 replies
11/25drm/i915: handle DDI-related assertionsdrivers/gpu/drm/i915/intel_display.c+25 -100 replies
12/25drm/i915: account for only one PCH receiver on Haswelldrivers/gpu/drm/i915/intel_crt.c drivers/gpu/drm/i915/intel_display.c+21 -40 replies
13/25drm/i915: initialize DDI buffer translationsdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c +1 more+111 -00 replies
14/25drm/i915: support DDI training in FDI modedrivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+118 -00 replies
15/25drm/i915: use ironlake eld write routine for Haswelldrivers/gpu/drm/i915/intel_display.c+1 -00 replies
16/25drm/i915: define Haswell watermarks and clock gatingdrivers/gpu/drm/i915/intel_pm.c+11 -00 replies
17/25drm/i915: program WM_LINETIME on Haswelldrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h +1 more+43 -00 replies
18/25drm/i915: disable pipe DDI function when disabling pipedrivers/gpu/drm/i915/intel_display.c+10 -00 replies
19/25drm/i915: program iCLKIP on Lynx Pointdrivers/gpu/drm/i915/intel_display.c+97 -30 replies
20/25drm/i915: detect digital outputs on Haswelldrivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+50 -10 replies
21/25drm/i915: add support for DDI-controlled digital outputsdrivers/gpu/drm/i915/intel_hdmi.c+19 -00 replies
22/25drm/i915: add WR PLL programming tabledrivers/gpu/drm/i915/intel_ddi.c+388 -00 replies
23/25drm/i915: move HDMI structs to shared locationdrivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_hdmi.c+21 -171 reply
24/25drm/i915: prepare HDMI link for Haswelldrivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_hdmi.c+133 -10 replies
25/25drm/i915: hook Haswell devices in placedrivers/char/agp/intel-agp.c drivers/gpu/drm/i915/i915_drv.c+11 -01 reply

Reviews trailers per patch

9 of 28 patches have a Reviewed-by or Acked-by.

PatchRodrigo ViviJesse BarnesBen Widawsky
1/25
1/25
2/25
3/25R-b R-b
4/25R-b
5/25R-b
6/25
7/25R-b R-b
8/25
8/25
9/25
9/25
10/25
11/25
12/25R-b
13/25R-b
14/25
15/25
16/25
17/25
18/25
19/25R-b
20/25
21/25R-b
22/25
23/25R-b
24/25
25/25

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/25] Haswell fixes

Hi,

Essentially those are the same patches as in the previous round, rebased on yesterday's drm-intel-next-queued, and with the following comments and suggestions from Daniel and Jesse addressed:

- Added all the new DIP controls, and a switch into hsw_write_infoframe to properly write frame contents for each type (asked by Jesse, Daniel).
- Rebased the interrupts handling code on top of drm-intel-next-queued (asked by Jesse).
- Show an error message when we are trying to use FDI over HSW+PPT combination (this was not tested yet, so probably won't work anyway) (asked by Jesse, Daniel).
- DDI module split clean-up to simplify patches reviewing (asked by Daniel).
- Added a new intel_update_linetime_watermarks callback, to setup line time watermarks that are dependant on the mode clock settings; add a note about IPS watermarks which are not yet there (asked by Jesse).
- Reworked iCLKIP clock setting to use algorithm for mode calculation instead of table, added checks for invalid values from Ben (thanks!!). WR PLL table is still there, but with an explicit comment saying that it is temporary and will go away at some point (asked pretty much everyone :))
- Adapted to the latest HDMI infoframes changes in drm-intel-next.
- Misc cleanups all around.

The CRT and higher level function separations for the LPT paths are not there. There is only 1 way to use VGA output on Haswell, and only 1 DDI can work in FDI mode for that, so I don't think it makes much sense adding specific functions for that considering that the LPT-specific chunks are quite small. We could simplify it later in the intel_display refactoring if the need arises.

Please review and comment, unless someone has any major concerns or issues with those I'd like to have them merged to drm-intel-next, for wider testing and availability!

Thanks,

Eugeni Dodonov (25):
drm/i915: add new Haswell DIP controls registers drm/i915: reuse Ivy Bridge interrupts code for Haswell drm/i915: add support for SBI ops
drm/i915: calculate watermarks for devices that have 3 pipes drm/i915: properly check for pipe count
drm/i915: show unknown sdvox registers on hdmi init drm/i915: do not use fdi_normal_train on Haswell drm/i915: detect PCH encoders on Haswell
drm/i915: enable power wells on Haswell init drm/i915: add LPT PCH checks
drm/i915: handle DDI-related assertions
drm/i915: account for only one PCH receiver on Haswell drm/i915: initialize DDI buffer translations drm/i915: support DDI training in FDI mode drm/i915: use ironlake eld write routine for Haswell drm/i915: define Haswell watermarks and clock gating drm/i915: program WM_LINETIME on Haswell
drm/i915: disable pipe DDI function when disabling pipe drm/i915: program iCLKIP on Lynx Point
drm/i915: detect digital outputs on Haswell drm/i915: add support for DDI-controlled digital outputs drm/i915: add WR PLL programming table
drm/i915: move HDMI structs to shared location drm/i915: prepare HDMI link for Haswell
drm/i915: hook Haswell devices in place

 drivers/char/agp/intel-agp.c         |    4 +
 drivers/gpu/drm/i915/Makefile        |    1 +
 drivers/gpu/drm/i915/i915_drv.c      |    7 +
 drivers/gpu/drm/i915/i915_drv.h      |    2 +
 drivers/gpu/drm/i915/i915_irq.c      |   11 +-
 drivers/gpu/drm/i915/i915_reg.h      |   36 ++
 drivers/gpu/drm/i915/intel_crt.c     |    6 +-
 drivers/gpu/drm/i915/intel_ddi.c     |  755 ++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_display.c |  306 ++++++++++++--
 drivers/gpu/drm/i915/intel_drv.h     |   29 +-
 drivers/gpu/drm/i915/intel_hdmi.c    |  107 ++++-
 drivers/gpu/drm/i915/intel_pm.c      |   87 +++-
 12 files changed, 1299 insertions(+), 52 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_ddi.c
Signature · 1 line
1.7.10