From: Uma Shankar <uma.shan...@intel.com>

Enable LPSP for XE_LPD and get the proper power well
enable check in place. For XE_LPD it is PW2 which
need to check for LPSP.

v2:
 - Move the XE_LPD check outside of the switch.  (Lucas)

Cc: Anshuman Gupta <anshuman.gu...@intel.com>
Cc: Animesh Manna <animesh.ma...@intel.com>
Cc: Matt Roper <matthew.d.ro...@intel.com>
Cc: Lucas De Marchi <lucas.demar...@intel.com>
Suggested-by: Matt Roper <matthew.d.ro...@intel.com>
Signed-off-by: Uma Shankar <uma.shan...@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gu...@intel.com>
Signed-off-by: Matt Roper <matthew.d.ro...@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c 
b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index 1666aa23092b..a5338dbb4503 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -1339,6 +1339,12 @@ static int i915_lpsp_status(struct seq_file *m, void 
*unused)
 {
        struct drm_i915_private *i915 = node_to_i915(m->private);
 
+       if (DISPLAY_VER(i915) >= 13) {
+               LPSP_STATUS(!intel_lpsp_power_well_enabled(i915,
+                                                          SKL_DISP_PW_2));
+               return 0;
+       }
+
        switch (DISPLAY_VER(i915)) {
        case 12:
        case 11:
-- 
2.25.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to