profile/ivi/libdrm.git
21 years agobuf->filp is a pointer, so make printf format args be %p not %d
Eric Anholt [Sat, 29 Mar 2003 03:30:21 +0000 (03:30 +0000)]
buf->filp is a pointer, so make printf format args be %p not %d

21 years agomerged drm-filp-0-1-branch
Keith Whitwell [Fri, 28 Mar 2003 14:27:37 +0000 (14:27 +0000)]
merged drm-filp-0-1-branch

21 years agoAdd 2nd arg for DRM_FREE
Keith Whitwell [Wed, 26 Mar 2003 16:37:47 +0000 (16:37 +0000)]
Add 2nd arg for DRM_FREE

21 years agolinux merge for drm
Alan Hourihane [Tue, 25 Mar 2003 11:36:43 +0000 (11:36 +0000)]
linux merge for drm

21 years agoXFree86 4.3.0 merge
Alan Hourihane [Tue, 25 Mar 2003 00:29:14 +0000 (00:29 +0000)]
XFree86 4.3.0 merge

21 years agoMerge back from FreeBSD-current, adding FreeBSD ID tags to aid future
Eric Anholt [Tue, 11 Mar 2003 20:51:28 +0000 (20:51 +0000)]
Merge back from FreeBSD-current, adding FreeBSD ID tags to aid future
    merging. Also includes an update to radeon PCI IDs.

21 years agoMake dma_addr_t an unsigned long not a uint32, don't try to use memrange
Eric Anholt [Sat, 8 Mar 2003 05:05:41 +0000 (05:05 +0000)]
Make dma_addr_t an unsigned long not a uint32, don't try to use memrange
    functions on FreeBSD non-x86, and remove a dead define.

21 years agoRemove the vbl signal code because it's untested (and has lock issues on
Eric Anholt [Thu, 6 Mar 2003 19:21:23 +0000 (19:21 +0000)]
Remove the vbl signal code because it's untested (and has lock issues on
    -current).

