drm/i915: Probe whether SAGV works on pre-icl
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 9 Mar 2022 16:49:43 +0000 (18:49 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Mar 2022 20:37:08 +0000 (22:37 +0200)
commit15fc156f22db140ea2d25ecd4aff15e3d800ec35
tree4c383b9fadd69f2080c4054340f53df3aeacc0b5
parentc0074e71bf8d0d16459ecb0de682fcb4192326c1
drm/i915: Probe whether SAGV works on pre-icl

Instead of leaving the SAGV enable/disable to the first commit
let's try to disable it first thing to see if we can do it or
not (disabling SAGV is a safe thing to at any time). This avoids
running the code in this funny intermediate state where we don't
know if SAGV is available or not.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220309164948.10671-4-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c