Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-11-04 | Hold the drm lock around all things that touch the ringbuffer. | Owain Ainsworth | |
Not strictly needed in the non-gem case, but it will be needed then, and doesn't hurt now. From Eric Anholt at intel. | |||
2008-11-04 | revert the pageflipping and vblank sync code to the older style that | Owain Ainsworth | |
doesn't handle triple buffering (which has been marked ``don't use this, it's unstable'' for ever anyway) While the code just removed is in drm git. it's not planned to go any further, due to being a horribly ugly hack. Instead a proper fix which will depend on memory management is planned. So revert this stuff here, since it's now dead. Testing shows no regressions. | |||
2008-10-31 | Remove the vblank_pipe member of the softc and noop the ioctl that sets | Owain Ainsworth | |
it. Since the vblank handling got reworked this is very much unneeded. | |||
2008-10-31 | Remove another interface (this one for ARB_Occlusion_Query) that we've | Owain Ainsworth | |
never used (mesa did a version check that never passed on our kernel). The correct way to do this is in mesa master and requires memory management. | |||
2008-10-30 | Bunch of cleanup. Kill some dead variables and some stupid code. | Owain Ainsworth | |
Some ideas taken from upstream. | |||
2008-10-28 | make DRM_INFO() a bit less gross, though getting all the grossness out at ↵ | Theo de Raadt | |
once is impossible; ok oga | |||
2008-10-23 | Don't print redundant information in dmesg. | Owain Ainsworth | |
Prompted by deraadt, kettenis@. | |||
2008-10-23 | remove some funky characters | joshua stein | |
ok oga@ | |||
2008-10-17 | Fix permissions on the DRM_I915_HWS_ADDR ioctl, should be master only. | Owain Ainsworth | |
Pointed out by Olaf Kirch, this has been in snaps for two weeks, no problems. ok millert@, deraadt@ | |||
2008-10-15 | Fix list_for_each_safe compat marco. It currently skips the last entry. | Owain Ainsworth | |
From Robert Noland at FreeBSD. | |||
2008-10-11 | Fix various printf constructs either missing arguments or format specifiers. | Miod Vallat | |
2008-10-07 | Kill a bunch of #ifdef freebsd/netbsd code in *_drv.c. No binary change. | Owain Ainsworth | |
2008-10-07 | Kill the linux-ready negative return codes in ``shared'' code. We handle | Owain Ainsworth | |
them wrong in several cases that i've noticed and Merging when needed is still fairly simple, anyway. This shaves another 500 bytes from an amd64 kernel due to not having to flip the sign on some things. It also stops my eyes bleeding. Tested by a few along with the last diff that went in. | |||
2008-10-07 | Move dev->driver over to being a pointer to a const struct, instead of stupidly | Owain Ainsworth | |
filling in a pre-allocated one on each attach. Makes the code a bunch nicer, shrinks a kernel by about 1.5k on amd64, helps with my sanity, and paves way for later changes. Tested by a few for a couple of weeks now. | |||
2008-09-29 | Put back the ``address'' field to struct drm_buf, this allows machdrm to | Owain Ainsworth | |
actually compile again (no one's tested it yet, still and I don't have one). | |||
2008-09-29 | Fix mmap to always return the right value in the error path. While i'm | Owain Ainsworth | |
here rework it a little bit to remove a shadowed variable. | |||
2008-09-18 | Rework the drm locking to be at least halfway sane. The freebsd code | Owain Ainsworth | |
held a lock over all driver ioctls in order to be ``mpsafe''. Stop lying to ourselves for a start. This code is not fully mpsafe, and should not pretend to be so. Put the locking around where it should, and rely on biglock for the rest. This will need to be fixed, but avoids some of the horrible that we have right now. Tested by many over a long time and several iterations. | |||
2008-09-10 | 40-bit GART support for PCIE devices. From drm git a while ago. | Owain Ainsworth | |
Tested by a few, no regressions for normal use. | |||
2008-09-10 | Kill the max_context member of the softc, it does nothing useful. | Owain Ainsworth | |
2008-09-09 | Kill some stupid agp api wrapper functions, just use the agp api | Owain Ainsworth | |
directly. While i'm here, factor out some common functionality into a separate function, and kill some typedefs (man this code is full of them...). Shaves another 450 bytes off the kernel. Tested by ckuethe and Paul de Weerd, thanks. | |||
2008-09-07 | Kill some unneeded defines and struct members. | Owain Ainsworth | |
2008-09-06 | Something else that nothing calls. | Owain Ainsworth | |
2008-09-06 | Kill some more unused struct fields and the cases for them. | Owain Ainsworth | |
2008-09-06 | Kill the stats data structures and noop some other parts. Nothing in | Owain Ainsworth | |
userland asks for these stats, and we stopped recording anything interesting a while back. | |||
2008-09-05 | The code for cleaning up errored buffers and for cleaning up at the end | Owain Ainsworth | |
is the same. Factor them into one function. Saves another 450 bytes on amd64. | |||
2008-09-05 | The helper functions in this file are only used in one place and | Owain Ainsworth | |
relatively small, so inline them. This shrinks the kernel by about 500 bytes and saves a tree lookup. | |||
2008-09-05 | fix vblank interrupt mask. Unbreaks sync-to-vblank and anything that | Owain Ainsworth | |
needs the actual interrupts. Oops! | |||
2008-09-02 | If we need a physical hardware status page, initialise it at device attach | Owain Ainsworth | |
instead of putting up and tearing down on open and close, some chips got unstable with it being done repeatedly. From drm git. Tested by several. | |||
2008-09-02 | Track progress inside of batchbuffers so we know the hardware isn't | Owain Ainsworth | |
wedged. This avoids early temination of long-running commands. From Keith Packard, via drm git. Tested by several on various chipsets. | |||
2008-09-02 | detypedef some more. No functional change. | Owain Ainsworth | |
2008-09-01 | avoid loosing return value from copyin, and properly return it. | Charles Longeau | |
initial patch from me, reworked by oga@. found by LLVM/Clang Static Analyzer. ok oga@ | |||
2008-09-01 | fix null dereference. | Charles Longeau | |
initial patch from me, reworked by oga@. found by LLVM/Clang Static Analyzer. ok oga@ | |||
2008-09-01 | convert a tsleep back to msleep that got lost in a previous upstream merge. | Owain Ainsworth | |
Won't sleep with a spinlock here anymore. | |||
2008-09-01 | Add Interrupt mitigation for the i9XX user_irq, should save a bit of power; | Owain Ainsworth | |
from drm git. | |||
2008-08-29 | Build with mtrr support on amd64. This really should have gone in in | Owain Ainsworth | |
edmonton, but I forgot. ok and extra testing phessler@. | |||
2008-08-29 | Don't memcpy too far whem drm_realloc() is called with a smaller size. | Owain Ainsworth | |
This was never noticed since it's always used with a larger size. Noticed by Stephane Marchesin. | |||
2008-08-28 | Ignore xserver provided mmio address. We already have it. From git. | Owain Ainsworth | |
2008-08-28 | Ignore userland provided batchbuffer start parameter, we can determine | Owain Ainsworth | |
it ourselves. From drm git. | |||
2008-08-28 | set sarea_priv to NULL to prevent possible access on next open/close. | Owain Ainsworth | |
From Robert Noland via drm git. | |||
2008-08-28 | Kill the ifdefed out ttm interface stuff. The intel driver has | Owain Ainsworth | |
definitively gone for GEM so this will not be needed. No binary change. | |||
2008-08-28 | This file was meant to be removed with the last commit, it's now empty | Owain Ainsworth | |
and unused. | |||
2008-08-28 | replace usage of drm_memrange with extent(9). No functional change, but | Owain Ainsworth | |
should shrink the kernel somewhat. For some strange reason I was unaware of this api when I pulled in these changes. tested by myself and Paul de Weerd, thanks! | |||
2008-08-21 | Rip out the remnants of the vblank signal stuff. Nothing uses it, and | Owain Ainsworth | |
it's stupid anyway. Most of this was ifdefed out. | |||
2008-08-21 | Instead of having a number of malloced arrays for vblank handling, just | Owain Ainsworth | |
put them in a structure and malloc free an array of those, it is nicer that way and They're all needed at the same time, anyway. Idea taken from a suggestion on the dri-devel mailing list. | |||
2008-08-18 | Another dead struct member. | Owain Ainsworth | |
2008-08-17 | kill struct drm_freelist, after removing markbufs and infobufs nothing | Owain Ainsworth | |
touches it. | |||
2008-08-17 | Kill a dead function and a dead struct member. | Owain Ainsworth | |
2008-08-17 | Check the return value of agp_enable() instead of assuming it completed. | Owain Ainsworth | |
apply some knf and other formatting while i'm at it. problem originally pointed out by Tobias Ulmer, thanks! | |||
2008-08-17 | Kill the infobufs and markbufs calls. Nothing uses them. | Owain Ainsworth | |
2008-08-17 | kill the stupid pci capability defines, we have our own. Don't wrap | Owain Ainsworth | |
pci_read_capability while i'm at it. |