Skip to contentSkip to conversation

Link off between frames for edp

PATCH Superseded Animesh Manna 4 participants 26 messages Apr 12, 2024 – Apr 16, 2024

Subsystems (3)

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

v2 cover Link off between frames for edp

Link Off Between Active Frames (LOBF) allows an eDP link to be turned Off and On durning long VBLANK durations without enabling any of the PSR/PSR2/PR modes of operation.

Bspec: 71477

Note: These patches are not tested, sending early for review feedback.

Animesh Manna (5):
drm/i915/alpm: Move alpm parameters from intel_psr drm/i915/alpm: Move alpm related code to a new file drm/i915/alpm: Add compute config for lobf drm/i915/alpm: Enable lobf from source in ALPM_CTL drm/i915/alpm: Add debugfs for LOBF

Jouni Högander (1):
drm/display: Add missing aux less alpm wake related bits

 drivers/gpu/drm/i915/Makefile                 |   1 +
 drivers/gpu/drm/i915/display/intel_alpm.c     | 388 ++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  25 ++
 .../drm/i915/display/intel_display_debugfs.c  |   2 +
 .../drm/i915/display/intel_display_types.h    |  26 +-
 drivers/gpu/drm/i915/display/intel_dp.c       |   5 +
 drivers/gpu/drm/i915/display/intel_psr.c      | 299 +-------------
 include/drm/display/drm_dp.h                  |   5 +-
 8 files changed, 452 insertions(+), 299 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.h
Signature · 1 line
2.29.0
#1 lore raw

PATCH v2 1/6 drm/i915/alpm: Move alpm parameters from intel_psr

ALPM can be enabled for non psr panel and currenly aplm-params are encapsulated under intel_psr struct, so moving out to intel_dp struct.

---
 .../drm/i915/display/intel_display_types.h    | 21 +++++----
 drivers/gpu/drm/i915/display/intel_psr.c      | 43 +++++++++----------
 2 files changed, 31 insertions(+), 33 deletions(-)
drivers/gpu/drm/i915/display/intel_display_types.h +10 -11
index 0f4bd5710796..73197f014510 100644
@@ -1741,17 +1741,6 @@ struct intel_psr {
 	bool psr2_sel_fetch_cff_enabled;
 	bool req_psr2_sdp_prior_scanline;
 	u8 sink_sync_latency;
-
-	struct {
-		u8 io_wake_lines;
-		u8 fast_wake_lines;
-
-		/* LNL and beyond */
-		u8 check_entry_lines;
-		u8 silence_period_sym_clocks;
-		u8 lfps_half_cycle_num_of_syms;
-	} alpm_parameters;
-
 	ktime_t last_entry_attempt;
 	ktime_t last_exit;
 	bool sink_not_reliable;
@@ -1881,6 +1870,16 @@ struct intel_dp {
 	unsigned long last_oui_write;
 
 	bool colorimetry_support;
+
+	struct {
+		u8 io_wake_lines;
+		u8 fast_wake_lines;
+
+		/* LNL and beyond */
+		u8 check_entry_lines;
+		u8 silence_period_sym_clocks;
+		u8 lfps_half_cycle_num_of_syms;
+	} alpm_parameters;
 };
 
 enum lspcon_vendor {
drivers/gpu/drm/i915/display/intel_psr.c +21 -22

107 lines not on this page · raw message

Signature · 1 line
2.29.0
#2 lore raw

PATCH v2 2/6 drm/i915/alpm: Move alpm related code to a new file

In reply to Animesh Manna

Move ALPM feature related code as it will be used for non-psr panel also thorugh LOBF feature.

---
 drivers/gpu/drm/i915/Makefile             |   1 +
 drivers/gpu/drm/i915/display/intel_alpm.c | 292 ++++++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h |  18 ++
 drivers/gpu/drm/i915/display/intel_psr.c  | 280 +--------------------
 4 files changed, 314 insertions(+), 277 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.h
drivers/gpu/drm/i915/Makefile +1 -0
index af9e871daf1d..c12b7bd98320 100644
@@ -246,6 +246,7 @@ i915-y += \
 	display/intel_atomic.o \
 	display/intel_atomic_plane.o \
 	display/intel_audio.o \
+	display/intel_alpm.o \
 	display/intel_bios.o \
 	display/intel_bw.o \
 	display/intel_cdclk.o \
drivers/gpu/drm/i915/display/intel_alpm.c new file +292 -0

292 lines not on this page · raw message

drivers/gpu/drm/i915/display/intel_alpm.h new file +18 -0
new file mode 100644
index 000000000000..c45d078e5a6b
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: MIT
+ *
+ * Copyright © 2024 Intel Corporation
+ */
+
+#ifndef _INTEL_ALPM_H
+#define _INTEL_ALPM_H
+
+#include <linux/types.h>
+
+struct intel_dp;
+struct intel_crtc_state;
+
+bool intel_alpm_compute_params(struct intel_dp *intel_dp,
+			       struct intel_crtc_state *crtc_state);
+void intel_alpm_configure(struct intel_dp *intel_dp);
+
+#endif
drivers/gpu/drm/i915/display/intel_psr.c +3 -277

310 lines not on this page · raw message

Signature · 1 line
2.29.0
#3 lore raw

Re: [PATCH v2 2/6] drm/i915/alpm: Move alpm related code to a new file

Quoted 18 lines · Animesh Manna

Move ALPM feature related code as it will be used for non-psr panel also thorugh LOBF feature.

---
 drivers/gpu/drm/i915/Makefile             |   1 +
 drivers/gpu/drm/i915/display/intel_alpm.c | 292 ++++++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h |  18 ++
 drivers/gpu/drm/i915/display/intel_psr.c  | 280 +--------------------
 4 files changed, 314 insertions(+), 277 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.h
drivers/gpu/drm/i915/Makefile +0 -0
index af9e871daf1d..c12b7bd98320 100644

drivers/gpu/drm/i915/Makefile i915-y += \ · line 252

Quoted 7 lines
drivers/gpu/drm/i915/Makefile +1 -0
@@ -246,6 +246,7 @@ i915-y += \
 	display/intel_atomic.o \
 	display/intel_atomic_plane.o \
 	display/intel_audio.o \
+	display/intel_alpm.o \
 	display/intel_bios.o \
 	display/intel_bw.o \
 	display/intel_cdclk.o \

That's not sorted.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel
#4 lore raw

RE: [PATCH v2 2/6] drm/i915/alpm: Move alpm related code to a new file

Quoted 28 lines

-----Original Message-----
From: Nikula, Jani <[email protected]>
Sent: Monday, April 15, 2024 5:17 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Hogander, Jouni <[email protected]>; Murthy, Arun R <[email protected]>; Manna, Animesh <[email protected]>
Subject: Re: [PATCH v2 2/6] drm/i915/alpm: Move alpm related code to a new file

Quoted 14 lines · Animesh Manna

Move ALPM feature related code as it will be used for non-psr panel also thorugh LOBF feature.

---
 drivers/gpu/drm/i915/Makefile             |   1 +
 drivers/gpu/drm/i915/display/intel_alpm.c | 292
++++++++++++++++++++++  drivers/gpu/drm/i915/display/intel_alpm.h |
18 ++  drivers/gpu/drm/i915/display/intel_psr.c  | 280
+--------------------
 4 files changed, 314 insertions(+), 277 deletions(-)  create mode
100644 drivers/gpu/drm/i915/display/intel_alpm.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_alpm.h
Quoted 15 lines

drivers/gpu/drm/i915/Makefile i915-y += \ · line 252

Quoted 13 lines
(quoted diff) +0 -0

b/drivers/gpu/drm/i915/Makefile index af9e871daf1d..c12b7bd98320 100644

drivers/gpu/drm/i915/Makefile +1 -0
@@ -246,6 +246,7 @@ i915-y += \
 	display/intel_atomic.o \
 	display/intel_atomic_plane.o \
 	display/intel_audio.o \
+	display/intel_alpm.o \
 	display/intel_bios.o \
 	display/intel_bw.o \
 	display/intel_cdclk.o \

That's not sorted.

Agree. Will take care in next version.

Regards,
Animesh

Quoted 7 lines

BR,
Jani.

--
Jani Nikula, Intel

#5 lore raw

PATCH v2 3/6 drm/display: Add missing aux less alpm wake related bits

In reply to Animesh Manna

From: Jouni Högander <[email protected]>

eDP1.5 adds some more bits into DP_RECEIVER_ALPM_CAP and DP_RECEIVER_ALPM_CONFIG registers. Add definitions for these.

---
 include/drm/display/drm_dp.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/drm/display/drm_dp.h +4 -1
index 0b032faa8cf2..ad0cb0a1de87 100644
@@ -232,6 +232,8 @@
 
 #define DP_RECEIVER_ALPM_CAP		    0x02e   /* eDP 1.4 */
 # define DP_ALPM_CAP			    (1 << 0)
+# define DP_ALPM_PM_STATE_2A_SUPPORT	    (1 << 1) /* eDP 1.5 */
+# define DP_ALPM_AUX_LESS_CAP		    (1 << 2) /* eDP 1.5 */
 
 #define DP_SINK_DEVICE_AUX_FRAME_SYNC_CAP   0x02f   /* eDP 1.4 */
 # define DP_AUX_FRAME_SYNC_CAP		    (1 << 0)
@@ -677,7 +679,8 @@
 
 #define DP_RECEIVER_ALPM_CONFIG		    0x116   /* eDP 1.4 */
 # define DP_ALPM_ENABLE			    (1 << 0)
-# define DP_ALPM_LOCK_ERROR_IRQ_HPD_ENABLE  (1 << 1)
+# define DP_ALPM_LOCK_ERROR_IRQ_HPD_ENABLE  (1 << 1) /* eDP 1.5 */
+# define DP_ALPM_MODE_AUX_LESS		    (1 << 2) /* eDP 1.5 */
 
 #define DP_SINK_DEVICE_AUX_FRAME_SYNC_CONF  0x117   /* eDP 1.4 */
 # define DP_AUX_FRAME_SYNC_ENABLE	    (1 << 0)
Signature · 1 line
2.29.0
#6 lore raw

PATCH v2 4/6 drm/i915/alpm: Add compute config for lobf

In reply to Animesh Manna

Link Off Between Active Frames, is a new feature for eDP that allows the panel to go to lower power state after transmission of data. This is a feature on top of ALPM, AS SDP. Add compute config during atomic-check phase.

v1: RFC version.
v2: Add separate flag for auxless-alpm. [Jani]

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 44 +++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  5 +++
 .../drm/i915/display/intel_display_types.h    |  4 ++
 drivers/gpu/drm/i915/display/intel_dp.c       |  5 +++
 4 files changed, 58 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +44 -0
index 13bac3e8c8fa..699f2f051766 100644
@@ -11,6 +11,16 @@
 #include "intel_dp_aux.h"
 #include "intel_psr_regs.h"
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp)
+{
+	u8 alpm_caps = 0;
+
+	if (drm_dp_dpcd_readb(&intel_dp->aux, DP_RECEIVER_ALPM_CAP,
+			      &alpm_caps) != 1)
+		return false;
+	return alpm_caps & DP_ALPM_AUX_LESS_CAP;
+}
+
 /*
  * See Bspec: 71632 for the table
  *
@@ -242,6 +252,40 @@ bool intel_alpm_compute_params(struct intel_dp *intel_dp,
 	return true;
 }
 
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
+				    struct intel_crtc_state *crtc_state,
+				    struct drm_connector_state *conn_state)
+{
+	struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
+	int waketime_in_lines, first_sdp_position;
+	int context_latency, guardband;
+
+	intel_dp->lobf_supported = false;
+
+	if (!intel_dp_is_edp(intel_dp))
+		return;
+
+	if (!intel_dp_as_sdp_supported(intel_dp))
+		return;
+
+	if (crtc_state->has_psr2 || crtc_state->has_panel_replay)
+		return;
+
+	if (intel_alpm_compute_params(intel_dp, crtc_state)) {
+		context_latency = adjusted_mode->crtc_vblank_start - adjusted_mode->crtc_vdisplay;
+		guardband = adjusted_mode->crtc_vtotal -
+			    adjusted_mode->crtc_vdisplay - context_latency;
+		first_sdp_position = adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vsync_start;
+		if (intel_dp->alpm_parameters.auxless_alpm_supported)
+			waketime_in_lines = intel_dp->alpm_parameters.io_wake_lines;
+		else
+			waketime_in_lines = intel_dp->alpm_parameters.fast_wake_lines;
+
+		if ((context_latency + guardband) > (first_sdp_position + waketime_in_lines))
+			intel_dp->lobf_supported = true;
+	}
+}
+
 static void lnl_alpm_configure(struct intel_dp *intel_dp)
 {
 	struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
drivers/gpu/drm/i915/display/intel_alpm.h +5 -0
index c45d078e5a6b..c341d2c2b7f7 100644
@@ -10,9 +10,14 @@
 
 struct intel_dp;
 struct intel_crtc_state;
+struct drm_connector_state;
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);
 bool intel_alpm_compute_params(struct intel_dp *intel_dp,
 			       struct intel_crtc_state *crtc_state);
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
+				    struct intel_crtc_state *crtc_state,
+				    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);
 
 #endif
drivers/gpu/drm/i915/display/intel_display_types.h +4 -0
index 73197f014510..6116c383b543 100644
@@ -1876,10 +1876,14 @@ struct intel_dp {
 		u8 fast_wake_lines;
 
 		/* LNL and beyond */
+		bool auxless_alpm_supported;
 		u8 check_entry_lines;
 		u8 silence_period_sym_clocks;
 		u8 lfps_half_cycle_num_of_syms;
 	} alpm_parameters;
