On Tue, 04 Nov 2025, Animesh Manna <[email protected]> wrote:
> Enable AlPM debug info through lobf debug info.
>
> Cc: Jouni Högander <[email protected]>
> Signed-off-by: Animesh Manna <[email protected]>
> ---
> drivers/gpu/drm/i915/display/intel_alpm.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c
> b/drivers/gpu/drm/i915/display/intel_alpm.c
> index 639941e332f3..779718d0c8dd 100644
> --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> @@ -541,9 +541,15 @@ void intel_alpm_lobf_debugfs_add(struct intel_connector
> *connector)
> struct intel_display *display = to_intel_display(connector);
> struct dentry *root = connector->base.debugfs_entry;
>
> - if (DISPLAY_VER(display) < 20 ||
> - connector->base.connector_type != DRM_MODE_CONNECTOR_eDP)
> + if (connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
> + if (DISPLAY_VER(display) < 35)
> + return;
> + } else if (connector->base.connector_type == DRM_MODE_CONNECTOR_eDP) {
> + if (DISPLAY_VER(display) < 20)
> + return;
> + } else {
> return;
> + }
These are the same conditions that you're sprinkling all over the place
in the previous patch, and basically boil down to "does the connector
support alpm?"
BR,
Jani.
>
> debugfs_create_file("i915_edp_lobf_debug", 0644, root,
> connector, &i915_edp_lobf_debug_fops);
--
Jani Nikula, Intel