diff options
author | Maarten Lankhorst <m.b.lankhorst@gmail.com> | 2013-06-27 07:48:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-27 22:02:15 -0400 |
commit | 786d7257e537da0674c02e16e3b30a44665d1cee (patch) | |
tree | 005686710f85aa8e5626c0849f7a539a18875779 /Documentation/DocBook | |
parent | 8ade2b8281d58a8336a1742a44ceffd9d07d6629 (diff) |
reservation: cross-device reservation support, v4
This adds support for a generic reservations framework that can be
hooked up to ttm and dma-buf and allows easy sharing of reservations
across devices.
The idea is that a dma-buf and ttm object both will get a pointer
to a struct reservation_object, which has to be reserved before
anything is done with the contents of the dma-buf.
Changes since v1:
- Fix locking issue in ticket_reserve, which could cause mutex_unlock
to be called too many times.
Changes since v2:
- All fence related calls and members have been taken out for now,
what's left is the bare minimum to be useful for ttm locking conversion.
Changes since v3:
- Removed helper functions too. The documentation has an example
implementation for locking. With the move to ww_mutex there is no
need to have much logic any more.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/device-drivers.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/DocBook/device-drivers.tmpl b/Documentation/DocBook/device-drivers.tmpl index c36892c072da..f0648a8b09b6 100644 --- a/Documentation/DocBook/device-drivers.tmpl +++ b/Documentation/DocBook/device-drivers.tmpl | |||
@@ -126,6 +126,8 @@ X!Edrivers/base/interface.c | |||
126 | </sect1> | 126 | </sect1> |
127 | <sect1><title>Device Drivers DMA Management</title> | 127 | <sect1><title>Device Drivers DMA Management</title> |
128 | !Edrivers/base/dma-buf.c | 128 | !Edrivers/base/dma-buf.c |
129 | !Edrivers/base/reservation.c | ||
130 | !Iinclude/linux/reservation.h | ||
129 | !Edrivers/base/dma-coherent.c | 131 | !Edrivers/base/dma-coherent.c |
130 | !Edrivers/base/dma-mapping.c | 132 | !Edrivers/base/dma-mapping.c |
131 | </sect1> | 133 | </sect1> |