]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8055980860a6da7704f72e9ffce3d1757a5bfc2b
tree4c383b9fadd69f2080c4054340f53df3aeacc0b5
parent4be0994dda1cf6b31a96b3a5ce560793b1b88a1b
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