Skip to content

IPS/DRRS/PSR rework with PSR enabled by default

Rodrigo Vivi intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest31 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31drm/i915: Rename IPS ready variable at pipe config.drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+10 -110 replies
2/31drm/i915: Move IPS related stuff to intel_ips.cdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_display.c +3 more+170 -1270 replies
3/31drm/i915: Add IPS DockBook.Documentation/DocBook/gpu.tmpl drivers/gpu/drm/i915/intel_ips.c+39 -30 replies
4/31drm/i915: Handle actual IPS enabled state.drivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c +2 more+47 -136 replies
5/31drm/i915: Fix IPS initialization.drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+6 -90 replies
6/31drm/i915: Fix IPS disable sequence.drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_ips.c+38 -163 replies
7/31drm/i915: IPS Sysfs interface.drivers/gpu/drm/i915/i915_sysfs.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_ips.c+105 -74 replies
8/31drm/i915: Add psr_ready on pipe_configdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h +1 more+38 -250 replies
9/31drm/i915: Only enable DRRS if PSR won't be enabled on this pipe.drivers/gpu/drm/i915/intel_dp.c+5 -50 replies
10/31drm/i915: Detatch i915.enable_psr from psr_readydrivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_psr.c+1 -63 replies
11/31drm/i915: Use intel_crtc instead of intel_dp on PSR enable/disable functions.drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h +1 more+31 -200 replies
12/31drm/i915: Fix PSR initialization.drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_dp.c +1 more+17 -73 replies
13/31drm/i915: Organize Makefile new display pm groupdrivers/gpu/drm/i915/Makefile+5 -30 replies
14/31drm/i915: Create intel_drrs.cdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_dp.c +3 more+426 -3940 replies
15/31drm/i915: Use intel_crtc instead of intel_dp on DRRS enable/disable functions.drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_drrs.c drivers/gpu/drm/i915/intel_drv.h+25 -170 replies
16/31drm/i915: Fix DRRS initialization.drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+13 -01 reply
17/31drm/i915: Add sys PSR toggle interface.drivers/gpu/drm/i915/i915_sysfs.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_psr.c+99 -61 reply
18/31drm/i915: Force PSR exit when IRQ_HPD is detected on eDP.drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_psr.c+38 -10 replies
19/31drm/i915: Remove duplicated dpcd write on hsw_psr_enable_sink.drivers/gpu/drm/i915/intel_psr.c+0 -30 replies
20/31drm/i915: PSR: Let's rely more on frontbuffer tracking.drivers/gpu/drm/i915/intel_psr.c+3 -190 replies
21/31drm/i915: PSR: Mask LPSP hw tracking back again.drivers/gpu/drm/i915/intel_psr.c+7 -20 replies
22/31drm/i915: Delay first PSR activation.drivers/gpu/drm/i915/intel_psr.c+16 -20 replies
23/31drm/i915: Reduce PSR re-activation time for VLV/CHV.drivers/gpu/drm/i915/intel_psr.c+1 -20 replies
24/31drm/i915: PSR: Don't Skip aux handshake on DP_PSR_NO_TRAIN_ON_EXIT.drivers/gpu/drm/i915/intel_psr.c+0 -12 replies
25/31drm/i915: Send TP1 TP2/3 even when panel claims no NO_TRAIN_ON_EXIT.drivers/gpu/drm/i915/intel_psr.c+0 -42 replies
26/31drm/i915: Fix idle_frames counter.drivers/gpu/drm/i915/intel_psr.c+1 -40 replies
27/31drm/i915: Allow 1 vblank to let Sink CRC calculation to start or stop.drivers/gpu/drm/i915/intel_dp.c+4 -01 reply
28/31drm/i915: Make Sink crc calculation waiting for counter to reset.drivers/gpu/drm/i915/intel_dp.c+18 -14 replies
29/31drm/i915: Stop tracking last calculated Sink CRC.drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h+9 -321 reply
30/31drm/i915: Rely on TEST_SINK_START instead of tracking Sink CRC state on dev_priv.drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h+6 -131 reply
31/31drm/i915: Enable PSR by default.drivers/gpu/drm/i915/i915_params.c+2 -22 replies

Reviews trailers per patch

6 of 31 patches have a Reviewed-by or Acked-by.

PatchBrian NorrisRamalingam CPaulo Zanoni
1/31
2/31
3/31
4/31
5/31
6/31
7/31
8/31R-b
9/31R-b
10/31
11/31
12/31
13/31
14/31
15/31
16/31
17/31
18/31
19/31
20/31
21/31T-b
22/31
23/31
24/31
25/31
26/31
27/31R-b
28/31R-b
29/31R-b
30/31R-b
31/31

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/31] IPS/DRRS/PSR rework with PSR enabled by default

Hi all,

The goal of this series is to Enable PSR by default, but in order to do that first it was necessary to fix few display PM initialization that was broken after fastboot got enabled by default. Also it was needed to make sink crc more reliable.

So, divided by topic:

