drm/i915/psr: Check if resolution is supported by default SU granularity
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 4 Dec 2018 00:34:02 +0000 (16:34 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 4 Dec 2018 20:12:34 +0000 (12:12 -0800)
commitbef5e5b3bee41c6a0706f4a4f66bc9422e6933a1
tree771af3dccd585e4792ccf5fe6b87d0f4c73beeef
parent71b15621f0972aac3512848691285663c66c8203
drm/i915/psr: Check if resolution is supported by default SU granularity

Selective updates have a default granularity requirements as stated
by eDP spec(PSR2 SELECTIVE UPDATE X GRANULARITY CAPABILITY register
definition), so check if HW can match those requirements before
enabling PSR2.

v3:
- Changes in the comments and commit message(Dhinakaran)
- Printing the hdisplay that do not match with default granularity

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181204003403.23361-8-jose.souza@intel.com
drivers/gpu/drm/i915/intel_psr.c