summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'drm-patches' of ↵Linus Torvalds2007-05-0720-196/+349
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6: drm/i915: Add 965GM pci id update drm: just use io_remap_pfn_range on all archs.. drm: fix DRM_CONSISTENT mapping drm: fix up mmap locking in preparation for ttm changes drm: fix driver deadlock with AIGLX and reclaim_buffers_locked drm: fix warning in drm_fops.c drm: allow for more generic drm ioctls drm: fix alpha domain handling via: fix CX700 pci id drm: make drm_io_prot static. drm: remove via_mm.h drm: add missing NULL assignment drm/radeon: Fix u32 overflows when determining AGP base address in card space. drm: port over use_vmalloc code from git hashtab drm: fix crash with fops lock and fixup sarea/page size locking drm: bring bufs code from git tree. drm: move protection stuff into separate function drm: Use ARRAY_SIZE macro when appropriate drm: update README.drm (bugzilla #7933) drm: remove unused exports
| * drm/i915: Add 965GM pci id updateWang Zhenyu2007-04-262-1/+3
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: just use io_remap_pfn_range on all archs..Dave Airlie2007-03-241-6/+1
| | | | | | | | | | | | Move the sparc64 ifdef around to clean this up. Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix DRM_CONSISTENT mappingHugh Dickins2007-03-241-5/+9
| | | | | | | | | | | | This patch got lost in the DRM git tree for ages, bring it back to life. Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix up mmap locking in preparation for ttm changesThomas Hellstrom2007-03-241-9/+26
| | | | | | | | | | | | | | This change is needed to protect againt disappearing maps which aren't common. The map lists are protected using sturct_mutex but drm_mmap never locked it. Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix driver deadlock with AIGLX and reclaim_buffers_lockedThomas Hellstrom2007-03-237-81/+174
| | | | | | | | | | | | | | | | | | | | | | | | Bugzilla Bug #9457 Add refcounting of user waiters to the DRM hardware lock, so that we can use DRM_LOCK_CONT flag more conservatively. Also add a kernel waiter refcount that if nonzero transfers the lock for the kernel context when it is released. This is useful when waiting for idle and can be used for very simple fence object driver implementations for the new memory manager Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix warning in drm_fops.cAndrew Morton2007-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | drivers/char/drm/drm_fops.c: In function 'drm_setup': drivers/char/drm/drm_fops.c:60: warning: comparison of distinct pointer types lacks a cast Unfortunately PAGE_SIZE has different types on different architectures. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: allow for more generic drm ioctlsThomas Hellstrom2007-03-192-4/+9
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix alpha domain handlingJay Estabrook2007-03-111-1/+1
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * via: fix CX700 pci idThomas Hellstrom2007-03-111-1/+1
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: make drm_io_prot static.Adrian Bunk2007-03-111-1/+1
| | | | | | | | | | | | | | This patch makes the needlessly global drm_io_prot() static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: remove via_mm.hRobert P. J. Day2007-03-111-40/+0
| | | | | | | | | | | | | | Delete apparently unused header file drivers/char/drm/via_mm.h. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: add missing NULL assignmentDave Airlie2007-03-111-0/+1
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm/radeon: Fix u32 overflows when determining AGP base address in card space.Michel Dänzer2007-03-111-4/+4
| | | | | | | | | | | | | | | | | | The overflows could lead to the AGP aperture overlapping the framebuffer are in the card's address space when the latter is located at the very end of th 32 bit address space, which would result in a freeze on X server startup, probably because the card read commands from the framebuffer instead of from AGP. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392915 . Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: port over use_vmalloc code from git hashtabDave Airlie2007-03-112-2/+15
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix crash with fops lock and fixup sarea/page size lockingDave Airlie2007-03-111-2/+4
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: bring bufs code from git tree.Dave Airlie2007-03-112-10/+67
| | | | | | | | | | | | | | This checks the AGP mappings are in a valid place and also fixes the size check in the vm.. Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: move protection stuff into separate functionDave Airlie2007-03-111-18/+26
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: Use ARRAY_SIZE macro when appropriateAhmed S. Darwish2007-03-111-1/+1
| | | | | | | | | | | | | | | | Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: update README.drm (bugzilla #7933)Randy Dunlap2007-03-111-9/+7
| | | | | | | | | | | | | | | | Update URLs in drivers/char/drm/README.drm, to take care of kernel bugzilla Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: remove unused exportsAdrian Bunk2007-03-111-2/+0
| | | | | | | | | | | | | | | | This patch removes two unused exports. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
* | [DRM]: Delete sparc64 FFB driver code that never gets built.David S. Miller2007-03-264-1280/+0
|/ | | | | | | The Kconfig bits were removed long ago, so we should kill off the driver too. Signed-off-by: David S. Miller <davem@davemloft.net>
* [PATCH] remove many unneeded #includes of sched.hTim Schmielau2007-02-142-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | After Al Viro (finally) succeeded in removing the sched.h #include in module.h recently, it makes sense again to remove other superfluous sched.h includes. There are quite a lot of files which include it but don't actually need anything defined in there. Presumably these includes were once needed for macros that used to live in sched.h, but moved to other header files in the course of cleaning it up. To ease the pain, this time I did not fiddle with any header files and only removed #includes from .c-files, which tend to cause less trouble. Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha, arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig, allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all configs in arch/arm/configs on arm. I also checked that no new warnings were introduced by the patch (actually, some warnings are removed that were emitted by unnecessarily included header files). Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* [PATCH] mark struct file_operations const 3Arjan van de Ven2007-02-123-3/+3
| | | | | | | | | | | Many struct file_operations in the kernel can be "const". Marking them const moves these to the .rodata section, which avoids false sharing with potential dirty data. In addition it'll catch accidental writes at compile time to these shared resources. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* [PATCH] Char: timers cleanupJiri Slaby2007-02-121-9/+5
| | | | | | | | | | | | | | | | | | | | | - Use timer macros to set function and data members and to modify expiration time. - Use DEFINE_TIMER for global timers and do not init them at run-time in these cases. - del_timer_sync is common in most cases -- we want to wait for timer function if it's still running. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Dave Airlie <airlied@linux.ie> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Fulghum <paulkf@microgate.com> Cc: Kylene Jo Hall <kjhall@us.ibm.com> Cc: Wim Van Sebroeck <wim@iguana.be> Acked-by: Dmitry Torokhov <dtor@mail.ru> (Input bits) Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* drm: Allow for 44 bit user-tokens (or drm_file offsets)Thomas Hellstrom2007-02-083-13/+14
|
* drm/via: Disable AGP DMA for chips with the new 3D engine.Thomas Hellstrom2007-02-081-0/+5
|
* drm: update core memory manager from git drm treeThomas Hellstrom2007-02-083-47/+149
| | | | | | | | | | | | | | Remove the memory manager parameter from the put_block function, as this makes the client code a lot cleaner. Prepare buffer manager for lock and unlock calls. Fix buggy aligned allocations. Remove the stupid root_node field from the core memory manager. Support multi-page buffer offset alignments Add improved alignment functionality to the core memory manager. This makes an allocated block actually align itself and returns any wasted space to the manager. Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: remove drm_ioremap and drm_ioremapfreeChristoph Hellwig2007-02-086-195/+25
| | | | | | | | hch originally submitted this for paravirt ops work, airlied took it and cleaned up a lot of unused code caused by using this. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Airlie <airlied@linux.ie>
* i810/i830: use drm_core_ioremap instead of drm_ioremapDave Airlie2007-02-084-22/+48
| | | | | | This makes the i810/i830 use the drm_core_ioremap functions. Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: use vmalloc_user instead of vmalloc_32 for DRM_SHMThomas Hellstrom2007-02-081-1/+1
| | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
* via: allow for npot texture pitch alignmentThomas Hellstrom2007-02-083-11/+24
| | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
* via: add some new chipsetsThomas Hellstrom2007-02-085-17/+33
| | | | | | Disable 3D functionality and AGP DMA for chipsets with the DX9 3D engine. Signed-off-by: Dave Airlie <airlied@linux.ie>
* via: some PCI posting flushesThomas Hellstrom2007-02-082-1/+5
| | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
* i915: Fix a DRM_ERROR that should be DRM_DEBUG.=?utf-8?q?Michel_D=C3=A4nzer?=2007-01-081-1/+1
| | | | | | | It would clutter up the kernel output in a situation which is legitimate before X.org 7.2 and handled correctly by the 3D driver. Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: Stop defining pci_pretty_nameJean Delvare2006-12-191-4/+0
| | | | | | | drm drivers no longer use pci_pretty_name so we can stop defining it. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: r128: comment aligment with drm gitDave Airlie2006-12-193-3/+6
| | | | | | Align some r128 license comments Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: make kernel context switch same as for drm git tree.Dave Airlie2006-12-192-3/+2
| | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: fixup comment header styleDave Airlie2006-12-192-4/+4
| | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: savage: compat fix from drm git.Eric Anholt2006-12-191-2/+2
| | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: Unify radeon offset checking.=?utf-8?q?Michel_D=C3=A4nzer?=2006-12-153-35/+25
| | | | | | | | | Replace r300_check_offset() with generic radeon_check_offset(), which doesn't reject valid offsets when the framebuffer area is at the very end of the card's 32 bit address space. Make radeon_check_and_fixup_offset() use radeon_check_offset() as well. This fixes https://bugs.freedesktop.org/show_bug.cgi?id=7697 .
* i915_vblank_tasklet: Try harder to avoid tearing.=?utf-8?q?Michel_D=C3=A4nzer?=2006-12-111-60/+139
| | | | | | | | Previously, if there were several buffer swaps scheduled for the same vertical blank, all but the first blit emitted stood a chance of exhibiting tearing. In order to avoid this, split the blits along slices of each output top to bottom. Signed-off-by: Dave Airlie <airlied@linux.ie>
* DRM: handle pci_enable_device failureJeff Garzik2006-12-111-4/+8
| | | | | | Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
* drm: fix return value checkAkinobu Mita2006-12-111-4/+4
| | | | | | | | | class_create() and class_device_create() return error code as a pointer on failure. These return values need to be checked by IS_ERR(). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
* Merge branch 'drm-patches' of ↵Linus Torvalds2006-12-0915-57/+821
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (21 commits) Fix http://bugzilla.kernel.org/show_bug.cgi?id=7606 drm: add flag for mapping PCI DMA buffers read-only. drm: fix up irqflags in drm_lock.c drm: i915 updates drm: i915: fix up irqflags arg drm: i915: Only return EBUSY after we've established we need to schedule a new swap. drm: i915: Fix 'sequence has passed' condition in i915_vblank_swap(). drm: i915: Add SAREA fileds for determining which pipe to sync window buffer swaps to. drm: Make handling of dev_priv->vblank_pipe more robust. drm: DRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead drm: i915: Add ioctl for scheduling buffer swaps at vertical blanks. drm: Core vsync: Don't clobber target sequence number when scheduling signal. drm: Core vsync: Add flag DRM_VBLANK_NEXTONMISS. drm: Make locked tasklet handling more robust. drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended. drm: Change first valid DRM drawable ID to be 1 instead of 0. drm: drawable locking + memory management fixes + copyright drm: Add support for interrupt triggered driver callback with lock held to DRM core. drm: Add support for tracking drawable information to core drm: add support for secondary vertical blank interrupt to i915 ...
| * Fix http://bugzilla.kernel.org/show_bug.cgi?id=7606Andrew Morton2006-12-071-0/+1
| | | | | | | | | | | | | | | | | | WARNING: "drm_sman_set_manager" [drivers/char/drm/sis.ko] undefined! Cc: <daniel-silveira@gee.inatel.br> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: add flag for mapping PCI DMA buffers read-only.George Sapountzis2006-12-074-5/+27
| | | | | | | | | | | | | | Add DRM_PCI_BUFFER_RO flag for mapping PCI DMA buffer read-only. An additional flag is needed, since PCI DMA buffers do not have an associated map. Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: fix up irqflags in drm_lock.cDave Airlie2006-12-071-1/+1
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: i915 updates=?utf-8?q?Michel_D=C3=A4nzer?=2006-12-072-19/+21
| | | | | | | | | | | | | | | | | | Add support for DRM_VBLANK_NEXTONMISS. Bump minor for swap scheduling ioctl and secondary vblank support. Avoid mis-counting vblank interrupts when they're only enabled for pipe A. Only schedule vblank tasklet if there are scheduled swaps pending. Signed-off-by: Dave Airlie <airlied@linux.ie>
| * drm: i915: fix up irqflags arg=?utf-8?q?Michel_D=C3=A4nzer?=2006-12-071-2/+3
| | | | | | | | Signed-off-by: Dave Airlie <airlied@linux.ie>
OpenPOWER on IntegriCloud