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.
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.
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.
Leif Delgass [Fri, 28 Feb 2003 19:39:46 +0000 (19:39 +0000)]
Update object targets
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.
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.
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.
Eric Anholt [Sat, 22 Feb 2003 18:40:12 +0000 (18:40 +0000)]
Fix build on NetBSD.
Eric Anholt [Fri, 21 Feb 2003 23:23:09 +0000 (23:23 +0000)]
Merge from bsd-4-0-0-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.
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.
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.
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.
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.
Michel Daenzer [Sat, 8 Feb 2003 18:02:02 +0000 (18:02 +0000)]
reclaim DMA buffers in DRIVER_RELEASE() (Felix Kühling)
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
Michel Daenzer [Tue, 4 Feb 2003 19:28:52 +0000 (19:28 +0000)]
disable strict aliasing for building the DRM
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
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
Keith Whitwell [Mon, 3 Feb 2003 14:30:32 +0000 (14:30 +0000)]
Fix size of VERTEX2 ioctl struct (Egbert Eich)
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)
Leif Delgass [Sun, 26 Jan 2003 22:25:35 +0000 (22:25 +0000)]
Add cast to avoid void * arithmetic warning
Eric Anholt [Fri, 24 Jan 2003 00:49:15 +0000 (00:49 +0000)]
Fix build on -current: Provide M_WAITOK define.
Eric Anholt [Thu, 16 Jan 2003 06:20:44 +0000 (06:20 +0000)]
Fix radeon for BSD.
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
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.
Keith Whitwell [Fri, 10 Jan 2003 17:04:21 +0000 (17:04 +0000)]
Note that radeon_do_cp_idle() can fail, cope with it.
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
Keith Whitwell [Fri, 3 Jan 2003 11:22:23 +0000 (11:22 +0000)]
more cleanups, free mem heap data on last client exit
Keith Whitwell [Thu, 2 Jan 2003 18:59:43 +0000 (18:59 +0000)]
Bump radeon drm version nr on recent interface relaxation
Keith Whitwell [Thu, 2 Jan 2003 18:41:02 +0000 (18:41 +0000)]
Remove printk
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.
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.
David Dawes [Thu, 12 Dec 2002 22:20:30 +0000 (22:20 +0000)]
enums should be ints
Keith Whitwell [Thu, 12 Dec 2002 16:45:31 +0000 (16:45 +0000)]
bring in jantorial changes from 2.5.51
Keith Whitwell [Wed, 11 Dec 2002 13:40:27 +0000 (13:40 +0000)]
remove agpgart informational
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.
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.
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
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)
Michel Daenzer [Sat, 30 Nov 2002 14:24:07 +0000 (14:24 +0000)]
vertical blank ioctl can send signal instead of blocking
Brian Paul [Mon, 25 Nov 2002 16:03:20 +0000 (16:03 +0000)]
added missing return fd (Alexander Stohr)
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.
Michel Daenzer [Sat, 23 Nov 2002 11:58:33 +0000 (11:58 +0000)]
allow unprivileged clients to use the GETPARAM ioctl (Wang WenRui)
Eric Anholt [Wed, 30 Oct 2002 06:10:34 +0000 (06:10 +0000)]
Kernel support for vblank syncing on Rage 128 and Matrox.
Jens Owen [Tue, 29 Oct 2002 20:29:05 +0000 (20:29 +0000)]
updated e-mail addresses for Keith, Alan and Jens
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
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.
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
Eric Anholt [Sun, 27 Oct 2002 05:25:50 +0000 (05:25 +0000)]
s/udelay/DRM_UDELAY/
Eric Anholt [Sun, 27 Oct 2002 05:24:33 +0000 (05:24 +0000)]
Catch up to -current.
Alan Hourihane [Tue, 22 Oct 2002 23:38:53 +0000 (23:38 +0000)]
final part of XFree86 4.2.99.2 merge
Alan Hourihane [Tue, 22 Oct 2002 13:43:45 +0000 (13:43 +0000)]
Import of XFree86 4.2.99.2
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
Keith Whitwell [Thu, 10 Oct 2002 08:25:40 +0000 (08:25 +0000)]
Jonny Strom's mga_dma.c patch
Brian Paul [Wed, 9 Oct 2002 16:29:01 +0000 (16:29 +0000)]
replaced max() macro with conditional expression
Keith Whitwell [Tue, 8 Oct 2002 08:32:06 +0000 (08:32 +0000)]
Fix error condition...
Keith Whitwell [Tue, 8 Oct 2002 08:29:47 +0000 (08:29 +0000)]
Call pci_enable_device() in DRM(irq_busid).
Keith Whitwell [Wed, 2 Oct 2002 07:55:27 +0000 (07:55 +0000)]
Free correct block in free_block (K. Rasche)
Michel Daenzer [Tue, 1 Oct 2002 17:31:20 +0000 (17:31 +0000)]
fix wait condition for vertical blank IRQs
Eric Anholt [Sun, 29 Sep 2002 23:56:17 +0000 (23:56 +0000)]
Remove some noise being spit to the console.
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)
Eric Anholt [Sun, 29 Sep 2002 22:47:08 +0000 (22:47 +0000)]
warnings cleanup
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).
Keith Whitwell [Sun, 29 Sep 2002 21:22:01 +0000 (21:22 +0000)]
Turn boxes off again
Keith Whitwell [Sun, 29 Sep 2002 21:19:01 +0000 (21:19 +0000)]
Move os-dependent stuff out of radeon_irq.c
Eric Anholt [Sun, 29 Sep 2002 20:48:18 +0000 (20:48 +0000)]
Fix up BSD irq handling.
Michel Daenzer [Sun, 29 Sep 2002 00:12:28 +0000 (00:12 +0000)]
add support for 16K and 64K page sizes (Bjorn Helgaas)
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
Michel Daenzer [Thu, 26 Sep 2002 12:49:18 +0000 (12:49 +0000)]
DRM(vblank_wait) is driver specific
Eric Anholt [Thu, 26 Sep 2002 07:45:07 +0000 (07:45 +0000)]
BSD vblank framework.
Eric Anholt [Thu, 26 Sep 2002 07:21:05 +0000 (07:21 +0000)]
Fix one warning.
Michel Daenzer [Wed, 25 Sep 2002 19:48:51 +0000 (19:48 +0000)]
change RADEON_PARAM_IRQ_ACTIVE to RADEON_PARAM_IRQ_NR
Michel Daenzer [Wed, 25 Sep 2002 17:18:19 +0000 (17:18 +0000)]
common ioctl to wait for vertical blank IRQs
Keith Whitwell [Mon, 23 Sep 2002 17:26:43 +0000 (17:26 +0000)]
merged r200-0-2-branch to trunk
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
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).
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.
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)
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
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.
Keith Whitwell [Thu, 29 Aug 2002 07:34:49 +0000 (07:34 +0000)]
standardize use of __FUNCTION__ (Linus)
Keith Whitwell [Wed, 28 Aug 2002 08:47:39 +0000 (08:47 +0000)]
Turn boxes off.
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.
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.
Eric Anholt [Tue, 27 Aug 2002 03:56:10 +0000 (03:56 +0000)]
Remove drm_linux.h, it's no longer used.
Eric Anholt [Tue, 27 Aug 2002 01:22:55 +0000 (01:22 +0000)]
Include non-radeon modules in the build.
Keith Whitwell [Mon, 26 Aug 2002 22:16:18 +0000 (22:16 +0000)]
merged r200-0-1-branch
Leif Delgass [Thu, 22 Aug 2002 19:35:31 +0000 (19:35 +0000)]
Don't (re)define vmalloc_to_page for kernel >= 2.4.19, as it has been
backported from 2.5.x. Also fix a couple of incorrect
LINUX_VERSION_CODE tests and fix header dependency for r128, radeon
when building without AGP.
Leif Delgass [Thu, 22 Aug 2002 18:43:39 +0000 (18:43 +0000)]
SetPageLocked only defined in 2.5.x (x=?), use LockPage for 2.4.x (x>=9).
Also apply build fixes from i810_dma.c to i830_dma.c
Jose Fonseca [Wed, 21 Aug 2002 14:09:28 +0000 (14:09 +0000)]
Change the linux kernel version condition in the i810 driver (according to
Alan Cox)
Eric Anholt [Wed, 21 Aug 2002 07:14:21 +0000 (07:14 +0000)]
Remove drm_linux.h, move the two useful defines into drm_drv.h (the only
place they're used). Use fd locking on -current. Actually copy in data
from userspace to kernel in the linux-compat ioctl path. Make sure
ioctl sizes are as expected in the ioctl handler functions.
Leif Delgass [Wed, 21 Aug 2002 01:14:43 +0000 (01:14 +0000)]
add missing include (for udelay), remove unused counter.
Michel Daenzer [Wed, 21 Aug 2002 00:09:32 +0000 (00:09 +0000)]
TRUE and FALSE don't seem to be defined everywhere...
Keith Whitwell [Mon, 12 Aug 2002 07:26:00 +0000 (07:26 +0000)]
zero-cliprect case patch from Jacek
Michel Daenzer [Sun, 11 Aug 2002 15:56:44 +0000 (15:56 +0000)]
test scratch register writeback before using it
Eric Anholt [Thu, 8 Aug 2002 21:23:46 +0000 (21:23 +0000)]
Try to open the /dev/dri/cardX device once, then only if it fails check the
device number and recreate it if necessary. Fixes xf86drm.c to allow
linux binaries to be used for emulation on FreeBSD.
Rik Faith [Tue, 6 Aug 2002 18:00:57 +0000 (18:00 +0000)]
Updates from Rusty Russell to:
1) Remove redundant header inclusion
2) Silence bitop on non-long argument warnings (change int to long)
3) Move to ISO C (gcc 2.6) initializers (accepted by older gccs also) All
of these are syntax changes that should not impact functionality.
Michel Daenzer [Thu, 18 Jul 2002 23:17:13 +0000 (23:17 +0000)]
fix off-by-one error for right bottom corner in radeon_emit_clip_rect()
(Jacek Rosik)
Tim Smith [Wed, 17 Jul 2002 08:30:36 +0000 (08:30 +0000)]
Workaround for Radeon lockups on fast machines