+
+	/* LOBF flags*/
+	bool lobf_supported;
 };
 
 enum lspcon_vendor {
drivers/gpu/drm/i915/display/intel_dp.c +5 -0
index 163da48bc406..12ec796568d9 100644
@@ -48,6 +48,7 @@
 #include "i915_drv.h"
 #include "i915_irq.h"
 #include "i915_reg.h"
+#include "intel_alpm.h"
 #include "intel_atomic.h"
 #include "intel_audio.h"
 #include "intel_backlight.h"
@@ -3001,6 +3002,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,
 	intel_vrr_compute_config(pipe_config, conn_state);
 	intel_dp_compute_as_sdp(intel_dp, pipe_config);
 	intel_psr_compute_config(intel_dp, pipe_config, conn_state);
+	intel_alpm_compute_lobf_config(intel_dp, pipe_config, conn_state);
 	intel_dp_drrs_compute_config(connector, pipe_config, link_bpp_x16);
 	intel_dp_compute_vsc_sdp(intel_dp, pipe_config, conn_state);
 	intel_dp_compute_hdr_metadata_infoframe_sdp(intel_dp, pipe_config, conn_state);
@@ -6616,6 +6618,9 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,
 
 	intel_pps_init_late(intel_dp);
 
+	if (intel_dp_get_aux_less_alpm_status(intel_dp))
+		intel_dp->alpm_parameters.auxless_alpm_supported = true;
+
 	return true;
 
 out_vdd_off:
Signature · 1 line
2.29.0
#7 lore raw

Re: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 55 lines · Animesh Manna

Link Off Between Active Frames, is a new feature for eDP that allows the panel to go to lower power state after transmission of data. This is a feature on top of ALPM, AS SDP. Add compute config during atomic-check phase.

v1: RFC version.
v2: Add separate flag for auxless-alpm. [Jani]

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 44
+++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  5 +++ .../drm/i915/display/intel_display_types.h    |  4 ++ drivers/gpu/drm/i915/display/intel_dp.c       |  5 +++

 4 files changed, 58 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index 13bac3e8c8fa..699f2f051766 100644
@@ -11,6 +11,16 @@
  #include "intel_dp_aux.h"
  #include "intel_psr_regs.h"

drivers/gpu/drm/i915/display/intel_alpm.c +10 -0
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp)
+{
+       u8 alpm_caps = 0;
+
+       if (drm_dp_dpcd_readb(&intel_dp->aux, DP_RECEIVER_ALPM_CAP,
+                             &alpm_caps) != 1)
+               return false;
+       return alpm_caps & DP_ALPM_AUX_LESS_CAP;
+}
+

 /*
  * See Bspec: 71632 for the table
  *

drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
@@ -242,6 +252,40 @@ bool intel_alpm_compute_params(struct intel_dp
 *intel_dp,
         return true;
  }


+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp, +                                   struct intel_crtc_state *crtc_state,
+                                   struct drm_connector_state *conn_state)
+{
+       struct drm_display_mode *adjusted_mode = &crtc_state-

Quoted 1 line

hw.adjusted_mode;

+       int waketime_in_lines, first_sdp_position; +       int context_latency, guardband;

drivers/gpu/drm/i915/display/intel_alpm.c +1 -0
+

drivers/gpu/drm/i915/display/intel_alpm.c bool intel_alpm_compute_params(struct intel_dp *intel_dp, · line 272

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +10 -0
+       intel_dp->lobf_supported = false;
+
+       if (!intel_dp_is_edp(intel_dp))
+               return;
+
+       if (!intel_dp_as_sdp_supported(intel_dp))
+               return;
+
+       if (crtc_state->has_psr2 || crtc_state->has_panel_replay)
+               return;

LOBF is not supported with PSR1? I think checking crtc_state->has_psr is enough. That covers PSR1/2 and Panel Replay.

Quoted 12 lines

+
+       if (intel_alpm_compute_params(intel_dp, crtc_state)) { +               context_latency = adjusted_mode->crtc_vblank_start - adjusted_mode->crtc_vdisplay;
+               guardband = adjusted_mode->crtc_vtotal -
+                           adjusted_mode->crtc_vdisplay - context_latency;
+               first_sdp_position = adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vsync_start;
+               if (intel_dp->alpm_parameters.auxless_alpm_supported) +                       waketime_in_lines = intel_dp-

Quoted 1 line

alpm_parameters.io_wake_lines;

Quoted 8 lines

+               else
+                       waketime_in_lines = intel_dp-

Quoted 1 line

alpm_parameters.fast_wake_lines;

+
+               if ((context_latency + guardband) > (first_sdp_position + waketime_in_lines))
+                       intel_dp->lobf_supported = true; +       }

You are not checking display version here. This is supported only on LNL and onwards.

Quoted 36 lines
drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+}
+

 static void lnl_alpm_configure(struct intel_dp *intel_dp) {
        struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);

drivers/gpu/drm/i915/display/intel_alpm.h +0 -0
index c45d078e5a6b..c341d2c2b7f7 100644
@@ -10,9 +10,14 @@


 struct intel_dp;
 struct intel_crtc_state;
+struct drm_connector_state;

+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp); bool intel_alpm_compute_params(struct intel_dp *intel_dp, struct intel_crtc_state *crtc_state); +void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp, +                                   struct intel_crtc_state *crtc_state,
+                                   struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);

 #endif

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 73197f014510..6116c383b543 100644
@@ -1876,10 +1876,14 @@ struct intel_dp {
                 u8 fast_wake_lines;


                /* LNL and beyond */

Quoted 8 lines

+               bool auxless_alpm_supported;
                u8 check_entry_lines;
                u8 silence_period_sym_clocks;
                u8 lfps_half_cycle_num_of_syms;
        } alpm_parameters;
+
+       /* LOBF flags*/
+       bool lobf_supported;

