From: John Harrison <John.C.Harrison@Intel.com>
To: Intel-GFX@Lists.FreeDesktop.Org
Subject: Re: [PATCH v7 0/8] Convert requests to use struct fence
Date: Fri, 22 Apr 2016 16:37:10 +0100 [thread overview]
Message-ID: <571A4526.9070402@Intel.com> (raw)
In-Reply-To: <1461172195-3959-1-git-send-email-John.C.Harrison@Intel.com>
This patch series can be pulled from
'ssh://people.freedesktop.org/~johnharr/scheduler' as the 'fence' branch.
On 20/04/2016 18:09, John.C.Harrison@Intel.com wrote:
> From: John Harrison <John.C.Harrison@Intel.com>
>
> There is a construct in the linux kernel called 'struct fence' that is
> intended to keep track of work that is executed on hardware. I.e. it
> solves the basic problem that the drivers 'struct
> drm_i915_gem_request' is trying to address. The request structure does
> quite a lot more than simply track the execution progress so is very
> definitely still required. However, the basic completion status side
> could be updated to use the ready made fence implementation and gain
> all the advantages that provides.
>
> Using the struct fence object also has the advantage that the fence
> can be used outside of the i915 driver (by other drivers or by
> userland applications). That is the basis of the dma-buff
> synchronisation API and allows asynchronous tracking of work
> completion. In this case, it allows applications to be signalled
> directly when a batch buffer completes without having to make an IOCTL
> call into the driver.
>
> Note that in order to allow the full fence API to be used (e.g.
> merging multiple fences together), the driver needs to provide an
> incrementing timeline for the fence. Currently this timeline is
> specific to the fence code as it must be per context. There is future
> work planned to make the driver's internal seqno value also be per
> context rather than driver global (VIZ-7443). Once this is done the
> fence specific timeline code can be dropped in favour of just using
> the driver's seqno value.
>
> This is work that was planned since the conversion of the driver from
> being seqno value based to being request structure based. This patch
> series does that work.
>
> An IGT test to exercise the fence support from user land is in
> progress and will follow. Android already makes extensive use of
> fences for display composition. Real world linux usage is planned in
> the form of Jesse's page table sharing / bufferless execbuf support.
> There is also a plan that Wayland (and others) could make use of it in
> a similar manner to Android.
>
> v2: Updated for review comments by various people and to add support
> for Android style 'native sync'.
>
> v3: Updated from review comments by Tvrtko Ursulin. Also moved sync
> framework out of staging and improved request completion handling.
>
> v4: Fixed patch tag (should have been PATCH not RFC). Corrected
> ownership of one patch which had passed through many hands before
> reaching me. Fixed a bug introduced in v3 and updated for review
> comments.
>
> v5: Removed de-staging and further updates to Android sync code. The
> de-stage is now being handled by someone else. The sync integration to
> the i915 driver will be a separate patch set that can only land after
> the external de-stage has been completed.
>
> Assorted changes based on review comments and style checker fixes.
> Most significant change is fixing up the fake lost interrupt support
> for the 'drv_missed_irq_hang' IGT test and improving the wait request
> latency.
>
> v6: Updated to newer nigthly and resolved conflicts around updates
> to the wait_request optimisations.
>
> v7: Updated to newer nightly and resolved conflicts around massive
> ring -> engine rename and interface change to get_seqno(). Also fixed
> up a race condition issue with stale request pointers in file client
> lists and added a minor optimisation to not acquire spinlocks when a
> list is empty and does not need processing.
>
> [Patches against drm-intel-nightly tree fetched 13/04/2016]
>
> John Harrison (8):
> drm/i915: Convert requests to use struct fence
> drm/i915: Removed now redudant parameter to i915_gem_request_completed()
> drm/i915: Add per context timelines to fence object
> drm/i915: Fix clean up of file client list on execbuff failure
> drm/i915: Delay the freeing of requests until retire time
> drm/i915: Interrupt driven fences
> drm/i915: Updated request structure tracing
> drm/i915: Cache last IRQ seqno to reduce IRQ overhead
>
> drivers/gpu/drm/i915/i915_debugfs.c | 7 +-
> drivers/gpu/drm/i915/i915_drv.h | 74 +++--
> drivers/gpu/drm/i915/i915_gem.c | 443 ++++++++++++++++++++++++++---
> drivers/gpu/drm/i915/i915_gem_context.c | 14 +
> drivers/gpu/drm/i915/i915_gem_execbuffer.c | 6 +-
> drivers/gpu/drm/i915/i915_irq.c | 3 +-
> drivers/gpu/drm/i915/i915_trace.h | 14 +-
> drivers/gpu/drm/i915/intel_display.c | 4 +-
> drivers/gpu/drm/i915/intel_lrc.c | 13 +
> drivers/gpu/drm/i915/intel_pm.c | 6 +-
> drivers/gpu/drm/i915/intel_ringbuffer.c | 5 +
> drivers/gpu/drm/i915/intel_ringbuffer.h | 12 +
> 12 files changed, 513 insertions(+), 88 deletions(-)
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2016-04-22 15:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 17:09 [PATCH v7 0/8] Convert requests to use struct fence John.C.Harrison
2016-04-20 17:09 ` [PATCH v7 1/8] drm/i915: " John.C.Harrison
2016-04-21 7:06 ` Maarten Lankhorst
2016-04-21 10:26 ` John Harrison
2016-04-21 11:12 ` Maarten Lankhorst
2016-04-21 7:09 ` Maarten Lankhorst
2016-04-20 17:09 ` [PATCH v7 2/8] drm/i915: Removed now redudant parameter to i915_gem_request_completed() John.C.Harrison
2016-04-21 7:19 ` Maarten Lankhorst
2016-04-21 10:18 ` John Harrison
2016-04-20 17:09 ` [PATCH v7 3/8] drm/i915: Add per context timelines to fence object John.C.Harrison
2016-04-20 17:44 ` Chris Wilson
2016-04-21 11:37 ` John Harrison
2016-04-20 17:09 ` [PATCH v7 4/8] drm/i915: Fix clean up of file client list on execbuff failure John.C.Harrison
2016-04-21 7:20 ` Maarten Lankhorst
2016-04-21 10:15 ` John Harrison
2016-04-20 17:09 ` [PATCH v7 5/8] drm/i915: Delay the freeing of requests until retire time John.C.Harrison
2016-04-21 7:41 ` Maarten Lankhorst
2016-04-20 17:09 ` [PATCH v7 6/8] drm/i915: Interrupt driven fences John.C.Harrison
2016-04-21 7:38 ` Maarten Lankhorst
2016-04-20 17:09 ` [PATCH v7 7/8] drm/i915: Updated request structure tracing John.C.Harrison
2016-04-20 17:09 ` [PATCH v7 8/8] drm/i915: Cache last IRQ seqno to reduce IRQ overhead John.C.Harrison
2016-04-22 15:37 ` John Harrison [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=571A4526.9070402@Intel.com \
--to=john.c.harrison@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.