intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 02/10] drm/i915/cx0: Nuke extraneous timeout debugs
Date: Thu, 06 Nov 2025 17:33:42 +0200	[thread overview]
Message-ID: <1ea7dbfb599850b27e8f931e563b68d3d1c83d19@intel.com> (raw)
In-Reply-To: <20251106152049.21115-3-ville.syrjala@linux.intel.com>

On Thu, 06 Nov 2025, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> The actual timeout used isn't particularly interesting, so
> don't print it. Makes the code simpler.
>
> The debugs are also using some random capitalizaton rule.
> Clean that up a bit while at it.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

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

> ---
>  drivers/gpu/drm/i915/display/intel_cx0_phy.c | 35 +++++++++-----------
>  1 file changed, 16 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy.c b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> index 21f046576ee3..ddc26e383714 100644
> --- a/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> +++ b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> @@ -2832,8 +2832,8 @@ void intel_cx0_powerdown_change_sequence(struct intel_encoder *encoder,
>  				 intel_cx0_get_powerdown_update(lane_mask), 0,
>  				 XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_US, 2, NULL))
>  		drm_warn(display->drm,
> -			 "PHY %c failed to bring out of Lane reset after %dus.\n",
> -			 phy_name(phy), XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_US);
> +			 "PHY %c failed to bring out of lane reset\n",
> +			 phy_name(phy));
>  }
>  
>  void intel_cx0_setup_powerdown(struct intel_encoder *encoder)
> @@ -2894,8 +2894,8 @@ static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
>  				 XELPDP_PORT_BUF_SOC_PHY_READY,
>  				 XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US, 0, NULL))
>  		drm_warn(display->drm,
> -			 "PHY %c failed to bring out of SOC reset after %dus.\n",
> -			 phy_name(phy), XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US);
> +			 "PHY %c failed to bring out of SOC reset\n",
> +			 phy_name(phy));
>  
>  	intel_de_rmw(display, XELPDP_PORT_BUF_CTL2(display, port), lane_pipe_reset,
>  		     lane_pipe_reset);
> @@ -2904,8 +2904,8 @@ static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
>  				 lane_phy_current_status, lane_phy_current_status,
>  				 XELPDP_PORT_RESET_START_TIMEOUT_US, 0, NULL))
>  		drm_warn(display->drm,
> -			 "PHY %c failed to bring out of Lane reset after %dus.\n",
> -			 phy_name(phy), XELPDP_PORT_RESET_START_TIMEOUT_US);
> +			 "PHY %c failed to bring out of lane reset\n",
> +			 phy_name(phy));
>  
>  	intel_de_rmw(display, XELPDP_PORT_CLOCK_CTL(display, port),
>  		     intel_cx0_get_pclk_refclk_request(owned_lane_mask),
> @@ -2916,8 +2916,8 @@ static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
>  				 intel_cx0_get_pclk_refclk_ack(lane_mask),
>  				 XELPDP_REFCLK_ENABLE_TIMEOUT_US, 0, NULL))
>  		drm_warn(display->drm,
> -			 "PHY %c failed to request refclk after %dus.\n",
> -			 phy_name(phy), XELPDP_REFCLK_ENABLE_TIMEOUT_US);
> +			 "PHY %c failed to request refclk\n",
> +			 phy_name(phy));
>  
>  	intel_cx0_powerdown_change_sequence(encoder, INTEL_CX0_BOTH_LANES,
>  					    XELPDP_P2_STATE_RESET);
> @@ -2929,8 +2929,8 @@ static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
>  				    lane_phy_current_status,
>  				    XELPDP_PORT_RESET_END_TIMEOUT))
>  		drm_warn(display->drm,
> -			 "PHY %c failed to bring out of Lane reset after %dms.\n",
> -			 phy_name(phy), XELPDP_PORT_RESET_END_TIMEOUT);
> +			 "PHY %c failed to bring out of lane reset\n",
> +			 phy_name(phy));
>  }
>  
>  static void intel_cx0_program_phy_lane(struct intel_encoder *encoder, int lane_count,
> @@ -3069,8 +3069,8 @@ static void __intel_cx0pll_enable(struct intel_encoder *encoder,
>  				 intel_cx0_get_pclk_pll_ack(INTEL_CX0_BOTH_LANES),
>  				 intel_cx0_get_pclk_pll_ack(maxpclk_lane),
>  				 XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US, 0, NULL))
> -		drm_warn(display->drm, "Port %c PLL not locked after %dus.\n",
> -			 phy_name(phy), XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US);
> +		drm_warn(display->drm, "Port %c PLL not locked\n",
> +			 phy_name(phy));
>  
>  	/*
>  	 * 11. Follow the Display Voltage Frequency Switching Sequence After
> @@ -3193,8 +3193,7 @@ void intel_mtl_tbt_pll_enable(struct intel_encoder *encoder,
>  				 XELPDP_TBT_CLOCK_ACK,
>  				 XELPDP_TBT_CLOCK_ACK,
>  				 100, 0, NULL))
> -		drm_warn(display->drm,
> -			 "[ENCODER:%d:%s][%c] PHY PLL not locked after 100us.\n",
> +		drm_warn(display->drm, "[ENCODER:%d:%s][%c] PHY PLL not locked\n",
>  			 encoder->base.base.id, encoder->base.name, phy_name(phy));
>  
>  	/*
> @@ -3308,9 +3307,8 @@ static void intel_cx0pll_disable(struct intel_encoder *encoder)
>  				 intel_cx0_get_pclk_pll_ack(INTEL_CX0_BOTH_LANES) |
>  				 intel_cx0_get_pclk_refclk_ack(INTEL_CX0_BOTH_LANES), 0,
>  				 XELPDP_PCLK_PLL_DISABLE_TIMEOUT_US, 0, NULL))
> -		drm_warn(display->drm,
> -			 "Port %c PLL not unlocked after %dus.\n",
> -			 phy_name(phy), XELPDP_PCLK_PLL_DISABLE_TIMEOUT_US);
> +		drm_warn(display->drm, "Port %c PLL not unlocked\n",
> +			 phy_name(phy));
>  
>  	/*
>  	 * 6. Follow the Display Voltage Frequency Switching Sequence After
> @@ -3355,8 +3353,7 @@ void intel_mtl_tbt_pll_disable(struct intel_encoder *encoder)
>  	/* 3. Poll on PORT_CLOCK_CTL TBT CLOCK Ack == "0". */
>  	if (intel_de_wait_custom(display, XELPDP_PORT_CLOCK_CTL(display, encoder->port),
>  				 XELPDP_TBT_CLOCK_ACK, 0, 10, 0, NULL))
> -		drm_warn(display->drm,
> -			 "[ENCODER:%d:%s][%c] PHY PLL not unlocked after 10us.\n",
> +		drm_warn(display->drm, "[ENCODER:%d:%s][%c] PHY PLL not unlocked\n",
>  			 encoder->base.base.id, encoder->base.name, phy_name(phy));
>  
>  	/*

-- 
Jani Nikula, Intel

  reply	other threads:[~2025-11-06 15:33 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-06 15:20 [PATCH v2 00/10] drm/i915: Stop the intel_de_wait_custom() abuse Ville Syrjala
2025-11-06 15:20 ` [PATCH v2 01/10] drm/i915/cx0: Print the correct timeout Ville Syrjala
2025-11-06 15:32   ` Jani Nikula
2025-11-06 15:54     ` Ville Syrjälä
2025-11-06 15:20 ` [PATCH v2 02/10] drm/i915/cx0: Nuke extraneous timeout debugs Ville Syrjala
2025-11-06 15:33   ` Jani Nikula [this message]
2025-11-06 15:20 ` [PATCH v2 03/10] drm/i915/ltphy: " Ville Syrjala
2025-11-06 15:34   ` Jani Nikula
2025-11-06 15:20 ` [PATCH v2 04/10] drm/i915/cx0: Replace XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_US with XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_MS Ville Syrjala
2025-11-06 15:37   ` Jani Nikula
2025-11-06 15:20 ` [PATCH v2 05/10] drm/i915/cx0: Get rid of XELPDP_MSGBUS_TIMEOUT_FAST_US Ville Syrjala
2025-11-06 15:20 ` [PATCH v2 06/10] drm/i915/cx0: s/XELPDP_MSGBUS_TIMEOUT_SLOW/XELPDP_MSGBUS_TIMEOUT_MS/ Ville Syrjala
2025-11-06 15:20 ` [PATCH v2 07/10] drm/i915/cx0: s/XELPDP_PORT_RESET_END_TIMEOUT/XELPDP_PORT_RESET_END_TIMEOUT_US/ Ville Syrjala
2025-11-06 15:38   ` Jani Nikula
2025-11-06 15:52   ` [PATCH v3 07/10] drm/i915/cx0: s/XELPDP_PORT_RESET_END_TIMEOUT/XELPDP_PORT_RESET_END_TIMEOUT_MS/ Ville Syrjala
2025-11-06 15:20 ` [PATCH v2 08/10] drm/i915/ltphy: Nuke bogus weird timeouts Ville Syrjala
2025-11-06 15:41   ` Jani Nikula
2025-11-06 15:20 ` [PATCH v2 09/10] drm/i915/hdcp: Use the default 2 usec fast polling timeout Ville Syrjala
2025-11-06 15:20 ` [PATCH v2 10/10] drm/i915/pmdemand: " Ville Syrjala
2025-11-06 15:42 ` ✓ CI.KUnit: success for drm/i915: Stop the intel_de_wait_custom() abuse (rev2) Patchwork
2025-11-06 15:43 ` [PATCH v2 00/10] drm/i915: Stop the intel_de_wait_custom() abuse Jani Nikula
2025-11-06 16:10   ` Ville Syrjälä
2025-11-06 17:05     ` Jani Nikula
2025-11-06 16:01 ` ✗ CI.checksparse: warning for drm/i915: Stop the intel_de_wait_custom() abuse (rev2) Patchwork
2025-11-06 16:25 ` ✓ Xe.CI.BAT: success " Patchwork
2025-11-06 16:32 ` ✓ CI.KUnit: success for drm/i915: Stop the intel_de_wait_custom() abuse (rev3) Patchwork
2025-11-06 16:47 ` ✗ CI.checksparse: warning " Patchwork
2025-11-06 17:08 ` ✓ Xe.CI.BAT: success " Patchwork
2025-11-07 13:01 ` ✗ Xe.CI.Full: failure " Patchwork
2025-11-07 18:44 ` [PATCH v2 00/10] drm/i915: Stop the intel_de_wait_custom() abuse Ville Syrjälä

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=1ea7dbfb599850b27e8f931e563b68d3d1c83d19@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).