Patches 1-7: IPS reorg/rework
Patches 8-16: DRRS reorg and PSR and DRRS initialization rework. Patches 17-26: PSR Fixes
Patches 27-30: Let Sink CRC more reliable
Patch 31: Enable PSR by default.

--- Why all in one single series ---

I didn't split the series in different series because there were dependencies and because they were touching same part of the code. So the rebase in order is less painful for me than if the patches started getting merged out of order.

--- Why sysfs toggles are here ---

There is a work in progress to add more sysfs interface but with the requirement to let them organized and documented. But this sysfs toggles were helping me during debugs and testings a lot so I decided to send them out even before we finish the design review on the sysfs interfaces etc.
They also help to justify the ips mutex locks. ;)
But I totally understand if the aren't merged at this point.

--- Remaining Known issues ---

1. Features disabled after suspend: There is also a remaining known issue that is the initilization of these features now rely on the atomic modeset and the atomic modeset on resume is commiting a zeroed state so the features gets disabled with suspend/resume and stays disabled until the next full modeset. Anyway let's start the review and get this
merged and work to fix atomic commit after suspend/resume in parallel.

2. Automated tests as is in this series stil fail on SKL because the aux failure. There is aux retries patches on the mailing list to work around this issue and also an investigation in progress to see if aux mutex could help here.

3. Few kms_frontbuffer tests are failing even with PSR disabled so I'm just ignoring psr-1p-primscrn-cur-indfb-* test results for now.

--- Validated Hardware ---

manual checks, kms_psr_sink_crc and kms_frontbuffer_tracking were used for validation on different platforms with different kinds of panels:
- Lenovo Yoga 3 (BDW)
- Lenovo T450s (BDW)
- BDW SDP GT3
- BDW SDP ULT
- VLV/BYT
- SKL
- KBL

So I'm confident we can enable PSR back by default now.

All comments, ideas, suggestions and even bikesheddings are pretty welcome.

Thanks,
Rodrigo.

Rodrigo Vivi (31):
drm/i915: Rename IPS ready variable at pipe config. drm/i915: Move IPS related stuff to intel_ips.c
drm/i915: Add IPS DockBook.
drm/i915: Handle actual IPS enabled state.
drm/i915: Fix IPS initialization.
drm/i915: Fix IPS disable sequence.
drm/i915: IPS Sysfs interface.
drm/i915: Add psr_ready on pipe_config
drm/i915: Only enable DRRS if PSR won't be enabled on this pipe. drm/i915: Detatch i915.enable_psr from psr_ready
drm/i915: Use intel_crtc instead of intel_dp on PSR enable/disable
functions.
drm/i915: Fix PSR initialization.
drm/i915: Organize Makefile new display pm group
drm/i915: Create intel_drrs.c
drm/i915: Use intel_crtc instead of intel_dp on DRRS enable/disable
functions.
drm/i915: Fix DRRS initialization.
drm/i915: Add sys PSR toggle interface.
drm/i915: Force PSR exit when IRQ_HPD is detected on eDP. drm/i915: Remove duplicated dpcd write on hsw_psr_enable_sink. drm/i915: PSR: Let's rely more on frontbuffer tracking. drm/i915: PSR: Mask LPSP hw tracking back again.
drm/i915: Delay first PSR activation.
drm/i915: Reduce PSR re-activation time for VLV/CHV. drm/i915: PSR: Don't Skip aux handshake on DP_PSR_NO_TRAIN_ON_EXIT. drm/i915: Send TP1 TP2/3 even when panel claims no NO_TRAIN_ON_EXIT. drm/i915: Fix idle_frames counter.
drm/i915: Allow 1 vblank to let Sink CRC calculation to start or stop. drm/i915: Make Sink crc calculation waiting for counter to reset. drm/i915: Stop tracking last calculated Sink CRC. drm/i915: Rely on TEST_SINK_START instead of tracking Sink CRC state
on dev_priv.
drm/i915: Enable PSR by default.

 Documentation/DocBook/gpu.tmpl           |   5 +
 drivers/gpu/drm/i915/Makefile            |   8 +-
 drivers/gpu/drm/i915/i915_debugfs.c      |  16 +-
 drivers/gpu/drm/i915/i915_drv.h          |   9 +-
 drivers/gpu/drm/i915/i915_params.c       |   4 +-
 drivers/gpu/drm/i915/i915_sysfs.c        | 165 +++++++++++
 drivers/gpu/drm/i915/intel_ddi.c         |   6 +-
 drivers/gpu/drm/i915/intel_display.c     | 190 +++---------
 drivers/gpu/drm/i915/intel_dp.c          | 477 +++----------------------------
 drivers/gpu/drm/i915/intel_drrs.c        | 416 +++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_drv.h         |  47 +--
 drivers/gpu/drm/i915/intel_frontbuffer.c |   4 +-
 drivers/gpu/drm/i915/intel_ips.c         | 259 +++++++++++++++++
 drivers/gpu/drm/i915/intel_psr.c         | 201 ++++++++-----
 14 files changed, 1116 insertions(+), 691 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_drrs.c
 create mode 100644 drivers/gpu/drm/i915/intel_ips.c
Signature · 6 lines
2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx