Commit Graph

2252 Commits (bad16a6b22e06b0adf7663543e26caae9916444c)

Author SHA1 Message Date
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 957b10695b Move vblank_init to driver load time. 2009-02-27 18:16:17 -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
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
Pekka Paalanen 0054e14793 drm_compat: remove kmap_atomic_prot_pfn()
This function is unused, and yet creates build problems: the symbol
init_mm is not exported by the latest -rc kernels and I don't believe it
ever will be. Even CONFIG_UNUSED_SYMBOLS does not provide it anymore.

If this function is needed in the future, it needs to be reinvented in
any case. So remove it.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-16 20:45:16 +02:00
Pekka Paalanen e32aa6226f Remove i915 driver sources from linux-core
Intel developers have stated, that their DRM development continues
elsewhere in some Linux kernel trees. This makes the code in drm.git
just dead weight. This removal allows further cleanup of compatibility
code.

shared-core and bsd-core are left untouched this time.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Acked-by: Eric Anholt <eric@anholt.net>
2009-02-16 20:43:02 +02:00
Stephane Marchesin 39755db856 Remove the "nv" driver. 2009-02-02 23:47:11 +01:00
Pekka Paalanen 26ca0bca9b drm compat: fix euid for >=2.6.28
drm_fops.c reads the current process' EUID directly from task_struct.
Apparently starting in 2.6.28-rc4 this fails to build.

In Linus' tree, commit b6dff3ec5e116e3af6f537d4caedcad6b9e5082a
"CRED: Separate task security context from task_struct"
moves the euid field from task_struct to another struct.

Earlier commit 9e2b2dc4133f65272a6d3c5dcb2ce63f8a87cae9
"CRED: Introduce credential access wrappers" implements the wrapper
macros to access e.g. euid. This is in 2.6.27-rc4, and this contains the
definition of current_euid() that will be used in the DRM compatibility header
for kernels before 2.6.27. That commit also creates <linux/cred.h>, which
contains the upstream definition of current_euid().

drm_fops.c is fixed to use current_euid(), and drm_compat.h will offer
the compatibility definition for kernels <2.6.27.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-01-27 23:10:36 +02:00
Dave Airlie 27fae00685 drm: remove drmstat/dristat from linux-core build
pointed out by pq
2009-01-19 06:46:23 +10:00
Eric Anholt 28771e06df intel: Remove linux build of i915 DRM, as it's unmaintained and a user trap.
The code's in the linux 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 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 e98eda9159 Revert "gem: protect idr_pre with the spinlock"
This reverts commit f46aba4332.
2008-11-17 13:35:51 +01:00
Jerome Glisse f46aba4332 gem: protect idr_pre with the spinlock
There seems to be an issue if we don't protect idr_pre with
the spinlock we use for idr operations.
2008-11-16 18:13:16 +01:00
Dave Airlie 1f66021854 drm/bo: fix stupid lock imbalance 2008-11-15 12:30:09 +10: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
Jakob Bornecrantz 9a4cb7eab4 mode: Minor reodering and renaming 2008-11-12 19:17:18 +01:00
Jakob Bornecrantz 1ead45c8f0 mode: Remove hotplug support from ioctl interface 2008-11-12 18:40:04 +01:00
Jerome Glisse a7457915f5 radeon+libdrm-radeon: change relocation informations
Relocation now consist of the following informations (in this order) :
handle          buffer object handle identifier
start_offset    start offset of first data of the buffer object used by the cs
end_offset      end offset of last data of the buffer object used by the cs
read_domain     read domain (either VRAM, or GTT as GPU is invalid for CS)
write_domain    write domain (either VRAM, or GTT as GPU is invalid for CS)
flags           flags used for further optimization (like discard previous
                buffer content or forget buffer content after cs which can
                help in avoiding moving content in or out)
2008-11-12 16:57:09 +01:00
Dave Airlie 15464f5181 radeon: add gart useable size to report to userspace 2008-11-10 15:38:32 +10:00
Dave Airlie 532c63cddd radeon: upgrade atom headers 2008-11-10 15:37:51 +10:00
Dave Airlie 213a71f31b radeon: fix fence race condition hopefully
For some reason reading the SCRATCH reg from RAM causes some race to occur.
Hopefully fix this.
2008-11-10 15:37:36 +10:00
Dave Airlie 195cc0d817 drm/radeon: add dpms connector functions 2008-11-10 15:37:16 +10:00
Dave Airlie 327631c8b5 radeon: avivo cursors are across the full surface.
fixes cursor on second head
2008-11-10 15:35:34 +10:00
Dave Airlie b1cf46378a modesetting: set the crtc x,y after the mode base change 2008-11-10 15:35:16 +10:00
Dave Airlie 241a9b6414 drm/radeon: add uncached allocator to drm ttm code. 2008-11-10 15:30:21 +10:00
Dave Airlie 31b0c4cd20 radeon: fixup vram visible calculation to take a/c pinned objects for now 2008-11-10 15:13:08 +10:00
Jerome Glisse 273cc1a698 radeon: lib radeon add bo & cs gem backend 2008-11-06 00:40:06 +01:00
Dave Airlie 68fcb7770e radeon: make build again 2008-11-03 09:58:12 +10:00
Dave Airlie b7108445c9 radeon: fix ROP values for the paint ROP 2008-11-03 09:52:40 +10:00
Dave Airlie 0e1df6216e radeon: add mtrr support for VRAM aperture. 2008-11-03 09:52:25 +10:00
Dave Airlie c153a86af7 radeon: add more HDMI bits 2008-11-03 09:49:59 +10:00
Dave Airlie 49551f87fc radeon: set dma bufs bo type to a kernel type 2008-11-03 09:49:41 +10:00
Dave Airlie cdddff8355 radeon: enable DVI-D + HDMI connectors.
This allows the rs690 to work on DVI
2008-11-03 09:48:10 +10:00
Dave Airlie 13d9acd311 radeon: add more debugging 2008-11-03 09:47:14 +10:00
Dave Airlie 31b8a640db radeon: overhaul ring interactions
emit in 16-dword blocks, emit irqs at same time as everything else
2008-11-03 09:46:54 +10:00