summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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-04Cleanup debug printfs.Mark Kettenis
2009-04-04Cleanup debug printf.Mark Kettenis
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-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.
2009-04-03${XORGNAME}_driver_irq_handler() is a stupid name for an interruptOwain Ainsworth
handler anyway. replace it with ${OpenBSD_driver_name}_intr like most of the rest of the tree. No functional change.
2009-04-03More compat crud bites the dust: Remove the IRQ_NONE and IRQ_HANDLEDOwain Ainsworth
defines. 0 and 1 are fine for returning from irq handlers so why bother with the indirection?
2009-04-03kill the stupid DRM_IRQ_ARGS macros and irqreturn_t typedef, switch toOwain Ainsworth
the unmacroed/typedefed version.
2009-04-03Remove dev->irq_lock, the drm_irq_handler_wrap irq handler, and removeOwain Ainsworth
the dev->driver irq_handler member since we now don't need to know. Shaves a few bytes, and makes me happy.
2009-04-03Final irq_lock piece. Switch inteldrm over like radeomdrm and the rest.Owain Ainsworth
We already have a lock protecting the irq registers, so extend it trivially so it protects user interrupts too. Switch irq handler to purely local handler. Finally remove an extra test in i915_wait_irq() since we won't sleep even without that if the test will pass. irq_lock and handler_wrap may now die. Coming soon.
2009-04-03Same as just done for machdrm, just convert us over to using our irqOwain Ainsworth
handler directly, no fences to worry about right now.
2009-04-03Convert machdrm to not have to user drm_irq_handler. Since the onlyOwain Ainsworth
interrupt we provide is vblank, it's just switching the handler. knf while here.
2009-04-03Same as just done for radeon. Add and use a lock for procecting againstOwain Ainsworth
races when waiting on fences, and use that in preference to irq_lock. Don't use drm_irq_handler_wrap() anymore for irq handler, just the mgadrm main irq handler. knf while here.
2009-04-03Add a lock to protect races for the software interrupt on radeon chipsOwain Ainsworth
(vblank is already protected by that subsystem). Also, do all checks for the correct software interrupt having fired inside DRM_WAIT_ON(), since it won't sleep if it's already passed it doesn't gain us much (skips one lock grab). Finally, establish the interrupt with only the main radeon irq handler, don't bother with drm_irq_wrap. bunch of knf while i'm in here.
2009-04-03use i915_pipe_enabled() to test to see if the pipe is lit up, instead ofOwain Ainsworth
expanding the function in line here.
2009-04-03Convert DRM_WAIT_ON to take additional parameters, the wmsg for msleep,Owain Ainsworth
and the lock to manipulate. first step of removing drm_irq_handler_wrap which just grabs the irq_lock, and eventually irq_lock. drivers should manage their own.
2009-04-03Make sure that sys_reboot runs on the primary cpu. Won't hurt when notArtur Grabowski
needed, but some machines seem to work much better with it.
2009-04-03sched_peg_curproc_to_cpu() - function to force a proc to stay on a cpuArtur Grabowski
forever.
2009-04-03Fix SEM_UNDO handling for rthreads: use the struct process* insteadPhilip Guenthe
of the struct proc* as the identifier for SEM_UNDO tracking and only call semexit() from the original thread, once the process as a whole is exiting ok tedu@
2009-04-03Cleanup. These definitions should have died when I removed the lock_timeOwain Ainsworth
member from the lock structure.
2009-04-02Correct the writing to RING_RPTR_ADDR in the non agp case, should be aOwain Ainsworth
hardware virtual address offset, not a physical one. From upstream.
2009-04-02get rid of otus_phy_write().Damien Bergamini
unobfuscate things a bit.
2009-04-02Convert lockmgr to rwlock. Fixing a (harmless) lock leak on attachOwain Ainsworth
failure while i'm at it. Been in snaps for a while. ok deraadt@
2009-04-02Convert lockmgr to rwlock. Been in snaps for a while.Owain Ainsworth
ok deraadt@
2009-04-02s/GWUSBMICRON/GWUSMICRON/ spotted by Fukaumi NaokiDamien Bergamini
+ sort Corega entry
2009-04-02syncDamien Bergamini
2009-04-02s/GWUSBMICRON/GWUSMICRON/Damien Bergamini
spotted by Fukaumi Naoki
2009-04-01bzero pci attach argsMark Kettenis
2009-03-31These flags are bitmasks, not booleans.Owain Ainsworth
Fix from upstream.
2009-03-31bzero pci attach argsMark Kettenis
2009-03-31On watchdog timeout reset the full chip. Just draining the tx ring is notClaudio Jeker
enough to get the device unstuck. OK mglocker@
2009-03-31bzero pci attach argsMark Kettenis
2009-03-31Backout previous change; it breaks more machines than it fixes.Mark Kettenis
2009-03-31remove the drm_read and drm_write functions. instead just do theOwain Ainsworth
conditional on whether we treat the data like memspace or system memory into the one driver that needs this. Something similar was done upstream a while back.
2009-03-31- remove obsolete commentArtur Grabowski
- remove dead (#if 0) code - move switch_error panics to after cpu_switchto to make branch prediction happier and the code more readable. no functional change