vehemens
2221e16703
FreeBSD use kdev for kernel device name
...
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-03-08 22:18:43 -05:00
Ben Skeggs
391c92ae17
drm/nouveau: make portion of vram as reserved for PRAMIN on all chipsets
...
NV04 was completely busted. Push buffers were getting allocated at the
end of VRAM, overwriting PRAMIN. So, it turns out PRAMIN is in VRAM on
all chips. Question answered!
2009-03-06 09:16:54 +10:00
Robert Noland
14503dafa7
FreeBSD: Rework DRM_[DEBUG,ERROR,INFO] macros a bit.
2009-03-05 00:47:26 -06:00
Robert Noland
0a227a3361
FreeBSD: Garbage collect entries from pcireg.h since we now include it.
2009-03-05 00:46:32 -06:00
Robert Noland
222dc6582e
FreeBSD: We only want drm to ever attach to the primary pci device.
...
Intel 855 chips present the same pci id for both heads. This prevents
us from attaching to the dummy second head. All other chips that I
am aware of either only present a single pci id, or different ids
for each head so that we only match on the correct head.
2009-03-05 00:44:56 -06:00
Robert Noland
4a27f1c638
FreeBSD: rework drm_scatter.c which allocates scatter / gather pages for use by
...
ati pci gart to use bus_dma to handle the allocations. This fixes
a garbled screen issue on at least some radeons (X1400 tested).
2009-03-05 00:42:52 -06:00
Pekka Paalanen
e4b065ad9a
drm: drop Linux < 2.6.21 support
...
This also means, that DRM_FULL_MM_COMPAT is always defined,
so it is dropped, too.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-03 22:42:51 +02:00
Pekka Paalanen
a6b28a86a6
drm, via: drop Linux < 2.6.20 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-03 22:20:59 +02:00
Pekka Paalanen
f44c740dc7
drm: drop Linux < 2.6.19 support
...
This also means dropping the DRM_ODD_MM_COMPAT case.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 23:14:45 +02:00
Pekka Paalanen
081b2d6da2
drm: drop Linux < 2.6.18 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 22:39:32 +02:00
Pekka Paalanen
62f4344c98
drm: drop Linux < 2.6.16 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 22:35:23 +02:00
Pekka Paalanen
056ce26344
drm: drop Linux < 2.6.15 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 22:31:24 +02:00
Pekka Paalanen
b47de8d5a3
drm: drop Linux < 2.6.12 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 22:09:26 +02:00
Pekka Paalanen
4c439ac4a7
drm: drop Linux < 2.6.10 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 00:21:09 +02:00
Pekka Paalanen
4bdddf5715
drm: drop Linux <= 2.6.8 support
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02 00:13:00 +02:00
Pekka Paalanen
d3f25ccca8
drm: drm_bo_mmap_locked() is static.
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-01 23:53:02 +02:00
Pekka Paalanen
a6dd0afa87
drm, ati: fix printf format warnings
...
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-28 17:45:02 +02:00
Pekka Paalanen
9e8591dbdb
drm: build fix for Linux drm_vblank_cleanup()
...
The commit 957b10695b
, "Move vblank_init
to driver load time." forgot to add the function declaration in
linux-core/drmP.h.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-28 16:09:56 +02:00
Robert Noland
ad64ff30d0
FreeBSD: Introduce a kernel tuneable to disable msi at boot time.
2009-02-27 18:16:18 -06:00
Robert Noland
957b10695b
Move vblank_init to driver load time.
2009-02-27 18:16:17 -06:00
Eric Anholt
7ce8d4c1fe
intel: Update reloc_tree_size of the first buffer when we count the tree size.
...
This helps avoid the n^2 performance cost of counting tree size when we
get a lot of relocations into our batch buffer. rgb10text on keithp's laptop
went from 136k glyphs/sec to 234k glyphs/sec.
2009-02-27 14:12:54 -08:00
Robert Noland
ab582f64fd
FreeBSD: Fix up some ioctl permissions issues missed many times over.
...
This was somehow hit with r600 demo.
Submitted by: Jung-uk Kim <jkim@FreeBSD.org>
2009-02-26 23:51:57 -06:00
Robert Noland
948af0bd9b
i915: Backport jbarnes gm45 vblank counter patch.
2009-02-25 14:20:52 -06:00
Eric Anholt
efa485b2cf
intel: Don't copy dirty data out when freeing a BO in the fake bufmgr.
2009-02-24 22:31:27 -08:00
Robert Noland
e96fc62e53
FreeBSD: Drop the Giant lock.
2009-02-24 15:49:45 -06:00
Robert Noland
b9b8e8f3cc
FreeBSD: Turn on msi
...
There is a blacklist for devices that advertise the capability, but
don't work properly.
2009-02-24 15:47:35 -06:00
Robert Noland
153a0803db
FreeBSD: Add some vblank related debugging and replace DRM_WAIT_ON with a local instance.
2009-02-24 14:21:10 -06:00
Robert Noland
a44b4ca820
i915: A few whitespace cleanups.
2009-02-24 14:01:38 -06:00
Robert Noland
04d94197e6
linux: Add msi_enabled to the drm_device so the build should be happy.
2009-02-24 12:59:08 -06:00
Robert Noland
6870780428
radeon: Prepare radeon for msi support.
2009-02-24 12:28:42 -06:00
Robert Noland
d45bc6667c
i915: This was part of a sync to the intel driver at some point
...
-Remove the old TTM interface
-Move register definitions to i915_reg.h
-Rework the irq handler
2009-02-24 12:24:29 -06:00
Kristian Høgsberg
c3c21303e3
nouveau: Dist nouvea_dma.h as well.
...
Oops. Disting is hard.
2009-02-24 11:42:46 -05:00
Kristian Høgsberg
a71d3edd6c
nouveau: Also dist nouveau_private.h.
2009-02-24 11:19:41 -05:00
Robert Noland
1c381092a3
FreeBSD: Rip out the locked task support now that i915 no longer uses it.
2009-02-24 00:22:56 -06:00
Robert Noland
9f94e39f0d
i915: Rip out the use of vblank_swap
2009-02-23 22:39:07 -06:00
Robert Noland
9d402905c0
FreeBSD: There is no compelling reason to hold the lock here.
...
When I was lock profiling, this was high up on the list and I
see no reason to do it.
2009-02-23 20:22:44 -06:00
Robert Noland
d6c9786836
FreeBSD: Don't set PZERO in mtx_sleep.
2009-02-23 20:16:15 -06:00
Robert Noland
a9486ee3a8
FreeBSD: Set MAP_NOSYNC on mmaps.
...
There is no reason to gratuitously sync these maps to swap.
2009-02-23 20:07:44 -06:00
Eric Anholt
a773ce1db8
Add libdrm_intel.pc by popular demand.
2009-02-23 13:30:44 -08:00
Ivan Kokshaysky
6feac49398
Fix DRM_CAS() on Alpha. ( #16549 )
2009-02-23 15:54:42 -05:00
Kristian Høgsberg
9fc85b4084
modetest: Print names of properties.
2009-02-23 15:10:30 -05:00
Pekka Paalanen
4a0d19ef4f
Fix fix distcheck for optional nouveau stuff.
...
Tylo.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-22 12:40:47 +02:00
Eric Anholt
4d5341340f
Fix distcheck for optional nouveau stuff.
2009-02-21 10:01:40 -08:00
Eric Anholt
2f1cdf79a7
Bump version to 2.4.5 for new API additions.
2009-02-21 09:57:19 -08:00
Eric Anholt
72abe983ad
intel: Add a new bufmgr alloc function to get BOs ready for rendering to.
...
This avoids using the oldest BO in the BO cache and waiting for it to be
idle before we turn around and render to it with the GPU. Thanks to
Chris Wilson for pointing out how silly we were being.
2009-02-21 09:57:06 -08:00
Ben Skeggs
a1345338fe
libdrm/nouveau: free drmVersion after we're done with it
2009-02-20 14:11:22 +10:00
Ben Skeggs
18f2fcf5aa
libdrm/nouveau: fix dma debugging
2009-02-20 14:11:18 +10:00
Pekka Paalanen
6a31b445fa
nouveau: support backlight only when kernel does
...
Loading nouveau.ko would fail with unknown symbols, if the backlight
class device support is not provided in the kernel. Let's make the
backlight support dependant on the kernel configuration.
This is a bit ugly, the proper way would be to check for the config in
Makefile.kernel whether to build nouveau_backlight.o at all, and if not,
nouveau_drv.h should provide the stubs.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-18 22:46:40 +02:00
Matthew Garrett
25c60cfeca
nv40, nv50: fix backlight build for <2.6.29 kernels
...
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-18 22:31:47 +02:00
Matthew Garrett
96ce587e8b
nouveau: Add in-kernel backlight control support
...
Several nvidia-based systems don't support backlight control via the
standard ACPI control mechanisms. Instead, it's necessary for the driver
to modify the backlight control registers directly. This patch adds
support for determining whether the registers appear to be in use, and
if so registers a kernel backlight device to control them. The backlight
can then be controlled via existing userspace tools.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-02-18 13:48:33 +10:00