From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Don't forget to reset blocks when testing lower wm levels
Date: Wed, 12 Dec 2018 21:23:38 +0200 [thread overview]
Message-ID: <20181212192338.GE9144@intel.com> (raw)
In-Reply-To: <20181212191720.3706-1-matthew.d.roper@intel.com>
On Wed, Dec 12, 2018 at 11:17:20AM -0800, Matt Roper wrote:
> During DDB allocation, we try to distribute enough blocks for each plane
> to hit the highest watermark level; if that fails, we retry each lower
> level (which should require fewer blocks) until we find one that's
> possible (or until the whole commit is rejected as impossible). We need
> to reset our running block count when trying each lower level, otherwise
> all lower levels will fail as well.
>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Fixes: d8e8749802 ("drm/i915: Switch to level-based DDB allocation algorithm (v5)")
> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Whoops.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> After waiting for CI results to come out, I accidentally pushed v5 of
> the new DDB algorithm rather than the expected v6. This fixup patch is
> the only difference between those two versions.
>
> drivers/gpu/drm/i915/intel_pm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 6d074f2e69d3..a6c7c11d2c0e 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -4365,6 +4365,7 @@ skl_allocate_pipe_ddb(struct intel_crtc_state *cstate,
> * requirement of active planes.
> */
> for (level = ilk_wm_max_level(dev_priv); level >= 0; level--) {
> + blocks = 0;
> for_each_plane_id_on_crtc(intel_crtc, plane_id) {
> if (plane_id == PLANE_CURSOR)
> continue;
> --
> 2.14.4
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-12-12 19:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-12 19:17 [PATCH] drm/i915: Don't forget to reset blocks when testing lower wm levels Matt Roper
2018-12-12 19:23 ` Ville Syrjälä [this message]
2018-12-12 20:27 ` Matt Roper
2018-12-12 19:58 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-12-12 21:22 ` ✗ Fi.CI.IGT: 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=20181212192338.GE9144@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.d.roper@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.