summaryrefslogtreecommitdiff
path: root/linux-core
AgeCommit message (Collapse)Author
2009-05-22nouveau: backlight support for ppc laptopsDanny Tholen
Patch allows the backlight to be manipulated under gnome on apple powerpc based NV30 machines. It works fine on my powerbook, and should also work for older NV17/NV18 machines. Note that older powerpc specific tools (pbbuttonsd) have some problems with this implementation (because the device is not yet there at the start time of the daemon, and the code makes incorrect assumptions about the max brightness values). However, IMHO these things can and should be addressed in the daemon. Some style/warning fixes applied by Stuart Bennett <stuart@freedesktop.org>
2009-05-07nouveau: backlight compat fixStuart Bennett
Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE set
2009-03-31Move drm_vblank_cleanup() after lastclose.Robert Noland
This may prevent a possible panic on shutdown.
2009-03-25nouveau: add linux compat defines for PCI config access, use them for nvidia ↵Stuart Bennett
IGPs
2009-03-03drm: drop Linux < 2.6.21 supportPekka Paalanen
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-03drm, via: drop Linux < 2.6.20 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux < 2.6.19 supportPekka Paalanen
This also means dropping the DRM_ODD_MM_COMPAT case. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux < 2.6.18 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux < 2.6.16 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux < 2.6.15 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux < 2.6.12 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux < 2.6.10 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-02drm: drop Linux <= 2.6.8 supportPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-03-01drm: drm_bo_mmap_locked() is static.Pekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-28drm, ati: fix printf format warningsPekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-28drm: build fix for Linux drm_vblank_cleanup()Pekka Paalanen
The commit 957b10695b619d6ed2f1098b00502395d9a3c149, "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-27Move vblank_init to driver load time.Robert Noland
2009-02-24linux: Add msi_enabled to the drm_device so the build should be happy.Robert Noland
2009-02-18nouveau: support backlight only when kernel doesPekka Paalanen
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-18nv40, nv50: fix backlight build for <2.6.29 kernelsMatthew Garrett
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-02-18nouveau: Add in-kernel backlight control supportMatthew Garrett
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-16drm_compat: remove kmap_atomic_prot_pfn()Pekka Paalanen
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-16Remove i915 driver sources from linux-corePekka Paalanen
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-02Remove the "nv" driver.Stephane Marchesin
2009-01-27drm compat: fix euid for >=2.6.28Pekka Paalanen
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-19drm: remove drmstat/dristat from linux-core buildDave Airlie
pointed out by pq
2008-12-22intel: Remove linux build of i915 DRM, as it's unmaintained and a user trap.Eric Anholt
The code's in the linux kernel.
2008-12-17libdrm: add mode setting filesJesse Barnes
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-10Revert "Merge branch 'modesetting-gem'"Jesse Barnes
This reverts commit 6656db10551bbb8770dd945b6d81d5138521f208. We really just want the libdrm and ioctl bits, not all the driver stuff.
2008-11-19Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm ↵Jesse Barnes
into modesetting-gem
2008-11-17Revert "gem: protect idr_pre with the spinlock"Jerome Glisse
This reverts commit f46aba43329786c9b2776e82af31d90e1c67eae0.
2008-11-16gem: protect idr_pre with the spinlockJerome Glisse
There seems to be an issue if we don't protect idr_pre with the spinlock we use for idr operations.
2008-11-15drm/bo: fix stupid lock imbalanceDave Airlie
2008-11-13Merge branch 'master' into modesetting-gemJesse Barnes
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-12mode: Minor reodering and renamingJakob Bornecrantz
2008-11-12mode: Remove hotplug support from ioctl interfaceJakob Bornecrantz
2008-11-12radeon+libdrm-radeon: change relocation informationsJerome Glisse
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-10radeon: add gart useable size to report to userspaceDave Airlie
2008-11-10radeon: upgrade atom headersDave Airlie
2008-11-10radeon: fix fence race condition hopefullyDave Airlie
For some reason reading the SCRATCH reg from RAM causes some race to occur. Hopefully fix this.
2008-11-10drm/radeon: add dpms connector functionsDave Airlie
2008-11-10radeon: avivo cursors are across the full surface.Dave Airlie
fixes cursor on second head
2008-11-10modesetting: set the crtc x,y after the mode base changeDave Airlie
2008-11-10drm/radeon: add uncached allocator to drm ttm code.Dave Airlie
2008-11-10radeon: fixup vram visible calculation to take a/c pinned objects for nowDave Airlie
2008-11-06radeon: lib radeon add bo & cs gem backendJerome Glisse
2008-11-03radeon: make build againDave Airlie
2008-11-03radeon: fix ROP values for the paint ROPDave Airlie
2008-11-03radeon: add mtrr support for VRAM aperture.Dave Airlie
2008-11-03radeon: add more HDMI bitsDave Airlie