Thomas Hellstrom
b771b6a6c3
ttm: Fix a bo vm error path.
...
Reported by Jerome Glisse.
2009-03-22 21:46:25 +01:00
Thomas Hellstrom
4455b5f532
ttm: Optimize delayed buffer destruction.
...
Don't walk through the delayed delete list completely on each try,
but stop after the first buffer with an unsignaled fence.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-22 17:39:52 +01:00
Thomas Hellstrom
145c81299d
ttm: Fix buffer object transfer.
...
Fix destruction and initalization of "ghost" buffer objects
that are created on pipelined buffer moves.
Reported and suggestions by Jerome Glisse.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-19 10:08:02 +01:00
Thomas Hellstrom
bcfe35e32c
ttm: Some commenting fixups.
2009-02-23 21:04:56 +01:00
Thomas Hellstrom
6c083adee8
ttm: Don't take a buffer object off lru lists if reservation fails.
2009-02-23 21:01:07 +01:00
Thomas Hellstrom
875a6ae217
ttm: Adjust swapping target so that current allocation will succeed.
2009-02-17 09:07:49 +01:00
Thomas Hellstrom
e8eb30ad8b
ttm: Fix a spinlock bug.
2009-02-17 09:03:05 +01:00
Thomas Hellstrom
99825d5eac
Fix refcounting bugs in swap code.
2009-02-13 22:07:48 +01:00
Thomas Hellstrom
8be10a790e
More bool conversion.
2009-02-13 21:58:33 +01:00
Thomas Hellstrom
a520b3ed01
Another checkpoint: Use bool for boolean.
2009-02-13 21:18:47 +01:00
Thomas Hellstrom
41c3f1ac56
Checkpoint: Use bool for boolean.
2009-02-13 09:00:35 +01:00
Jerome Glisse
5c7574555d
ttm: indentation fixes
2009-02-11 17:04:19 +01:00
Thomas Hellstrom
97302ed5c7
Fix TTM backwards compat to 2.6.25
2009-02-10 20:08:48 +01:00
Thomas Hellstrom
b909e98de7
Work around some X86 PAT oddities by using VM_MIXEDMAP instead
...
of VM_PFNMAP.
2009-02-05 14:12:41 +01:00
Thomas Hellstrom
dc150a1ef2
ttm: Add a kill capability to the ttm lock.
2009-02-04 09:17:36 +01:00
Thomas Hellstrom
3eb288903c
Fix a segfault due to the ttm file object disappearing at release while we still hold a reference to identify object creator.
2009-02-03 21:56:46 +01:00
Thomas Hellstrom
73fce7bc76
Take bo off lru list when reserving, as ttm_bo_reserve_locked doesn't do that.
2009-01-21 21:56:38 +01:00
Thomas Hellstrom
72f10b46d4
Don't free object while information in them are used for accounting purposes.
...
Fix by Alan Hourihane.
2009-01-21 14:11:11 +01:00
Thomas Hellstrom
8bce9b9ee2
Add the new TTM code. Adjust drm_hashtab include and exports.
2009-01-17 12:52:39 +01:00