From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 6/8] drm/i915/pps: rename vlv_pps_init() to vlv_pps_port_enable()
Date: Mon, 9 Sep 2024 17:27:44 +0300 [thread overview]
Message-ID: <Zt8F4D_exqURrQXS@intel.com> (raw)
In-Reply-To: <6123d8aa71f352cfe58cf2285c0bb19d58d999e0.1725883885.git.jani.nikula@intel.com>
On Mon, Sep 09, 2024 at 03:15:41PM +0300, Jani Nikula wrote:
> Follow the naming for vlv_pps_port_disable(), as these are counterparts.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/g4x_dp.c | 2 +-
> drivers/gpu/drm/i915/display/intel_pps.c | 5 +++--
> drivers/gpu/drm/i915/display/intel_pps.h | 4 ++--
> 3 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/g4x_dp.c b/drivers/gpu/drm/i915/display/g4x_dp.c
> index e3db1cba11c9..796ec2244a4d 100644
> --- a/drivers/gpu/drm/i915/display/g4x_dp.c
> +++ b/drivers/gpu/drm/i915/display/g4x_dp.c
> @@ -690,7 +690,7 @@ static void intel_enable_dp(struct intel_atomic_state *state,
>
> with_intel_pps_lock(intel_dp, wakeref) {
> if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv))
> - vlv_pps_init(encoder, pipe_config);
> + vlv_pps_port_enable(encoder, pipe_config);
The disable counterpart has the lock on the inside, so this could
do with an _unlocked() suffix to make the situation a bit clearer.
>
> intel_dp_enable_port(intel_dp, pipe_config);
>
> diff --git a/drivers/gpu/drm/i915/display/intel_pps.c b/drivers/gpu/drm/i915/display/intel_pps.c
> index 33fae565588a..c91d14face20 100644
> --- a/drivers/gpu/drm/i915/display/intel_pps.c
> +++ b/drivers/gpu/drm/i915/display/intel_pps.c
> @@ -1227,8 +1227,9 @@ void vlv_pps_pipe_reset(struct intel_dp *intel_dp)
> intel_dp->pps.vlv_active_pipe = vlv_active_pipe(intel_dp);
> }
>
> -void vlv_pps_init(struct intel_encoder *encoder,
> - const struct intel_crtc_state *crtc_state)
> +/* Call on all DP, not just eDP */
> +void vlv_pps_port_enable(struct intel_encoder *encoder,
> + const struct intel_crtc_state *crtc_state)
> {
> struct intel_display *display = to_intel_display(encoder);
> struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
> diff --git a/drivers/gpu/drm/i915/display/intel_pps.h b/drivers/gpu/drm/i915/display/intel_pps.h
> index 58df4cd3addd..b57a0c448e6c 100644
> --- a/drivers/gpu/drm/i915/display/intel_pps.h
> +++ b/drivers/gpu/drm/i915/display/intel_pps.h
> @@ -48,8 +48,8 @@ void intel_pps_reset_all(struct intel_display *display);
>
> void vlv_pps_pipe_init(struct intel_dp *intel_dp);
> void vlv_pps_pipe_reset(struct intel_dp *intel_dp);
> -void vlv_pps_init(struct intel_encoder *encoder,
> - const struct intel_crtc_state *crtc_state);
> +void vlv_pps_port_enable(struct intel_encoder *encoder,
> + const struct intel_crtc_state *crtc_state);
> void vlv_pps_port_disable(struct intel_encoder *encoder,
> const struct intel_crtc_state *crtc_state);
>
> --
> 2.39.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2024-09-09 14:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 12:15 [PATCH v2 0/8] drm/i915/pps: hide VLV/CHV PPS pipe stuff inside intel_pps.c Jani Nikula
2024-09-09 12:15 ` [PATCH v2 1/8] drm/i915/pps: add vlv_ prefix to pps_pipe and active_pipe members Jani Nikula
2024-09-09 12:15 ` [PATCH v2 2/8] drm/i915/pps: only touch the vlv_ members on VLV/CHV Jani Nikula
2024-09-09 14:21 ` Ville Syrjälä
2024-09-09 18:31 ` Jani Nikula
2024-09-09 12:15 ` [PATCH v2 3/8] drm/i915/pps: add vlv_pps_pipe_init() Jani Nikula
2024-09-09 12:22 ` Jani Nikula
2024-09-09 12:15 ` [PATCH v2 4/8] drm/i915/pps: add vlv_pps_pipe_reset() Jani Nikula
2024-09-09 12:15 ` [PATCH v2 5/8] drm/i915/pps: add vlv_pps_port_disable() Jani Nikula
2024-09-09 12:15 ` [PATCH v2 6/8] drm/i915/pps: rename vlv_pps_init() to vlv_pps_port_enable() Jani Nikula
2024-09-09 14:27 ` Ville Syrjälä [this message]
2024-09-09 12:15 ` [PATCH v2 7/8] drm/i915/pps: add vlv_pps_backlight_initial_pipe() Jani Nikula
2024-09-09 12:15 ` [PATCH v2 8/8] drm/i915/pps: move vlv_active_pipe() to intel_pps.c Jani Nikula
2024-09-09 12:22 ` ✓ CI.Patch_applied: success for drm/i915/pps: hide VLV/CHV PPS pipe stuff inside intel_pps.c Patchwork
2024-09-09 12:22 ` ✓ CI.checkpatch: " Patchwork
2024-09-09 12:23 ` ✓ CI.KUnit: " Patchwork
2024-09-09 12:35 ` ✓ CI.Build: " Patchwork
2024-09-09 12:37 ` ✓ CI.Hooks: " Patchwork
2024-09-09 12:39 ` ✗ CI.checksparse: warning " Patchwork
2024-09-09 13:23 ` ✓ CI.BAT: success " Patchwork
2024-09-09 16:43 ` ✗ Fi.CI.SPARSE: warning for drm/i915/pps: hide VLV/CHV PPS pipe stuff inside intel_pps.c (rev2) Patchwork
2024-09-09 16:52 ` ✓ Fi.CI.BAT: success " Patchwork
2024-09-09 19:55 ` ✗ CI.FULL: failure for drm/i915/pps: hide VLV/CHV PPS pipe stuff inside intel_pps.c Patchwork
2024-09-10 20:37 ` ✗ Fi.CI.IGT: failure for drm/i915/pps: hide VLV/CHV PPS pipe stuff inside intel_pps.c (rev2) 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=Zt8F4D_exqURrQXS@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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.