From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly
Date: Fri, 10 Jan 2014 13:05:21 -0800 [thread overview]
Message-ID: <20140110130521.79c4b9c6@jbarnes-desktop> (raw)
In-Reply-To: <1389387741-5384-1-git-send-email-jbarnes@virtuousgeek.org>
On Fri, 10 Jan 2014 13:02:20 -0800
Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> We were apparently relying on the defaults on BDW, which resulted in no
> hotplug or AUX interrupts.
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=72834
> References: https://bugs.freedesktop.org/show_bug.cgi?id=72833
> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> ---
> drivers/gpu/drm/i915/i915_irq.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 261254a..f88e265 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -2763,13 +2763,15 @@ static void ibx_irq_postinstall(struct drm_device *dev)
> mask = SDE_GMBUS | SDE_AUX_MASK | SDE_TRANSB_FIFO_UNDER |
> SDE_TRANSA_FIFO_UNDER | SDE_POISON;
> } else {
> - mask = SDE_GMBUS_CPT | SDE_AUX_MASK_CPT | SDE_ERROR_CPT;
> + mask = SDE_GMBUS_CPT | SDE_AUX_MASK_CPT | SDE_ERROR_CPT |
> + SDE_HOTPLUG_MASK_CPT;
>
> I915_WRITE(SERR_INT, I915_READ(SERR_INT));
> }
>
> I915_WRITE(SDEIIR, I915_READ(SDEIIR));
> I915_WRITE(SDEIMR, ~mask);
> + I915_WRITE(SDEIER, mask);
> }
>
> static void gen5_gt_irq_postinstall(struct drm_device *dev)
Note we still don't handle port A interrupts. Not sure if that's
important since we don't really use them yet, but if we want to add
that we'd probably need to add some new code to the hpd functions to
deal with walking both CPU and PCH masks.
--
Jesse Barnes, Intel Open Source Technology Center
next prev parent reply other threads:[~2014-01-10 21:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 21:02 [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly Jesse Barnes
2014-01-10 21:02 ` [PATCH 2/2] drm/i915: get proper hwrawclk freq on BDW Jesse Barnes
2014-01-10 21:05 ` Jesse Barnes [this message]
2014-01-10 21:10 ` [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly Paulo Zanoni
2014-01-10 21:09 ` Paulo Zanoni
2014-01-10 21:13 ` [PATCH] drm/i915/bdw: make sure south port interrupts are enabled properly v2 Jesse Barnes
2014-01-10 21:17 ` Paulo Zanoni
2014-01-10 21:19 ` Jesse Barnes
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=20140110130521.79c4b9c6@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox