platform/upstream/libdrm.git
16 years ago[intel-gem] invalidate ring locals for pin/unpin/set_domain/free functions
Keith Packard [Wed, 21 May 2008 07:32:02 +0000 (00:32 -0700)]
[intel-gem] invalidate ring locals for pin/unpin/set_domain/free functions

Ring locals must be reloaded from hardware in case the X server ran.

16 years ago[gem] Release GEM buffers from work task scheduled from IRQ.
Eric Anholt [Wed, 14 May 2008 22:13:14 +0000 (15:13 -0700)]
[gem] Release GEM buffers from work task scheduled from IRQ.

There are now 3 lists.  Active is buffers currently in the ringbuffer.
Flushing is not in the ringbuffer, but needs a flush before unbinding.
Inactive is as before.  This prevents object_free → unbind →
wait_rendering → object_reference and a kernel oops about weird refcounting.

This also avoids an synchronous extra flush and wait when freeing a buffer
which had a write_domain set (such as a temporary rendered to and then from
using the 2d engine).  It will sit around on the flushing list until the
appropriate flush gets emitted, or we need the GTT space for another
operation.

16 years ago[gem] Replace ring throttling hack with actual time measurement.
Eric Anholt [Tue, 20 May 2008 23:27:05 +0000 (16:27 -0700)]
[gem] Replace ring throttling hack with actual time measurement.

16 years ago[gem] Fix bad test for list_for_each completion.
Eric Anholt [Wed, 21 May 2008 22:15:58 +0000 (15:15 -0700)]
[gem] Fix bad test for list_for_each completion.

Since it's a circular list, the entry won't be NULL at termination.

16 years ago[gem] Hold a reference on the object in i915_gem_wait_space.
Eric Anholt [Wed, 21 May 2008 22:03:47 +0000 (15:03 -0700)]
[gem] Hold a reference on the object in i915_gem_wait_space.

Otherwise, in the middle of the function called using it the last ref
might disappear.

16 years ago[intel-gem] invalidate ring locals for pin/unpin/set_domain/free functions
Keith Packard [Wed, 21 May 2008 07:32:02 +0000 (00:32 -0700)]
[intel-gem] invalidate ring locals for pin/unpin/set_domain/free functions

Ring locals must be reloaded from hardware in case the X server ran.

16 years ago[gem] Use a separate sequence number field from classic/ttm
Eric Anholt [Tue, 20 May 2008 21:03:27 +0000 (14:03 -0700)]
[gem] Use a separate sequence number field from classic/ttm

This lets us get some qualities we desire, such as using the full 32-bit
range (except zero), avoiding DRM_WAIT_ON, and a 1:1 mapping of active
sequence numbers to request structs, which will be used soon for throttling
and interrupt-driven list cleanup.

16 years ago[gem] Rename sequence numbers from "cookie" to "seqno"
Eric Anholt [Tue, 20 May 2008 17:52:24 +0000 (10:52 -0700)]
[gem] Rename sequence numbers from "cookie" to "seqno"

16 years ago[gem] Clean up active/inactive list handling using helper functions.
Eric Anholt [Tue, 20 May 2008 17:48:36 +0000 (10:48 -0700)]
[gem] Clean up active/inactive list handling using helper functions.

Additionally, a boolean active field is added to indicate which list an
object is on, rather than smashing last_rendering_cookie to 0 to show
inactive.  This will help with flush-reduction later on, and makes the code
clearer.

16 years ago[gem] Hold dev->struct_mutex to protect structure data.
Eric Anholt [Thu, 15 May 2008 18:21:11 +0000 (11:21 -0700)]
[gem] Hold dev->struct_mutex to protect structure data.

16 years ago[gem] Rename the GTT LRU lists to active (executing) and inactive (idle).
Eric Anholt [Thu, 15 May 2008 16:37:49 +0000 (09:37 -0700)]
[gem] Rename the GTT LRU lists to active (executing) and inactive (idle).

16 years ago[gem] typo fix in comment.
Eric Anholt [Thu, 15 May 2008 16:32:34 +0000 (09:32 -0700)]
[gem] typo fix in comment.

