From: Lucas De Marchi <lucas.de.marchi@gmail.com>
To: "José Roberto de Souza" <jose.souza@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Subject: Re: [PATCH v7 1/4] drm/i915/bdw+: Move misc display IRQ handling to it own function
Date: Tue, 6 Aug 2019 16:23:53 -0700 [thread overview]
Message-ID: <20190806232353.GA8519@ldmartin-desk1> (raw)
In-Reply-To: <20190730224753.14907-1-jose.souza@intel.com>
On Tue, Jul 30, 2019 at 03:47:50PM -0700, Jose Souza wrote:
>Just moving it to reduce the tabs and avoid break code lines.
>No behavior changes intended here.
>
>v2:
>- Reading misc display IRQ outside of gen8_de_misc_irq_handler() as
>other irq handlers (Dhinakaran)
>
>Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
>Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
>Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/i915/i915_irq.c | 45 ++++++++++++++++++---------------
> 1 file changed, 25 insertions(+), 20 deletions(-)
>
>diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
>index fbe13bacd5b7..f54744644280 100644
>--- a/drivers/gpu/drm/i915/i915_irq.c
>+++ b/drivers/gpu/drm/i915/i915_irq.c
>@@ -2982,6 +2982,28 @@ static u32 gen8_de_pipe_fault_mask(struct drm_i915_private *dev_priv)
> return GEN8_DE_PIPE_IRQ_FAULT_ERRORS;
> }
>
>+static void
>+gen8_de_misc_irq_handler(struct drm_i915_private *dev_priv, u32 iir)
>+{
>+ bool found = false;
>+
>+ if (iir & GEN8_DE_MISC_GSE) {
>+ intel_opregion_asle_intr(dev_priv);
>+ found = true;
>+ }
>+
>+ if (iir & GEN8_DE_EDP_PSR) {
>+ u32 psr_iir = I915_READ(EDP_PSR_IIR);
>+
>+ intel_psr_irq_handler(dev_priv, psr_iir);
>+ I915_WRITE(EDP_PSR_IIR, psr_iir);
>+ found = true;
>+ }
>+
>+ if (!found)
>+ DRM_ERROR("Unexpected DE Misc interrupt\n");
>+}
>+
> static irqreturn_t
> gen8_de_irq_handler(struct drm_i915_private *dev_priv, u32 master_ctl)
> {
>@@ -2992,29 +3014,12 @@ gen8_de_irq_handler(struct drm_i915_private *dev_priv, u32 master_ctl)
> if (master_ctl & GEN8_DE_MISC_IRQ) {
> iir = I915_READ(GEN8_DE_MISC_IIR);
> if (iir) {
>- bool found = false;
>-
> I915_WRITE(GEN8_DE_MISC_IIR, iir);
> ret = IRQ_HANDLED;
>-
>- if (iir & GEN8_DE_MISC_GSE) {
>- intel_opregion_asle_intr(dev_priv);
>- found = true;
>- }
>-
>- if (iir & GEN8_DE_EDP_PSR) {
>- u32 psr_iir = I915_READ(EDP_PSR_IIR);
>-
>- intel_psr_irq_handler(dev_priv, psr_iir);
>- I915_WRITE(EDP_PSR_IIR, psr_iir);
>- found = true;
>- }
>-
>- if (!found)
>- DRM_ERROR("Unexpected DE Misc interrupt\n");
>- }
>- else
>+ gen8_de_misc_irq_handler(dev_priv, iir);
>+ } else {
> DRM_ERROR("The master control interrupt lied (DE MISC)!\n");
>+ }
> }
>
> if (INTEL_GEN(dev_priv) >= 11 && (master_ctl & GEN11_DE_HPD_IRQ)) {
>--
>2.22.0
>
>_______________________________________________
>Intel-gfx mailing list
>Intel-gfx@lists.freedesktop.org
>https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2019-08-06 23:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-30 22:47 [PATCH v7 1/4] drm/i915/bdw+: Move misc display IRQ handling to it own function José Roberto de Souza
2019-07-30 22:47 ` [PATCH v7 2/4] drm/i915: Add _TRANS2() José Roberto de Souza
2019-08-06 23:31 ` Lucas De Marchi
2019-08-13 23:03 ` Souza, Jose
2019-07-30 22:47 ` [PATCH v7 3/4] drm/i915/psr: Make PSR registers relative to transcoders José Roberto de Souza
2019-07-30 22:47 ` [PATCH v7 4/4] drm/i915: Add transcoder restriction to PSR2 José Roberto de Souza
2019-08-12 13:50 ` Gupta, Anshuman
2019-08-12 17:39 ` Souza, Jose
2019-07-30 23:31 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v7,1/4] drm/i915/bdw+: Move misc display IRQ handling to it own function Patchwork
2019-07-30 23:51 ` ✓ Fi.CI.BAT: success " Patchwork
2019-08-01 14:15 ` ✓ Fi.CI.IGT: " Patchwork
2019-08-06 23:23 ` Lucas De Marchi [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=20190806232353.GA8519@ldmartin-desk1 \
--to=lucas.de.marchi@gmail.com \
--cc=dhinakaran.pandiyan@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jose.souza@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