I think having it here and naming like this is misleading. How about intel_crtc_state->has_lobf?

Quoted 30 lines

 };

 enum lspcon_vendor {

drivers/gpu/drm/i915/display/intel_dp.c +2 -0
index 163da48bc406..12ec796568d9 100644
@@ -48,6 +48,7 @@
  #include "i915_drv.h"
  #include "i915_irq.h"
  #include "i915_reg.h"
+#include "intel_alpm.h"
  #include "intel_atomic.h"
  #include "intel_audio.h"
  #include "intel_backlight.h"
@@ -3001,6 +3002,7 @@ intel_dp_compute_config(struct intel_encoder
 *encoder,
         intel_vrr_compute_config(pipe_config, conn_state);
         intel_dp_compute_as_sdp(intel_dp, pipe_config);
         intel_psr_compute_config(intel_dp, pipe_config, conn_state);
+       intel_alpm_compute_lobf_config(intel_dp, pipe_config,
 conn_state);
         intel_dp_drrs_compute_config(connector, pipe_config,

link_bpp_x16);
        intel_dp_compute_vsc_sdp(intel_dp, pipe_config, conn_state); intel_dp_compute_hdr_metadata_infoframe_sdp(intel_dp, pipe_config, conn_state);

drivers/gpu/drm/i915/display/intel_dp.c +0 -0
@@ -6616,6 +6618,9 @@ static bool intel_edp_init_connector(struct
 intel_dp *intel_dp,
Quoted 7 lines


        intel_pps_init_late(intel_dp);

+       if (intel_dp_get_aux_less_alpm_status(intel_dp)) +               intel_dp->alpm_parameters.auxless_alpm_supported = true;
+

intel_dp->alpm_parameters.auxless_alpm_supported = intel_dp_get_aux_less_alpm_status(intel_dp);

BR,

Jouni Högander

Quoted 3 lines

        return true;

 out_vdd_off:

#8 lore raw

RE: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 62 lines

-----Original Message-----
From: Hogander, Jouni <[email protected]>
Sent: Monday, April 15, 2024 3:36 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Murthy, Arun R <[email protected]>; Nikula, Jani <[email protected]>
Subject: Re: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 50 lines · Animesh Manna

Link Off Between Active Frames, is a new feature for eDP that allows the panel to go to lower power state after transmission of data. This is a feature on top of ALPM, AS SDP.
Add compute config during atomic-check phase.

v1: RFC version.
v2: Add separate flag for auxless-alpm. [Jani]

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 44
+++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  5 +++ .../drm/i915/display/intel_display_types.h    |  4 ++ drivers/gpu/drm/i915/display/intel_dp.c       |  5 +++

 4 files changed, 58 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +13 -0
index 13bac3e8c8fa..699f2f051766 100644
@@ -11,6 +11,16 @@
  #include "intel_dp_aux.h"
  #include "intel_psr_regs.h"
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp) {
+       u8 alpm_caps = 0;
+
+       if (drm_dp_dpcd_readb(&intel_dp->aux, DP_RECEIVER_ALPM_CAP,
+                             &alpm_caps) != 1)
+               return false;
+       return alpm_caps & DP_ALPM_AUX_LESS_CAP; }
+
  /*
   * See Bspec: 71632 for the table
   *
@@ -242,6 +252,40 @@ bool intel_alpm_compute_params(struct intel_dp
 *intel_dp,
         return true;
  }
 
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
+                                   struct intel_crtc_state
 *crtc_state,
+                                   struct drm_connector_state
 *conn_state)
+{
+       struct drm_display_mode *adjusted_mode = &crtc_state-
Quoted 1 line

hw.adjusted_mode;

Quoted 16 lines

drivers/gpu/drm/i915/display/intel_alpm.c bool intel_alpm_compute_params(struct intel_dp *intel_dp, · line 272

Quoted 13 lines

+       int waketime_in_lines, first_sdp_position; +       int context_latency, guardband;

drivers/gpu/drm/i915/display/intel_alpm.c +11 -0
+
+       intel_dp->lobf_supported = false;
+
+       if (!intel_dp_is_edp(intel_dp))
+               return;
+
+       if (!intel_dp_as_sdp_supported(intel_dp))
+               return;
+
+       if (crtc_state->has_psr2 || crtc_state->has_panel_replay)
+               return;

LOBF is not supported with PSR1? I think checking crtc_state->has_psr is enough. That covers PSR1/2 and Panel Replay.

Ok.

Quoted 16 lines
Quoted 16 lines

+
+       if (intel_alpm_compute_params(intel_dp, crtc_state)) { +               context_latency = adjusted_mode->crtc_vblank_start - adjusted_mode->crtc_vdisplay;
+               guardband = adjusted_mode->crtc_vtotal -
+                           adjusted_mode->crtc_vdisplay - context_latency;
+               first_sdp_position = adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vsync_start;
+               if (intel_dp->alpm_parameters.auxless_alpm_supported) +                       waketime_in_lines = intel_dp-

Quoted 1 line

alpm_parameters.io_wake_lines;

+               else
+                       waketime_in_lines = intel_dp-

Quoted 1 line

alpm_parameters.fast_wake_lines;

Quoted 8 lines
Quoted 5 lines

+
+               if ((context_latency + guardband) > (first_sdp_position + waketime_in_lines))
+                       intel_dp->lobf_supported = true; +       }

You are not checking display version here. This is supported only on LNL and onwards.

Sure will add, thought as-sdp-support will take care, but it has display_ver >= 13.

Quoted 36 lines
Quoted 36 lines
drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+}
+

 static void lnl_alpm_configure(struct intel_dp *intel_dp) {
        struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); diff --git a/drivers/gpu/drm/i915/display/intel_alpm.h b/drivers/gpu/drm/i915/display/intel_alpm.h
index c45d078e5a6b..c341d2c2b7f7 100644

drivers/gpu/drm/i915/display/intel_alpm.h +5 -0
@@ -10,9 +10,14 @@
 
  struct intel_dp;
  struct intel_crtc_state;
+struct drm_connector_state;
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);
  bool intel_alpm_compute_params(struct intel_dp *intel_dp,
                                struct intel_crtc_state *crtc_state);
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
+                                   struct intel_crtc_state
 *crtc_state,
+                                   struct drm_connector_state
 *conn_state);
  void intel_alpm_configure(struct intel_dp *intel_dp);

 #endif

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 73197f014510..6116c383b543 100644
@@ -1876,10 +1876,14 @@ struct intel_dp {
                 u8 fast_wake_lines;
 
Quoted 12 lines

drivers/gpu/drm/i915/display/intel_display_types.h struct intel_dp { · line 1886

Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_types.h +4 -0
                 /* LNL and beyond */
+               bool auxless_alpm_supported;
                 u8 check_entry_lines;
                 u8 silence_period_sym_clocks;
                 u8 lfps_half_cycle_num_of_syms;
         } alpm_parameters;
+
+       /* LOBF flags*/
+       bool lobf_supported;

I think having it here and naming like this is misleading. How about intel_crtc_state->has_lobf?

How about "bool lobf_entry_criteria" ?

Quoted 34 lines
Quoted 34 lines
drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
  };
 
  enum lspcon_vendor {
drivers/gpu/drm/i915/display/intel_dp.c +2 -0
index 163da48bc406..12ec796568d9 100644
@@ -48,6 +48,7 @@
  #include "i915_drv.h"
  #include "i915_irq.h"
  #include "i915_reg.h"
+#include "intel_alpm.h"
  #include "intel_atomic.h"
  #include "intel_audio.h"
  #include "intel_backlight.h"
@@ -3001,6 +3002,7 @@ intel_dp_compute_config(struct intel_encoder
 *encoder,
         intel_vrr_compute_config(pipe_config, conn_state);
         intel_dp_compute_as_sdp(intel_dp, pipe_config);
         intel_psr_compute_config(intel_dp, pipe_config, conn_state);
+       intel_alpm_compute_lobf_config(intel_dp, pipe_config,
 conn_state);
         intel_dp_drrs_compute_config(connector, pipe_config,

link_bpp_x16);
        intel_dp_compute_vsc_sdp(intel_dp, pipe_config, conn_state); intel_dp_compute_hdr_metadata_infoframe_sdp(intel_dp, pipe_config, conn_state);

drivers/gpu/drm/i915/display/intel_dp.c +0 -0
@@ -6616,6 +6618,9 @@ static bool intel_edp_init_connector(struct
 intel_dp *intel_dp,
 
         intel_pps_init_late(intel_dp);
 
Quoted 7 lines

drivers/gpu/drm/i915/display/intel_dp.c static bool intel_edp_init_connector(struct intel_dp *intel_dp, · line 6623

Quoted 4 lines
drivers/gpu/drm/i915/display/intel_dp.c +3 -0
+       if (intel_dp_get_aux_less_alpm_status(intel_dp))
+               intel_dp->alpm_parameters.auxless_alpm_supported =
 true;
+

intel_dp->alpm_parameters.auxless_alpm_supported = intel_dp_get_aux_less_alpm_status(intel_dp);

Ok.

Regards,
Animesh

Quoted 8 lines

BR,

Jouni Högander

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
         return true;

 out_vdd_off:

#9 lore raw

Re: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 172 lines · Animesh
Quoted 83 lines

-----Original Message-----
From: Hogander, Jouni <[email protected]>
Sent: Monday, April 15, 2024 3:36 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Murthy, Arun R <[email protected]>; Nikula, Jani <[email protected]>
Subject: Re: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 58 lines · Animesh Manna

Link Off Between Active Frames, is a new feature for eDP that allows
the panel to go to lower power state after transmission of data. This
is a feature on top of ALPM, AS SDP.
Add compute config during atomic-check phase.

v1: RFC version.
v2: Add separate flag for auxless-alpm. [Jani]

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 44
+++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  5 +++ .../drm/i915/display/intel_display_types.h    |  4 ++ drivers/gpu/drm/i915/display/intel_dp.c       |  5 +++

 4 files changed, 58 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +8 -0
index 13bac3e8c8fa..699f2f051766 100644
@@ -11,6 +11,16 @@
  #include "intel_dp_aux.h"
  #include "intel_psr_regs.h"
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp
 *intel_dp) {
+       u8 alpm_caps = 0;
+
+       if (drm_dp_dpcd_readb(&intel_dp->aux,
 DP_RECEIVER_ALPM_CAP,
+                             &alpm_caps) != 1)
+               return false;
+       return alpm_caps & DP_ALPM_AUX_LESS_CAP; }
+
  /*

  * See Bspec: 71632 for the table
  *

drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
@@ -242,6 +252,40 @@ bool intel_alpm_compute_params(struct

intel_dp
*intel_dp,
        return true;
 }

+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp, +                                   struct intel_crtc_state *crtc_state,
+                                   struct drm_connector_state *conn_state)
+{
+       struct drm_display_mode *adjusted_mode = &crtc_state-

Quoted 1 line

hw.adjusted_mode;

+       int waketime_in_lines, first_sdp_position; +       int context_latency, guardband;

drivers/gpu/drm/i915/display/intel_alpm.c +1 -0
+

drivers/gpu/drm/i915/display/intel_alpm.c bool intel_alpm_compute_params(struct intel_dp *intel_dp, · line 272

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +10 -0
+       intel_dp->lobf_supported = false;
+
+       if (!intel_dp_is_edp(intel_dp))
+               return;
+
+       if (!intel_dp_as_sdp_supported(intel_dp))
+               return;
+
+       if (crtc_state->has_psr2 || crtc_state->has_panel_replay)
+               return;

LOBF is not supported with PSR1? I think checking crtc_state-

Quoted 2 lines
Quoted 1 line

has_psr is

enough. That covers PSR1/2 and Panel Replay.

Ok.

Quoted 24 lines
Quoted 15 lines

+
+       if (intel_alpm_compute_params(intel_dp, crtc_state)) { +               context_latency = adjusted_mode-

Quoted 1 line

crtc_vblank_start -

adjusted_mode->crtc_vdisplay;
+               guardband = adjusted_mode->crtc_vtotal - +                           adjusted_mode->crtc_vdisplay - context_latency;
+               first_sdp_position = adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vsync_start;
+               if (intel_dp-

Quoted 1 line

alpm_parameters.auxless_alpm_supported)

+                       waketime_in_lines = intel_dp-

Quoted 1 line

alpm_parameters.io_wake_lines;

Quoted 8 lines

+               else
+                       waketime_in_lines = intel_dp-

Quoted 1 line

alpm_parameters.fast_wake_lines;

+
+               if ((context_latency + guardband) > (first_sdp_position + waketime_in_lines))
+                       intel_dp->lobf_supported = true; +       }

Quoted 3 lines

You are not checking display version here. This is supported only on LNL and
onwards.

Sure will add, thought as-sdp-support will take care, but it has display_ver >= 13.

Quoted 39 lines
Quoted 39 lines
drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+}
+

 static void lnl_alpm_configure(struct intel_dp *intel_dp) {
        struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); diff
--git a/drivers/gpu/drm/i915/display/intel_alpm.h b/drivers/gpu/drm/i915/display/intel_alpm.h
index c45d078e5a6b..c341d2c2b7f7 100644

drivers/gpu/drm/i915/display/intel_alpm.h +2 -0
@@ -10,9 +10,14 @@
 
  struct intel_dp;
  struct intel_crtc_state;
+struct drm_connector_state;
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp
 *intel_dp);
  bool intel_alpm_compute_params(struct intel_dp *intel_dp,

                               struct intel_crtc_state *crtc_state);
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp, +                                   struct intel_crtc_state *crtc_state,
+                                   struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);

 #endif

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 73197f014510..6116c383b543 100644
@@ -1876,10 +1876,14 @@ struct intel_dp {
                 u8 fast_wake_lines;
 
Quoted 13 lines

drivers/gpu/drm/i915/display/intel_display_types.h struct intel_dp { · line 1886

Quoted 9 lines
drivers/gpu/drm/i915/display/intel_display_types.h +4 -0
                 /* LNL and beyond */
+               bool auxless_alpm_supported;
                 u8 check_entry_lines;
                 u8 silence_period_sym_clocks;
                 u8 lfps_half_cycle_num_of_syms;
         } alpm_parameters;
+
+       /* LOBF flags*/
+       bool lobf_supported;

I think having it here and naming like this is misleading. How about
intel_crtc_state->has_lobf?

Quoted 1 line

How about "bool lobf_entry_criteria" ?

My mind is polluted with PSR code: I would have chosen has_lobf. I'm not against lobf_entry_criteria.

BR,

Jouni Högander

Quoted 61 lines
Quoted 38 lines
Quoted 38 lines
drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
  };
 
  enum lspcon_vendor {
drivers/gpu/drm/i915/display/intel_dp.c +1 -0
index 163da48bc406..12ec796568d9 100644
@@ -48,6 +48,7 @@
  #include "i915_drv.h"
  #include "i915_irq.h"
  #include "i915_reg.h"
+#include "intel_alpm.h"
  #include "intel_atomic.h"
  #include "intel_audio.h"
  #include "intel_backlight.h"
@@ -3001,6 +3002,7 @@ intel_dp_compute_config(struct

intel_encoder
*encoder,
        intel_vrr_compute_config(pipe_config, conn_state); intel_dp_compute_as_sdp(intel_dp, pipe_config); intel_psr_compute_config(intel_dp, pipe_config, conn_state);
+       intel_alpm_compute_lobf_config(intel_dp, pipe_config, conn_state); intel_dp_drrs_compute_config(connector, pipe_config, link_bpp_x16);
        intel_dp_compute_vsc_sdp(intel_dp, pipe_config, conn_state); intel_dp_compute_hdr_metadata_infoframe_sdp(intel_dp, pipe_config, conn_state);

drivers/gpu/drm/i915/display/intel_dp.c +0 -0
@@ -6616,6 +6618,9 @@ static bool intel_edp_init_connector(struct
 intel_dp *intel_dp,
 
         intel_pps_init_late(intel_dp);
 
Quoted 8 lines
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_dp.c +2 -0
+       if (intel_dp_get_aux_less_alpm_status(intel_dp))
+               intel_dp->alpm_parameters.auxless_alpm_supported

=
true;
+

intel_dp->alpm_parameters.auxless_alpm_supported = intel_dp_get_aux_less_alpm_status(intel_dp);

Ok.

Regards,
Animesh

Quoted 8 lines

BR,

Jouni Högander

Quoted 3 lines

        return true;

 out_vdd_off:

#10 lore raw

Re: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

In reply to Animesh Manna

drivers/gpu/drm/i915/display/intel_alpm.h line 15

Quoted 11 lines · Animesh Manna
drivers/gpu/drm/i915/display/intel_alpm.h +2 -0
index c45d078e5a6b..c341d2c2b7f7 100644
@@ -10,9 +10,14 @@
 
 struct intel_dp;
 struct intel_crtc_state;
+struct drm_connector_state;
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);

The names here are supposed to be intel_alpm_*. Is the function in the wrong place or is the name wrong?

BR,
Jani.

Quoted 8 lines
drivers/gpu/drm/i915/display/intel_alpm.h +3 -0
 bool intel_alpm_compute_params(struct intel_dp *intel_dp,
 			       struct intel_crtc_state *crtc_state);
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
+				    struct intel_crtc_state *crtc_state,
+				    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);
 
 #endif
Signature · 1 line
Jani Nikula, Intel
#11 lore raw

RE: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 20 lines

-----Original Message-----
From: Nikula, Jani <[email protected]>
Sent: Monday, April 15, 2024 5:18 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Hogander, Jouni <[email protected]>; Murthy, Arun R <[email protected]>; Manna, Animesh <[email protected]>
Subject: Re: [PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

Quoted 7 lines · Animesh Manna
drivers/gpu/drm/i915/display/intel_alpm.h +0 -0
index c45d078e5a6b..c341d2c2b7f7 100644
@@ -10,9 +10,14 @@
 
Quoted 8 lines

drivers/gpu/drm/i915/display/intel_alpm.h line 15

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_alpm.h +2 -0
 struct intel_dp;
 struct intel_crtc_state;
+struct drm_connector_state;
 
+bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);

The names here are supposed to be intel_alpm_*. Is the function in the wrong place or is the name wrong?

Sure, will change the function name to intel_alpm_get_auxless_status().

Regards,
Animesh

Quoted 15 lines

BR,
Jani.

drivers/gpu/drm/i915/display/intel_alpm.h line 23

Quoted 8 lines
drivers/gpu/drm/i915/display/intel_alpm.h +3 -0
 bool intel_alpm_compute_params(struct intel_dp *intel_dp,
 			       struct intel_crtc_state *crtc_state);
+void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
+				    struct intel_crtc_state *crtc_state,
+				    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);
 
 #endif

--
Jani Nikula, Intel

#12 lore raw

PATCH v2 5/6 drm/i915/alpm: Enable lobf from source in ALPM_CTL

In reply to Animesh Manna

Set the Link Off Between Frames Enable bit in ALPM_CTL register.

---
 drivers/gpu/drm/i915/display/intel_alpm.c          | 5 +++++
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 +
 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +5 -0
index 699f2f051766..ae894c85233c 100644
@@ -325,6 +325,11 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp)
 			   ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp->alpm_parameters.fast_wake_lines);
 	}
 
+	if (intel_dp->lobf_supported) {
+		alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+		intel_dp->lobf_enabled = true;
+	}
+
 	alpm_ctl |= ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp->alpm_parameters.check_entry_lines);
 
 	intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl);
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
index 6116c383b543..f61ba582429b 100644
@@ -1884,6 +1884,7 @@ struct intel_dp {
 
 	/* LOBF flags*/
 	bool lobf_supported;
+	bool lobf_enabled;
 };
 
 enum lspcon_vendor {
Signature · 1 line
2.29.0
#13 lore raw

Re: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

Quoted 16 lines · Animesh Manna

Set the Link Off Between Frames Enable bit in ALPM_CTL register.

---
 drivers/gpu/drm/i915/display/intel_alpm.c          | 5 +++++ drivers/gpu/drm/i915/display/intel_display_types.h | 1 +

 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index 699f2f051766..ae894c85233c 100644
@@ -325,6 +325,11 @@ static void lnl_alpm_configure(struct intel_dp
 *intel_dp)

                           ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp-

Quoted 8 lines
Quoted 1 line

alpm_parameters.fast_wake_lines);

        }

+       if (intel_dp->lobf_supported) {
+               alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+               intel_dp->lobf_enabled = true;
+       }
+

I don't see lnl_alpm_configure being called for lobf case in your patches.

BR,

Jouni Högander

Quoted 17 lines

        alpm_ctl |= ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp-

Quoted 1 line

alpm_parameters.check_entry_lines);


        intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl);

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 6116c383b543..f61ba582429b 100644
@@ -1884,6 +1884,7 @@ struct intel_dp {


        /* LOBF flags*/
        bool lobf_supported;
+       bool lobf_enabled;
 };

 enum lspcon_vendor {

#14 lore raw

RE: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

Quoted 32 lines

-----Original Message-----
From: Hogander, Jouni <[email protected]>
Sent: Monday, April 15, 2024 3:39 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Murthy, Arun R <[email protected]>; Nikula, Jani <[email protected]>
Subject: Re: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

Quoted 19 lines · Animesh Manna

Set the Link Off Between Frames Enable bit in ALPM_CTL register.

---
 drivers/gpu/drm/i915/display/intel_alpm.c          | 5 +++++ drivers/gpu/drm/i915/display/intel_display_types.h | 1 +

 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index 699f2f051766..ae894c85233c 100644
@@ -325,6 +325,11 @@ static void lnl_alpm_configure(struct intel_dp
 *intel_dp)

                           ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp-

Quoted 1 line

alpm_parameters.fast_wake_lines);

        }

Quoted 7 lines
Quoted 5 lines

+       if (intel_dp->lobf_supported) {
+               alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+               intel_dp->lobf_enabled = true;
+       }
+

I don't see lnl_alpm_configure being called for lobf case in your patches.

Enabling/Disabling LOBF will be done along with alpm(aux-wake/aux-less) enablement. Here lobf_supported flag is the switch to enable LOBF or not.
Please let me know if I am missing anything.

Regards,
Animesh

Quoted 22 lines

BR,

Jouni Högander

Quoted 17 lines

        alpm_ctl |= ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp-

Quoted 1 line

alpm_parameters.check_entry_lines);

        intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl);

drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
index 6116c383b543..f61ba582429b 100644
@@ -1884,6 +1884,7 @@ struct intel_dp {
 
         /* LOBF flags*/
         bool lobf_supported;
+       bool lobf_enabled;
  };
 
  enum lspcon_vendor {
#15 lore raw

Re: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

Quoted 41 lines · Animesh
Quoted 41 lines

-----Original Message-----
From: Hogander, Jouni <[email protected]>
Sent: Monday, April 15, 2024 3:39 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Murthy, Arun R <[email protected]>; Nikula, Jani <[email protected]>
Subject: Re: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in
ALPM_CTL

Quoted 26 lines · Animesh Manna

Set the Link Off Between Frames Enable bit in ALPM_CTL register.

---
 drivers/gpu/drm/i915/display/intel_alpm.c          | 5 +++++ drivers/gpu/drm/i915/display/intel_display_types.h | 1 +

 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index 699f2f051766..ae894c85233c 100644
@@ -325,6 +325,11 @@ static void lnl_alpm_configure(struct

intel_dp
*intel_dp)

ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp-

Quoted 1 line

alpm_parameters.fast_wake_lines);

        }

+       if (intel_dp->lobf_supported) {
+               alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+               intel_dp->lobf_enabled = true;
+       }
+

Quoted 7 lines
Quoted 2 lines

I don't see lnl_alpm_configure being called for lobf case in your patches.

Enabling/Disabling LOBF will be done along with alpm(aux-wake/aux- less) enablement.
Here lobf_supported flag is the switch to enable LOBF or not. Please let me know if I am missing anything.

I might be missing something. E.g. in case of aux_less_alpm PR lnl_alpm_configure is called from intel_psr_enable_source. Where it is called for lobf case?

BR,

Jouni Högander

Quoted 28 lines

Regards,
Animesh

Quoted 23 lines

BR,

Jouni Högander

Quoted 18 lines

        alpm_ctl |= ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp-

Quoted 1 line

alpm_parameters.check_entry_lines);

        intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl);

drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
index 6116c383b543..f61ba582429b 100644
@@ -1884,6 +1884,7 @@ struct intel_dp {
 
         /* LOBF flags*/
         bool lobf_supported;
+       bool lobf_enabled;
  };
 
  enum lspcon_vendor {
#16 lore raw

Re: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

In reply to Animesh Manna
Quoted 13 lines · Animesh Manna

Set the Link Off Between Frames Enable bit in ALPM_CTL register.

---
 drivers/gpu/drm/i915/display/intel_alpm.c          | 5 +++++
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 +
 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index 699f2f051766..ae894c85233c 100644

drivers/gpu/drm/i915/display/intel_alpm.c static void lnl_alpm_configure(struct intel_dp *intel_dp) · line 330

Quoted 6 lines
drivers/gpu/drm/i915/display/intel_alpm.c +3 -0
@@ -325,6 +325,11 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp)
 			   ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp->alpm_parameters.fast_wake_lines);
 	}
 
+	if (intel_dp->lobf_supported) {
+		alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+		intel_dp->lobf_enabled = true;

Gut feeling says this should not be part of intel_dp but rather crtc state.

BR,
Jani.

Quoted 17 lines
drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+	}
+
 	alpm_ctl |= ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp->alpm_parameters.check_entry_lines);
 
 	intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl);
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
index 6116c383b543..f61ba582429b 100644
@@ -1884,6 +1884,7 @@ struct intel_dp {
 
 	/* LOBF flags*/
 	bool lobf_supported;
+	bool lobf_enabled;
 };
 
 enum lspcon_vendor {
Signature · 1 line
Jani Nikula, Intel
#17 lore raw

RE: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

Quoted 33 lines

-----Original Message-----
From: Nikula, Jani <[email protected]>
Sent: Monday, April 15, 2024 5:19 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Hogander, Jouni <[email protected]>; Murthy, Arun R <[email protected]>; Manna, Animesh <[email protected]>
Subject: Re: [PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

drivers/gpu/drm/i915/display/intel_alpm.c static void lnl_alpm_configure(struct intel_dp

Quoted 14 lines · Animesh Manna

Set the Link Off Between Frames Enable bit in ALPM_CTL register.

---
 drivers/gpu/drm/i915/display/intel_alpm.c          | 5 +++++
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 +
 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index 699f2f051766..ae894c85233c 100644
@@ -325,6 +325,11 @@ static void lnl_alpm_configure(struct intel_dp

*intel_dp)

Quoted 4 lines
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
 			   ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp-
 alpm_parameters.fast_wake_lines);
 	}
 
Quoted 5 lines

drivers/gpu/drm/i915/display/intel_alpm.c static void lnl_alpm_configure(struct intel_dp *intel_dp) · line 330

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_alpm.c +3 -0
+	if (intel_dp->lobf_supported) {
+		alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+		intel_dp->lobf_enabled = true;

Gut feeling says this should not be part of intel_dp but rather crtc state.

Kept with the same place with alpm parameters, will think over again.

Regards,
Animesh

Quoted 28 lines

BR,
Jani.

Quoted 14 lines
drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+	}
+
 	alpm_ctl |=

ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp-
alpm_parameters.check_entry_lines)
;

intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl); diff
--git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
index 6116c383b543..f61ba582429b 100644

