summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-06take down stuff after asking driver to unloadDave Airlie1-9/+8
2007-12-01drm: Add _DRM_DRIVER map flag.Robert Noland1-2/+4
This flag indicates that the driver is responsible for the map.
2007-11-22drm: major whitespace/coding style realignment with kernelDave Airlie1-2/+2
2007-11-05drm: remove lots of spurious whitespace.Dave Airlie1-11/+11
Kernel "cleanfile" script run.
2007-10-26update DRM sysfs supportJesse Barnes1-2/+2
Make DRM devices use real Linux devices instead of class devices, which are going away. While we're at it, clean up some of the interfaces to take struct drm_device * or struct device * and use the global drm_class where needed instead of passing it around.
2007-10-25Tighten permissions on some buffer manager ioctls.drm-ttm-finalizeThomas Hellstrom1-4/+8
Set bo init minor to 0. Add the version function to header.
2007-10-25Buffer manager:Thomas Hellstrom1-0/+1
Implement a version check IOCTL for drivers that don't use drmMMInit from user-space. Remove the minor check from the kernel code. That's really up to the driver. Bump major.
2007-10-17Remove the op ioctl, and replace it with a setuser ioctl.Thomas Hellstrom1-1/+1
Remove need for lock for now. May create races when we clean memory areas or on takedown. Needs to be fixed. Really do a validate on buffer creation in order to avoid problems with fixed memory buffers.
2007-10-17Revert "Replace NO_MOVE/NO_EVICT flags to buffer objects with an ioctl to ↵Thomas Hellstrom1-1/+0
set pinning." This reverts cf2d569daca6954d11a796f4d110148ae2e0c827 commit.
2007-10-16Drop destroy ioctls for fences and buffer objects.Kristian Høgsberg1-2/+0
We now always create a drm_ref_object for user objects and this is then the only things that holds a reference to the user object. This way unreference on will destroy the user object when the last drm_ref_object goes way.
2007-10-04linux-drm: Obey device class requirements when detecting devices.Maarten Maathuis1-0/+10
2007-09-26Add bracketsAlan Hourihane1-1/+1
2007-09-26don't copy back if an error was returned.Alan Hourihane1-1/+1
2007-08-16Merge branch 'master' into bo-set-pinEric Anholt1-1/+7
2007-08-02drm: add unlocked ioctl code path - not used yetDave Airlie1-1/+7
2007-07-26debug print ioctl return value as -integer rather than fffffwhatever.Eric Anholt1-1/+1
2007-07-26Replace NO_MOVE/NO_EVICT flags to buffer objects with an ioctl to set pinning.Eric Anholt1-0/+1
This cleans up the create/validate interfaces for this very uncommon path, and makes pinned object creation much easier to use for the X Server.
2007-07-21Fix misc ioctl issues, makes Nouveau run.Pekka Paalanen1-2/+8
Debug print fix in drm_release(). Forgotten local variable init in drm_setversion(). Unnecessary put_user() in drm_addmap_ioctl(). ioctl->cmd check broken in drm_ioctl(); workaround.
2007-07-21fix missing brace placement for IOC_INDave Airlie1-2/+3
2007-07-21fix drm no-compile due to BSD :-)Dave Airlie1-1/+1
2007-07-20Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.Eric Anholt1-105/+118
The data is now in kernel space, copied in/out as appropriate according to the This results in DRM_COPY_{TO,FROM}_USER going away, and error paths to deal with those failures. This also means that XFree86 4.2.0 support for i810 DRM is lost.
2007-07-20Replace filp in ioctl arguments with drm_file *file_priv.Eric Anholt1-15/+14
As a fallout, replace filp storage with file_priv storage for "unique identifier of a client" all over the DRM. There is a 1:1 mapping, so this should be a noop. This could be a minor performance improvement, as everything on Linux dereferenced filp to get file_priv anyway, while only the mmap ioctls went the other direction.
2007-07-16drm: remove drmP.h internal typedefsDave Airlie1-17/+17
2007-07-16drm: detypedef drm.h and fixup all problemsDave Airlie1-2/+2
2007-07-11Merge branch 'master' into cleanupdrm-ttm-cleanup-branchDave Airlie1-70/+21
Conflicts: libdrm/xf86drm.c linux-core/drm_bo.c linux-core/drm_fence.c
2007-07-11Made drm_sg_alloc accessible from inside the DRM - drm_sg_alloc_ioctl is the ↵Arthur Huillet1-1/+1
ioctl wrapper
2007-07-02Fix must-check warnings and implement a few error paths.Kristian Høgsberg1-1/+1
2007-06-10use krh's idr mods to remove lists from idr codeDave Airlie1-10/+2
2007-06-03Revert "drm: add new drm_wait_on function to replace macro"root1-28/+0
This reverts commit 6e860d08d0f5b1e9a2d711aaf9fd6b982aa8039e. As I said not a good plan - this macro will have to stay for now, trying to do the vbl code with the inline was a bit messy - may need specialised drm wait on functions
2007-05-27drm: convert drawable handling to use Linux idrDave Airlie1-9/+8
This cleans this code up a lot and uses the generic Linux idr which is designed for this. Signed-off-by: Dave Airlie <airlied@linux.ie>
2007-05-26Revert "drm/ttm: cleanup mm_ioctl ioctls to be separate ioctls."Dave Airlie1-10/+2
This reverts commit 3fdef0dc2000308b16907b95f637c60acde80a74. ditto not on master yet
2007-05-26Revert "drm/ttm: cleanup most of fence ioctl split out"Dave Airlie1-12/+1
This reverts commit 3dfc1400e9fc58c69292d7cf7c2e1653fa5e6991. this shouldn't have gone on master yet
2007-05-26whitespace fixups from kernelDave Airlie1-1/+1
2007-05-26drm/ttm: cleanup most of fence ioctl split outDave Airlie1-1/+12
2007-05-26drm/ttm: cleanup mm_ioctl ioctls to be separate ioctls.Dave Airlie1-2/+10
This is the first bunch of ioctls
2007-05-26drm: cleanup use of Linux list handling macrosDave Airlie1-28/+16
This makes the drms use of the list handling macros a lot cleaner and more along the lines of how they should be used.
2007-05-08ttm: complete drm buffer object ioctl splitDave Airlie1-1/+13
retain the op operation for validate/fence operations
2007-05-06drm/ttm: cleanup most of fence ioctl split outDave Airlie1-1/+12
2007-05-06drm/ttm: cleanup mm_ioctl ioctls to be separate ioctls.Dave Airlie1-2/+10
This is the first bunch of ioctls
2007-04-28drm: add new drm_wait_on function to replace macroDave Airlie1-0/+28
2007-04-28remove DRM_GETSAREA and replace with drm_getsarea functionDave Airlie1-0/+14
2007-03-20rename badly named defineDave Airlie1-4/+2
2007-03-19cleanup ioctl expansion codeDave Airlie1-7/+6
2007-03-19make drm fops const from kernelDave Airlie1-1/+1
2007-01-25Remove a scary error printed when we were leaking memory caches.Thomas Hellstrom1-6/+26
We don't use memory caches anymore... Fix memory accounting initialization to only use low or DMA32 memory.
2006-12-15Remove the memory caches for fence objects and memory manager nodes,Thomas Hellstrom1-51/+0
since the support for memory caches has gone from 2.6.20.
2006-10-20Bug #8707, 2.6.19-rc compatibility for memory manager code.Thomas Hellstrom1-1/+5
2006-10-17Add vma list memory usage to memory accounting.Thomas Hellstrom1-11/+1
Use byte unit for /proc printout of memory usage for small sizes to be able to detect memory allocation bugs more easily.
2006-10-17Add memory usage accounting to avoid DOS problems.Thomas Hellstrom1-1/+3
2006-10-17Extend generality for more memory types.Thomas Hellstrom1-4/+5
Fix up init and destruction code.