All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Nemesa Garg <nemesa.garg@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/6] drm/i915/display: Disable joiner and pfit
Date: Fri, 22 Nov 2024 20:45:57 +0200	[thread overview]
Message-ID: <Z0DRZZ91gyhHqVSq@intel.com> (raw)
In-Reply-To: <20241120053838.3794419-2-nemesa.garg@intel.com>

On Wed, Nov 20, 2024 at 11:08:33AM +0530, Nemesa Garg wrote:
> Disable panel fitting if joiner is enabled as
> backporting of joiner part is required in case
> of pfit.
> 
> Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_pfit.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_pfit.c b/drivers/gpu/drm/i915/display/intel_pfit.c
> index 50861aa78a89..e214e19f8174 100644
> --- a/drivers/gpu/drm/i915/display/intel_pfit.c
> +++ b/drivers/gpu/drm/i915/display/intel_pfit.c
> @@ -187,6 +187,9 @@ static int pch_panel_fitting(struct intel_crtc_state *crtc_state,
>  	int pipe_src_h = drm_rect_height(&crtc_state->pipe_src);
>  	int ret, x, y, width, height;
>  
> +	if (crtc_state->joiner_pipes)
> +		return 0;
> +

This needs to return an error, and it needs to be checked after we've
determined that pfit is in fact needed.

>  	/* Native modes don't need fitting */
>  	if (adjusted_mode->crtc_hdisplay == pipe_src_w &&
>  	    adjusted_mode->crtc_vdisplay == pipe_src_h &&
> -- 
> 2.25.1

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2024-11-22 18:46 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20  5:38 [PATCH 0/6] Consider joiner calculation for panel fitting Nemesa Garg
2024-11-20  5:38 ` [PATCH 1/6] drm/i915/display: Disable joiner and pfit Nemesa Garg
2024-11-22 18:45   ` Ville Syrjälä [this message]
2024-11-20  5:38 ` [PATCH v5 2/6] drm/i915/display: Add gmch_panel_fitting in all encoders Nemesa Garg
2024-11-22 18:47   ` Ville Syrjälä
2024-11-22 18:48   ` Ville Syrjälä
2024-11-20  5:38 ` [PATCH 3/6] drm/i915/display: Replace adjusted mode with pipe mode Nemesa Garg
2024-11-22 20:01   ` Ville Syrjälä
2024-12-11  9:19     ` Garg, Nemesa
2024-11-20  5:38 ` [PATCH v5 4/6] drm/i915/display: Call panel_fitting from pipe_config Nemesa Garg
2024-11-20  5:38 ` [PATCH 5/6] drm/i915/dispaly: Allow joiner and pfit Nemesa Garg
2024-11-20  5:38 ` [PATCH 6/6] drm/i915/display: Initialize pipe_src in compute stage Nemesa Garg
2024-11-20  5:49 ` ✓ CI.Patch_applied: success for Consider joiner calculation for panel fitting Patchwork
2024-11-20  5:49 ` ✓ CI.checkpatch: " Patchwork
2024-11-20  5:51 ` ✓ CI.KUnit: " Patchwork
2024-11-20  6:09 ` ✓ CI.Build: " Patchwork
2024-11-20  6:11 ` ✓ CI.Hooks: " Patchwork
2024-11-20  6:12 ` ✗ CI.checksparse: warning " Patchwork
2024-11-20  6:13 ` ✗ Fi.CI.SPARSE: warning for Consider joiner calculation for panel fitting (rev5) Patchwork
2024-11-20  6:33 ` ✗ CI.BAT: failure for Consider joiner calculation for panel fitting Patchwork
2024-11-20  7:27 ` ✓ Fi.CI.BAT: success for Consider joiner calculation for panel fitting (rev5) Patchwork
2024-11-20 17:04 ` ✗ Xe.CI.Full: failure for Consider joiner calculation for panel fitting Patchwork
2024-11-23 13:04 ` ✗ i915.CI.Full: failure for Consider joiner calculation for panel fitting (rev5) 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=Z0DRZZ91gyhHqVSq@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=nemesa.garg@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.