16 years ago[GEM] Update testcases for new API.
Eric Anholt [Mon, 12 May 2008 22:42:20 +0000 (15:42 -0700)]
[GEM] Update testcases for new API.

16 years ago[GEM] Typo (and thinking) fixes in drm-gem.txt and doxygen.
Eric Anholt [Mon, 12 May 2008 19:55:36 +0000 (12:55 -0700)]
[GEM] Typo (and thinking) fixes in drm-gem.txt and doxygen.

16 years ago[intel] Minor kludge -- wait for the ring to be nearly empty before queuing
Keith Packard [Mon, 12 May 2008 20:04:18 +0000 (13:04 -0700)]
[intel] Minor kludge -- wait for the ring to be nearly empty before queuing

No need to fill the ring that much; wait for it to become nearly empty
before adding the execbuffer request. A better fix will involve scheduling
ring insertion in the irq handler.

16 years ago[intel] When polling for ring space, sleep for a lot longer (10ms)
Keith Packard [Mon, 12 May 2008 20:03:16 +0000 (13:03 -0700)]
[intel] When polling for ring space, sleep for a lot longer (10ms)

If the ring is full, the engine will surely be running for more than 10ms.

16 years ago[gem] Set write domain to CPU when doing pwrite.
Keith Packard [Mon, 12 May 2008 20:01:57 +0000 (13:01 -0700)]
[gem] Set write domain to CPU when doing pwrite.

Leave the flush call in place, which can fix domains up if necessary.

16 years ago[gem] Clarify use of explicit domain control. Remove Gen3 from I-cache usage.
Keith Packard [Mon, 12 May 2008 20:00:55 +0000 (13:00 -0700)]
[gem] Clarify use of explicit domain control. Remove Gen3 from I-cache usage.

16 years ago[GEM] Make pread/pwrite manage memory domains. No luck with movnti though.
Keith Packard [Sun, 11 May 2008 07:10:16 +0000 (00:10 -0700)]
[GEM] Make pread/pwrite manage memory domains. No luck with movnti though.

pread and pwrite must update the memory domains to ensure consistency with
the GPU. At some point, it should be possible to avoid clflush through this
path, but that isn't working for me.

16 years ago[intel-GEM] exec list can contain pinned, lru cannot.
Keith Packard [Sun, 11 May 2008 05:04:39 +0000 (22:04 -0700)]
[intel-GEM] exec list can contain pinned, lru cannot.

The exec list contains all objects, in order of use. The lru list contains
only unpinned objects ready to be evicted. This required two changes -- the
first was to not migrate pinned objects from exec to lru, the second was to
search for the first unpinned object in the exec list when doing eviction.

16 years agoMerge commit 'anholt/drm-gem' into drm-gem
Keith Packard [Sun, 11 May 2008 04:05:25 +0000 (21:05 -0700)]
Merge commit 'anholt/drm-gem' into drm-gem

16 years ago[GEM] Add drm-gem.txt
Keith Packard [Sun, 11 May 2008 04:04:42 +0000 (21:04 -0700)]
[GEM] Add drm-gem.txt

Add some API and implementation documentation for GEM.

16 years ago[intel-GEM] Clean up GEM ioctl naming.
Keith Packard [Sun, 11 May 2008 04:04:18 +0000 (21:04 -0700)]
[intel-GEM] Clean up GEM ioctl naming.

Rename 'validate_entry' to 'exec_object', then clean up some field names in
structures (renaming buffer_offset to just offset, for example).

16 years agoGEM: Fix arguments to drm_memrange_init so we don't exceed our allocation.
Eric Anholt [Sat, 10 May 2008 01:23:51 +0000 (18:23 -0700)]
GEM: Fix arguments to drm_memrange_init so we don't exceed our allocation.

It takes (offset, size), not (offset, end).

16 years agoGEM: Separate the LRU into execution list and LRU list.
Eric Anholt [Fri, 9 May 2008 21:34:20 +0000 (14:34 -0700)]
GEM: Separate the LRU into execution list and LRU list.

