]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Check PSR setup time vs. vblank length
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 May 2016 08:34:38 +0000 (11:34 +0300)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Aug 2016 21:06:41 +0000 (07:06 +1000)
commitdfd2e9ab6a7db56a5f5bb55f71485a92613c8e11
tree968afed7882d42d34c35f96ae1d7fb25aefc2451
parent6608804b3d7f0552a38641b03a4e3aa1852df15b
drm/i915: Check PSR setup time vs. vblank length

Bspec says:
"Restriction : SRD must not be enabled when the PSR Setup time from DPCD
00071h is greater than the time for vertical blank minus one line."

Let's check for that and disallow PSR if we exceed the limit.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_psr.c
drivers/gpu/drm/i915/intel_sprite.c