Dave Airlie
856bdf0f67
fixup bens fix so it works..
2005-09-30 03:39:02 +00:00
Dave Airlie
68b4ad3cce
Add Bens fix for radeon maps on ppc
2005-09-30 03:14:18 +00:00
Thomas Hellstrom
9d24d951f7
via: fix stray error printout message.
2005-09-25 14:38:07 +00:00
Thomas Hellstrom
903e5701ff
Add the via PCI DMA blit code.
2005-09-25 12:54:12 +00:00
Dave Airlie
d4dec1db80
hopefully fix server recycling on PCIE
2005-09-25 08:54:31 +00:00
Dave Airlie
c1b7df95be
add __ATTR
2005-09-25 05:19:06 +00:00
Dave Airlie
3a0230ef9c
use linux kernel macros don't make our own
2005-09-25 03:09:51 +00:00
Dave Airlie
cd16d96856
remove pci_find_class use for alpha
2005-09-18 09:31:06 +00:00
Dave Airlie
f5c81b2620
compat for pci_pretty_name
2005-09-17 04:16:51 +00:00
Dave Airlie
acb6abcc6d
update autogen from xserver tree
2005-09-12 06:21:24 +00:00
Eric Anholt
4b2a94db46
Fix the spelling of DRM_AUTH so that the bsd core stuff builds again. Next
...
up is pcigart.
2005-09-12 05:35:51 +00:00
Dave Airlie
f1276d3b43
add some pci express chips
2005-09-12 04:37:52 +00:00
Dave Airlie
ba8f4fb778
make PCI Express work on 64-bit machines, thanks to Alex Deucher (agd5f)
2005-09-12 04:35:31 +00:00
Dave Airlie
3f6fcbc676
back out change as gart is now in framebuffer for PCIE
2005-09-11 09:58:19 +00:00
Dave Airlie
5565a00916
Add GART in FB support for ati pcigart, and PCIE support for r300
2005-09-11 08:51:23 +00:00
Dave Airlie
29326c1a89
fix makefile bug
2005-09-11 07:08:46 +00:00
Roland Scheidegger
53c8037786
Add support for GL_ATI_fragment_shader, new packets R200_EMIT_PP_AFS_0/1,
...
R200_EMIT_PP_TXCTLALL_0-5 (replaces R200_EMIT_PP_TXFILTER_0-5, 2 more
regs) and R200_EMIT_ATF_TFACTOR (replaces R200_EMIT_TFACTOR_0 (8 consts
instead of 6)
2005-09-09 22:35:49 +00:00
Vladimir Dergachev
c8b5a9f8cc
Add another R300 PCI id. Submitted by: Daniel Estévez
2005-09-09 12:53:44 +00:00
Dave Airlie
0d346a07a8
convert ioctl flags to use flags instead of separate ints
2005-09-03 03:27:14 +00:00
Dave Airlie
80ed93c7bf
check is the map containing the lock
2005-09-03 02:21:22 +00:00
Eric Anholt
22ec8ebb17
- Don't try to allocate mappings of less than a PAGE_SIZE in MGA DMA code.
...
- Comment out the "is this mapping/bufs in allocated AGP" bits in BSD
because they break mga (which uses AGP allocation that doesn't track
entries). It's not a security issue when we still have the related
ioctls marked root-only.
- Apply some power-of-two alignment restrictions to hopefully avoid some
panicing in bad cases of drm_pci_alloc() on FreeBSD.
- Add verbosity to some error handling that I found useful while debugging.
2005-08-26 23:27:19 +00:00
Eric Anholt
c425ad1a34
Previously, drm_get_resource_start() and drm_get_resource_len() would
...
allocate the resource RF_ACTIVE, pull out the appropriate value, and
return it. However, allocating large framebuffers RF_ACTIVE would run
the system out of KVA, and this also left open the possibility of the
resource getting moved after getting the offset. Instead, when either
of these are called, allocate the resource if it isn't allocated
already (non-RF_ACTIVE) and store it in the DRM device, to be cleaned
up on lastclose.
2005-08-26 20:56:11 +00:00
Eric Anholt
5105f9ea59
Fix a lack of parenthesis in macro usage that showed up with INVARIANTS
...
turned on, i.e. in a kernel build.
2005-08-26 19:07:03 +00:00
Eric Anholt
55bea952b3
[1] Fix BSD DRM for the nonroot changes. [2] Don't attempt to acquire the
...
DMA lock in a non-DMA driver, as it will be uninitialized.
Submitted by: [1] jkim (minor changes by me)
2005-08-26 00:16:01 +00:00
Eric Anholt
9942cad1f6
Add missing .cvsignore files for autotoolery.
2005-08-25 23:11:28 +00:00
Eric Anholt
7d5130d8fb
Include appropriate CFLAGS to find X headers, needed to build libdrm.
2005-08-25 02:59:21 +00:00
Dave Airlie
5a52e533e1
add options for x86_64 and amd will small letters
2005-08-23 04:10:50 +00:00
Alan Hourihane
1163975f09
remove the README in the linux-2.6 directory
2005-08-22 09:52:18 +00:00
Alan Hourihane
01e4364a8f
remove i915_pm code as it causes too many issues with current software
...
suspend, and the DDX driver re-inits the board successfully anyway.
2005-08-22 09:50:12 +00:00
Dave Airlie
54947504ac
allocating the PCIE table from GFP_DMA seems to stop it NMI'ing
2005-08-21 11:07:03 +00:00
Dave Airlie
e2dc70593f
We don't need to install all the internal headers files only drm.h and
...
*_drm.h have user space interfaces
2005-08-21 03:04:32 +00:00
Dave Airlie
5c4ce6d93c
add x86_64 to the list as well
2005-08-20 07:38:11 +00:00
Dave Airlie
d12768f79a
remove checks that make ppc64 not work properly... also fix ppc64 check..
...
we should be safe doing this..
2005-08-20 07:33:07 +00:00
Dave Airlie
2e9bd9ac18
add powerpc64 to the list of archs that this test doesn't make sense on
2005-08-20 07:12:45 +00:00
Adam Jackson
017174085f
Fix silly install issue by moving the header install rules for shared-core
...
into shared-core/Makefile.am. Bump to 1.0.3.
2005-08-20 03:32:09 +00:00
Adam Jackson
1abd165f5b
Add r300_reg.h. Bump to 1.0.2.
2005-08-19 20:14:10 +00:00
Dave Airlie
8ac2fcb193
add agp buffer token
2005-08-17 22:59:00 +00:00
Dave Airlie
7779659390
revert reversion of a part of a patch from Jon, that I did last night while
...
checking things in in my sleep
2005-08-17 10:48:38 +00:00
Dave Airlie
279e7c113c
commit toggle switch to make Linux drm_handle_t unsigned int
2005-08-17 00:14:18 +00:00
Eric Anholt
91c9c84729
Remove the long-stale BSD non-core bits.
...
Prodded by: CVS breakage resulting in complaints about this directory.
2005-08-16 17:20:18 +00:00
Dave Airlie
7af0186f4c
add Egberts 32/64 bit patch (its in kernel already...)
2005-08-16 12:51:57 +00:00
Eric Anholt
8c21b783c3
Port the VIA DRM to FreeBSD. Original patch by Jake, with some cleanup by
...
me to match other drivers and avoid ifdeffing. The linux via_drv.c will
be moved from shared-core to linux-core soon by repocopy.
Submitted by: Jake Burkholder <jake@FreeBSD.org> Tested by: unichrome
2005-08-15 18:07:12 +00:00
Thomas Hellstrom
4f5961eeee
VIA bugvixes by Joris van Rantwijk Initial commit.
2005-08-14 09:52:09 +00:00
Eric Anholt
4050f5066a
Fix build after linux-side checkin of master/root-only split. Still only
...
cares about root on the BSD side, but should be secure.
2005-08-12 17:18:08 +00:00
Thomas Hellstrom
cdf49e5732
Reverting the previous via security-fix commit, since the assumption of
...
contexts registered with the callers filp was wrong.
2005-08-12 14:19:33 +00:00
Thomas Hellstrom
4931d785ed
Missing symbol export from previous via context check commit.
2005-08-11 13:05:12 +00:00
Thomas Hellstrom
d5e8ab13ff
Security fix on via: Checking that the specified context belongs to the
...
caller on fb / agp memory alloc and free. Otherwise malicious clients
can register allocations on other clients or free memory used by other
clients which will lead to severe memory manager inconsistensies.
2005-08-10 19:46:46 +00:00
Jon Smirl
0d81954b0e
Make sure savage has 3rd ioctl parameter
2005-08-09 01:40:45 +00:00
Dave Airlie
3a61e9f96c
make some functions static in the savage drm driver
2005-08-07 05:37:25 +00:00
Dave Airlie
1cbe97eea1
fix ioctl in r128 drm direction from Egbert Eich.
2005-08-07 05:32:06 +00:00