All of lore.kernel.org
 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
Subject: Re: [PATCH 4/7] drm/i915: Extend GEN9_PIPE_PLANE_FLIP_DONE() to cover all universal planes
Date: Thu, 06 Jun 2024 14:31:30 +0300	[thread overview]
Message-ID: <87zfry9ujx.fsf@intel.com> (raw)
In-Reply-To: <20240605111832.21373-5-ville.syrjala@linux.intel.com>

On Wed, 05 Jun 2024, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> GEN9_PIPE_PLANE_FLIP_DONE() only works for planes 1-4. Extend
> it handle planes 5-7 as well. Somewhat annoyingly the bits are
> spread around into two distinct clumps.
>
> Currently this doesn't achieve anything, but if we ever extend
> async flip support to more than just the first plane then we'll
> need this.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/i915_reg.h | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 8e1053c60284..4d5438ce73a2 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -2631,6 +2631,9 @@
>  #define  GEN11_PIPE_PLANE6_FAULT	REG_BIT(21) /* icl/tgl */
>  #define  GEN11_PIPE_PLANE5_FAULT	REG_BIT(20) /* icl+ */
>  #define  GEN12_PIPE_VBLANK_UNMOD	REG_BIT(19) /* tgl+ */
> +#define  GEN11_PIPE_PLANE7_FLIP_DONE	REG_BIT(18) /* icl/tgl */
> +#define  GEN11_PIPE_PLANE6_FLIP_DONE	REG_BIT(17) /* icl/tgl */

Need to be careful with these, as they're pipe DMC error and plane ATS
fault on mtl+.

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

> +#define  GEN11_PIPE_PLANE5_FLIP_DONE	REG_BIT(16) /* icl+ */
>  #define  GEN9_PIPE_CURSOR_FAULT		REG_BIT(11) /* skl+ */
>  #define  GEN9_PIPE_PLANE4_FAULT		REG_BIT(10) /* skl+ */
>  #define  GEN8_PIPE_CURSOR_FAULT		REG_BIT(10) /* bdw */
> @@ -2645,7 +2648,8 @@
>  #define  GEN9_PIPE_PLANE2_FLIP_DONE	REG_BIT(4) /* skl+ */
>  #define  GEN8_PIPE_PRIMARY_FLIP_DONE	REG_BIT(4) /* bdw */
>  #define  GEN9_PIPE_PLANE1_FLIP_DONE	REG_BIT(3) /* skl+ */
> -#define  GEN9_PIPE_PLANE_FLIP_DONE(p)	REG_BIT(3 + (p)) /* skl+ */
> +#define  GEN9_PIPE_PLANE_FLIP_DONE(plane_id) \
> +	REG_BIT(((plane_id) >= PLANE_5 ? 16 - PLANE_5 : 3 - PLANE_1) + (plane_id)) /* skl+ */
>  #define  GEN8_PIPE_SCAN_LINE_EVENT	REG_BIT(2)
>  #define  GEN8_PIPE_VSYNC		REG_BIT(1)
>  #define  GEN8_PIPE_VBLANK		REG_BIT(0)

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-06-06 11:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-05 11:18 [PATCH 0/7] drm/i915: bdw+ pipe interrupt stuff Ville Syrjala
2024-06-05 11:18 ` [PATCH 1/7] drm/i915: Use REG_BIT() for bdw+ pipe interrupts Ville Syrjala
2024-06-05 11:18 ` [PATCH 2/7] drm/i915: Document bdw+ pipe interrupt bits Ville Syrjala
2024-06-05 11:18 ` [PATCH 3/7] drm/i915: Sort " Ville Syrjala
2024-06-05 11:18 ` [PATCH 4/7] drm/i915: Extend GEN9_PIPE_PLANE_FLIP_DONE() to cover all universal planes Ville Syrjala
2024-06-06 11:31   ` Jani Nikula [this message]
2024-06-05 11:18 ` [PATCH 5/7] drm/i915: Nuke the intermediate pipe fault bitmasks Ville Syrjala
2024-06-05 11:18 ` [PATCH 6/7] drm/i915: Enable pipeDMC fault interrupts on tgl+ Ville Syrjala
2024-06-06 11:43   ` Jani Nikula
2024-06-06 12:56     ` Ville Syrjälä
2024-06-05 11:18 ` [PATCH 7/7] drm/i915: Enable plane/pipeDMC ATS fault interrupts on mtl Ville Syrjala
2024-06-05 14:09 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: bdw+ pipe interrupt stuff Patchwork
2024-06-05 14:18 ` ✓ Fi.CI.BAT: success " Patchwork
2024-06-05 18:41 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-06-06 11:44 ` [PATCH 0/7] " Jani Nikula

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=87zfry9ujx.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.