From: Daniel Vetter <daniel@ffwll.ch>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: fix FDI_RX_CHICKEN register read masking
Date: Mon, 29 Oct 2012 21:52:18 +0100 [thread overview]
Message-ID: <20121029205218.GV5691@phenom.ffwll.local> (raw)
In-Reply-To: <1351531602-17161-1-git-send-email-jani.nikula@intel.com>
On Mon, Oct 29, 2012 at 07:26:42PM +0200, Jani Nikula wrote:
> Mask the value, not the register. Spotted while reading the code.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> ---
>
> Only compile tested. Is there a bug that might match this?
> ---
> drivers/gpu/drm/i915/intel_display.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index a5be346..6f8cf2a 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -2804,8 +2804,8 @@ static void ironlake_fdi_disable(struct drm_crtc *crtc)
> if (HAS_PCH_IBX(dev)) {
> I915_WRITE(FDI_RX_CHICKEN(pipe), FDI_RX_PHASE_SYNC_POINTER_OVR);
> I915_WRITE(FDI_RX_CHICKEN(pipe),
> - I915_READ(FDI_RX_CHICKEN(pipe) &
> - ~FDI_RX_PHASE_SYNC_POINTER_EN));
> + I915_READ(FDI_RX_CHICKEN(pipe)) &
> + ~FDI_RX_PHASE_SYNC_POINTER_EN);
On second look, we write the same register in the previous line, and the
w/a seems to be to set FDI_RX_PHASE_SYNC_POINTER_OVR to enable the logic,
then keep always set FDI_RX_PHASE_SYNC_POINTER_OVR and toggle
~FDI_RX_PHASE_SYNC_POINTER_EN before/after enabling the pc transcoder. So
the right things seems to be to simply kill the 2nd write.
-Daniel
> } else if (HAS_PCH_CPT(dev)) {
> cpt_phase_pointer_disable(dev, pipe);
> }
> --
> 1.7.9.5
>
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2012-10-29 20:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 17:26 [PATCH] drm/i915: fix FDI_RX_CHICKEN register read masking Jani Nikula
2012-10-29 17:49 ` Lespiau, Damien
2012-10-29 20:27 ` Daniel Vetter
2012-10-29 20:52 ` Daniel Vetter [this message]
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=20121029205218.GV5691@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--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