All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/gen9: Disable FBC on planes which have an unsupported config.
Date: Wed, 30 Jan 2019 14:40:56 +0200	[thread overview]
Message-ID: <56d70d9e-7404-f34e-61cd-d83d99752bea@gmail.com> (raw)
In-Reply-To: <20190129125729.30538-1-gwan-gyeong.mun@intel.com>

On 29.1.2019 14.57, Gwan-gyeong Mun wrote:
> Enabling FBC on a plane which has a combination of a 180-degree rotation
> with having a Height that isn't divisible by 4 causes FIFO underrun,
> so disable FBC on such a config.
> 
> Testcase: igt/kms_rotation_crc/multiplane-rotation-cropping-top
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105604
> 
> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
> ---
>   drivers/gpu/drm/i915/intel_fbc.c | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c
> index ccd5e110a19c..de4b5781922c 100644
> --- a/drivers/gpu/drm/i915/intel_fbc.c
> +++ b/drivers/gpu/drm/i915/intel_fbc.c
> @@ -793,6 +793,18 @@ static bool intel_fbc_can_activate(struct intel_crtc *crtc)
>   		return false;
>   	}
>   
> +	/*
> +	 * Work around a problem on GEN9 HW, where enabling FBC on a plane
> +	 * which has a combination of a 180-degree rotation with having a Height
> +	 * that isn't divisible by 4 causes FIFO underrun.
> +	 */
> +	if (IS_GEN(dev_priv, 9) &&
> +	    (cache->plane.rotation == DRM_MODE_ROTATE_180) &&
> +	    (fbc->state_cache.plane.src_h & 3)) {
> +		fbc->no_fbc_reason = "plane has a combination of a 180-degree rotation with a misaligned Height";
> +		return false;
> +	}
> +
>   	return true;
>   }
>   
> 

I see there extra parenthesis but it's in line with style used just 
above this piece of code so I guess it's ok.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      parent reply	other threads:[~2019-01-30 12:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-29 12:57 [PATCH] drm/i915/gen9: Disable FBC on planes which have an unsupported config Gwan-gyeong Mun
2019-01-29 13:16 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-01-29 13:34 ` ✓ Fi.CI.BAT: success " Patchwork
2019-01-29 16:42 ` ✓ Fi.CI.IGT: " Patchwork
2019-01-30 12:40 ` Juha-Pekka Heikkila [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=56d70d9e-7404-f34e-61cd-d83d99752bea@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=gwan-gyeong.mun@intel.com \
    --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 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.