drivers/gpu/drm/i915/display/intel_display_types.h struct intel_dp { · line 1890

Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
@@ -1884,6 +1884,7 @@ struct intel_dp {
 
 	/* LOBF flags*/
 	bool lobf_supported;
+	bool lobf_enabled;
 };
 
 enum lspcon_vendor {

--
Jani Nikula, Intel

#18 lore raw

PATCH v2 6/6 drm/i915/alpm: Add debugfs for LOBF

In reply to Animesh Manna

For validation purpose add debugfs for LOBF.

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 47 +++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  2 +
 .../drm/i915/display/intel_display_debugfs.c  |  2 +
 3 files changed, 51 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +47 -0
index ae894c85233c..21dfc06952d7 100644
@@ -339,3 +339,50 @@ void intel_alpm_configure(struct intel_dp *intel_dp)
 {
 	lnl_alpm_configure(intel_dp);
 }
+
+static int i915_edp_lobf_support_show(struct seq_file *m, void *data)
+{
+	struct intel_connector *connector = m->private;
+	struct intel_dp *intel_dp = intel_attached_dp(connector);
+
+	seq_printf(m, "LOBF support: = %s",
+		   str_yes_no(intel_dp->lobf_supported));
+
+	return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_support);
+
+static int i915_edp_lobf_status_show(struct seq_file *m, void *data)
+{
+	struct intel_connector *connector = m->private;
+	struct intel_dp *intel_dp = intel_attached_dp(connector);
+	const char *status;
+
+	if (intel_dp->lobf_enabled)
+		status = "enabled";
+	else
+		status = "disabled";
+
+	seq_printf(m, "LOBF: %s\n", status);
+
+	return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_status);
+
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector)
+{
+	struct drm_i915_private *i915 = to_i915(connector->base.dev);
+	struct dentry *root = connector->base.debugfs_entry;
+
+	if (DISPLAY_VER(i915) >= 20 &&
+	    connector->base.connector_type != DRM_MODE_CONNECTOR_eDP)
+		return;
+
+	debugfs_create_file("i915_edp_lobf_supported", 0444, root,
+			    connector, &i915_edp_lobf_support_fops);
+
+	debugfs_create_file("i915_edp_lobf_status", 0444, root,
+			    connector, &i915_edp_lobf_status_fops);
+}
drivers/gpu/drm/i915/display/intel_alpm.h +2 -0
index c341d2c2b7f7..66e81ed8b2fb 100644
@@ -11,6 +11,7 @@
 struct intel_dp;
 struct intel_crtc_state;
 struct drm_connector_state;
+struct intel_connector;
 
 bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);
 bool intel_alpm_compute_params(struct intel_dp *intel_dp,
@@ -19,5 +20,6 @@ void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
 				    struct intel_crtc_state *crtc_state,
 				    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector);
 
 #endif
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2 -0
index 0feffe8d4e45..ba1530149836 100644
@@ -13,6 +13,7 @@
 #include "i915_debugfs.h"
 #include "i915_irq.h"
 #include "i915_reg.h"
+#include "intel_alpm.h"
 #include "intel_crtc.h"
 #include "intel_de.h"
 #include "intel_crtc_state_dump.h"
@@ -1542,6 +1543,7 @@ void intel_connector_debugfs_add(struct intel_connector *connector)
 	intel_drrs_connector_debugfs_add(connector);
 	intel_pps_connector_debugfs_add(connector);
 	intel_psr_connector_debugfs_add(connector);
+	intel_alpm_lobf_debugfs_add(connector);
 
 	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
 	    connector_type == DRM_MODE_CONNECTOR_HDMIA ||
Signature · 1 line
2.29.0
#19 lore raw

Re: [PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

Quoted 23 lines · Animesh Manna

For validation purpose add debugfs for LOBF.

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 47
+++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  2 + .../drm/i915/display/intel_display_debugfs.c  |  2 +

 3 files changed, 51 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index ae894c85233c..21dfc06952d7 100644
@@ -339,3 +339,50 @@ void intel_alpm_configure(struct intel_dp
 *intel_dp)
  {
         lnl_alpm_configure(intel_dp);

 }

drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+
+static int i915_edp_lobf_support_show(struct seq_file *m, void

*data)

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 351

Quoted 8 lines
drivers/gpu/drm/i915/display/intel_alpm.c +8 -0
+{
+       struct intel_connector *connector = m->private;
+       struct intel_dp *intel_dp = intel_attached_dp(connector);
+
+       seq_printf(m, "LOBF support: = %s",
+                  str_yes_no(intel_dp->lobf_supported));
+
+       return 0;

What this debugfs is telling? Lobf may be supported by platform, but not enabled because PSR is enabled. Saying LOBF support = no is misleading.

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 362

Quoted 11 lines
drivers/gpu/drm/i915/display/intel_alpm.c +11 -0
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_support);
+
+static int i915_edp_lobf_status_show(struct seq_file *m, void *data)
+{
+       struct intel_connector *connector = m->private;
+       struct intel_dp *intel_dp = intel_attached_dp(connector);
+       const char *status;
+
+       if (intel_dp->lobf_enabled)

I think better option is to read it from the registers.

BR,

Jouni Högander

Quoted 71 lines

+               status = "enabled";
+       else
+               status = "disabled";

drivers/gpu/drm/i915/display/intel_alpm.c +23 -0
+
+       seq_printf(m, "LOBF: %s\n", status);
+
+       return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_status);
+
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector)
+{
+       struct drm_i915_private *i915 = to_i915(connector->base.dev);
+       struct dentry *root = connector->base.debugfs_entry;
+
+       if (DISPLAY_VER(i915) >= 20 &&
+           connector->base.connector_type != DRM_MODE_CONNECTOR_eDP)
+               return;
+
+       debugfs_create_file("i915_edp_lobf_supported", 0444, root,
+                           connector, &i915_edp_lobf_support_fops);
+
+       debugfs_create_file("i915_edp_lobf_status", 0444, root,
+                           connector, &i915_edp_lobf_status_fops);
+}
drivers/gpu/drm/i915/display/intel_alpm.h +1 -0
index c341d2c2b7f7..66e81ed8b2fb 100644
@@ -11,6 +11,7 @@
  struct intel_dp;
  struct intel_crtc_state;
  struct drm_connector_state;
+struct intel_connector;


 bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp); bool intel_alpm_compute_params(struct intel_dp *intel_dp,

drivers/gpu/drm/i915/display/intel_alpm.h +0 -0
@@ -19,5 +20,6 @@ void intel_alpm_compute_lobf_config(struct intel_dp
 *intel_dp,

                                    struct intel_crtc_state *crtc_state,
                                    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp); +void intel_alpm_lobf_debugfs_add(struct intel_connector *connector);
 #endif

drivers/gpu/drm/i915/display/intel_display_debugfs.c +2 -0
index 0feffe8d4e45..ba1530149836 100644
@@ -13,6 +13,7 @@
  #include "i915_debugfs.h"
  #include "i915_irq.h"
  #include "i915_reg.h"
+#include "intel_alpm.h"
  #include "intel_crtc.h"
  #include "intel_de.h"
  #include "intel_crtc_state_dump.h"
@@ -1542,6 +1543,7 @@ void intel_connector_debugfs_add(struct
 intel_connector *connector)
         intel_drrs_connector_debugfs_add(connector);
         intel_pps_connector_debugfs_add(connector);
         intel_psr_connector_debugfs_add(connector);
+       intel_alpm_lobf_debugfs_add(connector);


        if (connector_type == DRM_MODE_CONNECTOR_DisplayPort || connector_type == DRM_MODE_CONNECTOR_HDMIA ||

#20 lore raw

RE: [PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

Quoted 38 lines

-----Original Message-----
From: Hogander, Jouni <[email protected]>
Sent: Monday, April 15, 2024 3:44 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Murthy, Arun R <[email protected]>; Nikula, Jani <[email protected]>
Subject: Re: [PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

Quoted 26 lines · Animesh Manna

For validation purpose add debugfs for LOBF.

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 47
+++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  2 + .../drm/i915/display/intel_display_debugfs.c  |  2 +

 3 files changed, 51 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index ae894c85233c..21dfc06952d7 100644
@@ -339,3 +339,50 @@ void intel_alpm_configure(struct intel_dp
 *intel_dp)
  {
         lnl_alpm_configure(intel_dp);

 }

drivers/gpu/drm/i915/display/intel_alpm.c +2 -0
+
+static int i915_edp_lobf_support_show(struct seq_file *m, void

*data)
+{
+       struct intel_connector *connector = m->private; +       struct intel_dp *intel_dp = intel_attached_dp(connector);

Quoted 8 lines

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 351

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_alpm.c +5 -0
+
+       seq_printf(m, "LOBF support: = %s",
+                  str_yes_no(intel_dp->lobf_supported));
+
+       return 0;

What this debugfs is telling? Lobf may be supported by platform, but not enabled because PSR is enabled. Saying LOBF support = no is misleading.

How about "LOBF entry criteria met = yes/no"?

Quoted 14 lines

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 362

Quoted 12 lines
drivers/gpu/drm/i915/display/intel_alpm.c +11 -0
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_support);
+
+static int i915_edp_lobf_status_show(struct seq_file *m, void *data)
+{
+       struct intel_connector *connector = m->private;
+       struct intel_dp *intel_dp = intel_attached_dp(connector);
+       const char *status;
+
+       if (intel_dp->lobf_enabled)

I think better option is to read it from the registers.

Sure, will add.

Regards,
Animesh

Quoted 75 lines

BR,

Jouni Högander

Quoted 7 lines

+               status = "enabled";
+       else
+               status = "disabled";

drivers/gpu/drm/i915/display/intel_alpm.c +4 -0
+
+       seq_printf(m, "LOBF: %s\n", status);
+
+       return 0;

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp)

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +10 -0
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_status);
+
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector) {
+       struct drm_i915_private *i915 = to_i915(connector->base.dev);
+       struct dentry *root = connector->base.debugfs_entry;
+
+       if (DISPLAY_VER(i915) >= 20 &&
+           connector->base.connector_type !=

DRM_MODE_CONNECTOR_eDP)

Quoted 52 lines

+               return;

drivers/gpu/drm/i915/display/intel_alpm.c +6 -0
+
+       debugfs_create_file("i915_edp_lobf_supported", 0444, root,
+                           connector, &i915_edp_lobf_support_fops);
+
+       debugfs_create_file("i915_edp_lobf_status", 0444, root,
+                           connector, &i915_edp_lobf_status_fops); }
drivers/gpu/drm/i915/display/intel_alpm.h +1 -0
index c341d2c2b7f7..66e81ed8b2fb 100644
@@ -11,6 +11,7 @@
  struct intel_dp;
  struct intel_crtc_state;
  struct drm_connector_state;
+struct intel_connector;
 
  bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);

 bool intel_alpm_compute_params(struct intel_dp *intel_dp, @@ -19,5 +20,6 @@ void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
                                    struct intel_crtc_state *crtc_state,
                                    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp); +void intel_alpm_lobf_debugfs_add(struct intel_connector *connector);

 #endif

drivers/gpu/drm/i915/display/intel_display_debugfs.c +2 -0
index 0feffe8d4e45..ba1530149836 100644
@@ -13,6 +13,7 @@
  #include "i915_debugfs.h"
  #include "i915_irq.h"
  #include "i915_reg.h"
+#include "intel_alpm.h"
  #include "intel_crtc.h"
  #include "intel_de.h"
  #include "intel_crtc_state_dump.h"
@@ -1542,6 +1543,7 @@ void intel_connector_debugfs_add(struct
 intel_connector *connector)
         intel_drrs_connector_debugfs_add(connector);
         intel_pps_connector_debugfs_add(connector);
         intel_psr_connector_debugfs_add(connector);
+       intel_alpm_lobf_debugfs_add(connector);
 

        if (connector_type == DRM_MODE_CONNECTOR_DisplayPort || connector_type == DRM_MODE_CONNECTOR_HDMIA ||

#21 lore raw

Re: [PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

In reply to Animesh Manna
Quoted 15 lines · Animesh Manna

For validation purpose add debugfs for LOBF.

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 47 +++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  2 +
 .../drm/i915/display/intel_display_debugfs.c  |  2 +
 3 files changed, 51 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index ae894c85233c..21dfc06952d7 100644
@@ -339,3 +339,50 @@ void intel_alpm_configure(struct intel_dp *intel_dp)
 {

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 349

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +8 -0
 	lnl_alpm_configure(intel_dp);
 }
+
+static int i915_edp_lobf_support_show(struct seq_file *m, void *data)
+{
+	struct intel_connector *connector = m->private;
+	struct intel_dp *intel_dp = intel_attached_dp(connector);
+
+	seq_printf(m, "LOBF support: = %s",
+		   str_yes_no(intel_dp->lobf_supported));

If you have individual debugfs files, where the name tells you what it's about, what's the point in printing "LOBF support" here?

Moreover, please be more careful, this now prints "LOBF support: = yes". And you'll want the \n in the end.

Quoted 8 lines
drivers/gpu/drm/i915/display/intel_alpm.c +8 -0
+
+	return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_support);
+
+static int i915_edp_lobf_status_show(struct seq_file *m, void *data)
+{

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 367

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +10 -0
+	struct intel_connector *connector = m->private;
+	struct intel_dp *intel_dp = intel_attached_dp(connector);
+	const char *status;
+
+	if (intel_dp->lobf_enabled)
+		status = "enabled";
+	else
+		status = "disabled";
+
+	seq_printf(m, "LOBF: %s\n", status);

Ditto. But there's also str_enabled_disabled().

I mean you could have a read-only info file which prints all of this info with the prefixes. But if it's one attribute per file, why have the extra prints? Maybe it should be just alpm info? Idk.

BR,
Jani.

Quoted 60 lines
drivers/gpu/drm/i915/display/intel_alpm.c +21 -0
+
+	return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_status);
+
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector)
+{
+	struct drm_i915_private *i915 = to_i915(connector->base.dev);
+	struct dentry *root = connector->base.debugfs_entry;
+
+	if (DISPLAY_VER(i915) >= 20 &&
+	    connector->base.connector_type != DRM_MODE_CONNECTOR_eDP)
+		return;
+
+	debugfs_create_file("i915_edp_lobf_supported", 0444, root,
+			    connector, &i915_edp_lobf_support_fops);
+
+	debugfs_create_file("i915_edp_lobf_status", 0444, root,
+			    connector, &i915_edp_lobf_status_fops);
+}
drivers/gpu/drm/i915/display/intel_alpm.h +2 -0
index c341d2c2b7f7..66e81ed8b2fb 100644
@@ -11,6 +11,7 @@
 struct intel_dp;
 struct intel_crtc_state;
 struct drm_connector_state;
+struct intel_connector;
 
 bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);
 bool intel_alpm_compute_params(struct intel_dp *intel_dp,
@@ -19,5 +20,6 @@ void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,
 				    struct intel_crtc_state *crtc_state,
 				    struct drm_connector_state *conn_state);
 void intel_alpm_configure(struct intel_dp *intel_dp);
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector);
 
 #endif
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2 -0
index 0feffe8d4e45..ba1530149836 100644
@@ -13,6 +13,7 @@
 #include "i915_debugfs.h"
 #include "i915_irq.h"
 #include "i915_reg.h"
