Commit Graph
10 Commits
Author SHA1 Message Date
Erik Gilling 43d2228223 sync: refactor sync debug printing
Move driver callbacks to fill strings instead of using seq_files.  This
will allow those values to be used in a future tracepoint patch.

Change-Id: I9b706343e35b11124141fe520e520514a32003d2
Signed-off-by: Erik Gilling <konkers@android.com>
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
2013-01-11 15:05:54 -08:00
Erik Gilling 85bb525ce8 sync: change wait timeout to mirror poll semantics
This change has been squashed with the following change to avoid
a compilation failure.

    Author: Erik Gilling <konkers@android.com>
    Date:   Tue Aug 21 18:43:21 2012 -0700
    sync: fix erase-o in sync_fence_wait

    Signed-off-by: Erik Gilling <konkers@android.com>

Change-Id: Ib38e6d339d41885a33027752690d65a52b6897f6
Signed-off-by: Erik Gilling <konkers@android.com>
[mbohan@codeaurora.org: Fix compilation errors]
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
2013-01-11 15:05:37 -08:00
Erik Gilling 8c9daff58d sync: add reference counting to timelines
If a timeline is destroyed while fences still hold pts on it, the reworked
fence release handler can cause the timeline to be freed before all it's points
are freed.

This change was squashed with the following change to resolve a
compilation failure.

    Author: Erik Gilling <konkers@android.com>
    Date:   Fri Aug 24 13:48:34 2012 -0700

    sync: clean up compiler warnings

    Signed-off-by: Erik Gilling <konkers@android.com>

Change-Id: I1cd8ddb638eded7db9db446ff6b37f3dd165d6c4
Signed-off-by: Erik Gilling <konkers@android.com>
[mbohan@codeaurora.org: Fix compilation errors]
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
2013-01-11 15:04:58 -08:00
Erik Gilling 220411fe58 sync: add internal refcounting to fences
If a fence is released while a timeline that one of it's pts is on is being
signaled, it is possible for that fence to be deleted before it is signaled.
This patch adds a refcount for internal references such as signaled pt
processing.

Change-Id: Ie8605e6fd2ac026c207220a03d84e1c1078ec719
Signed-off-by: Erik Gilling <konkers@android.com>
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
2013-01-11 14:19:33 -08:00
Jeff Boody af31e634e3 base: sync: include struct seq_file to fix compile warning
Fixes missing declaration for struct seq_file.

Change-Id: Id77c47fad3bbee56d0dbe4a85f56f6f388e686d6
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
2012-09-17 23:35:30 -06:00
Erik Gilling c80114fd8b sync: allow async waits to be canceled
In order to allow drivers to cleanly handled teardown we need to allow them
to cancel pending async waits.  To do this cleanly, we move allocation of
sync_fence_waiter to the driver calling sync_async_wait().

Change-Id: Ifcd95648be6ec07026d67f810070a4310f099989
Signed-off-by: Erik Gilling <konkers@android.com>
2012-05-30 13:12:40 -07:00
Erik Gilling 3913bff501 sync: add ioctl to get fence data
Change-Id: I71410aef7e03a52562f7cb15b993ac8441b1fa12
Signed-off-by: Erik Gilling <konkers@android.com>
2012-05-16 13:27:23 -07:00
Erik Gilling 981c8a993d sync: add debugfs support
Change-Id: I8a7ea63e454fbeee1ecf17e6c3caff7c43b24734
Signed-off-by: Erik Gilling <konkers@android.com>
2012-05-16 13:27:23 -07:00
Erik Gilling ad433ba4d1 sync: add timestamps to sync_pts
Change-Id: I2ad855072b86873880769a09a3176e85aa1199d7
Signed-off-by: Erik Gilling <konkers@android.com>
2012-05-16 13:27:23 -07:00
Erik Gilling 010accf8a0 sync: Add synchronization framework
not run through checkpatch yet.

Change-Id: I209f9db2824e0313f467f11ab09e5f54f0a4a6b5
Signed-off-by: Erik Gilling <konkers@android.com>
2012-05-16 13:27:22 -07:00