From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 3/5] drm/i915: drop redundant warnings on not holding dpio_lock
Date: Thu, 23 May 2013 11:07:41 -0700 [thread overview]
Message-ID: <20130523110741.25e29c1d@jbarnes-desktop> (raw)
In-Reply-To: <43522403aa02959d22db1241bdfda3c4ba13aadf.1369225741.git.jani.nikula@intel.com>
On Wed, 22 May 2013 15:36:18 +0300
Jani Nikula <jani.nikula@intel.com> wrote:
> The lower level sideband read/write functions already do this.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/intel_dp.c | 6 ------
> drivers/gpu/drm/i915/intel_hdmi.c | 4 ----
> 2 files changed, 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index 3426a61..76d950e 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -1442,8 +1442,6 @@ static void intel_pre_enable_dp(struct intel_encoder *encoder)
> int pipe = intel_crtc->pipe;
> u32 val;
>
> - WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
> -
> val = intel_dpio_read(dev_priv, DPIO_DATA_LANE_A(port));
> val = 0;
> if (pipe)
> @@ -1470,8 +1468,6 @@ static void intel_dp_pre_pll_enable(struct intel_encoder *encoder)
> if (!IS_VALLEYVIEW(dev))
> return;
>
> - WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
> -
> /* Program Tx lane resets to default */
> intel_dpio_write(dev_priv, DPIO_PCS_TX(port),
> DPIO_PCS_TX_LANE2_RESET |
> @@ -1622,8 +1618,6 @@ static uint32_t intel_vlv_signal_levels(struct intel_dp *intel_dp)
> uint8_t train_set = intel_dp->train_set[0];
> int port = vlv_dport_to_channel(dport);
>
> - WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
> -
> switch (train_set & DP_TRAIN_PRE_EMPHASIS_MASK) {
> case DP_TRAIN_PRE_EMPHASIS_0:
> preemph_reg_value = 0x0004000;
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 18f8ce0..83b63d7 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1018,8 +1018,6 @@ static void intel_hdmi_pre_enable(struct intel_encoder *encoder)
> if (!IS_VALLEYVIEW(dev))
> return;
>
> - WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
> -
> /* Enable clock channels for this port */
> val = intel_dpio_read(dev_priv, DPIO_DATA_LANE_A(port));
> val = 0;
> @@ -1063,8 +1061,6 @@ static void intel_hdmi_pre_pll_enable(struct intel_encoder *encoder)
> if (!IS_VALLEYVIEW(dev))
> return;
>
> - WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
> -
> /* Program Tx lane resets to default */
> intel_dpio_write(dev_priv, DPIO_PCS_TX(port),
> DPIO_PCS_TX_LANE2_RESET |
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
--
Jesse Barnes, Intel Open Source Technology Center
next prev parent reply other threads:[~2013-05-23 18:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 12:36 [PATCH v2 0/5] drm/i915: sideband refactoring Jani Nikula
2013-05-22 12:36 ` [PATCH v2 1/5] drm/i915: group sideband register accessors to a new file Jani Nikula
2013-05-23 18:07 ` Jesse Barnes
2013-05-22 12:36 ` [PATCH v2 2/5] drm/i915: refactor VLV IOSF sideband accessors to use one helper Jani Nikula
2013-05-22 15:34 ` Jesse Barnes
2013-05-22 12:36 ` [PATCH v2 3/5] drm/i915: drop redundant warnings on not holding dpio_lock Jani Nikula
2013-05-23 18:07 ` Jesse Barnes [this message]
2013-05-22 12:36 ` [PATCH v2 4/5] drm/i915: rename VLV IOSF sideband functions logically Jani Nikula
2013-05-23 18:08 ` Jesse Barnes
2013-05-22 12:36 ` [PATCH v2 5/5] drm/i915: change VLV IOSF sideband accessors to not return error code Jani Nikula
2013-05-23 18:06 ` Jesse Barnes
2013-05-23 21:26 ` Daniel Vetter
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=20130523110741.25e29c1d@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=intel-gfx@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox