Skip to content

RFC Haswell v2

Eugeni Dodonov intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest41 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/41drm/i915: transform HAS_PCH_SPLIT in a feature checkdrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/i915_drv.h+8 -10 replies
2/41drm/i915: add Haswell devices and their PCI IDsdrivers/char/agp/intel-agp.h drivers/char/agp/intel-gtt.c drivers/gpu/drm/i915/i915_drv.c +1 more+45 -00 replies
3/41drm/i915: hook Haswell devices in placedrivers/char/agp/intel-agp.c drivers/gpu/drm/i915/i915_drv.c+11 -00 replies
4/41drm/i915: add support for LynxPoint PCHdrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/i915_drv.h+6 -00 replies
5/41drm/i915: add support for power wellsdrivers/gpu/drm/i915/i915_reg.h+13 -00 replies
6/41drm/i915: add enumeration for DDI portsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_reg.h+12 -00 replies
7/41drm/i915: add DDI registersdrivers/gpu/drm/i915/i915_reg.h+26 -00 replies
8/41drm/i915: add DP_TP_CTL registersdrivers/gpu/drm/i915/i915_reg.h+16 -00 replies
9/41drm/i915: add DP_TP_STATUS registersdrivers/gpu/drm/i915/i915_reg.h+8 -00 replies
10/41drm/i915: add definitions for DDI_BUF_CTL registersdrivers/gpu/drm/i915/i915_reg.h+23 -00 replies
11/41drm/i915: add definition of DDI buffer translations regsdrivers/gpu/drm/i915/i915_reg.h+7 -00 replies
12/41drm/i915: add definition of LPT FDI port width registersdrivers/gpu/drm/i915/i915_reg.h+3 -01 reply
13/41drm/i915: add SBI registersdrivers/gpu/drm/i915/i915_reg.h+12 -00 replies
14/41drm/i915: add support for SBI opsdrivers/gpu/drm/i915/intel_display.c+44 -01 reply
15/41drm/i915: add PIXCLK_GATE registerdrivers/gpu/drm/i915/i915_reg.h+6 -00 replies
16/41drm/i915: add S PLL controldrivers/gpu/drm/i915/i915_reg.h+8 -00 replies
17/41drm/i915: add port clock selection support for HSWdrivers/gpu/drm/i915/i915_reg.h+23 -00 replies
18/41drm/i915: add SSC offsets for SBI accessdrivers/gpu/drm/i915/i915_reg.h+15 -00 replies
19/41drm/i915: add LCPLL control registersdrivers/gpu/drm/i915/i915_reg.h+7 -00 replies
20/41drm/i915: add WRPLL clocksdrivers/gpu/drm/i915/i915_reg.h+8 -00 replies
21/41drm/i915: add WM_LINETIME registersdrivers/gpu/drm/i915/i915_reg.h+10 -00 replies
22/41drm/i915: add SFUSE_STRAP registers for digital port detectiondrivers/gpu/drm/i915/i915_reg.h+7 -01 reply
23/41drm/i915: calculate same watermarks on Haswell as on Ivy Bridgedrivers/gpu/drm/i915/intel_display.c+1 -10 replies
24/41drm/i915: share forcewaking code between IVB and HSWdrivers/gpu/drm/i915/intel_display.c+1 -10 replies
25/41drm/i915: haswell has 3 pipes as welldrivers/gpu/drm/i915/i915_dma.c+1 -10 replies
26/41drm/i915: reuse Ivybridge interrupts code for Haswelldrivers/gpu/drm/i915/i915_irq.c+3 -30 replies
27/41drm/i915: share pipe count handling with Ivybridgedrivers/gpu/drm/i915/intel_display.c+1 -10 replies
28/41drm/i915: share IVB cursor routine with Haswelldrivers/gpu/drm/i915/intel_display.c+1 -10 replies
29/41drm/i915: show unknown sdvox registers on hdmi initdrivers/gpu/drm/i915/intel_hdmi.c+2 -00 replies
30/41drm/i915: enable power wells on haswell initdrivers/gpu/drm/i915/intel_display.c+31 -00 replies
31/41drm/i915: disable rc6 on haswell for nowdrivers/gpu/drm/i915/intel_display.c+4 -00 replies
32/41drm/i915: program WM_LINETIME on Haswelldrivers/gpu/drm/i915/intel_display.c+13 -00 replies
33/41drm/i915: initialize DDI buffer translationsdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+84 -10 replies
34/41drm/i915: perform Haswell DDI link training in FDI modedrivers/gpu/drm/i915/intel_display.c+118 -00 replies
35/41drm/i915: disable pipe DDI function when disabling pipedrivers/gpu/drm/i915/intel_display.c+10 -00 replies
36/41drm/i915: do not use fdi_normal_train on haswelldrivers/gpu/drm/i915/intel_display.c+2 -10 replies
37/41drm/i915: program iCLKIP on Lynx Pointdrivers/gpu/drm/i915/intel_display.c+309 -00 replies
38/41drm/i915: detect digital outputs on Haswelldrivers/gpu/drm/i915/intel_display.c+34 -160 replies
39/41drm/i915: add support for DDI-controlled digital outputsdrivers/gpu/drm/i915/intel_hdmi.c+19 -00 replies
40/41drm/i915: prepare HDMI link for Haswelldrivers/gpu/drm/i915/intel_hdmi.c+62 -10 replies
41/41drm/i915: add debugging bits for haswell modesettingdrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_display.c+51 -120 replies