Now, the LRU list has objects that are completely done rendering and ready
to kick out, while the execution list has things with active rendering,
which have associated cookies and reference counts on them.

16 years agoGEM: Clear obj_priv->agp_mem when we free it.
Eric Anholt [Fri, 9 May 2008 22:07:49 +0000 (15:07 -0700)]
GEM: Clear obj_priv->agp_mem when we free it.

Still managing to get something wrong with this, oopsing down in agp.

16 years agoGEM: Avoid leaking refs on target objects on presumed offset success.
Eric Anholt [Fri, 9 May 2008 22:02:50 +0000 (15:02 -0700)]
GEM: Avoid leaking refs on target objects on presumed offset success.

16 years ago[gem] API cleanup. allocate->create unreference->close name->flink
Keith Packard [Fri, 9 May 2008 19:18:09 +0000 (12:18 -0700)]
[gem] API cleanup. allocate->create unreference->close name->flink

Make the API names a bit more consistent.

16 years ago[i915] clean up whinging from checkpatch.pl
Keith Packard [Thu, 8 May 2008 18:45:53 +0000 (11:45 -0700)]
[i915] clean up whinging from checkpatch.pl

16 years agoClean up whinging from checkpatch.pl in drm_gem.c
Keith Packard [Thu, 8 May 2008 18:13:29 +0000 (11:13 -0700)]
Clean up whinging from checkpatch.pl in drm_gem.c

Whitespace changes, a few too-long-lines and some extra braces.

16 years agoGEM: Fix oops on NULL dereference when we try clflushing when we don't need to.
Eric Anholt [Thu, 8 May 2008 19:46:02 +0000 (12:46 -0700)]
GEM: Fix oops on NULL dereference when we try clflushing when we don't need to.

16 years ago[intel-gem] Move domains to relocation records. add set_domain ioctl.
Keith Packard [Thu, 8 May 2008 17:44:02 +0000 (10:44 -0700)]
[intel-gem] Move domains to relocation records. add set_domain ioctl.

Domain information is about buffer relationships, not buffer contents. That
means a relocation contains the domain information as it knows how the
source buffer references the target buffer.

This also adds the set_domain ioctl so that user space can move buffers to
the cpu domain.

16 years agoGEM: fix testcases for new ioctl args.
Eric Anholt [Wed, 7 May 2008 23:00:58 +0000 (16:00 -0700)]
GEM: fix testcases for new ioctl args.

16 years agoApply a few stylistic cleanups to match kernel code.
Arjan van de Ven [Wed, 7 May 2008 22:54:32 +0000 (15:54 -0700)]
Apply a few stylistic cleanups to match kernel code.

16 years agoGEM: Wait for existing rendering to complete before writing relocation data.
Eric Anholt [Wed, 7 May 2008 21:10:04 +0000 (14:10 -0700)]
GEM: Wait for existing rendering to complete before writing relocation data.

This should already have been generally safe since we don't change contents
and put in new relocations between execbufs, so if we were writing in a new
relocation then we'd already waited rendering to complete when we moved
the target of the relocation.  However, doing the right thing will be required
if we do buffer reuse.

16 years agoGEM: Extend cache domain stuff for 965.
Eric Anholt [Wed, 7 May 2008 19:46:06 +0000 (12:46 -0700)]
GEM: Extend cache domain stuff for 965.

One of our MI_FLUSH bits is reserved on 965, being always implied, and there's
a vertex cache that was forgotten.

16 years ago[intel-GEM] ref count objects in gtt-lru.
Keith Packard [Wed, 7 May 2008 04:59:06 +0000 (21:59 -0700)]
[intel-GEM] ref count objects in gtt-lru.

If objects on the lru aren't ref counted, they'll get pulled from the gtt as
soon as they are freed. This change does cause objects to get stuck in the
gtt until they're forced out by new requests. The lru should get cleaned
when the irq occurs.

16 years ago[intel-GEM] Add memory domain support.
Keith Packard [Wed, 7 May 2008 03:00:23 +0000 (20:00 -0700)]
[intel-GEM] Add memory domain support.

