Alex Deucher
7d3f64a41d
radeon: pad r6xx/r7xx ring submissions to 8 dwords
2009-02-16 19:27:19 -05:00
Alex Deucher
4fa339c480
radeon: r6xx/r7xx cleanups
...
- clean up some magic numbers
- add padding to flush/idle in CP_IDLE ioctl (probably not needed)
2009-02-16 19:11:38 -05:00
Alex Deucher
8447fbad20
radeon: fix cmdfifo handling for r7xx
2009-02-12 17:36:08 -05:00
Alex Deucher
48bbfae6dc
radeon: fill in more r6xx/r7xx bits
...
- cp reset
2009-02-12 17:04:46 -05:00
Alex Deucher
458497b288
radeon: don't need to pad the ring for IBs
2009-02-11 18:28:45 -05:00
Alex Deucher
36d5bb53d8
radeon: fill in additional missing r6xx/r7xx bits
...
- wait for fifo
- engine idle
- engine reset
2009-02-11 18:21:37 -05:00
Alex Deucher
4cf376338c
radeon: add more r6xx/r7xx pci ids
2009-02-08 20:12:22 -05:00
Alex Deucher
9e7982d71e
radeon: add r6xx another pci id
2009-02-07 13:27:55 -05:00
Alex Deucher
6bb5c6a910
RADEON: add new rs780 id, fix rv710 id
2009-02-03 11:16:17 -05:00
Alex Deucher
fc2345f5ac
radeon: add initial R6xx/R7xx AGP support
...
Many thanks to Christian Konig for testing and spotting a
few issues.
2009-02-02 10:25:27 -05:00
Alex Deucher
ba4e9f6397
R6xx/R7xx: move additional VGT setup to the drm
...
VGT_VERTEX_REUSE_BLOCK_CNTL and VGT_OUT_DEALLOC_CNTL
are setup based on the number of available backends and
shouldn't need to be changed again.
2009-01-29 13:45:12 -05:00
Alex Deucher
240b6ab7c7
R6xx/R7xx: turn off some debugging info
2009-01-23 01:47:59 -05:00
Sytse Wielinga
fd3b361a54
Fix R6xx/R7xx drm support with CONFIG_X86_PAT enabled
...
Signed-off-by: Sytse Wielinga <s.b.wielinga@student.utwente.nl>
Acked by: Alex Deucher <alexdeucher@gmail.com>
2009-01-13 10:44:16 -05:00
Alex Deucher
520d361cde
r6xx/r7xx: Build and warning fixes
2008-12-29 19:18:27 -05:00
Robert Noland
4236f11f52
Clean up a few more warnings.
2008-12-29 18:11:37 -05:00
Robert Noland
0ceeead628
avoid uninitialized use warning
2008-12-29 18:11:37 -05:00
Robert Noland
97f8eb6bc0
use upper_32_bit macro to handle 32/64 bit archs.
2008-12-29 18:11:37 -05:00
Robert Noland
371af62c9a
Replace udelay() with DRM_UDELAY()
2008-12-29 18:11:37 -05:00
Alex Deucher
8da42ddc44
RADEON: small RV710 fix
2008-12-29 17:57:43 -05:00
Matthias Hopf
ddb2af4fae
RADEON: remove drm master requirement for indirect ioctl
...
allows r600_demo to work
2008-12-29 15:38:10 -05:00
Alex Deucher
52990ecb36
RADEON: Initial DRM support for r6xx/r7xx hw
...
- Initial support written by Dave Airlie
- Bug fixes, gfx init, and r7xx support by me
2008-12-29 15:35:37 -05:00
Robert Noland
58d557c73b
[FreeBSD] Fix build on FreeBSD after modesetting import.
2008-12-23 13:56:23 -05:00
Dave Airlie
b48bd3a036
radeon: only write irq regs if irq is enabled
2008-12-23 11:30:37 +10:00
Eric Anholt
dfd7fdafd8
intel: Rename plane[AB]* back to pipe[AB]*.
...
The values are really going to continue meaning pipe, not plane, and that's
what they're called in the kernel copy of the header. Userland hasn't ever
made the switch to pipe!=plane, since userland checks are based on DRM
version, which is still stuck at 1.6. However, Mesa did start using
plane[AB] names, so provide a compat define.
2008-12-22 16:03:35 -08:00
Eric Anholt
d221e00105
intel: Sync GEM ioctl comments for easier diffing against the kernel.
2008-12-22 16:03:35 -08:00
Jesse Barnes
731cd5526e
libdrm: add mode setting files
...
Add mode setting files to libdrm, including xf86drmMode.* and the new
drm_mode.h header. Also add a couple of tests to sanity check the
kernel interfaces and update code to support them.
2008-12-17 10:11:37 -08:00
Jesse Barnes
9583c099b4
Revert "Merge branch 'modesetting-gem'"
...
This reverts commit 6656db1055 .
We really just want the libdrm and ioctl bits, not all the driver
stuff.
2008-12-10 15:50:22 -08:00
Jesse Barnes
d5d5aca7f9
Merge branch 'master' into modesetting-gem
2008-12-03 11:53:36 -08:00
Ben Skeggs
7e4e0fbbb8
nv50: support NV94 chipset
2008-11-23 18:49:09 +11:00
Ben Skeggs
52232ad702
nv50: update context-related tables for original 8800GTS
...
I either messed up when I pulled these from a mmio-trace last time, or
the previous values didn't work on my card. Hopefully it's the former!
In any case, at least one of the original NV50 chipsets work now.
2008-11-21 13:18:58 +11:00
Jesse Barnes
2e2fd6c632
DRM: make drm_map_type match upstream kernel
...
Since the TTM type isn't upstream yet, we need to make sure libdrm uses
what the kernel uses, which is _DRM_GEM = 6.
2008-11-20 11:00:29 -08:00
Jesse Barnes
5923831baf
DRM: make drm_map_type match kernel
...
GEM is upstream, but TTM isn't, so _DRM_GEM needs to be 6, not 7.
2008-11-20 10:57:33 -08:00
Stephane Marchesin
c029ed2510
Unbreak drm build.
2008-11-19 23:17:27 +01:00
Jesse Barnes
c67a83dfe1
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem
2008-11-19 12:42:49 -08:00
Jerome Glisse
7270731a8b
radeon: protect cs ioctl atomic part with a mutex
...
A small subset of CS need to be atomic (relocation+IB commit to
ring) right now, because of the way relocation are handled, we
need to protect the whole ioctl.
2008-11-16 18:11:00 +01:00
Jesse Barnes
965b4d662a
Merge branch 'master' into modesetting-gem
...
Conflicts:
libdrm/Makefile.am
libdrm/intel/intel_bufmgr.h
libdrm/intel/intel_bufmgr_fake.c
libdrm/intel/intel_bufmgr_gem.c
shared-core/drm.h
shared-core/i915_dma.c
shared-core/i915_irq.c
shared-core/radeon_cp.c
shared-core/radeon_drv.h
2008-11-13 15:30:06 -08:00
Jesse Barnes
276c07d885
libdrm: add support for i915 GTT mapping ioctl
...
Add a drm_intel_gem_bo_map_gtt() function for mapping a buffer object
through the aperture rather than directly to its CPU cacheable memory.
2008-11-13 13:52:04 -08:00
Jakob Bornecrantz
9a4cb7eab4
mode: Minor reodering and renaming
2008-11-12 19:17:18 +01:00
Jakob Bornecrantz
17789a409d
mode: Reorder the ioctls and numbering
...
This is to fill in the gaps left by the removal of
the hotplug ioctls. And they also look better :)
2008-11-12 19:10:50 +01:00
Jakob Bornecrantz
1ead45c8f0
mode: Remove hotplug support from ioctl interface
2008-11-12 18:40:04 +01:00
Jakob Bornecrantz
13948c635d
mode: Unify types for ids and strings
2008-11-12 18:16:38 +01:00
Dave Airlie
15464f5181
radeon: add gart useable size to report to userspace
2008-11-10 15:38:32 +10:00
Dave Airlie
994f240503
radeon: fix ring tail overflow issue since alignment
2008-11-10 15:25:27 +10:00
Dave Airlie
758376e6eb
radeon: disable HDP read cache for now
2008-11-10 15:25:12 +10:00
Dave Airlie
08ef5b5e67
radeon: force all ring writes to 16-dword alignment.
2008-11-10 15:24:42 +10:00
Jerome Glisse
7abb8416a7
radeon: add more packet3 relocations handling
2008-11-09 18:48:46 +01:00
Dave Airlie
68fcb7770e
radeon: make build again
2008-11-03 09:58:12 +10:00
Dave Airlie
0e1df6216e
radeon: add mtrr support for VRAM aperture.
2008-11-03 09:52:25 +10:00
Dave Airlie
2b9a7d5381
radeon: disable AGP for certain chips if not specified until we figure it out
2008-11-03 09:51:57 +10:00
Dave Airlie
d3aa052f61
radeon: disable debugging message
2008-11-03 09:51:33 +10:00