Commit graph

257 commits

Author SHA1 Message Date
Rik Faith
60c9819ab4 Updated counters for gamma 2001-02-13 14:08:25 +00:00
Gareth Hughes
b093470fc6 Merge (most of) the latest trunk code into the branch. 2001-02-13 03:43:04 +00:00
Alan Hourihane
650f48096d another fixup 2001-02-12 21:45:58 +00:00
Gareth Hughes
ac53737146 Finally... No-IRQ DMA works as expected (and doesn't suffer from the odd
random lockup like the old scheme).
2001-02-12 12:11:29 +00:00
Gareth Hughes
6038ace5dc Right, I've had it. Interrupts are gone...
This commit will temporarily break the gamma driver. I'll fix it up
    tonight.
2001-02-12 10:45:03 +00:00
Alan Hourihane
b381e69d45 in the hope of gareth telling me 'wtf???' is ? (if I couldn't guess!) 2001-02-09 16:48:50 +00:00
Alan Hourihane
0d43651ac5 add gamma support for new template structure 2001-02-09 16:44:16 +00:00
Alan Hourihane
9d859b1147 prepare for gamma updates 2001-02-09 16:43:24 +00:00
Rik Faith
db6b1ce9b8 Add extensible counters for statistics via ioctl 2001-02-09 16:00:14 +00:00
Gareth Hughes
9a426ec53e Checkpoint commit before I fix IRQ disable/enable. 2001-02-08 15:57:40 +00:00
Rik Faith
3239b80b18 Fix /proc files to output all available data (In recent kernels, they have
been truncating the output.)
2001-02-02 17:59:50 +00:00
Rik Faith
0af4b005af Add new ioctls and example drmstat.c program More ioctls are needed, but
this shows preliminary examples Try, for example: ./drmstat -cmv
2001-02-02 11:44:22 +00:00
Rik Faith
95bb76c7de Add drm_stub.h support This allows proper handling of /proc entries when
multiple drivers are loaded. This also paves the way for a fixed MAJOR
    number and the eventual deprecation of /proc dependencies.
2001-02-01 20:54:01 +00:00
Rik Faith
6fc31e043a Add DRM_MAJOR 2001-02-01 20:51:44 +00:00
Rik Faith
af7d8707dd Fix up warnings for printk statements 2001-02-01 20:51:21 +00:00
Gareth Hughes
30da0a74b5 Add spinlocks to interrupt handler. 2001-01-31 18:33:34 +00:00
Gareth Hughes
c76a35b3c8 Put PRIMEND write after DMAPADs to prevent race condition. 2001-01-31 18:24:57 +00:00
Gareth Hughes
5f15407b9c This is how it should be done...
We generate a SOFTRAP interrupt only when the primary DMA space wraps
    around. All writes to dev_priv->prim.tail must be locked with an
    IRQ-safe spinlock, as the interrupt handler reads this value.
2001-01-31 16:30:45 +00:00
Gareth Hughes
b5366b9789 Checkpoint commit, I'm about to throw all this code away... 2001-01-31 14:33:28 +00:00
Gareth Hughes
b6f4c2f7bf Don't really use the status page, keep the ring write pointer ourselves.
'book/double' will sit there and happily spin away, which kind of
    implies the DMA handling works well now. Other apps still causing
    lockups, most likely due to the fact I haven't fixed the rest of the
    code yet.
2001-01-29 03:07:13 +00:00
Gareth Hughes
c79ebf19ee More intermediate hacking... 2001-01-29 00:25:24 +00:00
Gareth Hughes
f352e41fec Yes, this really is development code... 2001-01-28 13:02:11 +00:00
Gareth Hughes
0bdc7bf06f More hacking on mga kernel module v3.0.0, basic (non-textured) apps work
great. Animation still needs sorting out, most apps run fine for a
    while and then lock up. This is just a snapshot, lots more stuff to
    come.
2001-01-28 12:54:52 +00:00
Gareth Hughes
4840ecda0b New DRM template architecture, with initial implementation of MGA driver
using core DRM templates. Other drivers to follow.
Note: This is missing the corresponding updates to the MGA 2D driver, so it
    will not run yet. These updates will also follow.
2001-01-24 16:09:02 +00:00
Gareth Hughes
4d2a4455b4 - Misc cleanups.
- Fix drmR128Clear parameters (Radeon to follow).
- Add some helper macros to r128/radeon kernel modules.
2001-01-24 15:34:46 +00:00
Jeff Hartmann
642bb6fbb0 file ati_pcigart.h was initially added on branch ati-pcigart-0-0-1-branch. 2001-01-23 17:53:57 +00:00
Jeff Hartmann
97379b82c8 file ati_pcigart.c was initially added on branch ati-pcigart-0-0-1-branch. 2001-01-23 17:53:57 +00:00
Jeff Hartmann
9116644366 Fixed problem preventing compile on system w/o agpgart. 2001-01-18 18:21:05 +00:00
Jeff Hartmann
417bfc8a9d file r128_pcigart.c was initially added on branch ati-pcigart-0-0-1-branch. 2001-01-17 18:43:04 +00:00
Jeff Hartmann
5708131c9a file scatter.c was initially added on branch ati-pcigart-0-0-1-branch. 2001-01-17 18:43:04 +00:00
Gareth Hughes
4c3f3de819 Remove debug messages. 2001-01-13 01:33:00 +00:00
Keith Whitwell
33e8dcf7e9 Makefile.linux was checking $(MACHINE) for 'i386' before building the
i810.o module. However on my i810's, $(MACHINE) is 'i686'.
2001-01-11 20:05:39 +00:00
Nathan Hand
61c15f4a2d Merged tdfx-3-0-0 2001-01-08 16:21:42 +00:00
Kevin E Martin
0994e635b2 Merged ati-5-0-0 2001-01-05 22:57:55 +00:00
Rik Faith
833af23c5d Sync with Linux 2.4.0-prerelease 2001-01-04 18:41:41 +00:00
Keith Whitwell
c7c6156aec add blit ioctl, fix plnwt handling 2000-12-30 23:28:53 +00:00
Gareth Hughes
b19c44e4fe Update date information. 2000-12-15 01:15:57 +00:00
Gareth Hughes
013d6f0806 file bufs_tmp.h was initially added on branch mach64-0-0-1-branch. 2000-12-13 10:30:26 +00:00
Gareth Hughes
8725828cf0 - Fix nasty depth span bug. Drawable offset was not being added to pixel
coords.
- Remove unneeded mask parameters from clear ioctl.
- Use correct subpixel offsets, fixes most glean bugs.
- Remove 32-bit depth buffer support. Only use 16 or 24-bit depth buffers.
2000-12-12 14:50:50 +00:00
David Dawes
14a7377536 Import of XFree86 4.0.1g 2000-12-05 16:39:28 +00:00
Gareth Hughes
41fa18dda5 file mach64_dma.c was initially added on branch mach64-0-0-1-branch. 2000-12-04 06:26:37 +00:00
Gareth Hughes
51b68cb483 file mach64_state.c was initially added on branch mach64-0-0-1-branch. 2000-12-04 06:26:37 +00:00
Gareth Hughes
8e02d8dcc4 file mach64_drm.h was initially added on branch mach64-0-0-1-branch. 2000-12-02 13:10:03 +00:00
Gareth Hughes
e15a24e154 Merged ati-4-1-1-branch into trunk. 2000-12-02 06:14:18 +00:00
David Dawes
33fd00485f Import of XFree86 4.0.1f 2000-11-30 17:32:23 +00:00
Gareth Hughes
84699b456d file context_tmp.h was initially added on branch mach64-0-0-1-branch. 2000-11-27 15:30:26 +00:00
Gareth Hughes
2da85fdba0 file driver_tmp.h was initially added on branch mach64-0-0-1-branch. 2000-11-27 15:30:26 +00:00
Gareth Hughes
3e9ebfb4cf file mach64_drv.h was initially added on branch mach64-0-0-1-branch. 2000-11-27 15:30:26 +00:00
Jeff Hartmann
960f13cdf4 Integrated bug fix from David S. Miller (a wait queue removal bug) 2000-11-21 16:18:47 +00:00
Rik Faith
679531e166 Sync with Linux 2.4.0-test11-pre5 Provide backward compatibility tested
against 2.2.18pre21
As usual, since all 2.4.0-test* kernels set LINUX_VERSION_CODE to the same
    value, if you are running a 2.4.0-test kernel, you MUST be running
    2.4.0-test11-pre4 or later (although anything after 2.4.0-test11-pre1
    should work fine -- I tested with pre4/pre5). I expect 2.2.x support to
    continue to work for all recent kernels, but I tested with 2.2.18pre21
    -- we use the old intermodule symbol communication for 2.2.x kernels,
    so they should all continue to work.
2000-11-15 15:47:51 +00:00