All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "Manna, Animesh" <animesh.manna@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v3 04/21] drm/i915/psr: Rename intel_psr_enabled
Date: Fri, 2 Feb 2024 07:47:10 +0000	[thread overview]
Message-ID: <2b47355d9c1e2e4037b295b50ea25ab4d65115ff.camel@intel.com> (raw)
In-Reply-To: <PH7PR11MB598157598A12DF5A023F23A3F9422@PH7PR11MB5981.namprd11.prod.outlook.com>

On Fri, 2024-02-02 at 07:34 +0000, Manna, Animesh wrote:
> 
> 
> > -----Original Message-----
> > From: Hogander, Jouni <jouni.hogander@intel.com>
> > Sent: Friday, January 19, 2024 3:40 PM
> > To: intel-gfx@lists.freedesktop.org
> > Cc: Manna, Animesh <animesh.manna@intel.com>; Hogander, Jouni
> > <jouni.hogander@intel.com>
> > Subject: [PATCH v3 04/21] drm/i915/psr: Rename intel_psr_enabled
> > 
> > Intel_psr_enabled is now misleading name as we are using main link
> > on with
> > panel replay. I.e. link retraining is not controlled by hardware.
> > Rename
> > intel_psr_enabled as intel_psr_hw_controls_link_retrain.
> > 
> > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> > ---
> >  drivers/gpu/drm/i915/display/intel_dp.c  | 2 +-
> > drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
> > drivers/gpu/drm/i915/display/intel_psr.h | 2 +-
> >  3 files changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c
> > b/drivers/gpu/drm/i915/display/intel_dp.c
> > index ab415f41924d..e7cda3162ea2 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > @@ -4951,7 +4951,7 @@ intel_dp_needs_link_retrain(struct intel_dp
> > *intel_dp)
> >          * Also when exiting PSR, HW will retrain the link anyways
> > fixing
> >          * any link status error.
> >          */
> > -       if (intel_psr_enabled(intel_dp))
> > +       if (intel_psr_hw_controls_link_retrain(intel_dp))
> >                 return false;
> > 
> >         if (drm_dp_dpcd_read_phy_link_status(&intel_dp->aux,
> > DP_PHY_DPRX, diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> > b/drivers/gpu/drm/i915/display/intel_psr.c
> > index d11f8ea6e0a9..7b3290f4e0b4 100644
> > --- a/drivers/gpu/drm/i915/display/intel_psr.c
> > +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> > @@ -3011,7 +3011,7 @@ void intel_psr_short_pulse(struct intel_dp
> > *intel_dp)
> >         mutex_unlock(&psr->lock);
> >  }
> > 
> > -bool intel_psr_enabled(struct intel_dp *intel_dp)
> > +bool intel_psr_hw_controls_link_retrain(struct intel_dp *intel_dp)
> 
> Based on CAN_PSR() check the function will return early and only get
> executed for psr. No sure still do we need to rename it?

Ok. For me it was just surprice what it does and why this function
exists, thus renaming. Much more descriptive. Also we will soon have
main link off with Panel Replay as well then this is not about having
PSR or Panel Replay enabled, but HW controlling link retraining.

I'm fine with dropping the patch if you have strong opinion on this.

BR,

Jouni Högander

> 
> Regards,
> Animesh 
> >  {
> >         bool ret;
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_psr.h
> > b/drivers/gpu/drm/i915/display/intel_psr.h
> > index cde781df84d5..f7c5cc07864f 100644
> > --- a/drivers/gpu/drm/i915/display/intel_psr.h
> > +++ b/drivers/gpu/drm/i915/display/intel_psr.h
> > @@ -45,7 +45,7 @@ void intel_psr_get_config(struct intel_encoder
> > *encoder,  void intel_psr_irq_handler(struct intel_dp *intel_dp,
> > u32 psr_iir);
> > void intel_psr_short_pulse(struct intel_dp *intel_dp);  void
> > intel_psr_wait_for_idle_locked(const struct intel_crtc_state
> > *new_crtc_state); -bool intel_psr_enabled(struct intel_dp
> > *intel_dp);
> > +bool intel_psr_hw_controls_link_retrain(struct intel_dp
> > *intel_dp);
> >  int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
> >                                 struct intel_crtc *crtc);
> >  void intel_psr2_program_trans_man_trk_ctl(const struct
> > intel_crtc_state
> > *crtc_state);
> > --
> > 2.34.1
> 


  reply	other threads:[~2024-02-02  7:47 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19 10:10 [PATCH v3 00/21] Panel replay selective update support Jouni Högander
2024-01-19 10:10 ` [PATCH v3 01/21] drm/i915/psr: Add some documentation of variables used in psr code Jouni Högander
2024-02-02  6:18   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 02/21] drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well Jouni Högander
2024-02-02  6:21   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 03/21] drm/i915/psr: Intel_psr_pause/resume needs to support panel replay Jouni Högander
2024-01-19 10:10 ` [PATCH v3 04/21] drm/i915/psr: Rename intel_psr_enabled Jouni Högander
2024-02-02  7:34   ` Manna, Animesh
2024-02-02  7:47     ` Hogander, Jouni [this message]
2024-02-05  4:50       ` Manna, Animesh
2024-04-02  9:54         ` Hogander, Jouni
2024-01-19 10:10 ` [PATCH v3 05/21] drm/i915/psr: Do not update phy power state in case of panel replay Jouni Högander
2024-02-02  7:55   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 06/21] drm/i915/psr: Check possible errors for panel replay as well Jouni Högander
2024-02-02  8:10   ` Manna, Animesh
2024-02-02  8:20     ` Hogander, Jouni
2024-02-05  4:54       ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 07/21] drm/i915/psr: Do not write registers/bits not applicable for panel replay Jouni Högander
2024-02-02 10:42   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 08/21] drm/i915/psr: Unify panel replay enable/disable sink Jouni Högander
2024-02-02 11:11   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 09/21] drm/i915/psr: Panel replay has to be enabled before link training Jouni Högander
2024-01-23 17:39   ` Jani Nikula
2024-01-23 17:41     ` Jani Nikula
2024-02-02 11:21   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 10/21] drm/i915/psr: Rename has_psr2 as has_sel_update Jouni Högander
2024-02-02 11:22   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 11/21] drm/i915/psr: Modify VSC SDP calculation to support panel replay + su Jouni Högander
2024-02-02 13:58   ` Manna, Animesh
2024-02-05 13:43     ` Hogander, Jouni
2024-01-19 10:10 ` [PATCH v3 12/21] drm/i915/psr: Rename psr2_enabled as sel_update_enabled Jouni Högander
2024-01-19 10:10 ` [PATCH v3 13/21] drm/panelreplay: dpcd register definition for panelreplay SU Jouni Högander
2024-02-02 14:29   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 14/21] drm/i915/psr: Detect panel replay selective update support Jouni Högander
2024-02-02 14:31   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 15/21] drm/i915/psr: Modify intel_dp_get_su_granularity to support panel replay Jouni Högander
2024-02-02 14:39   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 16/21] drm/i915/psr: Ensure early transport is not enabled for " Jouni Högander
2024-02-05  4:40   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 17/21] drm/i915/psr: Panel replay uses SRD_STATUS to track it's status Jouni Högander
2024-01-19 10:10 ` [PATCH v3 18/21] drm/i915/psr: Do not apply workarounds in case of panel replay Jouni Högander
2024-01-19 10:10 ` [PATCH v3 19/21] drm/i915/psr: Update PSR module parameter descriptions Jouni Högander
2024-02-05  4:43   ` Manna, Animesh
2024-01-19 10:10 ` [PATCH v3 20/21] drm/i915/psr: Split intel_psr2_config_valid for panel replay Jouni Högander
2024-01-19 10:10 ` [PATCH v3 21/21] drm/i915/psr: Add panel replay sel update support to debugfs interface Jouni Högander
2024-01-19 11:36 ` ✗ Fi.CI.CHECKPATCH: warning for Panel replay selective update support (rev3) Patchwork
2024-01-19 11:36 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-01-19 11:56 ` ✓ Fi.CI.BAT: success " Patchwork
2024-01-19 15:39 ` ✗ Fi.CI.IGT: failure " 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=2b47355d9c1e2e4037b295b50ea25ab4d65115ff.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=animesh.manna@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.