[PATCH 04/30] staging: sync: Add debugfs support

2013-02-28 Thread John Stultz
From: Erik Gilling Add support for debugfs Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message] Signed-off-by: John Stul

[git pull] drm merge for 3.9-rc1

2013-02-28 Thread Josh Boyer
On Thu, Feb 28, 2013 at 8:38 AM, Alex Deucher wrote: > On Wed, Feb 27, 2013 at 8:14 PM, Josh Boyer wrote: >> On Wed, Feb 27, 2013 at 7:01 PM, Josh Boyer wrote: >>> On Wed, Feb 27, 2013 at 3:20 PM, Josh Boyer wrote: On Wed, Feb 27, 2013 at 11:34 AM, Josh Boyer wrote: > On Mon, Feb 25,

[git pull] drm merge for 3.9-rc1

2013-02-28 Thread Josh Boyer
On Thu, Feb 28, 2013 at 10:09 AM, Alex Deucher wrote: > On Thu, Feb 28, 2013 at 8:44 AM, Josh Boyer wrote: >> On Thu, Feb 28, 2013 at 8:38 AM, Alex Deucher >> wrote: >>> ca57802e521de54341efc8a56f70571f79ffac72 is the first bad commit >> >> So I don't think that's actually the cause

[PATCH 05/30] staging: sw_sync: Add debug support

2013-02-28 Thread John Stultz
From: Erik Gilling Add debugfs support hooks. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message] Signed-off-by: John S

[PATCH 06/30] staging: sync: Add ioctl to get fence data

2013-02-28 Thread John Stultz
From: Erik Gilling Add ioctl to get fence data Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Commit message tweaks] Signed-off-by: Jo

[PATCH 07/30] staging: sw_sync: Add fill_driver_data support

2013-02-28 Thread John Stultz
From: Erik Gilling Add fill_driver_data support to export fence data to ioctl Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commi

[PATCH 08/30] staging: sync: Add poll support

2013-02-28 Thread John Stultz
From: Erik Gilling Support poll on sync fence Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message] Signed-off-by: John S

[PATCH 09/30] staging: sync: Allow async waits to be canceled

2013-02-28 Thread John Stultz
From: Erik Gilling 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(). Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob

[PATCH 10/30] staging: sync: Export sync API symbols

2013-02-28 Thread John Stultz
From: Erik Gilling This is needed to allow modules to link against the sync subsystem Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-

[PATCH 11/30] staging: sw_sync: Export sw_sync API

2013-02-28 Thread John Stultz
From: Erik Gilling Needed to let modules link against sw_sync. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- d

[PATCH 12/30] staging: sync: Reorder sync_fence_release

2013-02-28 Thread John Stultz
From: Erik Gilling Previously fence's pts were freed before the were the fence was removed from the global fence list. This led to a race with the debugfs support where it would iterate over sync_pts that had been freed. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark

[PATCH 13/30] staging: sync: Optimize fence merges

2013-02-28 Thread John Stultz
From: Erik Gilling If the two fences being merged contain sync_pts from the same timeline, those two pts will be collapsed into a single pt representing the latter of the two. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel

[PATCH 14/30] staging: sync: Add internal refcounting to fences

2013-02-28 Thread John Stultz
From: Erik Gilling 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. Cc: Maarten Lankhorst Cc: Erik Gilling

[PATCH 15/30] staging: sync: Add reference counting to timelines

2013-02-28 Thread John Stultz
From: Erik Gilling 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. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: d

[PATCH 16/30] staging: sync: Fix error paths

2013-02-28 Thread John Stultz
From: Rebecca Schultz Zavin Check the return value of get_unused_fd to make sure a valid file descriptor is returned. Make sure to call put_unused_fd even if an error occurs before the fd can be used. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal C

[PATCH 17/30] staging: sw_sync: Fix error paths

2013-02-28 Thread John Stultz
From: Rebecca Schultz Zavin Check the return value of get_unused_fd to make sure a valid file descriptor is returned. Make sure to call put_unused_fd even if an error occurs before the fd can be used. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal C

[PATCH 18/30] staging: sync: Change wait timeout to mirror poll semantics

2013-02-28 Thread John Stultz
From: Erik Gilling Change wait timeout to act like poll Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Added commit message, squished

[PATCH 19/30] staging: sync: Dump sync state to console on timeout