+#include "intel_alpm.h"
 #include "intel_crtc.h"
 #include "intel_de.h"
 #include "intel_crtc_state_dump.h"
@@ -1542,6 +1543,7 @@ void intel_connector_debugfs_add(struct intel_connector *connector)
 	intel_drrs_connector_debugfs_add(connector);
 	intel_pps_connector_debugfs_add(connector);
 	intel_psr_connector_debugfs_add(connector);
+	intel_alpm_lobf_debugfs_add(connector);
 
 	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
 	    connector_type == DRM_MODE_CONNECTOR_HDMIA ||
Signature · 1 line
Jani Nikula, Intel
#22 lore raw

RE: [PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

Quoted 43 lines

-----Original Message-----
From: Nikula, Jani <[email protected]>
Sent: Monday, April 15, 2024 5:23 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: [email protected]; Hogander, Jouni <[email protected]>; Murthy, Arun R <[email protected]>; Manna, Animesh <[email protected]>
Subject: Re: [PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

Quoted 16 lines · Animesh Manna

For validation purpose add debugfs for LOBF.

---
 drivers/gpu/drm/i915/display/intel_alpm.c     | 47 +++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_alpm.h     |  2 +
 .../drm/i915/display/intel_display_debugfs.c  |  2 +
 3 files changed, 51 insertions(+)
drivers/gpu/drm/i915/display/intel_alpm.c +0 -0
index ae894c85233c..21dfc06952d7 100644
@@ -339,3 +339,50 @@ void intel_alpm_configure(struct intel_dp
 *intel_dp)  {

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp · line 349

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +8 -0
 	lnl_alpm_configure(intel_dp);
 }
+
+static int i915_edp_lobf_support_show(struct seq_file *m, void *data)
+{
+	struct intel_connector *connector = m->private;
+	struct intel_dp *intel_dp = intel_attached_dp(connector);
+
+	seq_printf(m, "LOBF support: = %s",
+		   str_yes_no(intel_dp->lobf_supported));

If you have individual debugfs files, where the name tells you what it's about, what's the point in printing "LOBF support" here?

Quoted 2 lines

Moreover, please be more careful, this now prints "LOBF support: = yes". And you'll want the \n in the end.

Ok.

Quoted 22 lines
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_alpm.c +8 -0
+
+	return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_support);
+
+static int i915_edp_lobf_status_show(struct seq_file *m, void *data)
+{

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp) · line 367

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_alpm.c +10 -0
+	struct intel_connector *connector = m->private;
+	struct intel_dp *intel_dp = intel_attached_dp(connector);
+	const char *status;
+
+	if (intel_dp->lobf_enabled)
+		status = "enabled";
+	else
+		status = "disabled";
+
+	seq_printf(m, "LOBF: %s\n", status);

Ditto. But there's also str_enabled_disabled().

Quoted 3 lines

I mean you could have a read-only info file which prints all of this info with the prefixes. But if it's one attribute per file, why have the extra prints? Maybe it should be just alpm info? Idk.

Sure, will go with a single debugfs entry lobf_info. Thanks for the input.

Regards,
Animesh

Quoted 70 lines

BR,
Jani.

drivers/gpu/drm/i915/display/intel_alpm.c void intel_alpm_configure(struct intel_dp *intel_dp)

Quoted 12 lines
drivers/gpu/drm/i915/display/intel_alpm.c +12 -0
+
+	return 0;
+}
+
+DEFINE_SHOW_ATTRIBUTE(i915_edp_lobf_status);
+
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector) {
+	struct drm_i915_private *i915 = to_i915(connector->base.dev);
+	struct dentry *root = connector->base.debugfs_entry;
+
+	if (DISPLAY_VER(i915) >= 20 &&
+	    connector->base.connector_type !=

DRM_MODE_CONNECTOR_eDP)

Quoted 21 lines
drivers/gpu/drm/i915/display/intel_alpm.c +7 -0
+		return;
+
+	debugfs_create_file("i915_edp_lobf_supported", 0444, root,
+			    connector, &i915_edp_lobf_support_fops);
+
+	debugfs_create_file("i915_edp_lobf_status", 0444, root,
+			    connector, &i915_edp_lobf_status_fops); }
drivers/gpu/drm/i915/display/intel_alpm.h +1 -0
index c341d2c2b7f7..66e81ed8b2fb 100644
@@ -11,6 +11,7 @@
 struct intel_dp;
 struct intel_crtc_state;
 struct drm_connector_state;
+struct intel_connector;
 
 bool intel_dp_get_aux_less_alpm_status(struct intel_dp *intel_dp);

