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
815856d5de
Fix openchrome backwards compat.
2009-02-10 20:11:26 +01:00
Thomas Hellstrom
97302ed5c7
Fix TTM backwards compat to 2.6.25
2009-02-10 20:08:48 +01:00
Thomas Hellstrom
8a2a4eb445
openchrome: Use ttm_lock_set_kill functionality to kill processes attempting to use the TTM functionality when it is gone.
2009-02-05 15:44:02 +01:00
Thomas Hellstrom
a0f198572a
openchrome: Use the BKL for old drm ioctls as some of them don't appear thread-safe, but keep unlocked_ioctl for opencrhome- and TTM code.
2009-02-05 15:38:31 +01:00
Thomas Hellstrom
72ee1c68ba
drm_core: Avoid dri client deadlocks when master disappears by 1) Notify lock waiters when we close the master file descriptor. Not when the master structure is removed. 2) Send a SIGTERM to all clients waiting for the lock.
2009-02-05 15:33:51 +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
869f60aa62
drm core: Wake up _all_ lock waiters when the master is gone.
2009-02-05 13:59:48 +01:00
Thomas Hellstrom
ddadcb67da
Don't return -ERESTARTSYS to user-space.
2009-02-04 15:53:07 +01:00
Thomas Hellstrom
dc150a1ef2
ttm: Add a kill capability to the ttm lock.
2009-02-04 09:17:36 +01:00
Thomas Hellstrom
2a0c9d9652
Silence a couple of compilation warnings.
2009-02-03 22:22:43 +01:00
Thomas Hellstrom
6a16de23d9
openchrome: s/1/true/
2009-02-03 22:22:43 +01:00
Thomas Hellstrom
2e3f86c2a0
Fix for 2.6.29
2009-02-03 21:56:52 +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
17ca5f8ee1
openchrome: Fix for 2.6.29
2009-02-03 21:51:57 +01:00
Thomas Hellstrom
465d690edc
Check for null pointer when determining VRAM start.
...
(Reported by Erik-Jan on openchrome-devel)
2009-01-26 23:14:02 +01:00
Thomas Hellstrom
43d880df02
Silence error message.
2009-01-26 22:50:26 +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
2eb3922aa6
Build and install openchrome.
2009-01-17 13:02:46 +01:00
Thomas Hellstrom
d93fd75f4d
Add reworked via driver as "openchrome".
2009-01-17 12:57:04 +01:00
Thomas Hellstrom
8bce9b9ee2
Add the new TTM code. Adjust drm_hashtab include and exports.
2009-01-17 12:52:39 +01:00
Thomas Hellstrom
6941b5a9cc
Add a DRM tracker for global objects.
2009-01-17 12:44:39 +01:00
Thomas Hellstrom
58410a26aa
Split out the mm defines in a separate header and add atomic operations.
2009-01-17 12:41:58 +01:00
Thomas Hellstrom
bbfd0d2025
Remove old TTM.
2009-01-17 12:39:50 +01:00
Jesse Barnes
c67a83dfe1
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem
2008-11-19 12:42:49 -08:00
Jerome Glisse
e98eda9159
Revert "gem: protect idr_pre with the spinlock"
...
This reverts commit f46aba4332 .
2008-11-17 13:35:51 +01:00
Jerome Glisse
f46aba4332
gem: protect idr_pre with the spinlock
...
There seems to be an issue if we don't protect idr_pre with
the spinlock we use for idr operations.
2008-11-16 18:13:16 +01:00
Dave Airlie
1f66021854
drm/bo: fix stupid lock imbalance
2008-11-15 12:30:09 +10:00
Jesse Barnes
965b4d662a
Merge branch 'master' into modesetting-gem
...
Conflicts:
libdrm/Makefile.am
libdrm/intel/intel_bufmgr.h
libdrm/intel/intel_bufmgr_fake.c
libdrm/intel/intel_bufmgr_gem.c
shared-core/drm.h
shared-core/i915_dma.c
shared-core/i915_irq.c
shared-core/radeon_cp.c
shared-core/radeon_drv.h
2008-11-13 15:30:06 -08:00
Jakob Bornecrantz
9a4cb7eab4
mode: Minor reodering and renaming
2008-11-12 19:17:18 +01:00
Jakob Bornecrantz
1ead45c8f0
mode: Remove hotplug support from ioctl interface
2008-11-12 18:40:04 +01:00
Jerome Glisse
a7457915f5
radeon+libdrm-radeon: change relocation informations
...
Relocation now consist of the following informations (in this order) :
handle buffer object handle identifier
start_offset start offset of first data of the buffer object used by the cs
end_offset end offset of last data of the buffer object used by the cs
read_domain read domain (either VRAM, or GTT as GPU is invalid for CS)
write_domain write domain (either VRAM, or GTT as GPU is invalid for CS)
flags flags used for further optimization (like discard previous
buffer content or forget buffer content after cs which can
help in avoiding moving content in or out)
2008-11-12 16:57:09 +01:00
Dave Airlie
15464f5181
radeon: add gart useable size to report to userspace
2008-11-10 15:38:32 +10:00
Dave Airlie
532c63cddd
radeon: upgrade atom headers
2008-11-10 15:37:51 +10:00
Dave Airlie
213a71f31b
radeon: fix fence race condition hopefully
...
For some reason reading the SCRATCH reg from RAM causes some race to occur.
Hopefully fix this.
2008-11-10 15:37:36 +10:00
Dave Airlie
195cc0d817
drm/radeon: add dpms connector functions
2008-11-10 15:37:16 +10:00
Dave Airlie
327631c8b5
radeon: avivo cursors are across the full surface.
...
fixes cursor on second head
2008-11-10 15:35:34 +10:00
Dave Airlie
b1cf46378a
modesetting: set the crtc x,y after the mode base change
2008-11-10 15:35:16 +10:00
Dave Airlie
241a9b6414
drm/radeon: add uncached allocator to drm ttm code.
2008-11-10 15:30:21 +10:00
Dave Airlie
31b0c4cd20
radeon: fixup vram visible calculation to take a/c pinned objects for now
2008-11-10 15:13:08 +10:00
Jerome Glisse
273cc1a698
radeon: lib radeon add bo & cs gem backend
2008-11-06 00:40:06 +01:00
Dave Airlie
68fcb7770e
radeon: make build again
2008-11-03 09:58:12 +10:00
Dave Airlie
b7108445c9
radeon: fix ROP values for the paint ROP
2008-11-03 09:52:40 +10:00