Age | Commit message (Collapse) | Author |
|
relatively small, so inline them. This shrinks the kernel by about 500
bytes and saves a tree lookup.
|
|
needs the actual interrupts. Oops!
|
|
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.
|
|
wedged.
This avoids early temination of long-running commands.
From Keith Packard, via drm git. Tested by several on various chipsets.
|
|
|
|
initial patch from me, reworked by oga@.
found by LLVM/Clang Static Analyzer.
ok oga@
|
|
initial patch from me, reworked by oga@.
found by LLVM/Clang Static Analyzer.
ok oga@
|
|
Won't sleep with a spinlock here anymore.
|
|
from drm git.
|
|
edmonton, but I forgot.
ok and extra testing phessler@.
|
|
This was never noticed since it's always used with a larger size.
Noticed by Stephane Marchesin.
|
|
|
|
it ourselves.
From drm git.
|
|
From Robert Noland via drm git.
|
|
definitively gone for GEM so this will not be needed.
No binary change.
|
|
and unused.
|
|
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!
|
|
it's stupid anyway. Most of this was ifdefed out.
|
|
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.
|
|
|
|
touches it.
|
|
|
|
apply some knf and other formatting while i'm at it.
problem originally pointed out by Tobias Ulmer, thanks!
|
|
|
|
pci_read_capability while i'm at it.
|
|
between the bsds. Just put them in attach/detach instead. Kills a little
bit of dead code, too.
|
|
|
|
|
|
|
|
i'm here.
|
|
the two calls to drm_calloc() that had nmemb and size the wrong way
around.
|
|
softc into file_priv since otherwise the wrong value could rarely be
used.
|
|
parameter, this makes things a little cleaner and removes the need to
pass in the softc for some functions.
|
|
done a little nicer.
Advice from deraadt@.
|
|
bit so we don't sleep with a spinlock.
ok djm@.
|
|
xserver only actually uses a small part of it nowadays.
Kill a few other dead bits from the drmP.h while i'm here.
|
|
|
|
the DRM_{INFO,ERROR,DEBUG} printf macros still need some __VA_ARGS__ love.
reyk@ and marco@ liked this, prompted by deraadt.
|
|
|
|
Some stability fixes for radeon. The most part of this diff is related
to fixing up the VBLANK (vertical blank interrupt) handling. Now, if the
X driver supports the DRM_IOCTL_MODESET_CTL ioctl, (to be used when
changing the video modes), then allow the vblank to be disabled once
that ioctl has been called. Otherwise, keep the interrupt enabled at all
time, since disabling it otherwise will lead to problems.
Tested by a few. "no problem" on API/ABI deraadt@.
|
|
and drm_calloc.
With the recent change to check overflow in drm_calloc, this means that
all allocations that require multiplication are now checked. Also use
drm_calloc() when zeroing is needed and drop the bzero/memset
afterwards. Finally, make drm_free() check for NULL, so we don't need
to do so every time.
ok miod@, deraadt@
|
|
which may come from userland via ioctls. ok oga@
|
|
|
|
Pointed out by Chris Cappuccio, thanks!
|
|
bus_space_{read,write}(). A bug in the code this was based on means that
this is also used for scatter gather maps, which are bus_dma memory, not
pci memory. This obviously fails. Pull them out into a function and
Special case scatter gather to use the mapped virtual address to write
instead. Makes writeback test pass on pci and pci express radeon cards.
Tested by, among others ckuethe@ and sthen@.
|
|
interrupt handler.
This is bad and wrong. So change it so that if we can't immediately grab
the hardware lock, to just leave the task flagged so that we can run it
when we release the lock. The linux implementation uses a similar
scheme.
Tested by guenther@, landry@ and bernd@. Also tested by many a while
ago as part of a larger diff.
|
|
(radeon and intel)
tested by a few (as part of the updates)
|
|
>Update the radeondrm driver to be level with drm git.
>
>adds:
>
>- support for RS400 chips
>- some cleanup of a few things
>- fixes a hard lockup for r3-500 cards.
>
>Tested by a few
|
|
changes:
- Support for intel 4 series chipsets (i'll do any relavent agp bits for
these as soon as i grab the datasheet and find a testcase)
- fix scheduled buffer swaps on non 965 chipsets
- major reorder, dedup and general cleanup of register definition and
the header file
Tested by a few, no regressions
|
|
adds:
- support for RS400 chips
- some cleanup of a few things
- fixes a hard lockup for r3-500 cards.
Tested by a few
|