21 years agoPut cdevsw initialization in line with FreeBSD-current. (From r1.10,r1.11
Eric Anholt [Wed, 5 Mar 2003 06:06:27 +0000 (06:06 +0000)]
Put cdevsw initialization in line with FreeBSD-current. (From r1.10,r1.11
    of FreeBSD CVS)

21 years agoUpdate mmap handling for FreeBSD-current (Based on r1.3 of FreeBSD CVS).
Eric Anholt [Wed, 5 Mar 2003 06:04:50 +0000 (06:04 +0000)]
Update mmap handling for FreeBSD-current (Based on r1.3 of FreeBSD CVS).

21 years agoRemove a paste-o in DRM_SPINUNINIT and add a volatile to the compatibility
Eric Anholt [Wed, 5 Mar 2003 04:14:52 +0000 (04:14 +0000)]
Remove a paste-o in DRM_SPINUNINIT and add a volatile to the compatibility
    atomic_cmpset_int.

21 years agoDRM_FREE/2 patch from Philip Brown
Keith Whitwell [Tue, 4 Mar 2003 11:41:12 +0000 (11:41 +0000)]
DRM_FREE/2 patch from Philip Brown

21 years agofile savage_drv.h was initially added on branch savage-0-0-1-branch.
Jose Fonseca [Sun, 2 Mar 2003 21:44:26 +0000 (21:44 +0000)]
file savage_drv.h was initially added on branch savage-0-0-1-branch.

21 years agofile savage_drm.h was initially added on branch savage-0-0-1-branch.
Jose Fonseca [Sun, 2 Mar 2003 21:44:26 +0000 (21:44 +0000)]
file savage_drm.h was initially added on branch savage-0-0-1-branch.

21 years agofile savage_bci.c was initially added on branch savage-0-0-1-branch.
Jose Fonseca [Sun, 2 Mar 2003 21:44:26 +0000 (21:44 +0000)]
file savage_bci.c was initially added on branch savage-0-0-1-branch.

21 years agoUpdate object targets
Leif Delgass [Fri, 28 Feb 2003 19:39:46 +0000 (19:39 +0000)]
Update object targets

21 years agofile savage_drv.c was initially added on branch savage-0-0-1-branch.
Jose Fonseca [Thu, 27 Feb 2003 12:52:42 +0000 (12:52 +0000)]
file savage_drv.c was initially added on branch savage-0-0-1-branch.

21 years agofile savage.h was initially added on branch savage-0-0-1-branch.
Jose Fonseca [Thu, 27 Feb 2003 12:52:42 +0000 (12:52 +0000)]
file savage.h was initially added on branch savage-0-0-1-branch.

21 years agofile mach64_irq.c was initially added on branch mach64-0-0-6-branch.
Leif Delgass [Wed, 26 Feb 2003 09:49:54 +0000 (09:49 +0000)]
file mach64_irq.c was initially added on branch mach64-0-0-6-branch.

21 years agoFix build on NetBSD.
Eric Anholt [Sat, 22 Feb 2003 18:40:12 +0000 (18:40 +0000)]
Fix build on NetBSD.

21 years agoMerge from bsd-4-0-0-branch.
Eric Anholt [Fri, 21 Feb 2003 23:23:09 +0000 (23:23 +0000)]
Merge from bsd-4-0-0-branch.

21 years agofile mach64_drm.h was initially added on branch mach64-0-0-6-branch.
Eric Anholt [Sun, 16 Feb 2003 19:03:04 +0000 (19:03 +0000)]
file mach64_drm.h was initially added on branch mach64-0-0-6-branch.

21 years agofile mach64_state.c was initially added on branch mach64-0-0-6-branch.
Eric Anholt [Sun, 16 Feb 2003 19:03:04 +0000 (19:03 +0000)]
file mach64_state.c was initially added on branch mach64-0-0-6-branch.

21 years agofile mach64_drv.h was initially added on branch mach64-0-0-6-branch.
Eric Anholt [Sun, 16 Feb 2003 19:03:04 +0000 (19:03 +0000)]
file mach64_drv.h was initially added on branch mach64-0-0-6-branch.

21 years agofile mach64_dma.c was initially added on branch mach64-0-0-6-branch.
Eric Anholt [Sun, 16 Feb 2003 19:03:04 +0000 (19:03 +0000)]
file mach64_dma.c was initially added on branch mach64-0-0-6-branch.

21 years agofile mach64.h was initially added on branch mach64-0-0-6-branch.
Eric Anholt [Sun, 16 Feb 2003 19:03:04 +0000 (19:03 +0000)]
file mach64.h was initially added on branch mach64-0-0-6-branch.

21 years agoreclaim DMA buffers in DRIVER_RELEASE() (Felix Kühling)
Michel Daenzer [Sat, 8 Feb 2003 18:02:02 +0000 (18:02 +0000)]
reclaim DMA buffers in DRIVER_RELEASE() (Felix Kühling)

21 years agofix EAGAIN handling in radeon_cp_dispatch_texture() (fixes corruption of
Michel Daenzer [Thu, 6 Feb 2003 18:20:00 +0000 (18:20 +0000)]
fix EAGAIN handling in radeon_cp_dispatch_texture() (fixes corruption of
    large textures), and get rid of superfluous local y variable

21 years agodisable strict aliasing for building the DRM
Michel Daenzer [Tue, 4 Feb 2003 19:28:52 +0000 (19:28 +0000)]
disable strict aliasing for building the DRM

21 years agofix PCI and AGP posting problems (based on testing by Chris Ison and
Michel Daenzer [Tue, 4 Feb 2003 19:20:18 +0000 (19:20 +0000)]
fix PCI and AGP posting problems (based on testing by Chris Ison and
    suggestions by Benjamin Herrenschmidt and Arjan van de Ven)
remove radeon_flush_write_combine() which has been unused for a while

21 years agoonly acknowledge interrupts we handle - others could be used outside the
Michel Daenzer [Tue, 4 Feb 2003 15:56:37 +0000 (15:56 +0000)]
only acknowledge interrupts we handle - others could be used outside the
    DRM

21 years agoFix size of VERTEX2 ioctl struct (Egbert Eich)
Keith Whitwell [Mon, 3 Feb 2003 14:30:32 +0000 (14:30 +0000)]
Fix size of VERTEX2 ioctl struct (Egbert Eich)

21 years agodon't inflate relative vblank sequence numbers on repeated calls (e.g. when
Michel Daenzer [Sun, 2 Feb 2003 03:06:47 +0000 (03:06 +0000)]
don't inflate relative vblank sequence numbers on repeated calls (e.g. when
    interrupted by a signal)

21 years agoAdd cast to avoid void * arithmetic warning
Leif Delgass [Sun, 26 Jan 2003 22:25:35 +0000 (22:25 +0000)]
Add cast to avoid void * arithmetic warning

21 years agoFix build on -current: Provide M_WAITOK define.
Eric Anholt [Fri, 24 Jan 2003 00:49:15 +0000 (00:49 +0000)]
Fix build on -current: Provide M_WAITOK define.

21 years agoFix radeon for BSD.
Eric Anholt [Thu, 16 Jan 2003 06:20:44 +0000 (06:20 +0000)]
Fix radeon for BSD.

21 years agolimit number of pending vblank signals to 100 to prevent DoS, and minor
Michel Daenzer [Sat, 11 Jan 2003 20:58:20 +0000 (20:58 +0000)]
limit number of pending vblank signals to 100 to prevent DoS, and minor
    cleanups

21 years agofile agp_30_symbols.h was initially added on branch agpgart_2_0_branch.
Jeff Hartmann [Sat, 11 Jan 2003 05:42:37 +0000 (05:42 +0000)]
file agp_30_symbols.h was initially added on branch agpgart_2_0_branch.

21 years agoNote that radeon_do_cp_idle() can fail, cope with it.
Keith Whitwell [Fri, 10 Jan 2003 17:04:21 +0000 (17:04 +0000)]
Note that radeon_do_cp_idle() can fail, cope with it.

21 years ago[TRIVIAL] [TRIVIAL PATCH 2.5.48] Remove unused function from radeon_mem.c
Rik Faith [Mon, 6 Jan 2003 07:38:25 +0000 (07:38 +0000)]
[TRIVIAL] [TRIVIAL PATCH 2.5.48] Remove unused function from radeon_mem.c
    Submitted by Rusty Trivial Russell

21 years agomore cleanups, free mem heap data on last client exit
Keith Whitwell [Fri, 3 Jan 2003 11:22:23 +0000 (11:22 +0000)]
more cleanups, free mem heap data on last client exit

21 years agoBump radeon drm version nr on recent interface relaxation
Keith Whitwell [Thu, 2 Jan 2003 18:59:43 +0000 (18:59 +0000)]
Bump radeon drm version nr on recent interface relaxation

21 years agoRemove printk
Keith Whitwell [Thu, 2 Jan 2003 18:41:02 +0000 (18:41 +0000)]
Remove printk

21 years agoMake the radeon drm module better at cleaning up after itself if all the
Keith Whitwell [Thu, 2 Jan 2003 18:38:07 +0000 (18:38 +0000)]
Make the radeon drm module better at cleaning up after itself if all the
    clients (particularly the X server) exit without doing so for it.

21 years agofile i830_irq.c was initially added on branch mesa-4-0-4-branch.
David Dawes [Mon, 16 Dec 2002 19:18:51 +0000 (19:18 +0000)]
file i830_irq.c was initially added on branch mesa-4-0-4-branch.

21 years agoenums should be ints
David Dawes [Thu, 12 Dec 2002 22:20:30 +0000 (22:20 +0000)]
enums should be ints

21 years agobring in jantorial changes from 2.5.51
Keith Whitwell [Thu, 12 Dec 2002 16:45:31 +0000 (16:45 +0000)]
bring in jantorial changes from 2.5.51

21 years agoremove agpgart informational
Keith Whitwell [Wed, 11 Dec 2002 13:40:27 +0000 (13:40 +0000)]
remove agpgart informational

21 years agoRewrite radeon_cp_dispatch_texture() to avoid pingponging back to userspace
Keith Whitwell [Fri, 6 Dec 2002 12:22:43 +0000 (12:22 +0000)]
Rewrite radeon_cp_dispatch_texture() to avoid pingponging back to userspace
    when issue large (multi-buffer) uploads.

21 years agoAdd vblank signal code for BSD DRM. Untested so far, but working with a
Eric Anholt [Fri, 6 Dec 2002 02:27:30 +0000 (02:27 +0000)]
Add vblank signal code for BSD DRM. Untested so far, but working with a
    4.2.0 userland at least.

21 years agofurther vertical blank interrupt cleanups: remove unused variable,
Michel Daenzer [Wed, 4 Dec 2002 15:39:53 +0000 (15:39 +0000)]
further vertical blank interrupt cleanups: remove unused variable,
    non-ambiguous variable names, don't express subtraction in
    unnecessarily complicated ways

21 years agovertical blank interrupt cleanups: use spinlock instead of semaphore, send
Michel Daenzer [Tue, 3 Dec 2002 00:43:47 +0000 (00:43 +0000)]
vertical blank interrupt cleanups: use spinlock instead of semaphore, send
    signal directly from interrupt handler instead of using a taskqueue
    (based on feedback by Linus Torvalds)

21 years agovertical blank ioctl can send signal instead of blocking
Michel Daenzer [Sat, 30 Nov 2002 14:24:07 +0000 (14:24 +0000)]
vertical blank ioctl can send signal instead of blocking

21 years agoadded missing return fd (Alexander Stohr)
Brian Paul [Mon, 25 Nov 2002 16:03:20 +0000 (16:03 +0000)]
added missing return fd (Alexander Stohr)

21 years agoSilence the radeon_freelist_get 'returning NULL' message. It's not an error
Keith Whitwell [Mon, 25 Nov 2002 09:34:47 +0000 (09:34 +0000)]
Silence the radeon_freelist_get 'returning NULL' message. It's not an error
    & just confuses people.

21 years agoallow unprivileged clients to use the GETPARAM ioctl (Wang WenRui)
Michel Daenzer [Sat, 23 Nov 2002 11:58:33 +0000 (11:58 +0000)]
allow unprivileged clients to use the GETPARAM ioctl (Wang WenRui)

21 years agoKernel support for vblank syncing on Rage 128 and Matrox.
Eric Anholt [Wed, 30 Oct 2002 06:10:34 +0000 (06:10 +0000)]
Kernel support for vblank syncing on Rage 128 and Matrox.

21 years agoupdated e-mail addresses for Keith, Alan and Jens
Jens Owen [Tue, 29 Oct 2002 20:29:05 +0000 (20:29 +0000)]
updated e-mail addresses for Keith, Alan and Jens

21 years agopreserve CRTC{,2}_OFFSET_CNTL in 2D driver to avoid bad effects when
Michel Daenzer [Tue, 29 Oct 2002 13:49:26 +0000 (13:49 +0000)]
preserve CRTC{,2}_OFFSET_CNTL in 2D driver to avoid bad effects when
    pageflipping after a mode switch
take current page into account in AdjustFrame(); writing the CRTC offset
    via the CP was probably a bad idea as this can happen asynchronously,
    reverted
take frame offset into account when flipping pages
handle CRTC2 as well for pageflipping (untested)
preserve GEN_INT_CNTL on mode switches to prevent interrupts from getting
    disabled

21 years agoUse bus_alloc_resource/bus_release_resource more properly: save the rid
Eric Anholt [Tue, 29 Oct 2002 03:20:21 +0000 (03:20 +0000)]
Use bus_alloc_resource/bus_release_resource more properly: save the rid
    returned by alloc.

21 years agomerge from mesa-4-1-branch to get cube-map registers. bumped version to 1.7
Brian Paul [Mon, 28 Oct 2002 19:05:40 +0000 (19:05 +0000)]
merge from mesa-4-1-branch to get cube-map registers. bumped version to 1.7

21 years agos/udelay/DRM_UDELAY/
Eric Anholt [Sun, 27 Oct 2002 05:25:50 +0000 (05:25 +0000)]
s/udelay/DRM_UDELAY/

21 years agoCatch up to -current.
Eric Anholt [Sun, 27 Oct 2002 05:24:33 +0000 (05:24 +0000)]
Catch up to -current.

21 years agofinal part of XFree86 4.2.99.2 merge
Alan Hourihane [Tue, 22 Oct 2002 23:38:53 +0000 (23:38 +0000)]
final part of XFree86 4.2.99.2 merge

21 years agoImport of XFree86 4.2.99.2
Alan Hourihane [Tue, 22 Oct 2002 13:43:45 +0000 (13:43 +0000)]
Import of XFree86 4.2.99.2

21 years agoFix reversed test that broke vblank waiting on FreeBSD.
Eric Anholt [Mon, 14 Oct 2002 23:35:24 +0000 (23:35 +0000)]
Fix reversed test that broke vblank waiting on FreeBSD.
Pointy hat to: anholt

21 years agoJonny Strom's mga_dma.c patch
Keith Whitwell [Thu, 10 Oct 2002 08:25:40 +0000 (08:25 +0000)]
Jonny Strom's mga_dma.c patch

21 years agoreplaced max() macro with conditional expression
Brian Paul [Wed, 9 Oct 2002 16:29:01 +0000 (16:29 +0000)]
replaced max() macro with conditional expression

21 years agoFix error condition...
Keith Whitwell [Tue, 8 Oct 2002 08:32:06 +0000 (08:32 +0000)]
Fix error condition...

21 years agoCall pci_enable_device() in DRM(irq_busid).
Keith Whitwell [Tue, 8 Oct 2002 08:29:47 +0000 (08:29 +0000)]
Call pci_enable_device() in DRM(irq_busid).

21 years agoFree correct block in free_block (K. Rasche)
Keith Whitwell [Wed, 2 Oct 2002 07:55:27 +0000 (07:55 +0000)]
Free correct block in free_block (K. Rasche)

21 years agofix wait condition for vertical blank IRQs
Michel Daenzer [Tue, 1 Oct 2002 17:31:20 +0000 (17:31 +0000)]
fix wait condition for vertical blank IRQs

21 years agoRemove some noise being spit to the console.
Eric Anholt [Sun, 29 Sep 2002 23:56:17 +0000 (23:56 +0000)]
Remove some noise being spit to the console.

21 years agoMake our set_bit and friends match linux better (cleans up some warnings)
Eric Anholt [Sun, 29 Sep 2002 23:21:55 +0000 (23:21 +0000)]
Make our set_bit and friends match linux better (cleans up some warnings)

21 years agowarnings cleanup
Eric Anholt [Sun, 29 Sep 2002 22:47:08 +0000 (22:47 +0000)]
warnings cleanup

21 years agoFix some of my silliness in DRM_WAIT_ON (not returning EINTR).
Eric Anholt [Sun, 29 Sep 2002 22:39:34 +0000 (22:39 +0000)]
Fix some of my silliness in DRM_WAIT_ON (not returning EINTR).

21 years agoTurn boxes off again
Keith Whitwell [Sun, 29 Sep 2002 21:22:01 +0000 (21:22 +0000)]
Turn boxes off again

21 years agoMove os-dependent stuff out of radeon_irq.c
Keith Whitwell [Sun, 29 Sep 2002 21:19:01 +0000 (21:19 +0000)]
Move os-dependent stuff out of radeon_irq.c

21 years agoFix up BSD irq handling.
Eric Anholt [Sun, 29 Sep 2002 20:48:18 +0000 (20:48 +0000)]
Fix up BSD irq handling.

21 years agoadd support for 16K and 64K page sizes (Bjorn Helgaas)
Michel Daenzer [Sun, 29 Sep 2002 00:12:28 +0000 (00:12 +0000)]
add support for 16K and 64K page sizes (Bjorn Helgaas)

21 years agomake SW interrupts more robust: write sequence number to scratch register,
Michel Daenzer [Fri, 27 Sep 2002 21:47:52 +0000 (21:47 +0000)]
make SW interrupts more robust: write sequence number to scratch register,
    acknowledge any lost interrupts before waiting

21 years agoDRM(vblank_wait) is driver specific
Michel Daenzer [Thu, 26 Sep 2002 12:49:18 +0000 (12:49 +0000)]
DRM(vblank_wait) is driver specific

21 years agoBSD vblank framework.
Eric Anholt [Thu, 26 Sep 2002 07:45:07 +0000 (07:45 +0000)]
BSD vblank framework.

21 years agoFix one warning.
Eric Anholt [Thu, 26 Sep 2002 07:21:05 +0000 (07:21 +0000)]
Fix one warning.

21 years agochange RADEON_PARAM_IRQ_ACTIVE to RADEON_PARAM_IRQ_NR
Michel Daenzer [Wed, 25 Sep 2002 19:48:51 +0000 (19:48 +0000)]
change RADEON_PARAM_IRQ_ACTIVE to RADEON_PARAM_IRQ_NR

21 years agocommon ioctl to wait for vertical blank IRQs
Michel Daenzer [Wed, 25 Sep 2002 17:18:19 +0000 (17:18 +0000)]
common ioctl to wait for vertical blank IRQs

21 years agomerged r200-0-2-branch to trunk
Keith Whitwell [Mon, 23 Sep 2002 17:26:43 +0000 (17:26 +0000)]
merged r200-0-2-branch to trunk

21 years agomake sure we never oops because the hardware lock pointer in the sigdata
Michel Daenzer [Sat, 21 Sep 2002 23:18:54 +0000 (23:18 +0000)]
make sure we never oops because the hardware lock pointer in the sigdata
    structure is out of date

21 years ago- Fix various bugs in the DRI support for the i830 and i845G (Keith
David Dawes [Wed, 11 Sep 2002 00:57:49 +0000 (00:57 +0000)]
- Fix various bugs in the DRI support for the i830 and i845G (Keith
    Whitwell).
- Major rework of the 2D i830/i845G support, including:
- Improve VESA mode selection, and fix refresh rate selection.
- Don't duplicate functions provided in the vbe modules.
- Don't duplicate functions provided in the vgahw module.
- Rewrite memory allocation.
- Rewrite initialisation and save/restore state handling.
- Decouple the i810 support from i830 and later.
- Remove various unnecessary hacks and workarounds.
- Fix an 845G problem with the ring buffer not in pre-allocated memory.
- Fix screen blanking.
- Fix some HW cursor glitches, and turn HW cursor off at VT switch and
    exit.
- Don't attempt to use the i830's function 1 entity.
- Fix problems with option handling. (David Dawes).
- Add mode VBE-aware mode handling functions to the vbe module (David
    Dawes).

21 years agoRemove some extra symlinking for kernel module building that hasn't been
Eric Anholt [Fri, 30 Aug 2002 23:49:25 +0000 (23:49 +0000)]
Remove some extra symlinking for kernel module building that hasn't been
    needed since 2000.

21 years agoRemove this one too: it'll be used from the linux version (if ever)
Eric Anholt [Fri, 30 Aug 2002 21:34:03 +0000 (21:34 +0000)]
Remove this one too: it'll be used from the linux version (if ever)

21 years agoRemove compat functions for FreeBSD for drivers which weren't available in
Eric Anholt [Fri, 30 Aug 2002 21:06:21 +0000 (21:06 +0000)]
Remove compat functions for FreeBSD for drivers which weren't available in
    X4.2

21 years agofile radeon_irq.c was initially added on branch r200-0-2-branch.
Keith Whitwell [Fri, 30 Aug 2002 07:55:25 +0000 (07:55 +0000)]
file radeon_irq.c was initially added on branch r200-0-2-branch.

21 years agostandardize use of __FUNCTION__ (Linus)
Keith Whitwell [Thu, 29 Aug 2002 07:34:49 +0000 (07:34 +0000)]
standardize use of __FUNCTION__ (Linus)

21 years agoTurn boxes off.
Keith Whitwell [Wed, 28 Aug 2002 08:47:39 +0000 (08:47 +0000)]
Turn boxes off.

21 years agoRemove i8x0 files from the BSD side. These were not actually ported, and
Eric Anholt [Wed, 28 Aug 2002 04:33:02 +0000 (04:33 +0000)]
Remove i8x0 files from the BSD side. These were not actually ported, and
    when they do get ported most of them won't live in these directories.

21 years agofile radeon_mem.c was initially added on branch r200-0-2-branch.
Keith Whitwell [Tue, 27 Aug 2002 12:16:32 +0000 (12:16 +0000)]
file radeon_mem.c was initially added on branch r200-0-2-branch.

21 years agoRemove drm_linux.h, it's no longer used.
Eric Anholt [Tue, 27 Aug 2002 03:56:10 +0000 (03:56 +0000)]
Remove drm_linux.h, it's no longer used.

21 years agoInclude non-radeon modules in the build.
Eric Anholt [Tue, 27 Aug 2002 01:22:55 +0000 (01:22 +0000)]
Include non-radeon modules in the build.

21 years agomerged r200-0-1-branch
Keith Whitwell [Mon, 26 Aug 2002 22:16:18 +0000 (22:16 +0000)]
merged r200-0-1-branch