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
Dave Airlie
fcdb53867d
remove bus address
2005-08-07 04:38:11 +00:00
Dave Airlie
99c3f88c69
Fix bug in return to userspace resctx code
...
From: Egbert Eich <eich@suse.de>
2005-08-05 13:04:21 +00:00
Eric Anholt
c789ea1521
Rename the driver hooks in the DRM to something a little more
...
understandable: preinit -> load postinit -> (removed) presetup ->
firstopen postsetup -> (removed) open_helper -> open prerelease ->
preclose free_filp_priv -> postclose pretakedown -> lastclose
postcleanup -> unload release -> reclaim_buffers_locked version ->
(removed)
postinit and version were replaced with generic code in the Linux DRM
(drivers now set their version numbers and description in the driver
structure, like on BSD). postsetup wasn't used at all. Fixes the savage
hooks for initializing and tearing down mappings at the right times.
Testing involved at least starting X, running glxgears, killing
glxgears, exiting X, and repeating.
Tested on: FreeBSD (g200, g400, r200, r128) Linux (r200, savage4)
2005-08-05 03:50:23 +00:00
Jon Smirl
143622a987
Implement permanent sarea maps
2005-08-04 14:48:43 +00:00
Jon Smirl
28e123eb3a
Tighten up AGP security. Verify that all uses of AGP are done inside
...
buffers that have been allocated from AGP. This includes some new
capable(CAP_SYS_ADMIN) checks, these functions are also protected by
the root requirement on the IOCTL macros.
2005-08-04 14:39:25 +00:00
Jon Smirl
bb9502ab01
Mark some radeon init variables deprecated. These used to be passed in but
...
the driver already knew their correct value. For example the physical
address of the framebuffer and registers.
2005-08-04 13:59:48 +00:00
Jon Smirl
ea2c7a895d
Split the control of master vs root priv. Everything is still marked as
...
needing root.
2005-08-04 13:15:27 +00:00
Eric Anholt
3ffd0c188b
Whitespace fixups.
2005-08-04 07:46:11 +00:00
Eric Anholt
b0da5df90a
Fix the MGA driver on BSD by passing in the proper chipset flags to the
...
driver's preinit routine, and by using DRM_COPY_TO_USER_IOCTL when
copying out to an ioctl's data pointer. Pulled from the latest version
of my drm-hook-rename.diff and only compile-tested after that.
2005-08-04 07:42:01 +00:00
Eric Anholt
49bbb6d861
Add a debugging error message from testing new MGA code on BSD.
2005-08-04 07:31:21 +00:00
Adam Jackson
40515fc93c
version bump
2005-08-01 20:36:58 +00:00
Adam Jackson
8b4691ee13
Fix the pkgconfig info. (Donnie Berkholz)
2005-08-01 20:31:35 +00:00
Eric Anholt
1cc1f49825
Fix issues with buffer aging when more than one dma buffer is discarded in
...
a cmdbuf, which could lead to hangs.
Submitted by: Aapo Tahkola
2005-07-28 01:44:17 +00:00
Eric Anholt
942545721f
Correct a couple of descriptions of files in comments (were just
...
copy'n'pasted).
Submitted by: jkim
2005-07-27 20:20:30 +00:00
Eric Anholt
fccd351c8f
Link in the savage files from shared-core.
...
Submitted by: jkim
2005-07-27 20:19:29 +00:00
Roland Scheidegger
096e0349ea
fix driver date and drm minor version for r300 support
2005-07-27 18:19:11 +00:00
Eric Anholt
ab59dd285c
Add latest r300 support from r300.sf.net CVS. Patch submitted by volodya,
...
with BSD fix from jkim and the r300_reg.h license from Nicolai Haehnle.
Big thanks to everyone involved!
2005-07-20 21:17:47 +00:00
Eric Anholt
026e12ea93
Add .cvsignore file.
2005-07-19 20:59:57 +00:00
Dave Airlie
d3d3184fe4
revert last change due to me bring up too early
2005-07-16 03:11:53 +00:00
Dave Airlie
9803eb179c
up the version
2005-07-16 02:07:14 +00:00
Dave Airlie
d6d67dbf92
Egbert noticed this issue, but changing the IOW to IOWR mess up
...
compatiblity with userspace..
2005-07-16 02:03:03 +00:00
Thomas Hellstrom
567113788c
VIA: Fix sparse warnings (Alexey Dobriyan)
2005-07-15 21:22:51 +00:00
Adam Jackson
5a5478de7a
distcheck fixes
2005-07-13 00:13:12 +00:00
Jon Smirl
7130662aa0
IRQ must be assigned and enabled or this will hang
2005-07-11 18:27:39 +00:00
Adam Jackson
07d23f9c60
autoconfiscate libdrm
2005-07-10 22:42:42 +00:00
Jon Smirl
04fea06002
Simplify the sysfs code
2005-07-03 18:07:03 +00:00
Jon Smirl
d41af11ee3
Add sysfs attribute dri_library_name on Linux. code in share-core/via_drv.c
...
is ok to be shared, it will be passive on BSD.
2005-07-03 17:16:12 +00:00
Jon Smirl
e2ba08d283
release can happen before dev->ctxlist is allocated
2005-06-30 16:00:35 +00:00
Ian Romanick
1b4ce02506
Remove the AGP requirement from Makefile and Kconfig for MGA. Remove the
...
AGP requirement from Kconfig for SIS. There never was a requirement in
Makefile, and Eric Anholt confirms that the Makefile was correct.
2005-06-29 23:20:30 +00:00