summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
AgeCommit message (Collapse)Author
2008-11-04Hold 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-04revert the pageflipping and vblank sync code to the older style thatOwain 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-31Remove the vblank_pipe member of the softc and noop the ioctl that setsOwain Ainsworth
it. Since the vblank handling got reworked this is very much unneeded.
2008-10-31Remove another interface (this one for ARB_Occlusion_Query) that we'veOwain 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-30Bunch of cleanup. Kill some dead variables and some stupid code.Owain Ainsworth
Some ideas taken from upstream.
2008-10-28make DRM_INFO() a bit less gross, though getting all the grossness out at ↵Theo de Raadt
once is impossible; ok oga
2008-10-23Don't print redundant information in dmesg.Owain Ainsworth
Prompted by deraadt, kettenis@.
2008-10-23remove some funky charactersjoshua stein
ok oga@
2008-10-17Fix 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-15Fix list_for_each_safe compat marco. It currently skips the last entry.Owain Ainsworth
From Robert Noland at FreeBSD.
2008-10-11Fix various printf constructs either missing arguments or format specifiers.Miod Vallat
2008-10-07Kill a bunch of #ifdef freebsd/netbsd code in *_drv.c. No binary change.Owain Ainsworth
2008-10-07Kill the linux-ready negative return codes in ``shared'' code. We handleOwain 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-07Move dev->driver over to being a pointer to a const struct, instead of stupidlyOwain 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-29Put back the ``address'' field to struct drm_buf, this allows machdrm toOwain Ainsworth
actually compile again (no one's tested it yet, still and I don't have one).
2008-09-29Fix mmap to always return the right value in the error path. While i'mOwain Ainsworth
here rework it a little bit to remove a shadowed variable.
2008-09-18Rework the drm locking to be at least halfway sane. The freebsd codeOwain 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-1040-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-10Kill the max_context member of the softc, it does nothing useful.Owain Ainsworth
2008-09-09Kill some stupid agp api wrapper functions, just use the agp apiOwain 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-07Kill some unneeded defines and struct members.Owain Ainsworth
2008-09-06Something else that nothing calls.Owain Ainsworth
2008-09-06Kill some more unused struct fields and the cases for them.Owain Ainsworth
2008-09-06Kill the stats data structures and noop some other parts. Nothing inOwain Ainsworth
userland asks for these stats, and we stopped recording anything interesting a while back.
2008-09-05The code for cleaning up errored buffers and for cleaning up at the endOwain Ainsworth
is the same. Factor them into one function. Saves another 450 bytes on amd64.
2008-09-05The helper functions in this file are only used in one place andOwain Ainsworth
relatively small, so inline them. This shrinks the kernel by about 500 bytes and saves a tree lookup.
2008-09-05fix vblank interrupt mask. Unbreaks sync-to-vblank and anything thatOwain Ainsworth
needs the actual interrupts. Oops!
2008-09-02If we need a physical hardware status page, initialise it at device attachOwain 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-02Track progress inside of batchbuffers so we know the hardware isn'tOwain Ainsworth
wedged. This avoids early temination of long-running commands. From Keith Packard, via drm git. Tested by several on various chipsets.
2008-09-02detypedef some more. No functional change.Owain Ainsworth
2008-09-01avoid 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-01fix null dereference.Charles Longeau
initial patch from me, reworked by oga@. found by LLVM/Clang Static Analyzer. ok oga@
2008-09-01convert 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-01Add Interrupt mitigation for the i9XX user_irq, should save a bit of power;Owain Ainsworth
from drm git.
2008-08-29Build with mtrr support on amd64. This really should have gone in inOwain Ainsworth
edmonton, but I forgot. ok and extra testing phessler@.
2008-08-29Don'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-28Ignore xserver provided mmio address. We already have it. From git.Owain Ainsworth
2008-08-28Ignore userland provided batchbuffer start parameter, we can determineOwain Ainsworth
it ourselves. From drm git.
2008-08-28set sarea_priv to NULL to prevent possible access on next open/close.Owain Ainsworth
From Robert Noland via drm git.
2008-08-28Kill the ifdefed out ttm interface stuff. The intel driver hasOwain Ainsworth
definitively gone for GEM so this will not be needed. No binary change.
2008-08-28This file was meant to be removed with the last commit, it's now emptyOwain Ainsworth
and unused.
2008-08-28replace usage of drm_memrange with extent(9). No functional change, butOwain 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-21Rip out the remnants of the vblank signal stuff. Nothing uses it, andOwain Ainsworth
it's stupid anyway. Most of this was ifdefed out.
2008-08-21Instead of having a number of malloced arrays for vblank handling, justOwain 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-18Another dead struct member.Owain Ainsworth
2008-08-17kill struct drm_freelist, after removing markbufs and infobufs nothingOwain Ainsworth
touches it.
2008-08-17Kill a dead function and a dead struct member.Owain Ainsworth
2008-08-17Check 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-17Kill the infobufs and markbufs calls. Nothing uses them.Owain Ainsworth
2008-08-17kill the stupid pci capability defines, we have our own. Don't wrapOwain Ainsworth
pci_read_capability while i'm at it.