From: Daniel Vetter <daniel@ffwll.ch>
To: Vandana Kannan <vandana.kannan@intel.com>
Cc: intel-gfx@lists.freedesktop.org, paulo.r.zanoni@intel.com,
rodrigo.vivi@intel.com
Subject: Re: [PATCH 4/7] drm/i915: DRRS calls based on frontbuffer
Date: Thu, 18 Dec 2014 21:15:48 +0100 [thread overview]
Message-ID: <20141218201548.GQ2711@phenom.ffwll.local> (raw)
In-Reply-To: <1418916741-31452-5-git-send-email-vandana.kannan@intel.com>
On Thu, Dec 18, 2014 at 09:02:18PM +0530, Vandana Kannan wrote:
> Calls have been added to invalidate/flush DRRS whenever invalidate/flush is
> called as part of frontbuffer tracking.
> Apart from calls as a result of GEM tracking to fb invalidate/flush, a
> call has been added to invalidate fb obj from crtc_page_flip as well. This
> is to track busyness through flip calls.
> The call to fb_obj_invalidate (in flip) is placed before queuing flip for this
> obj.
>
> drrs_invalidate() and drrs_flush() check for drrs.dp which would be NULL if
> it was setup in drrs_enable(). This covers for the condition when DRRS is
> not supported.
>
> Signed-off-by: Vandana Kannan <vandana.kannan@intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 8 +++--
> drivers/gpu/drm/i915/intel_dp.c | 51 ++++++++++++++++++++++++++++++++
> drivers/gpu/drm/i915/intel_drv.h | 3 ++
> drivers/gpu/drm/i915/intel_frontbuffer.c | 2 ++
> 4 files changed, 61 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 3044af5..448f551 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -9717,6 +9717,11 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
> if (ret)
> goto cleanup_pending;
>
> + i915_gem_track_fb(work->old_fb_obj, obj,
> + INTEL_FRONTBUFFER_PRIMARY(pipe));
> +
> + intel_fb_obj_invalidate(obj, ring);
> +
> work->gtt_offset =
> i915_gem_obj_ggtt_offset(obj) + intel_crtc->dspaddr_offset;
>
> @@ -9741,9 +9746,6 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
> work->flip_queued_vblank = drm_vblank_count(dev, intel_crtc->pipe);
> work->enable_stall_check = true;
>
> - i915_gem_track_fb(work->old_fb_obj, obj,
> - INTEL_FRONTBUFFER_PRIMARY(pipe));
> -
> intel_fbc_disable(dev);
> intel_frontbuffer_flip_prepare(dev, INTEL_FRONTBUFFER_PRIMARY(pipe));
> mutex_unlock(&dev->struct_mutex);
Just to make sure we don't have a communication issue: The above two hunts
is what I'm talking about wrt the pageflip related flush change.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-12-18 20:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-18 15:32 [PATCH v2 0/8] eDP DRRS based on frontbuffer tracking Vandana Kannan
2014-12-18 15:32 ` [PATCH 1/7] drm/i915: Modifying structures related to DRRS Vandana Kannan
2014-12-18 16:29 ` Chris Wilson
2014-12-18 20:13 ` Daniel Vetter
2014-12-18 15:32 ` [PATCH 2/7] drm/i915: Initialize DRRS delayed work Vandana Kannan
2014-12-18 15:32 ` [PATCH 3/7] drm/i915: Enable/disable DRRS Vandana Kannan
2014-12-18 15:32 ` [PATCH 4/7] drm/i915: DRRS calls based on frontbuffer Vandana Kannan
2014-12-18 20:15 ` Daniel Vetter [this message]
2014-12-18 15:32 ` [PATCH 5/7] drm/i915/bdw: Add support for DRRS to switch RR Vandana Kannan
2014-12-18 15:32 ` [PATCH 6/7] drm/i915: Support for RR switching on VLV Vandana Kannan
2014-12-18 15:32 ` [PATCH 7/7] drm/i915: Enable eDP DRRS for CHV Vandana Kannan
2014-12-19 9:42 ` shuang.he
2014-12-18 20:15 ` [PATCH v2 0/8] eDP DRRS based on frontbuffer tracking Daniel Vetter
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=20141218201548.GQ2711@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=vandana.kannan@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