2013-02-28 Thread John Stultz
From: Erik Gilling If we hit a timeout, dump sync state to console Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message,

[PATCH 20/30] staging: sync: Improve timeout dump messages

2013-02-28 Thread John Stultz
From: Erik Gilling Improve the output of the timeout dumps, including the fence pointer. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz

[PATCH 21/30] staging: sync: Dump sync state on fence errors

2013-02-28 Thread John Stultz
From: Erik Gilling When we get a bad status, dump sync state Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Added commit message] Sign

[PATCH 22/30] staging: sync: Protect unlocked access to fence status

2013-02-28 Thread John Stultz
From: Erik Gilling Fence status is checked outside of locks in both sync_fence_wait and sync_fence_poll. This patch adds propper barrier protection in these cases to avoid seeing stale status. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg

[PATCH 23/30] staging: sync: Update new fence status with sync_fence_signal_pt

2013-02-28 Thread John Stultz
From: Erik Gilling If a fence's pt is signaled before sync_fence_create is called, the fence will never transition into the signaled state. This also address a tiny race if a merged fence's pt after sync_fence_get_status checks it's status and before fence->status is updated. Cc: Maarten Lankho

[PATCH 24/30] staging: sync: Use proper barriers when waiting indefinitely

2013-02-28 Thread John Stultz
From: Erik Gilling The previous fix only addressed waiting with a timeout. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John St

[PATCH 25/30] staging: sync: Refactor sync debug printing

2013-02-28 Thread John Stultz
From: Erik Gilling Move driver callbacks to fill strings instead of using seq_files. This will allow those values to be used in a future tracepoint patch. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop

[PATCH 26/30] staging: sw_sync: Convert to use new value_str debug ops

2013-02-28 Thread John Stultz
From: Erik Gilling Switch from print_obj/print_pt to the new timeline_value_str and pt_value_str ops. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gill

[PATCH 27/30] staging: sync: Add tracepoint support

2013-02-28 Thread John Stultz
From: Erik Gilling Add support for tracepoints Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Whitespace changes, add commit message,

[PATCH 28/30] staging: sync: Fix race condition between merge and signal

2013-02-28 Thread John Stultz
From: ?rjan Eide The copied sync_pt was activated immediately. If the sync_pt was signaled before the entire merge was completed, the new fence's pt_list could be iterated over while it is still in the process of being created. Moving the the sync_pt_activate call for all new sync_pts to after b

[PATCH 29/30] staging: sync: Don't log wait timeouts when timeout = 0

2013-02-28 Thread John Stultz
From: Erik Gilling If the timeout is zero, don't trip the timeout debugging Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Added commi

[PATCH 30/30] staging: sync: Fix timeout = 0 wait behavior

2013-02-28 Thread John Stultz
From: Jamie Gennis Fix wait behavior on timeout == 0 case Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel at lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Jamie Gennis [jstultz: Added commit message] Signed-

[RFC][PATCH 00/30] staging: Android sync driver

2013-02-28 Thread Greg KH
On Thu, Feb 28, 2013 at 04:42:56PM -0800, John Stultz wrote: > As proposed yesterday, here's the Android sync driver patches for > staging. > > I've preserved the commit history, but moved all the changes over > to be against the staging directory (instead of drivers/base). > > > The goal of sub

[PATCH 10/30] staging: sync: Export sync API symbols

2013-02-28 Thread Greg KH
On Thu, Feb 28, 2013 at 04:43:06PM -0800, John Stultz wrote: > From: Erik Gilling > > This is needed to allow modules to link against the sync subsystem > > Cc: Maarten Lankhorst > Cc: Erik Gilling > Cc: Daniel Vetter > Cc: Rob Clark > Cc: Sumit Semwal > Cc: Greg KH > Cc: dri-devel at list

[PATCH 10/30] staging: sync: Export sync API symbols

2013-02-28 Thread John Stultz
On 02/28/2013 06:00 PM, Greg KH wrote: > On Thu, Feb 28, 2013 at 04:43:06PM -0800, John Stultz wrote: >> From: Erik Gilling >> >> This is needed to allow modules to link against the sync subsystem >> >> Cc: Maarten Lankhorst >> Cc: Erik Gilling >> Cc: Daniel Vetter >> Cc: Rob Clark >> Cc: Sumi

<    1   2