Memory domains allow the kernel to track which caches to flush and how to
move objects before buffer execution.

16 years agoMerge commit 'anholt/drm-gem' into drm-gem
Keith Packard [Tue, 6 May 2008 21:43:56 +0000 (14:43 -0700)]
Merge commit 'anholt/drm-gem' into drm-gem

16 years agoStart coding up memory domains
Keith Packard [Tue, 6 May 2008 21:43:49 +0000 (14:43 -0700)]
Start coding up memory domains

16 years agoGEM: Use irq-based fencing rather than syncing and evicting every exec.
Eric Anholt [Tue, 6 May 2008 20:28:26 +0000 (13:28 -0700)]
GEM: Use irq-based fencing rather than syncing and evicting every exec.

16 years agoGEM: Skip relocation if presumed offset matches.
Eric Anholt [Tue, 6 May 2008 18:25:53 +0000 (11:25 -0700)]
GEM: Skip relocation if presumed offset matches.

16 years agoGEM: Save the last ioremapped page for relocations in case we need it again.
Eric Anholt [Tue, 6 May 2008 18:18:47 +0000 (11:18 -0700)]
GEM: Save the last ioremapped page for relocations in case we need it again.

16 years agoDump last batch buffer when hardware lockup is detected.
Keith Packard [Tue, 6 May 2008 05:10:02 +0000 (22:10 -0700)]
Dump last batch buffer when hardware lockup is detected.

16 years agoMonitor ACTHD register while polling for idle ring.
Keith Packard [Tue, 6 May 2008 05:09:34 +0000 (22:09 -0700)]
Monitor ACTHD register while polling for idle ring.

When batch buffers are executing, the ring may be stuck for a long time.
Monitor the ACTHD pointer which will show if the execution engine is
actually hung.

16 years agoUnlock pages right after getting them.
Keith Packard [Tue, 6 May 2008 00:17:19 +0000 (17:17 -0700)]
Unlock pages right after getting them.

pages come back from find_or_create_page locked, but must not stay locked
for long. Unlock them immediately instead of waiting until we're done with
them to avoid deadlock when applications try to touch them.

16 years agoMerge commit 'anholt/drm-gem' into drm-gem
Keith Packard [Mon, 5 May 2008 21:40:20 +0000 (14:40 -0700)]
Merge commit 'anholt/drm-gem' into drm-gem

Conflicts:

linux-core/i915_gem.c

16 years agoGEM: Replace drm_memrange_for_each with just evicting what we brought in.
Eric Anholt [Mon, 5 May 2008 21:38:04 +0000 (14:38 -0700)]
GEM: Replace drm_memrange_for_each with just evicting what we brought in.

I was wrong about how the data structure worked, and didn't care to fix it
to support debugging code.

16 years agoRemove some debug messages.
Keith Packard [Mon, 5 May 2008 21:32:01 +0000 (14:32 -0700)]
Remove some debug messages.

16 years agoAdd object base to relocation store address.
Keith Packard [Mon, 5 May 2008 21:22:42 +0000 (14:22 -0700)]
Add object base to relocation store address.

The relocated value was being written to the wrong location, missing
the object base address.

16 years agoEmit clflush and chipset flush when mapping objects to gtt
Keith Packard [Mon, 5 May 2008 20:32:28 +0000 (13:32 -0700)]
Emit clflush and chipset flush when mapping objects to gtt

16 years agoCorrect execbuffer offset. Add memory barrier and chipset flush.
Keith Packard [Mon, 5 May 2008 18:27:06 +0000 (11:27 -0700)]
Correct execbuffer offset. Add memory barrier and chipset flush.

16 years agoAdd i915_dispatch_gem_execbuffer (broken).
Keith Packard [Mon, 5 May 2008 17:51:49 +0000 (10:51 -0700)]
Add i915_dispatch_gem_execbuffer (broken).

This function submits a gem-based execbuffer to the ring.
It doesn't work yet.

16 years agoDon't forget to set the memrange private, and reset ring on kernel entry.
Eric Anholt [Sat, 3 May 2008 00:50:46 +0000 (17:50 -0700)]
Don't forget to set the memrange private, and reset ring on kernel entry.

