summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-10-31Fix bug #8839 - a commentdrm-2.2.0Alan Hourihane1-1/+1
2006-10-30Bugzilla Bug #8819Thomas Hellstrom2-2/+2
Build fixes for powerpc. Reported by Katerina Barone-Adesi
2006-10-29Minor bugfix, indentation and removal of unnused variables.Thomas Hellstrom1-11/+9
2006-10-27Reserve the new IOCTLs also for *bsd.Thomas Hellstrom3-11/+2
Bump libdrm version number to 2.2.0
2006-10-27Last minute changes to support multi-page size buffer offset alignments.Thomas Hellstrom6-9/+25
This will come in very handy for tiled buffers on intel hardware. Also add some padding to interface structures to allow future binary backwards compatible changes.
2006-10-26New mm function names. Update header.Thomas Hellstrom2-4/+8
2006-10-26Add improved alignment functionality to the core memory manager.Thomas Hellstrom1-45/+126
This makes an allocated block actually align itself and returns any wasted space to the manager. Also add some functions to grow and shrink the managed area. This will be used in the future to manage the buffer object swap cache.
2006-10-26Add a one-page hole in the file offset space between buffers.Thomas Hellstrom1-2/+8
2006-10-21Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drmThomas Hellstrom1-0/+1
2006-10-21The CPU cache must be flushed _before_ we start modifying the kernel map ptes,Thomas Hellstrom2-1/+16
otherwise data will be missing, which becomes apparent when the kernel evicts batch buffers which are likely to be written into in the evicted state, and then rebound to the AGP aperture. This means we cannot rely on the AGP module to flush the cache for us.
2006-10-20Bug #1746: Set dev_priv_size for the MGA driver.Tilman Sauerbeck1-0/+1
2006-10-20We apparently need this global cache flush anyway.Thomas Hellstrom1-1/+1
2006-10-20Bug #8707, 2.6.19-rc compatibility for memory manager code.Thomas Hellstrom4-33/+56
2006-10-19Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drmThomas Hellstrom24-28/+139
2006-10-19Importing fixes from drm-ttm-0-2-branchThomas Hellstrom3-78/+109
2006-10-19Make sure delayed delete list is empty on lastclose.drm-ttm-0-2-branchThomas Hellstrom3-78/+109
Fix some refcounting errors. Fix some error messages.
2006-10-18Merging drm-ttm-0-2-branchThomas Hellstrom36-176/+7175
Conflicts: linux-core/drmP.h linux-core/drm_drv.c linux-core/drm_irq.c linux-core/drm_stub.c shared-core/drm.h shared-core/i915_drv.h shared-core/i915_irq.c
2006-10-18Remove stray softlink.Thomas Hellstrom1-1/+0
2006-10-18Avoid driver-specific AGP user-populated types, since we don't know what AGPThomas Hellstrom3-16/+14
driver we're on. Avoid global cache flushes before inserting pages. In general, they are never mapped, and not accessed through the kernel map, so a cache flush should not be necessary. The exception is pages that are bound cached. We might need a cache flush for those.
2006-10-17Remove some debugging messages.Thomas Hellstrom1-5/+0
2006-10-17Remove max number of locked pages check and call, sinceThomas Hellstrom6-50/+0
that is now handled by the memory accounting.
2006-10-17Lindent.Thomas Hellstrom8-231/+218
2006-10-17Add vma list memory usage to memory accounting.Thomas Hellstrom5-19/+12
Use byte unit for /proc printout of memory usage for small sizes to be able to detect memory allocation bugs more easily.
2006-10-17Add memory usage accounting to avoid DOS problems.Thomas Hellstrom13-44/+223
2006-10-17Implement mm_lock and mm_unlock functions.Thomas Hellstrom4-51/+178
The mm_lock function is used when leaving vt. It evicts _all_ buffers. Buffers with the DRM_BO_NO_MOVE attribute set will be guaranteed to get the same offset when / if they are rebound.
2006-10-17Remove the memory manager parameter from the put_block function, as thisThomas Hellstrom5-26/+32
makes the client code a lot cleaner. Prepare buffer manager for lock and unlock calls.
2006-10-17Extend generality for more memory types.Thomas Hellstrom9-260/+434
Fix up init and destruction code.
2006-10-16dev->agp_buffer_map is not initialized for AGP DMA on savagesMichael Karcher1-0/+1
bug 8662
2006-10-16Change Intel AGP memory type numbers.Thomas Hellstrom2-3/+2
2006-10-14remove config.h from build no longer exists kbuild does itDave Airlie22-25/+0
2006-10-12Bugfixes.Thomas Hellstrom2-2/+2
2006-10-12Simplify the AGP backend interface somewhat.Thomas Hellstrom7-100/+96
Fix buffer bound caching policy changing, Allow on-the-fly changing of caching policy on bound buffers if the hardware supports it. Allow drivers to use driver-specific AGP memory types for TTM AGP pages. Will make AGP drivers much easier to migrate.
2006-10-11Compatibility code for 2.6.15-2.6.18. It is ugly but a little comfort is thatThomas Hellstrom7-46/+435
it will go away in the mainstream kernel. Some bugfixes, mainly in error paths.
2006-10-11Big update:Thomas Hellstrom12-913/+333
Adapt for new functions in the 2.6.19 kernel. Remove the ability to have multiple regions in one TTM. This simplifies a lot of code. Remove the ability to access TTMs from user space. We don't need it anymore without ttm regions. Don't change caching policy for evicted buffers. Instead change it only when the buffer is accessed by the CPU (on the first page fault). This tremendously speeds up eviction rates. Current code is safe for kernels <= 2.6.14. Should also be OK with 2.6.19 and above.
2006-10-10Use a nopage-based approach to fault in pfns.Thomas Hellstrom8-189/+155
2006-10-10only allow specific type-3 packets to pass the verifier instead of all for ↵Roland Scheidegger2-4/+138
r100/r200 as others might be unsafe (r300 already does this), and add checking for these we need but aren't safe. Check the RADEON_CP_INDX_BUFFER packet on both r200 and r300 as it isn't safe neither.
2006-10-03Get rid of all ugly PTE hacks.Thomas Hellstrom6-191/+29
2006-10-02Bug 6242: [mach64] Use private DMA buffers, part #4.George Sapountzis4-79/+62
mach64_state.c: convert the DRM_MACH64_BLIT ioctl to submit a pointer to user-space memory rather than a DMA buffer index, similar to DRM_MACH64_VERTEX. This change allows the DDX to map the DMA buffers read-only and eliminate a security problem where a client can alter the contents of the DMA buffer after submission to the DRM. This change also affects the DRI/DRM interface. Performace-wise, it basically affects PCI mode where I get a ~12% speedup for some Mesa demos I tested. This is mainly due to eliminating an ioctl for allocating the DMA buffer. mach64_dma.c: move the responsibility for allocating memory for the DMA ring in PCI mode to the DDX. This change affects the DDX/DRM interface and unifies a couple of PCI/AGP code paths for ring memory in the DRM. Bump the mach64 DRM version major and date.
2006-10-02Bug 6242: [mach64] Use private DMA buffers, part #3.George Sapountzis5-6/+29
Add DRM_PCI_BUFFER_RO flag for mapping PCI DMA buffer read-only. An additional flag is needed, since PCI DMA buffers do not have an associated map.
2006-10-02Bug 6242: [mach64] Use private DMA buffers, part #2.George Sapountzis3-72/+81
Factor out from mach64_dma_dispatch_vertex() the code to reclaim an unsed buffer, in preperation for using it in mach64_dma_dispatch_blit() also.
2006-10-02Bug 6242: [mach64] Use private DMA buffers, part #1.George Sapountzis1-75/+80
Factor out from mach64_freelist_get() the code to reclaim a completed buffer, this is to improve readability for me.
2006-10-02Bug 6209: [mach64] AGP DMA buffers not mapped correctly.George Sapountzis1-0/+1
Map the DMA buffers from the same linear address as the vertex bufs. If dev->agp_buffer_token is not set, mach64 drm maps the DMA buffers from linear address 0x0.
2006-10-02Fix type of second argument to spin_lock_irqsave().Michel Dänzer4-9/+10
(cherry picked from f6238cf6244b32bd84e3d2819963d7f5473867c8 commit)
2006-10-02Fix type of second argument to spin_lock_irqsave().Michel Dänzer4-9/+10
2006-10-02Make the user_token 44-bit for TTMs, and have them occupy a unique file spaceThomas Hellstrom3-8/+30
starting at 0x00100000000. This will hopefully allow us to use unmap_mapping_range(). Note that user-space will need 64-bit file offset support.
2006-10-02Add a buffer object manager for TTM maps.Thomas Hellstrom3-20/+35
2006-10-02Allow for 44 bit user-tokens (or drm_file offsets)Thomas Hellstrom4-16/+17
2006-10-02Add a comment to previos commit.Thomas Hellstrom1-0/+7
2006-10-02Trap and be verbose about a deadlock that occurs with AIGLX and drivers thatThomas Hellstrom2-3/+21
use drm_reclaim_buffers_locked().
2006-10-02drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.Felix Kühling1-1/+2
(cherry picked from d58389968124191a546a14b42ef84edc224be23d commit)