Eric Anholt
a1d9e5abaf
Refine the locking of the DRM. Most significant is covering the driver
...
ioctls with dev_lock, which is a major step toward being able to remove
Giant. Covers some new pieces (dev->unique*) in the core, and avoids
one call down into system internals with the drm lock held, which is
usually bad (FreeBSD LOR #23 , #27 ).
2004-11-07 04:11:15 +00:00
Dave Airlie
c5bededa51
add some more r300 pci ids
2004-11-07 02:19:58 +00:00
Dave Airlie
c21cdee38a
respect cc and cflags
2004-11-07 02:15:11 +00:00
Eric Anholt
67f6c5e36a
Don't link in files which no longer exist.
2004-11-07 00:30:15 +00:00
Eric Anholt
fa3fdbd99c
Now that the memory debug code is gone, and all 3 BSDs have M_ZERO, stop
...
using drm_alloc/drm_free in the core and instead use plain malloc/free.
2004-11-07 00:25:49 +00:00
Eric Anholt
d37457b599
Add the drm Makefile and update .cvsignores.
2004-11-06 23:05:46 +00:00
Eric Anholt
cb5aaa8987
Convert more drivers for bsd-core, moving the ioctl definitions to shared
...
code. Remove the "drv" from sisdrv, as it's unnecessary. Use the
drm_pci functions in i915 instead of per-os implementations of the
same. Avoid whitespace within fields in drm_pciids.txt (one of the r300
definitions), since it breaks the bsd pciids script. Tested on sis,
mga, r128. i915 needs more work.
2004-11-06 23:02:07 +00:00
Eric Anholt
7ddbd38dde
Remove some core stuff that ended up being unnecessary.
2004-11-06 21:44:54 +00:00
Eric Anholt
7bdccfd0bb
Get r128 basically working: Hook up the driver's dma ioctl, use the proper
...
offset into the driver ioctl array, and don't make the ctx bitmap
conditional.
2004-11-06 21:18:49 +00:00
Eric Anholt
ae7a171313
Move the lock/unlock ioctls to a more logical place, in drm_lock.c.
2004-11-06 20:27:19 +00:00
Eric Anholt
cca29ac9be
Connect up r128_ioctls in driver config.
2004-11-06 20:21:55 +00:00
Jon Smirl
069f53a93b
Move radeon i2c include to top of file
2004-11-06 16:55:41 +00:00
Jon Smirl
642a8106d2
Export missing r128 ioctl symbol
2004-11-06 16:51:36 +00:00
Jon Smirl
000c8eb18e
Fix Linux build. Why won't this complile? extern int const foo; static
...
struct drm_driver driver = { .var = foo }; error says foo is not
constant
2004-11-06 16:41:24 +00:00
Eric Anholt
b2f275b46e
Hook the debug output up to a sysctl, so you can choose to enable at
...
runtime.
2004-11-06 11:50:08 +00:00
Eric Anholt
7adee84064
Add file missed in last commit: Commit first pieces of port to OpenBSD,
...
done by Martin Lexa (martin at martinlexa dot cz). Now that we've got
porting for all three major BSDs (and the fourth being very similar to
FreeBSD), move the mostly-duplication drm_os_* files into drmP.h.
Remove some cruft from linux heritage and from pieces of the DRM that
have since been removed.
Note that things are still not quite working for even FreeBSD, but these
are first steps at cleanup, and just a WIP checkpoint.
2004-11-06 11:19:38 +00:00
Eric Anholt
d7510ea413
Commit first pieces of port to OpenBSD, done by Martin Lexa (martin at
...
martinlexa dot cz). Now that we've got porting for all three major BSDs
(and the fourth being very similar to FreeBSD), move the
mostly-duplication drm_os_* files into drmP.h. Remove some cruft from
linux heritage and from pieces of the DRM that have since been removed.
Note that things are still not quite working for even FreeBSD, but these
are first steps at cleanup, and just a WIP checkpoint.
2004-11-06 11:16:26 +00:00
Eric Anholt
cf259f10aa
Remove the vestiges of the memory-debug code.
2004-11-06 02:00:04 +00:00
Eric Anholt
c9202c8965
Commit WIP of BSD conversion to core model. Compiles for r128, radeon, but
...
doesn't run yet. Moves the ioctl definitions for these two drivers back
to the shared code -- they aren't OS-specific.
2004-11-06 01:41:47 +00:00
Jon Smirl
39a23640b2
Move ati_pcigart shared routines into drm-core module
2004-11-05 17:29:14 +00:00
Thomas Hellstrom
f08a01c0e2
Fixed bug in via_dma.c. The code didn't check that the lock was held by the
...
caller. Just that it was held.
2004-11-03 13:37:37 +00:00
Thomas Hellstrom
9409d8231c
Reworked the jump-code in via_dma.c. The command regulator now seems to
...
pause correctly after a jump. Removed the debug message from within the
interrupt handler of via_irq.c
2004-11-01 20:48:49 +00:00
Keith Whitwell
08758b2fb7
correct historic mis-attribution of copyright
2004-11-01 10:52:18 +00:00
Felix Kuehling
5128542814
Allow drivers to override reclaim_buffers in an OS-independent way by
...
passing drm_device_t* as first parameter, like in the BSD version.
2004-10-31 15:16:44 +00:00
Thomas Hellstrom
8264e2c8aa
Some stabilizing work to the DMA ring-buffer code. Temporarily replaced the
...
rewind jump with a reinitialization. This makes the code stable on
CLE266 and KM400.
2004-10-30 13:01:48 +00:00
Jon Smirl
816a291709
Switch SPIN_LOCK_UNLOCKED to spin_lock_init()
2004-10-29 17:09:54 +00:00
Jon Smirl
c611cb9f17
Add include of moduleparam.h
2004-10-29 14:38:07 +00:00
Jon Smirl
b974e2cd68
Break poll() to make it match the Xserver's broken expectations.
2004-10-28 15:52:31 +00:00
Dave Airlie
486a84d70c
fix for 2.4 build
2004-10-28 09:50:39 +00:00
Jon Smirl
b37efdadca
Round 2 of getting rid of inter_module_get()
2004-10-23 18:12:34 +00:00
Jon Smirl
43cbf43a5f
Revert symbol_get() changes from drm_drv
2004-10-23 14:43:06 +00:00
Dave Airlie
4b29f85768
fix inter module put/get
2004-10-23 14:00:53 +00:00
Dave Airlie
1473556e06
actually 2.6.10 introduced pfn range so it should work now..
2004-10-23 07:02:29 +00:00
Dave Airlie
182a0e5dac
fix pfn vs page for older kernels (2.6.9-rc kernels many not work..)
2004-10-23 06:59:15 +00:00
Dave Airlie
8d7e798d4c
Apply radeon r300 microcode patch to non-core
2004-10-23 06:25:56 +00:00
Jon Smirl
9ea6fe7aa6
Prepare to eliminate inter_module_get("agp")
2004-10-23 04:21:27 +00:00
Jon Smirl
ad87dd8427
Bring in patch from kernel for remap_pfn_range
2004-10-22 16:03:21 +00:00
Jon Smirl
d76f734f68
Fix up the radeon i2c error handing
2004-10-21 16:58:28 +00:00
Jon Smirl
17ce33835a
Don't release an i2c channel that has not initialized correctly
2004-10-20 16:23:42 +00:00
Jon Smirl
7ebbebf3d3
Switch linux-core from using dev->pdev->driver->name to
...
dev->driver->pci_driver.name. This avoids the stealth mode case where
pdev is pointing to the wrong driver or no driver.
2004-10-20 05:11:49 +00:00
Jon Smirl
5ae6c5af75
Fix dd vs di version typo in drm_setversion
2004-10-20 04:41:38 +00:00
Jon Smirl
157a814be6
Add a protective check against a possible buffer overflow
2004-10-19 18:18:02 +00:00
Jon Smirl
bcfbd73536
Fix missing I2C busses to be non-fatal error.
2004-10-19 16:30:02 +00:00
Jon Smirl
ca1ec9268f
drm-core, Clean up bug error path on stealth mode exit
2004-10-19 02:50:14 +00:00
Jose Fonseca
0d89b19325
Update Doxygen configuration & comments.
2004-10-18 14:16:41 +00:00
Ville Syrjala
d403173005
Fixed off by one errors in clipping.
2004-10-16 11:21:56 +00:00
Ville Syrjala
52fdf10fd7
Fixed bad formatting.
2004-10-16 10:54:58 +00:00
Jon Smirl
a8b2c94c18
Remove drm_init.c
2004-10-15 20:37:01 +00:00
Jon Smirl
91aa32742c
Move drm_cpu_valid out of drm_init. drm_init is empty now.
2004-10-15 20:36:15 +00:00
Jon Smirl
fa50e2b513
Switch linux-core over to 2.6 parameter model to enable debug use
...
drm_debug=1
2004-10-15 02:59:35 +00:00