Skip to content

Commit 82c5625

Browse files
rodrigovividanvet
authored andcommitted
drm/i915: BDW PSR: Add single frame update support.
When link is in stand by and PSR exit is triggered by a primary or sprite plane flip this mode allows only one single updated frame to be send to display than get back to PSR immediately. Reviewed-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 34eb757 commit 82c5625

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,6 +2409,7 @@ enum punit_power_well {
24092409
#define EDP_PSR_BASE(dev) (IS_HASWELL(dev) ? 0x64800 : 0x6f800)
24102410
#define EDP_PSR_CTL(dev) (EDP_PSR_BASE(dev) + 0)
24112411
#define EDP_PSR_ENABLE (1<<31)
2412+
#define BDW_PSR_SINGLE_FRAME (1<<30)
24122413
#define EDP_PSR_LINK_DISABLE (0<<27)
24132414
#define EDP_PSR_LINK_STANDBY (1<<27)
24142415
#define EDP_PSR_MIN_LINK_ENTRY_TIME_MASK (3<<25)

drivers/gpu/drm/i915/intel_dp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,7 @@ static void intel_edp_psr_enable_source(struct intel_dp *intel_dp)
17231723
val |= EDP_PSR_TP2_TP3_TIME_0us;
17241724
val |= EDP_PSR_TP1_TIME_0us;
17251725
val |= EDP_PSR_SKIP_AUX_EXIT;
1726+
val |= IS_BROADWELL(dev) ? BDW_PSR_SINGLE_FRAME : 0;
17261727
} else
17271728
val |= EDP_PSR_LINK_DISABLE;
17281729

0 commit comments

Comments
 (0)