Reviews trailers per patch

15 of 41 patches have a Reviewed-by or Acked-by.

PatchRodrigo Vivi
1/41
2/41
3/41
4/41R-b
5/41R-b
6/41
7/41
8/41
9/41
10/41R-b
11/41
12/41R-b
13/41R-b
14/41
15/41R-b
16/41R-b
17/41
18/41R-b
19/41R-b
20/41
21/41
22/41
23/41
24/41R-b
25/41R-b
26/41
27/41R-b
28/41R-b
29/41
30/41
31/41R-b
32/41
33/41
34/41
35/41
36/41R-b
37/41
38/41
39/41
40/41
41/41

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 00/41] [RFC] Haswell v2

This is an updated set of patches for Haswell enablement. I tried to address all the comments, and re-diffed the patches to simplify their inclusion into Daniel's tree.

I have also split the PCI IDs definitions and their hook-up into the binding tables as well. But I think we should wait on picking up those 2 patches for now - the PCI ID allocation logic here will still receive some additional changes I think.

Functionality-wise, those patches do detect digital outputs now, namely HDMI, but said outputs do not (yet) work. The digital output detection process is also different from what we had previously - we can detect the presence of a connection on a port via DDI port feedback, but we cannot say if it is HDMI or DP. So I am not quite certain on how to address this properly in the driver yet. For now, I just blindly assume that it is HDMI as I don't have any DP monitors or connectors to test :). But for all means, please consider that support for digital outputs in this series is still unfinished and will change considerable in the future. Nonetheless, any feedback on how to implement it properly is much welcome.

Note that with the DDI buffers, the same port can drive DP and HDMI without any buffer configuration changes; and we can drive FDI and HDMI likewise. So I've split the DDI buffers settings into a separate patch to pre-configure the ports to their suggested connection settings at the init time, which should work for any combinations of outputs.

As for other changes, there are some comments improvements, some register name changes, a new enum for DDI ports, some changes in SBI handchake handling, a couple of new clocks we need for digital outputs and a bit of changes in the DDI pipe settings handling code.

So Daniel, as we talked on irc, could you check which of those patches could be early picked into your tree? This would reduce future patchbombs from my side - I'd expect to have at least a half-dozen new patches until we'll have working digital outputs in place..

Eugeni Dodonov (41):
drm/i915: transform HAS_PCH_SPLIT in a feature check drm/i915: add Haswell devices and their PCI IDs drm/i915: hook Haswell devices in place
drm/i915: add support for LynxPoint PCH
drm/i915: add support for power wells
drm/i915: add enumeration for DDI ports
drm/i915: add DDI registers
drm/i915: add DP_TP_CTL registers
drm/i915: add DP_TP_STATUS registers
drm/i915: add definitions for DDI_BUF_CTL registers drm/i915: add definition of DDI buffer translations regs drm/i915: add definition of LPT FDI port width registers drm/i915: add SBI registers
drm/i915: add support for SBI ops
drm/i915: add PIXCLK_GATE register
drm/i915: add S PLL control
drm/i915: add port clock selection support for HSW drm/i915: add SSC offsets for SBI access
drm/i915: add LCPLL control registers
drm/i915: add WRPLL clocks
drm/i915: add WM_LINETIME registers
drm/i915: add SFUSE_STRAP registers for digital port detection drm/i915: calculate same watermarks on Haswell as on Ivy Bridge drm/i915: share forcewaking code between IVB and HSW drm/i915: haswell has 3 pipes as well
drm/i915: reuse Ivybridge interrupts code for Haswell drm/i915: share pipe count handling with Ivybridge drm/i915: share IVB cursor routine with Haswell drm/i915: show unknown sdvox registers on hdmi init drm/i915: enable power wells on haswell init drm/i915: disable rc6 on haswell for now
drm/i915: program WM_LINETIME on Haswell
drm/i915: initialize DDI buffer translations drm/i915: perform Haswell DDI link training in FDI mode drm/i915: disable pipe DDI function when disabling pipe drm/i915: do not use fdi_normal_train on haswell 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: prepare HDMI link for Haswell
drm/i915: add debugging bits for haswell modesetting

 drivers/char/agp/intel-agp.c         |    4 +
 drivers/char/agp/intel-agp.h         |   11 +
 drivers/char/agp/intel-gtt.c         |   14 +
 drivers/gpu/drm/i915/i915_dma.c      |    2 +-
 drivers/gpu/drm/i915/i915_drv.c      |   37 ++
 drivers/gpu/drm/i915/i915_drv.h      |   17 +-
 drivers/gpu/drm/i915/i915_irq.c      |    6 +-
 drivers/gpu/drm/i915/i915_reg.h      |  194 +++++++++
 drivers/gpu/drm/i915/intel_display.c |  733 ++++++++++++++++++++++++++++++++--
 drivers/gpu/drm/i915/intel_drv.h     |    1 +
 drivers/gpu/drm/i915/intel_hdmi.c    |   84 +++-
 11 files changed, 1064 insertions(+), 39 deletions(-)
Signature · 1 line
1.7.9.5