16 years agoDon't include the tail guard memrange in foreach callbacking.
Eric Anholt [Sat, 3 May 2008 00:49:52 +0000 (17:49 -0700)]
Don't include the tail guard memrange in foreach callbacking.

16 years agoCheck for do_mmap errors
Keith Packard [Sat, 3 May 2008 00:13:11 +0000 (17:13 -0700)]
Check for do_mmap errors

16 years agoAdd a bit of /proc/dri/*/gem support. Clean up some refcount/pagelock issues.
Keith Packard [Fri, 2 May 2008 23:34:16 +0000 (16:34 -0700)]
Add a bit of /proc/dri/*/gem support. Clean up some refcount/pagelock issues.

Track named objects in /proc/dri/0/gem_names.
Track total object count in /proc/dri/0/gem_objects.
Initialize device gem data.
return -ENODEV for gem ioctls if the driver doesn't support gem.
Call unlock_page when unbinding from gtt.
Add numerous misssing calls to drm_gem_object_unreference.

16 years agoAdd name/open ioctls, separate handle and pointer ref counts.
Keith Packard [Fri, 2 May 2008 19:28:49 +0000 (12:28 -0700)]
Add name/open ioctls, separate handle and pointer ref counts.

Names are just another unique integer set (from another idr object).
Names are removed when the user refernces (handles) are all destroyed --
this required that handles for objects be counted separately from
internal kernel references (so that we can tell when the handles are all
gone).

16 years agoRemove drm_driver argument to functions taking drm_gem_object.
Keith Packard [Fri, 2 May 2008 17:36:00 +0000 (10:36 -0700)]
Remove drm_driver argument to functions taking drm_gem_object.

Now that drm_gem_object has a drm_driver * in it, functions don't need both
parameters.

16 years agoFix nouveau warning when returning pointers in uint64_t objects.
Keith Packard [Fri, 2 May 2008 17:34:46 +0000 (10:34 -0700)]
Fix nouveau warning when returning pointers in uint64_t objects.

16 years agoAdd alignment to all aperture allocation requests.
Keith Packard [Fri, 2 May 2008 03:41:55 +0000 (20:41 -0700)]
Add alignment to all aperture allocation requests.

When pinning buffers, or using execbuffer, allow the application to specify
the necessary aperture allocation alignment constraints.

16 years agoFix gem ioctls to be 32/64-bit clean.
Keith Packard [Fri, 2 May 2008 03:31:16 +0000 (20:31 -0700)]
Fix gem ioctls to be 32/64-bit clean.

mixed 32/64 bit systems need 'special' help for ioctl where the user-space
and kernel-space datatypes differ. Fixing the datatypes to be the same size,
and align the same way for both 32 and 64-bit ppc and x86 environments will
elimiante the need to have magic 32/64-bit ioctl translation code.

16 years agoUse krefs for refcounting.
Keith Packard [Fri, 2 May 2008 03:12:39 +0000 (20:12 -0700)]
Use krefs for refcounting.

krefs are way easier than a custom-coded spinlock+int combo.

16 years agoUnbind objects when freeing, fix some error paths, and warn in others.
Eric Anholt [Fri, 2 May 2008 00:31:57 +0000 (17:31 -0700)]
Unbind objects when freeing, fix some error paths, and warn in others.

16 years agoFix offset passed to AGP to be pages instead of bytes.
Eric Anholt [Fri, 2 May 2008 00:31:29 +0000 (17:31 -0700)]
Fix offset passed to AGP to be pages instead of bytes.

Fix some utterly bonged loop while we were staring at it.

16 years agoFix missing member settings in obj/obj_priv, and some error paths.
Eric Anholt [Thu, 1 May 2008 23:48:25 +0000 (16:48 -0700)]
Fix missing member settings in obj/obj_priv, and some error paths.

16 years agoMake GEM object handles be nonzero.
Eric Anholt [Thu, 1 May 2008 23:38:37 +0000 (16:38 -0700)]
Make GEM object handles be nonzero.

