summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-04-06sisdrm is disabled. That does not mean that the code doesn't offend me.Owain Ainsworth
This driver is a very thin wrapper for doling out memory to userland, everything else is handled by the userland drivers, therefore I really want to rewrite this driver before even thinking about enabling it, userland mapping graphics registers makes it hard for me to sleep at night. Anyway, remove a huge pile of scary code by switching the memory allocation ioctls to user the drm_heap.c code instead of the very complicated mess that it uses right now, probably saves some space, too. Turns out linux made some similar (but far from identical) changes ages ago, They did more, that may come later.
2009-04-06merge radeon_mem_release() and radeon_mem_takedown() into the drm_heapOwain Ainsworth
interface as drm_mem_release() and drm_mem_takedown() respectively. While this interface's days are numbered, I'm about to make another driver use it to remove even worse code. Roll on memory management...
2009-04-05In the previous commit, i confused "any" and "all".Ingo Schwarze
Fix prodded and checked by jmc@, thanks.
2009-04-05In the rare case where after we've loaded the iomap into the hardware,Owain Ainsworth
if we fail while assembling the dmamap due to the memory not fitting into our constraints we'll return from the function with the iomap still loaded, and more importantly with memory still allocated from the extent(9). So in such a case, make sure we clean up after outselves. In order to make this cleaner, remove an impossible condition check (kettenis and myself are satisfied that it will never happen), and make iomap_load_map void (it can't fail), so that we can only fail after both the extent is allocated and the iomap is loaded, and not inbetween the two. I tested iommu, kettenis tested viommu. ok kettenis@.
2009-04-05/usr/X11R6/lib/xserver is more or less replaced by /usr/X11R6/lib/xorg.Matthieu Herrb
Pointed by jmc@.
2009-04-05accept %F, which actually behaves the same as %f. per C99Martynas Venckus
ok millert@
2009-04-05implement and use sqrt, sqrtf & fabsf in hardware; since it'sMartynas Venckus
faster that way. tested by myself. discussed w/ & ok miod@, millert@
2009-04-05In the unlikely even that we do the final unref on a uvm_vnode objectOwain Ainsworth
while there's io pending (async io makes that possible, but not often hit), then we'll be waiting for the pgo_releasepg hook to free the object when all of our pages disappear. However, uvn_releasepg, while it does everything else that unreferencing the object would do, it neglects to do the final vrele() on the vnode. So in this rare situation we'd end up with the vnode waiting around until it was forcibly recycled. Fix this by adding in the missing vrele(). ok thib@
2009-04-05regen;Jason McIntyre
2009-04-05video(4) devices use v4l2 api; from J.C. RobertsJason McIntyre
ok miod
2009-04-05this is not a write-only register. might have caused to optimizeMartynas Venckus
it away. ok miod@
2009-04-05log_warn -> log_warnxGilles Chehade
2009-04-05ignore -o option (for now at least) when working in enqueue mode, thisGilles Chehade
prevents smtpctl from choking and allows it to work with more mua's by default. spotted and added to my todo list by oga@
2009-04-05If no patch can be found in input, in addition to complaining on stderr,Stefan Sperling
have the exit code indicate failure, not success. Discrepancy with GNU patch pointed out by Arfrever Frehtes Taifersar Arahesis. Help from and ok djm@, "sounds good to me" millert@
2009-04-05Rework the vblank subsystem so that instead of having various bits inOwain Ainsworth
the drm softc, we only have one pointer, with the rest in that struct. This is so that vblank-less drivers (yes, they exist) don't need to waste space on useless crud. While i'm reworking most of this code anyway, accept that on openbsd all of the #defined atomic functions are not atomic other than set and clear bit. Also, realise that the vb_lock is held whenever we manipulate these counts anyway. With those two facts in mind just remove the atomic_blah() and just use ++ and --.
2009-04-05- accept l modifier for %fMartynas Venckus
- while here; also accept %F fixes devel/libconfuse on gcc2 archs tested by naddy@ on VAX "no objection" miod@
2009-04-05const static -> static const; since it's deprecated per C99. ok millert@Martynas Venckus
2009-04-05kill DRM_VERIFYAREA_READ, it's part of a linux optimisation where we canOwain Ainsworth
guarrantee that copyin won't pagefault and use a faster version in that case. Since we just use plain copyin, it's stupid.
2009-04-04Make extent_print() use printf to avoid the pagination that db_printfMark Kettenis
provides, while keeping this behaviour for extent_print_all() which is only called by ddb. Based on a diff from deraadt@.
2009-04-04Bump the size of the array that we use to store bootpath components. Makes theMark Kettenis
t5120 and similar systems boot from our install CD-ROM.
2009-04-04A couple of fixes (based mostly on stuff from upstream) to stopOwain Ainsworth
breaking vblanks over suspend. Firstly, when we turn off the irq, wait up anyone waiting on vblanks, and prepare for the fact that interrupts are going off. Secondly, only reduce the refcount for vblanks over modeset if they were actually turned on. Fixes gl apps running while you suspend an x40 (as in they still work when it comes back).
2009-04-04Translate the size values in the auto-allocate table from blocks toKenneth R Westerback
sectors at runtime instead of constantly converting the sector values in the label to blocks. Adjust names accordingly. No functional change.
2009-04-04Remove an unused function inherited from NetBSD that deals with a brokenMark Kettenis
SiS chipset that we'll never see on and amd64 machine. ok oga@
2009-04-04Remove the three inline functions from drmP.h.Owain Ainsworth
deiline drm_core_findmap(), and merge drm_core_ioremap{,free}() into drm_ioremap{,free}() instead of having an inline that just calls another function.
2009-04-04Remove unused #include.Mark Kettenis
2009-04-04make bus_dmamap_load_raw respect the constraints of the dmamap we'reDavid Gwynne
loading the raw memory into. similair to the change made to src/sys/arch/amd64/amd6/bus_dma.c 1.18
2009-04-04make bus_dmamap_load_raw respect teh constraints of the dmamap we'reDavid Gwynne
loading the raw memory into, particularly the segment size constraint. written in june/july last year, but my studies held me back from handling it.
2009-04-04use time_uptime instead of time_second internally. time_uptime isntDavid Gwynne
affected by adjusting the clock.
2009-04-04Do not run make in /var/yp at the end of ypinit -m.Ingo Schwarze
That way, you can edit the new domain Makefile before using it, in particular to change variables like DIR and UNSECURE. from ajacoutot@ with message tweaks and documentation updates by myself "I like this" otto@
2009-04-04Cleanup debug printfs.Mark Kettenis
2009-04-04don't try to free stuff we shouldnt free, really.Joris Vink
2009-04-04properly expand modules if requested by the client,Joris Vink
this option is needed so gnu cvs clients can play along properly when running checkout <module> in a remote setup. if we do not support this, gnu cvs refuses to send us any existing files already on disk and opencvs will consider everything as NEEDS_CHECKOUT, instead of running an update on existing stuff. problem noticed by fgsch@ commited with opencvs, but please everybody else do not use opencvs to commit yet.
2009-04-04Cleanup debug printf.Mark Kettenis
2009-04-04Fix the byte order of the rule field in state view.Can Erkin Acar
Reported by Kamil Mielcarek
2009-04-04scrub more fields in the ccb when returning them to the free list afterDavid Gwynne
theyve been used, in particular the mfi header flags which has a bit that specifies if a command should be completed via the interrupt path. if we use a ccb during boot we set that bit, but it isnt necessarily cleared by things that use it later on. this means a ccb we expected to complete via an interrupt never actually generates an interrupt or appears in the reply queue. this obviously stalls the io.
2009-04-04- make sure codec->nsense_pins is initilized to 0Jacob Meuser
- don't mix use of const and non-const pointers problem noted by Jordi Beltran Creix on tech@
2009-04-03Bring comment into line with other docs. -E(dit) is not just forKenneth R Westerback
new labels.
2009-04-03Show interface description names in "systat if 1"; some help from canacarTheo de Raadt
sthen likes it
2009-04-03i fucked up last night, bad so partially revert a piece ofJoris Vink
code that wasnt suppose to dissapear: for uptodate files, we want to compare rev1 against file_rcsrev to see if we wish to diff or not. saves a bit off logic. commited with opencvs, permission by deraadt@
2009-04-03detypedef drm_local_map.Owain Ainsworth
2009-04-03detypedef drm_device_dma_t.Owain Ainsworth
2009-04-03detypedef drm_buf_entry_t too.Owain Ainsworth
2009-04-03detypedef struct drm_buf from the dma_buffers api. Just because it'sOwain Ainsworth
dying as soon as I can make it doesn't mean I shouldn't be able to look at it in the meantime.
2009-04-03Change a bunch of "printk" in commented out debug code into "printf" andOwain Ainsworth
kill the compat define. Should have done this ages ago.
2009-04-03More dead typdefs and defines.Owain Ainsworth
2009-04-03dead function.Owain Ainsworth
2009-04-03Dead prototypeOwain Ainsworth
2009-04-03unused type.Owain Ainsworth
2009-04-03detypedef drm_pci_id_list_t.Owain Ainsworth
2009-04-03Sprinkle some const correctness for the pciid lists. From mickey agesOwain Ainsworth
ago.