bool intel_alpm_compute_params(struct intel_dp *intel_dp, @@ -19,5 +20,6 @@ void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp,

drivers/gpu/drm/i915/display/intel_alpm.h void intel_alpm_compute_lobf_config(struct intel_dp *intel_dp, · line 21

Quoted 2 lines
drivers/gpu/drm/i915/display/intel_alpm.h +0 -0
 				    struct intel_crtc_state *crtc_state,
 				    struct drm_connector_state *conn_state);

void

drivers/gpu/drm/i915/display/intel_display_debugfs.c void intel_connector_debugfs_add(struct

Quoted 18 lines

intel_alpm_configure(struct intel_dp *intel_dp);

drivers/gpu/drm/i915/display/intel_alpm.h +1 -0
+void intel_alpm_lobf_debugfs_add(struct intel_connector *connector);
 
 #endif
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
index 0feffe8d4e45..ba1530149836 100644
@@ -13,6 +13,7 @@
 #include "i915_debugfs.h"
 #include "i915_irq.h"
 #include "i915_reg.h"
+#include "intel_alpm.h"
 #include "intel_crtc.h"
 #include "intel_de.h"
 #include "intel_crtc_state_dump.h"
@@ -1542,6 +1543,7 @@ void intel_connector_debugfs_add(struct

intel_connector *connector)

drivers/gpu/drm/i915/display/intel_display_debugfs.c void intel_connector_debugfs_add(struct intel_connector *connector) · line 1549

Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
 	intel_drrs_connector_debugfs_add(connector);
 	intel_pps_connector_debugfs_add(connector);
 	intel_psr_connector_debugfs_add(connector);
+	intel_alpm_lobf_debugfs_add(connector);
 
 	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
 	    connector_type == DRM_MODE_CONNECTOR_HDMIA ||

--
Jani Nikula, Intel

#23 lore raw

✗ Fi.CI.CHECKPATCH: warning for Link off between frames for edp (rev2)

In reply to Animesh Manna
== Series Details ==

== Series Details ==

Series: Link off between frames for edp (rev2)
URL : https://patchwork.freedesktop.org/series/130650/
State : warning

== Summary ==

Error: dim checkpatch failed
3237e68ff67b drm/i915/alpm: Move alpm parameters from intel_psr
aaf1cb340d64 drm/i915/alpm: Move alpm related code to a new file
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
-:24: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #24:
new file mode 100644

-:251: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #251: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:223:
+ io_wake_lines = intel_usecs_to_scanlines(

-:253: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #253: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:225:
+ fast_wake_lines = intel_usecs_to_scanlines(

-:264: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided #264: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:236:
+ io_wake_lines = fast_wake_lines = max_wake_lines;

-:296: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #296: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:268:
+ PORT_ALPM_CTL_SILENCE_PERIOD(

-:301: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #301: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:273:
+ PORT_ALPM_LFPS_CTL_LFPS_HALF_CYCLE_DURATION(

-:303: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #303: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:275:
+ PORT_ALPM_LFPS_CTL_FIRST_LFPS_HALF_CYCLE_DURATION(

-:305: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #305: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:277:
+ PORT_ALPM_LFPS_CTL_LAST_LFPS_HALF_CYCLE_DURATION(

-:309: WARNING:LONG_LINE: line length of 103 exceeds 100 columns #309: FILE: drivers/gpu/drm/i915/display/intel_alpm.c:281:
+ ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp->alpm_parameters.fast_wake_lines);

total: 0 errors, 2 warnings, 7 checks, 627 lines checked 86d04a0536b2 drm/display: Add missing aux less alpm wake related bits afa8b9ada2d6 drm/i915/alpm: Add compute config for lobf 88a647045907 drm/i915/alpm: Enable lobf from source in ALPM_CTL 2130607c083a drm/i915/alpm: Add debugfs for LOBF

#25 lore raw

✗ Fi.CI.BAT: failure for Link off between frames for edp (rev2)

In reply to Animesh Manna
== Series Details ==

== Series Details ==

Series: Link off between frames for edp (rev2)
URL : https://patchwork.freedesktop.org/series/130650/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_14572 -> Patchwork_130650v2
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_130650v2 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_130650v2, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/index.html

Participating hosts (40 -> 38)
------------------------------

Additional (4): fi-blb-e6850 bat-kbl-2 fi-cfl-8109u bat-mtlp-6
Missing (6): bat-dg1-7 fi-snb-2520m fi-glk-j4005 fi-kbl-8809g fi-elk-e7500 bat-mtlp-8

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_130650v2:

### IGT changes ###

#### Possible regressions ####

* igt@debugfs_test@read_all_entries:
- fi-ivb-3770: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14572/fi-ivb-3770/igt@debugfs_test@read_all_entries.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-ivb-3770/igt@debugfs_test@read_all_entries.html
- fi-ilk-650: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14572/fi-ilk-650/igt@debugfs_test@read_all_entries.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-ilk-650/igt@debugfs_test@read_all_entries.html
- fi-blb-e6850: NOTRUN -> [ABORT][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-blb-e6850/igt@debugfs_test@read_all_entries.html
- fi-pnv-d510: [PASS][6] -> [ABORT][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14572/fi-pnv-d510/igt@debugfs_test@read_all_entries.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-pnv-d510/igt@debugfs_test@read_all_entries.html

Known issues
------------

Here are the changes found in Patchwork_130650v2 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-mtlp-6: NOTRUN -> [SKIP][8] ([i915#9318])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@fbdev@info:
- bat-kbl-2: NOTRUN -> [SKIP][9] ([i915#1849])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-kbl-2/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][10] ([i915#1849] / [i915#2582])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@fbdev@write:
- bat-mtlp-6: NOTRUN -> [SKIP][11] ([i915#2582]) +3 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-cfl-8109u: NOTRUN -> [SKIP][12] ([i915#2190])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-cfl-8109u/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- bat-kbl-2: NOTRUN -> [SKIP][13] +39 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-kbl-2/igt@[email protected]

* igt@gem_lmem_swapping@verify-random:
- bat-mtlp-6: NOTRUN -> [SKIP][14] ([i915#4613]) +3 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]
- fi-cfl-8109u: NOTRUN -> [SKIP][15] ([i915#4613]) +3 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-cfl-8109u/igt@[email protected]

* igt@gem_mmap@basic:
- bat-mtlp-6: NOTRUN -> [SKIP][16] ([i915#4083])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@gem_tiled_blits@basic:
- bat-mtlp-6: NOTRUN -> [SKIP][17] ([i915#4077]) +2 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-mtlp-6: NOTRUN -> [SKIP][18] ([i915#4079]) +1 other test skip
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rps@basic-api:
- bat-mtlp-6: NOTRUN -> [SKIP][19] ([i915#6621])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@i915_selftest@live@guc_hang:
- bat-dg2-9: [PASS][20] -> [ABORT][21] ([i915#10366])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14572/bat-dg2-9/igt@i915_selftest@live@guc_hang.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-dg2-9/igt@i915_selftest@live@guc_hang.html

* igt@kms_addfb_basic@addfb25-x-tiled-legacy:
- bat-mtlp-6: NOTRUN -> [SKIP][22] ([i915#4212] / [i915#9792]) +8 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-mtlp-6: NOTRUN -> [SKIP][23] ([i915#5190] / [i915#9792])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- bat-mtlp-6: NOTRUN -> [SKIP][24] ([i915#9792]) +17 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_flip@basic-flip-vs-dpms:
- bat-mtlp-6: NOTRUN -> [SKIP][25] ([i915#3637] / [i915#9792]) +3 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_force_connector_basic@prune-stale-modes:
- bat-mtlp-6: NOTRUN -> [SKIP][26] ([i915#5274] / [i915#9792])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- bat-mtlp-6: NOTRUN -> [SKIP][27] ([i915#4342] / [i915#5354] / [i915#9792])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_pm_backlight@basic-brightness:
- fi-cfl-8109u: NOTRUN -> [SKIP][28] +11 other tests skip
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/fi-cfl-8109u/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][29] ([i915#5354] / [i915#9792])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_psr@psr-cursor-plane-move:
- bat-mtlp-6: NOTRUN -> [SKIP][30] ([i915#1072] / [i915#9673] / [i915#9732] / [i915#9792]) +3 other tests skip
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-mtlp-6: NOTRUN -> [SKIP][31] ([i915#3555] / [i915#8809] / [i915#9792])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- bat-mtlp-6: NOTRUN -> [SKIP][32] ([i915#3708] / [i915#9792])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@prime_vgem@basic-fence-mmap:
- bat-mtlp-6: NOTRUN -> [SKIP][33] ([i915#3708] / [i915#4077]) +1 other test skip
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-mtlp-6: NOTRUN -> [SKIP][34] ([i915#3708]) +1 other test skip
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-mtlp-6: NOTRUN -> [SKIP][35] ([i915#10216] / [i915#3708])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-mtlp-6/igt@[email protected]

#### Possible fixes ####

* igt@gem_lmem_swapping@basic@lmem0:
- bat-dg2-11: [FAIL][36] ([i915#10378]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14572/bat-dg2-11/igt@gem_lmem_swapping@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/bat-dg2-11/igt@gem_lmem_swapping@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[i915#10216]: https://gitlab.freedesktop.org/drm/intel/issues/10216
[i915#10366]: https://gitlab.freedesktop.org/drm/intel/issues/10366
[i915#10378]: https://gitlab.freedesktop.org/drm/intel/issues/10378
[i915#10435]: https://gitlab.freedesktop.org/drm/intel/issues/10435
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4342]: https://gitlab.freedesktop.org/drm/intel/issues/4342
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#8809]: https://gitlab.freedesktop.org/drm/intel/issues/8809
[i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
[i915#9673]: https://gitlab.freedesktop.org/drm/intel/issues/9673
[i915#9732]: https://gitlab.freedesktop.org/drm/intel/issues/9732
[i915#9792]: https://gitlab.freedesktop.org/drm/intel/issues/9792

Build changes
-------------

* Linux: CI_DRM_14572 -> Patchwork_130650v2

CI-20190529: 20190529
CI_DRM_14572: 85eef611f85be84edeabab83debdbb1fabeba066 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7806: 849cd963ce7e8222dcf17cc872d355181fd2c2a2 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_130650v2: 85eef611f85be84edeabab83debdbb1fabeba066 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

389189a76134 drm/i915/alpm: Add debugfs for LOBF 36b4755e89e8 drm/i915/alpm: Enable lobf from source in ALPM_CTL fdda9f08cbac drm/i915/alpm: Add compute config for lobf 43391fc29c14 drm/display: Add missing aux less alpm wake related bits 19827e928f7a drm/i915/alpm: Move alpm related code to a new file 64f144755fba drm/i915/alpm: Move alpm parameters from intel_psr

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130650v2/index.html