drm/i915/psr: Adds psrwake options for all platforms
authorVathsala Nagaraju <[email protected]>
Mon, 18 Jun 2018 06:12:06 +0000 (11:42 +0530)
committerJani Nikula <[email protected]>
Tue, 19 Jun 2018 08:22:34 +0000 (11:22 +0300)
Adds new psrwake options defined in the below table.
Platform PSR wake options vbt version
KBL/CFL/WHL All(205+)
BXT Uses old interpretation.
CNL/ICL+ All(205+)
GLK All(205+)
SKL All PV releases (Check for 205+ might help but cannot be foolproof)

We will continue with newer interpretation for SKL from 205.

v2: Jani
    Keep the bdb version check.
v3:
    Apply newer version for skl from 205+(DK).
    Add (version check && platform list) (Jani).
    Add bdb version for each platform in commit message(DK).

Cc: Jani Nikula <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Puthikorn Voravootivat <[email protected]>
Cc: Dhinakaran Pandiyan <[email protected]>
Cc: Ashutosh D Shukla <[email protected]>
Cc: Maulik V Vaghela <[email protected]>
Signed-off-by: Vathsala Nagaraju <[email protected]>
Reviewed-by: Dhinakaran Pandiyan <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_bios.c

index 62a53eb89b6bd3e5d7887a907cbb3ea8cd15cf3f..03f04b472394524fb280d7a2f4e8ccbf53bcbb2b 100644 (file)
@@ -710,7 +710,9 @@ parse_psr(struct drm_i915_private *dev_priv, const struct bdb_header *bdb)
         * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
         * Old decimal value is wake up time in multiples of 100 us.
         */
-       if (bdb->version >= 209 && IS_GEN9_BC(dev_priv)) {
+       if (bdb->version >= 205 &&
+           (IS_GEN9_BC(dev_priv) || IS_GEMINILAKE(dev_priv) ||
+            INTEL_GEN(dev_priv) >= 10)) {
                switch (psr_table->tp1_wakeup_time) {
                case 0:
                        dev_priv->vbt.psr.tp1_wakeup_time_us = 500;