16 years agoUpdate mm tests for GEM rename.
Eric Anholt [Thu, 1 May 2008 23:35:12 +0000 (16:35 -0700)]
Update mm tests for GEM rename.

16 years agoRemove _args from gem ioctl argument structure tags.
Eric Anholt [Thu, 1 May 2008 23:27:03 +0000 (16:27 -0700)]
Remove _args from gem ioctl argument structure tags.

16 years agoAdd pin/unpin object ioctls for gem.
Eric Anholt [Thu, 1 May 2008 22:40:02 +0000 (15:40 -0700)]
Add pin/unpin object ioctls for gem.

16 years agocheckpoint: relocations support.
Eric Anholt [Thu, 1 May 2008 22:22:21 +0000 (15:22 -0700)]
checkpoint: relocations support.

16 years agocheckpoint: gtt binding written.
Eric Anholt [Thu, 1 May 2008 21:20:44 +0000 (14:20 -0700)]
checkpoint: gtt binding written.

16 years agocheckpoint: rename to GEM and a few more i915 bits.
Eric Anholt [Thu, 1 May 2008 18:39:06 +0000 (11:39 -0700)]
checkpoint: rename to GEM and a few more i915 bits.

16 years agoHacking towards hooking up execbuffer.
Eric Anholt [Wed, 30 Apr 2008 23:03:15 +0000 (16:03 -0700)]
Hacking towards hooking up execbuffer.

16 years agoRemove the remainder of the mmfs device.
Eric Anholt [Tue, 29 Apr 2008 20:47:12 +0000 (13:47 -0700)]
Remove the remainder of the mmfs device.

16 years agoMove mmfs tests over to be drm tests.
Eric Anholt [Tue, 29 Apr 2008 20:45:43 +0000 (13:45 -0700)]
Move mmfs tests over to be drm tests.

16 years agoMove mmfs ioctls into the DRM. Untested.
Eric Anholt [Tue, 29 Apr 2008 20:30:44 +0000 (13:30 -0700)]
Move mmfs ioctls into the DRM. Untested.

16 years agoRename drm_mm.c and its fuctions to drm_memrange.
Eric Anholt [Mon, 28 Apr 2008 23:54:53 +0000 (16:54 -0700)]
Rename drm_mm.c and its fuctions to drm_memrange.

It's not really a graphics memory allocator, just something to track ranges
of address space.  It doesn't involve actual allocation, and was consuming
some desired namespace.

16 years agoAdd mmap ioctl to mmfs.
Eric Anholt [Wed, 23 Apr 2008 21:52:30 +0000 (14:52 -0700)]
Add mmap ioctl to mmfs.

16 years agoAdd pread/pwrite ioctls to mmfs.
Eric Anholt [Wed, 23 Apr 2008 20:06:58 +0000 (13:06 -0700)]
Add pread/pwrite ioctls to mmfs.

16 years agoExtend the mmfs basic test to do a couple of ioctls.
Eric Anholt [Wed, 23 Apr 2008 18:32:31 +0000 (11:32 -0700)]
Extend the mmfs basic test to do a couple of ioctls.

16 years agoMove mmfs.h userland interface to shared-core.
Eric Anholt [Wed, 23 Apr 2008 18:22:59 +0000 (11:22 -0700)]
Move mmfs.h userland interface to shared-core.

16 years agoInitial add of mmfs module.
Eric Anholt [Tue, 22 Apr 2008 23:08:23 +0000 (16:08 -0700)]
Initial add of mmfs module.

16 years agoClarify that drm_agp_ttm_backend is associated with a drm_ttm.
Eric Anholt [Tue, 4 Mar 2008 23:08:24 +0000 (15:08 -0800)]
Clarify that drm_agp_ttm_backend is associated with a drm_ttm.

On first looking at it I assumed it was an aspect of the ttm backend as a
whole rather than specific allocations from a backend.

16 years agolinux-core Makefile: add GIT_REVISION
Pekka Paalanen [Sun, 20 Apr 2008 17:47:38 +0000 (20:47 +0300)]
linux-core Makefile: add GIT_REVISION

