Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: <intel-xe@lists.freedesktop.org>,
	<intel-gfx@lists.freedesktop.org>, <imre.deak@intel.com>,
	<maarten.lankhorst@linux.intel.com>
Subject: Re: [PATCH v2] drm/i915/display: Fix BMG CCS modifiers
Date: Fri, 30 Aug 2024 17:12:05 -0400	[thread overview]
Message-ID: <ZtI1pZVxWHQWarPK@intel.com> (raw)
In-Reply-To: <20240830130142.440071-1-juhapekka.heikkila@gmail.com>

On Fri, Aug 30, 2024 at 04:01:42PM +0300, Juha-Pekka Heikkila wrote:
> Let I915_FORMAT_MOD_4_TILED_BMG_CCS show up as supported modifier
> 
> Fixes: 97c6efb36497 ("drm/i915/display: Plane capability for 64k phys alignment")
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> v2: Do platform comparison w/o checking for gfx version
> 
>  drivers/gpu/drm/i915/display/skl_universal_plane.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane.c b/drivers/gpu/drm/i915/display/skl_universal_plane.c
> index 9452cad41d07..616f5d40a739 100644
> --- a/drivers/gpu/drm/i915/display/skl_universal_plane.c
> +++ b/drivers/gpu/drm/i915/display/skl_universal_plane.c
> @@ -2453,6 +2453,9 @@ static u8 skl_get_plane_caps(struct drm_i915_private *i915,
>  	if (gen12_plane_has_mc_ccs(i915, plane_id))
>  		caps |= INTEL_PLANE_CAP_CCS_MC;
>  
> +	if (IS_BATTLEMAGE(i915) || ((DISPLAY_VER(i915)) >= 20 && IS_DGFX(i915)))

Please let's use only the display version.

either display_ver == 14 && dgfx
or display_ver >=14 && dgfx if you want to be future proof.
But we should avoid the platform check if we can.
The design restriction is at display_14 ip block on bmg itself.


> +		caps |= INTEL_PLANE_CAP_NEED64K_PHYS;
> +
>  	return caps;
>  }
>  
> -- 
> 2.45.2
> 

  parent reply	other threads:[~2024-08-30 21:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-30 13:01 [PATCH v2] drm/i915/display: Fix BMG CCS modifiers Juha-Pekka Heikkila
2024-08-30 13:14 ` ✓ CI.Patch_applied: success for drm/i915/display: Fix BMG CCS modifiers (rev2) Patchwork
2024-08-30 13:15 ` ✓ CI.checkpatch: " Patchwork
2024-08-30 13:16 ` ✓ CI.KUnit: " Patchwork
2024-08-30 13:39 ` ✓ CI.Build: " Patchwork
2024-08-30 13:41 ` ✓ CI.Hooks: " Patchwork
2024-08-30 13:43 ` ✗ CI.checksparse: warning " Patchwork
2024-08-30 14:15 ` ✓ CI.BAT: success " Patchwork
2024-08-30 21:12 ` Rodrigo Vivi [this message]
2024-08-31  1:03 ` ✗ CI.FULL: failure " Patchwork

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=ZtI1pZVxWHQWarPK@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=maarten.lankhorst@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox