]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add transcoder restriction to PSR2
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 20 Aug 2019 22:33:24 +0000 (15:33 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 22 Aug 2019 20:09:16 +0000 (13:09 -0700)
commit461587c65f5b5c87b8f2ef494781019d792055b7
tree960f55d487b89c43693e672cf061498adadedda3
parent72828acbde960b496fa970c2c2a83b97a3326688
drm/i915: Add transcoder restriction to PSR2

According to PSR2_CTL definition in BSpec there is only one instance
of PSR2_CTL. Platforms gen < 12 with EDP transcoder only support PSR2
on TRANSCODER_EDP while on TGL PSR2 is only supported by
TRANSCODER_A.

Since BDW PSR is allowed on any port, but we need to restrict by
transcoder.

v8: Renamed _psr2_supported_in_trans() to psr2_supported() (Lucas)

v9: Renamed psr2_supported() to transcoder_has_psr2() (Ville)

BSpec: 7713
BSpec: 20584
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190820223325.27490-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_psr.c