All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/backlight: Disable pps power hook for aux based backlight
Date: Tue, 23 Aug 2022 10:37:29 +0300	[thread overview]
Message-ID: <87fshnmmva.fsf@intel.com> (raw)
In-Reply-To: <20220822140836.534432-1-jouni.hogander@intel.com>

On Mon, 22 Aug 2022, Jouni Högander <jouni.hogander@intel.com> wrote:
> Pps power hook seems to be problematic for backlight controlled via
> aux channel. Disable it for such cases.
>
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3657
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_backlight.c | 11 ++++++++---
>  drivers/gpu/drm/i915/display/intel_dp.c        |  2 --
>  2 files changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_backlight.c b/drivers/gpu/drm/i915/display/intel_backlight.c
> index af28b143d27a..5d317a20dd0f 100644
> --- a/drivers/gpu/drm/i915/display/intel_backlight.c
> +++ b/drivers/gpu/drm/i915/display/intel_backlight.c
> @@ -17,6 +17,7 @@
>  #include "intel_dsi_dcs_backlight.h"
>  #include "intel_panel.h"
>  #include "intel_pci_config.h"
> +#include "intel_pps.h"
>  
>  /**
>   * scale - scale values from one range to another
> @@ -1778,9 +1779,13 @@ void intel_backlight_init_funcs(struct intel_panel *panel)
>  		panel->backlight.pwm_funcs = &i9xx_pwm_funcs;
>  	}
>  
> -	if (connector->base.connector_type == DRM_MODE_CONNECTOR_eDP &&
> -	    intel_dp_aux_init_backlight_funcs(connector) == 0)
> -		return;
> +	if (connector->base.connector_type == DRM_MODE_CONNECTOR_eDP) {
> +		if (intel_dp_aux_init_backlight_funcs(connector) == 0)
> +			return;
> +
> +		if (!(dev_priv->quirks & QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK))
> +			connector->panel.backlight.power = intel_pps_backlight_power;
> +	}
>  
>  	/* We're using a standard PWM backlight interface */
>  	panel->backlight.funcs = &pwm_bl_funcs;
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 32292c0be2bd..ac90d455a7c7 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -5293,8 +5293,6 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,
>  
>  	intel_panel_init(intel_connector);
>  
> -	if (!(dev_priv->quirks & QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK))
> -		intel_connector->panel.backlight.power = intel_pps_backlight_power;
>  	intel_backlight_setup(intel_connector, pipe);
>  
>  	intel_edp_add_properties(intel_dp);

-- 
Jani Nikula, Intel Open Source Graphics Center

  parent reply	other threads:[~2022-08-23  7:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 14:08 [Intel-gfx] [PATCH] drm/i915/backlight: Disable pps power hook for aux based backlight Jouni Högander
2022-08-22 17:04 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2022-08-23  7:37 ` Jani Nikula [this message]
2022-08-23 14:16   ` [Intel-gfx] [PATCH] " Jani Nikula
2022-08-23 11:54 ` [Intel-gfx] ✗ Fi.CI.IGT: failure for " Patchwork
2022-08-25  5:32 ` [Intel-gfx] ✓ Fi.CI.IGT: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fshnmmva.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jouni.hogander@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.