This tries to automatically fetch a git revision string and if succeeds,
it #defines GIT_REVISION string macro. Packagers can override it by
'make GIT_REVISION=foo'.

Update Nouveau to use GIT_REVISION, if defined, instead of DRIVER_DATE
in struct drm_driver.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
16 years agoi915: gfx hw and i945gme fixes from upstream
Dave Airlie [Tue, 22 Apr 2008 06:08:17 +0000 (16:08 +1000)]
i915: gfx hw and i945gme fixes from upstream

From Jesse and Zhenyu originally.

16 years ago[I915] Handle tiled buffers in vblank tasklet
Keith Packard [Sun, 20 Apr 2008 23:10:05 +0000 (16:10 -0700)]
[I915] Handle tiled buffers in vblank tasklet

The vblank tasklet update code must build 2D blt commands with the
appropriate tiled flags.

16 years agoOn I965, use correct 3DSTATE_DRAWING_RECTANGLE command in vblank
Keith Packard [Sun, 20 Apr 2008 08:55:57 +0000 (01:55 -0700)]
On I965, use correct 3DSTATE_DRAWING_RECTANGLE command in vblank

The batchbuffer submission paths were fixed to use the 965-specific command,
but the vblank tasklet was not. When the older version is sent, the 965 will
lock up.

16 years agoFix buffer object map wait error.
Thomas Hellstrom [Mon, 14 Apr 2008 11:52:33 +0000 (13:52 +0200)]
Fix buffer object map wait error.
Add some branch prediction hints.

16 years agoFix buffer object creation validation.
Thomas Hellstrom [Mon, 14 Apr 2008 10:10:50 +0000 (12:10 +0200)]
Fix buffer object creation validation.

BO lock fixes.

16 years agoUnlock the BO mutex while waiting for idle, unmapped, unfenced.
Thomas Hellstrom [Sun, 13 Apr 2008 12:49:14 +0000 (14:49 +0200)]
Unlock the BO mutex while waiting for idle, unmapped, unfenced.

Move unfenced checking into idle checking.
Never time out while waiting for software events like unmapped or unfenced.

16 years agoFix up buffer manager locking.
Thomas Hellstrom [Fri, 11 Apr 2008 07:36:12 +0000 (09:36 +0200)]
Fix up buffer manager locking.

16 years agoSave and restore dsparb and d_state regs
Keith Packard [Thu, 27 Mar 2008 18:40:04 +0000 (11:40 -0700)]
Save and restore dsparb and d_state regs

16 years agoMissing KERNEL_VERSION macro
Patrice Mandin [Mon, 7 Apr 2008 20:24:24 +0000 (22:24 +0200)]
Missing KERNEL_VERSION macro

16 years agoAdd DragonFly BSD support for device creation
Hasso Tepper [Mon, 7 Apr 2008 12:27:43 +0000 (15:27 +0300)]
Add DragonFly BSD support for device creation

DragonFly behaves just like FreeBSD in this regard.

16 years agonouveau: enable accelerated move to sysmem
Ben Skeggs [Mon, 7 Apr 2008 03:29:11 +0000 (13:29 +1000)]
nouveau: enable accelerated move to sysmem

16 years agonouveau: enable m2mf for tt<->vram moves, fix fence_poll
Ben Skeggs [Mon, 7 Apr 2008 03:05:51 +0000 (13:05 +1000)]
nouveau: enable m2mf for tt<->vram moves, fix fence_poll

16 years agoPlace highmem pages last in the ttm page array.
Thomas Hellstrom [Sun, 6 Apr 2008 09:21:22 +0000 (11:21 +0200)]
Place highmem pages last in the ttm page array.

16 years agoUse clflush() when available for cache flushing.
Thomas Hellstrom [Sun, 6 Apr 2008 08:32:02 +0000 (10:32 +0200)]
Use clflush() when available for cache flushing.

16 years ago[I915] Fix VRAM eviction.
Thomas Hellstrom [Sun, 6 Apr 2008 07:46:29 +0000 (09:46 +0200)]
[I915] Fix VRAM eviction.