Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-05-10 | Merge commit 'anholt/drm-gem' into drm-gem | Keith Packard | |
2008-05-10 | [GEM] Add drm-gem.txt | Keith Packard | |
Add some API and implementation documentation for GEM. | |||
2008-05-10 | [intel-GEM] Clean up GEM ioctl naming. | Keith Packard | |
Rename 'validate_entry' to 'exec_object', then clean up some field names in structures (renaming buffer_offset to just offset, for example). | |||
2008-05-09 | GEM: Fix arguments to drm_memrange_init so we don't exceed our allocation. | Eric Anholt | |
It takes (offset, size), not (offset, end). | |||
2008-05-09 | GEM: Separate the LRU into execution list and LRU list. | Eric Anholt | |
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. | |||
2008-05-09 | GEM: Clear obj_priv->agp_mem when we free it. | Eric Anholt | |
Still managing to get something wrong with this, oopsing down in agp. | |||
2008-05-09 | GEM: Avoid leaking refs on target objects on presumed offset success. | Eric Anholt | |
2008-05-09 | [gem] API cleanup. allocate->create unreference->close name->flink | Keith Packard | |
Make the API names a bit more consistent. | |||
2008-05-08 | [i915] clean up whinging from checkpatch.pl | Keith Packard | |
2008-05-08 | Clean up whinging from checkpatch.pl in drm_gem.c | Keith Packard | |
Whitespace changes, a few too-long-lines and some extra braces. | |||
2008-05-08 | GEM: Fix oops on NULL dereference when we try clflushing when we don't need to. | Eric Anholt | |
2008-05-08 | [intel-gem] Move domains to relocation records. add set_domain ioctl. | Keith Packard | |
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. | |||
2008-05-07 | GEM: fix testcases for new ioctl args. | Eric Anholt | |
2008-05-07 | Apply a few stylistic cleanups to match kernel code. | Arjan van de Ven | |
2008-05-07 | GEM: Wait for existing rendering to complete before writing relocation data. | Eric Anholt | |
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. | |||
2008-05-07 | GEM: Extend cache domain stuff for 965. | Eric Anholt | |
One of our MI_FLUSH bits is reserved on 965, being always implied, and there's a vertex cache that was forgotten. | |||
2008-05-06 | [intel-GEM] ref count objects in gtt-lru. | Keith Packard | |
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. | |||
2008-05-06 | [intel-GEM] Add memory domain support. | Keith Packard | |
Memory domains allow the kernel to track which caches to flush and how to move objects before buffer execution. | |||
2008-05-06 | Merge commit 'anholt/drm-gem' into drm-gem | Keith Packard | |
2008-05-06 | Start coding up memory domains | Keith Packard | |
2008-05-06 | GEM: Use irq-based fencing rather than syncing and evicting every exec. | Eric Anholt | |
2008-05-06 | GEM: Skip relocation if presumed offset matches. | Eric Anholt | |
2008-05-06 | GEM: Save the last ioremapped page for relocations in case we need it again. | Eric Anholt | |
2008-05-05 | Dump last batch buffer when hardware lockup is detected. | Keith Packard | |
2008-05-05 | Monitor ACTHD register while polling for idle ring. | Keith Packard | |
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. | |||
2008-05-05 | Unlock pages right after getting them. | Keith Packard | |
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. | |||
2008-05-05 | Merge commit 'anholt/drm-gem' into drm-gem | Keith Packard | |
Conflicts: linux-core/i915_gem.c | |||
2008-05-05 | GEM: Replace drm_memrange_for_each with just evicting what we brought in. | Eric Anholt | |
I was wrong about how the data structure worked, and didn't care to fix it to support debugging code. | |||
2008-05-05 | Remove some debug messages. | Keith Packard | |
2008-05-05 | Add object base to relocation store address. | Keith Packard | |
The relocated value was being written to the wrong location, missing the object base address. | |||
2008-05-05 | Emit clflush and chipset flush when mapping objects to gtt | Keith Packard | |
2008-05-05 | Correct execbuffer offset. Add memory barrier and chipset flush. | Keith Packard | |
2008-05-05 | Add i915_dispatch_gem_execbuffer (broken). | Keith Packard | |
This function submits a gem-based execbuffer to the ring. It doesn't work yet. | |||
2008-05-02 | Don't forget to set the memrange private, and reset ring on kernel entry. | Eric Anholt | |
2008-05-02 | Don't include the tail guard memrange in foreach callbacking. | Eric Anholt | |
2008-05-02 | Check for do_mmap errors | Keith Packard | |
2008-05-02 | Add a bit of /proc/dri/*/gem support. Clean up some refcount/pagelock issues. | Keith Packard | |
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. | |||
2008-05-02 | Add name/open ioctls, separate handle and pointer ref counts. | Keith Packard | |
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). | |||
2008-05-02 | Remove drm_driver argument to functions taking drm_gem_object. | Keith Packard | |
Now that drm_gem_object has a drm_driver * in it, functions don't need both parameters. | |||
2008-05-02 | Fix nouveau warning when returning pointers in uint64_t objects. | Keith Packard | |
2008-05-01 | Add alignment to all aperture allocation requests. | Keith Packard | |
When pinning buffers, or using execbuffer, allow the application to specify the necessary aperture allocation alignment constraints. | |||
2008-05-01 | Fix gem ioctls to be 32/64-bit clean. | Keith Packard | |
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. | |||
2008-05-01 | Use krefs for refcounting. | Keith Packard | |
krefs are way easier than a custom-coded spinlock+int combo. | |||
2008-05-01 | Unbind objects when freeing, fix some error paths, and warn in others. | Eric Anholt | |
2008-05-01 | Fix offset passed to AGP to be pages instead of bytes. | Eric Anholt | |
Fix some utterly bonged loop while we were staring at it. | |||
2008-05-01 | Fix missing member settings in obj/obj_priv, and some error paths. | Eric Anholt | |
2008-05-01 | Make GEM object handles be nonzero. | Eric Anholt | |
2008-05-01 | Update mm tests for GEM rename. | Eric Anholt | |
2008-05-01 | Remove _args from gem ioctl argument structure tags. | Eric Anholt | |
2008-05-01 | Add pin/unpin object ioctls for gem. | Eric Anholt | |