/sys/dev/splash/

owmsg' value='1'/> NetBSD fork for lockdoc analysismerlin@scholz.ruhr
summaryrefslogtreecommitdiff
path: root/sys/dev/drm/drm_vm.c
AgeCommit message (Collapse)Author
2009-06-21remove the old drm sources.mrg
2009-03-29drm_addmap():mrg
- for _DRM_CONSISTENT mappings, keep the handle. - use DRM_HANDLE_NEEDS_MASK() drm_mapbufs(): - use DRM_HANDLE_NEEDS_MASK() drm_mmap(): - use DRM_HANDLE_NEEDS_MASK() - for _DRM_SCATTER_GATHER and _DRM_SHM, use vtophys() on the adjusted offset. XXX this is gets radeon working on amd64 with an older PCI 9250 card. XXX: need to excise vtophys() usage. XXX: need to finish porting these fixes to external.
2009-03-07move a DRM_SPINUNLOCK() to where it will actually be executed.mrg
2008-06-29Revert previous, i915drm works again.jmcneill
2008-06-21Revert to using atop(offset + map->offset) for map types _DRM_AGP,bjs
_DRM_REGISTERS, and _DRM_FRAME_BUFFER. Fixes issue where a call to DrmMap() in libdrm returns EINVAL.
2008-06-20make an i386 ALL kernel build againcegger
2008-06-20- Don't use btop, as only three (?) platforms define this macro; usebjs
round_page(x) >> PAGE_SHIFT instead. - Add bus_space_mmap() in drm_vm.c to give a proper cookie to the device pager; this gets rid of one of the two #ifdef macppc conditionals.
2008-06-20- Use the extent manager to track mappings and provide sane offsetbjs
"cookies" for mmap. Now the radeon driver works on amd64! - Use bus_dma for nearly all map types (carried over from prior patch). - Plug some lock leaks in drm_bufs.c and remove superfluous locking in drm_add_magic() (from git). - Lower spl of mutexes to IPL_NONE (and so are now adaptive instead of spin mutexes), save for irq_lock which is a spin mutex at IPL_VM. Use mutex_spin_enter()/mutex_spin_exit() for irq_lock. ok jmcneill@
2008-05-04Ugh, unbreak _DRM_SHM on amd64 again.jmcneill
2008-05-04Fix compilation on i386.jmcneill
2008-05-04For _DRM_SHM allocations, do not use the VA as drm_map handle on x86_64jmcneill
since udv_attach will not accept a larger offset than signed 64-bit will provide. Not the best fix, but good enough for now -- at least an X server will now startup and get proper mappings.
2008-05-04Returning EINVAL from drm_mmap isn't a smart thing to do.jmcneill
2007-12-11use __KERNEL_RCSID()lukem
2007-11-21Remove #ifdef __OpSys__ sections to make this readable. Add RCS tags.bjs
Nothing done in header files, nor in dev/pci/drm (we might not want to touch this for the sake of merging) yet. Compile tested; please let me know if this broke anything.
2007-03-28Introduce options DRM_NO_AGP and DRM_NO_MTRR, so I can run this onjmcneill
platforms that don't provide these services. In drm_mmap, don't wrap the return value with atop() if we're on macppc. While we're here, fix: pci_intr_establish(&dev->pa.pa_pc, ...); to: pci_intr_establish(dev->pa.pa_pc, ...); The former doesn't even compile on macppc, and I'm amazed that it works at all anywhere else.
2007-03-21revert previous - it doesn't work on i386 at leastdrochner
2007-03-21we return addresses, not page numbers in *mmap() methodsmacallan
2007-03-20Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.drochner
Minor modifications by me: -use an mi device major number -(coarsly) divided into pci card specific and less specific parts, moved the latter to dev/drm -renamed autoconf attributes to reflect this Todo: -adapt all card frontends but i915 to drm include file location -review the mtrr change -make the change to agp_i810.c coexist with the fix for buggy VESA BIOSes which is commented out temporarily -RCS IDs etc style stuff -LKM support (rescan support for vga) -test