profile/ivi/libdrm.git
15 years agoradeon: fixup LVDS mode getting
Dave Airlie [Thu, 28 Aug 2008 21:18:53 +0000 (07:18 +1000)]
radeon: fixup LVDS mode getting

if we have no DDC we were oopsing. fix that.
then make a native panel mode

15 years agoradeon: get lvds atombios info
Dave Airlie [Thu, 28 Aug 2008 06:35:25 +0000 (16:35 +1000)]
radeon: get lvds atombios info

set the correct values from atombios makes LVDS work a lot better

15 years agodrm: port X crtc picking algorithm.
Dave Airlie [Thu, 28 Aug 2008 06:18:09 +0000 (16:18 +1000)]
drm: port X crtc picking algorithm.

This mimics the X.org from ajax with less options

15 years agoradeon: limit LVDS to first CRTC for now
Dave Airlie [Thu, 28 Aug 2008 01:30:55 +0000 (11:30 +1000)]
radeon: limit LVDS to first CRTC for now

15 years agoradeon: fixup checks for crtc in dpms paths
Dave Airlie [Thu, 28 Aug 2008 01:30:20 +0000 (11:30 +1000)]
radeon: fixup checks for crtc in dpms paths

15 years agodrm: fix some whitespace
Dave Airlie [Wed, 27 Aug 2008 03:41:53 +0000 (13:41 +1000)]
drm: fix some whitespace

15 years agoradeon: braino pointed out on mailing list
Dave Airlie [Wed, 27 Aug 2008 02:35:11 +0000 (12:35 +1000)]
radeon: braino pointed out on mailing list

thanks to Ville Syrjälä

15 years agoradeon: avoid oops on encoders with no crtc set
Dave Airlie [Wed, 27 Aug 2008 01:12:19 +0000 (11:12 +1000)]
radeon: avoid oops on encoders with no crtc set

15 years agoChange git-describe into git describe.
Stephane Marchesin [Wed, 27 Aug 2008 00:27:10 +0000 (02:27 +0200)]
Change git-describe into git describe.

15 years ago[intel_bufmgr_gem] Remember global name when creating buffer from name.
Kristian Høgsberg [Tue, 26 Aug 2008 18:28:08 +0000 (14:28 -0400)]
[intel_bufmgr_gem] Remember global name when creating buffer from name.

15 years agoradeon/ttm: add support for zeroing the contents of VRAM buffers
Dave Airlie [Tue, 26 Aug 2008 07:44:47 +0000 (17:44 +1000)]
radeon/ttm: add support for zeroing the contents of VRAM buffers

This uses a solid fill fastpath, falling back to the slow memset path.

15 years agodrm: add move zero function to memset unclean buffers
Dave Airlie [Tue, 26 Aug 2008 07:43:12 +0000 (17:43 +1000)]
drm: add move zero function to memset unclean buffers

15 years agodrm/ttm: export drm_bo_add_ttm
Dave Airlie [Tue, 26 Aug 2008 07:42:36 +0000 (17:42 +1000)]
drm/ttm: export drm_bo_add_ttm

15 years agoradeon: fixup domains and use them properly
Dave Airlie [Tue, 26 Aug 2008 07:39:00 +0000 (17:39 +1000)]
radeon: fixup domains and use them properly

15 years agodrm: add memory clean flag.
Dave Airlie [Tue, 26 Aug 2008 07:33:46 +0000 (17:33 +1000)]
drm: add memory clean flag.

When the mapping is clean this flag will be set. This can be used
by a driver to save migrating and allocating pages for an object
that will first be used in VRAM.

15 years agoi915: Fix i915 build on FreeBSD
Robert Noland [Sun, 24 Aug 2008 19:53:17 +0000 (15:53 -0400)]
i915: Fix i915 build on FreeBSD

ifdef out all the gem stuff for now.  Also, the msi stuff isn't portable
the way it is... I'll try and fix that up sometime soon.

15 years ago[FreeBSD] Add drm_drawable_free_all()
Robert Noland [Sat, 23 Aug 2008 01:45:41 +0000 (21:45 -0400)]
[FreeBSD] Add drm_drawable_free_all()

15 years ago[FreeBSD] Fix long standing memory leak in drm_remove_magic.
Robert Noland [Sat, 23 Aug 2008 01:34:25 +0000 (21:34 -0400)]
[FreeBSD] Fix long standing memory leak in drm_remove_magic.

We shuffled all the links around to disconnect the entry, but
never free it.  We would incorrectly free the last entry in the
hash chain if nothing matched.

15 years agoi915: Convert vblank on disabled pipe DRM_ERROR to DRM_DEBUG.
Robert Noland [Sat, 23 Aug 2008 01:32:37 +0000 (21:32 -0400)]
i915: Convert vblank on disabled pipe DRM_ERROR to DRM_DEBUG.

15 years agoi915: Clear sarea_priv during lastclose.
Robert Noland [Wed, 20 Aug 2008 21:20:31 +0000 (17:20 -0400)]
i915: Clear sarea_priv during lastclose.

sarea_priv needs to be NULL before i915_initialized is called to
properly reset it.  The stale value produces a panic any time something
opens/closes drm without calling initialize.  i.e. version checking

15 years agoi915: Free dev->dev_private on unload.
Robert Noland [Wed, 20 Aug 2008 21:15:46 +0000 (17:15 -0400)]
i915: Free dev->dev_private on unload.

15 years ago[FreeBSD] Move vblank bits into their own structure.
vehemens [Wed, 13 Aug 2008 21:19:35 +0000 (17:19 -0400)]
[FreeBSD] Move vblank bits into their own structure.

Signed-off-by: Robert Noland <rnoland@2hip.net>
15 years ago[FreeBSD] Fix lock leak.
vehemens [Wed, 13 Aug 2008 21:17:05 +0000 (17:17 -0400)]
[FreeBSD] Fix lock leak.

Signed-off-by: Robert Noland <rnoland@2hip.net>
15 years agoi915: Move spinlock init / destroy to load / unload time.
Robert Noland [Wed, 13 Aug 2008 21:05:59 +0000 (17:05 -0400)]
i915: Move spinlock init / destroy to load / unload time.

This resolves the panic on FreeBSD during VT switch, without attempting
any of the more lofty goals for the time being.

15 years agolibdrm: add udev support.
Dave Airlie [Sun, 24 Aug 2008 06:54:43 +0000 (16:54 +1000)]
libdrm: add udev support.

This patch allows you to --enable-udev, and will avoid having libdrm
make device nodes. If you are using udev, you should really --enable-udev
your libdrm.

15 years agodrm: add gpu create script
Dave Airlie [Thu, 21 Aug 2008 21:08:29 +0000 (07:08 +1000)]
drm: add gpu create script

15 years agoMerge branch 'modesetting-gem' of git+ssh://agd5f@git.freedesktop.org/git/mesa/drm...
Alex Deucher [Tue, 19 Aug 2008 17:08:47 +0000 (13:08 -0400)]
Merge branch 'modesetting-gem' of git+ssh://agd5f@git.freedesktop.org/git/mesa/drm into modesetting-gem

15 years agoradeon: fix warning from radeon_legacy_state removal
Alex Deucher [Tue, 19 Aug 2008 17:06:04 +0000 (13:06 -0400)]
radeon: fix warning from radeon_legacy_state removal

15 years agoradeon: legacy lvds updates
Alex Deucher [Tue, 19 Aug 2008 17:03:23 +0000 (13:03 -0400)]
radeon: legacy lvds updates

15 years agonouveau: fifo and graphics engine suspend and resume for nv04-nv4x
root [Tue, 6 May 2008 22:04:55 +0000 (23:04 +0100)]
nouveau: fifo and graphics engine suspend and resume for nv04-nv4x

Corresponding DDX patch at http://people.freedesktop.org/~stuart/nv0x-nv4x_suspend/

15 years agoradeon: oops set correct scratch
Dave Airlie [Mon, 18 Aug 2008 22:18:46 +0000 (08:18 +1000)]
radeon: oops set correct scratch

15 years agoChange prototype of drmIoctl to unsigned long request.
Coleman Kane [Mon, 18 Aug 2008 21:08:21 +0000 (17:08 -0400)]
Change prototype of drmIoctl to unsigned long request.

This resolves and issue on amd64 FreeBSD and it looks like the
linux ioctl syscall should be unsigned long as well.

Signed-off-by: Robert Noland <rnoland@2hip.net>
15 years agoradeon: first pass at legacy dac detect
Alex Deucher [Sun, 17 Aug 2008 22:38:41 +0000 (18:38 -0400)]
radeon: first pass at legacy dac detect

- done: primary dac, vga on tvdac
- todo: ext dac, tv on tvdac

15 years agoradeon: first pass at bios scratch regs
Alex Deucher [Sun, 17 Aug 2008 22:09:07 +0000 (18:09 -0400)]
radeon: first pass at bios scratch regs

- todo: updated connected status

15 years agoradeon: remove unused legacy state
Alex Deucher [Sun, 17 Aug 2008 19:38:05 +0000 (15:38 -0400)]
radeon: remove unused legacy state

15 years agoradeon: get primary dac adj info from bios tables
Alex Deucher [Sun, 17 Aug 2008 19:33:31 +0000 (15:33 -0400)]
radeon: get primary dac adj info from bios tables

15 years agonouveau: make it compile under 2.6.27
Maarten Maathuis [Sat, 16 Aug 2008 22:41:50 +0000 (00:41 +0200)]
nouveau: make it compile under 2.6.27

15 years agolinux: on_each_cpu has 3 args on 2.6.27
Maarten Maathuis [Thu, 14 Aug 2008 17:35:55 +0000 (19:35 +0200)]
linux: on_each_cpu has 3 args on 2.6.27

15 years agoi915: finish removing TTM bits
Jesse Barnes [Sat, 16 Aug 2008 19:09:24 +0000 (12:09 -0700)]
i915: finish removing TTM bits

Makes it build again.

15 years agoMerge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modeset...
Jesse Barnes [Sat, 16 Aug 2008 18:45:53 +0000 (11:45 -0700)]
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem

15 years agoi915: set domain properly on fb mapping, flush out changes
Jesse Barnes [Sat, 16 Aug 2008 18:35:10 +0000 (11:35 -0700)]
i915: set domain properly on fb mapping, flush out changes

The user visible ioctl does this, but since we call into GEM internals
directly, we have to flush things ourselves.  Fixes initial fb console
corruption.

15 years agoradeon: reserve 64k of VRAM for now for text mode so we don't trample it
Dave Airlie [Thu, 14 Aug 2008 23:56:42 +0000 (09:56 +1000)]
radeon: reserve 64k of VRAM for now for text mode so we don't trample it

need to revisit this later I'm sure

15 years agoradeon: fix LVDS modes problem
Dave Airlie [Thu, 14 Aug 2008 23:42:06 +0000 (09:42 +1000)]
radeon: fix LVDS modes problem

15 years agoradeon: add support for memory map init
Dave Airlie [Thu, 14 Aug 2008 04:43:51 +0000 (14:43 +1000)]
radeon: add support for memory map init

15 years agoradeon: add copy/solid regs for rn50
Dave Airlie [Thu, 14 Aug 2008 04:41:15 +0000 (14:41 +1000)]
radeon: add copy/solid regs for rn50

15 years agoi915: update cursor handling to use GEM objects
Jesse Barnes [Wed, 13 Aug 2008 23:57:42 +0000 (16:57 -0700)]
i915: update cursor handling to use GEM objects

15 years agoi915: fixup from last merge hopefully
Dave Airlie [Wed, 13 Aug 2008 23:43:23 +0000 (09:43 +1000)]
i915: fixup from last merge hopefully

15 years agoMerge branch 'radeon-gem-cs' into modesetting-gem
Dave Airlie [Wed, 13 Aug 2008 23:36:34 +0000 (09:36 +1000)]
Merge branch 'radeon-gem-cs' into modesetting-gem

Conflicts:

libdrm/xf86drm.c
linux-core/Makefile.kernel
linux-core/drmP.h
linux-core/drm_compat.h
linux-core/drm_drv.c
linux-core/drm_stub.c
linux-core/drm_vm.c
shared-core/i915_dma.c
shared-core/r300_cmdbuf.c
shared-core/radeon_drv.h

15 years agoAdd com bios asic init bits
Alex Deucher [Wed, 13 Aug 2008 00:18:07 +0000 (20:18 -0400)]
Add com bios asic init bits

15 years agoFill in and make use of more com bios tables on legacy chips
Alex Deucher [Tue, 12 Aug 2008 22:13:21 +0000 (18:13 -0400)]
Fill in and make use of more com bios tables on legacy chips

15 years agoAdd additional quirks from ddx
Alex Deucher [Tue, 12 Aug 2008 19:33:20 +0000 (15:33 -0400)]
Add additional quirks from ddx

15 years agoFix warnings
Alex Deucher [Tue, 12 Aug 2008 18:07:33 +0000 (14:07 -0400)]
Fix warnings

15 years agoGet legacy working finally
Alex Deucher [Tue, 12 Aug 2008 17:52:35 +0000 (13:52 -0400)]
Get legacy working finally

- extra ~ in RADEON_WRITE_P()
- re-arrange crtc setup a bit
- add debugging for tracing calls
- fix pitch calculation

15 years agoset base in legacy crtc mode set
Alex Deucher [Tue, 12 Aug 2008 07:05:11 +0000 (03:05 -0400)]
set base in legacy crtc mode set

15 years agoConvert COM BIOS to table offset lookup function
Alex Deucher [Tue, 12 Aug 2008 06:11:44 +0000 (02:11 -0400)]
Convert COM BIOS to table offset lookup function

15 years agoRestructure cursor handling and add support for legacy cursors
Alex Deucher [Mon, 11 Aug 2008 22:37:16 +0000 (18:37 -0400)]
Restructure cursor handling and add support for legacy cursors

15 years agoatom: implement crtc lock
Alex Deucher [Mon, 11 Aug 2008 21:02:18 +0000 (17:02 -0400)]
atom: implement crtc lock

15 years agoLUT updates
Alex Deucher [Mon, 11 Aug 2008 20:29:19 +0000 (16:29 -0400)]
LUT updates

- Add gamma set for legacy chips
- Add 16 bpp gamma set

15 years agovarious cleanups
Alex Deucher [Mon, 11 Aug 2008 20:15:21 +0000 (16:15 -0400)]
various cleanups

- white space
- move i2c_lock to radeon_i2c.c
- enable tv dac on legacy

15 years agoAdd legacy dac detect stubs
Alex Deucher [Mon, 11 Aug 2008 18:41:13 +0000 (14:41 -0400)]
Add legacy dac detect stubs

15 years agounify connector, i2c handling for atom and legacy
Alex Deucher [Mon, 11 Aug 2008 18:26:43 +0000 (14:26 -0400)]
unify connector, i2c handling for atom and legacy

15 years agoBrute force port of legacy crtc/encoder code
Alex Deucher [Mon, 11 Aug 2008 16:29:42 +0000 (12:29 -0400)]
Brute force port of legacy crtc/encoder code

- removed save/init/restore chain with set functions

15 years agoon_each_cpu() compat fixup from krh
Alex Deucher [Fri, 8 Aug 2008 23:36:46 +0000 (19:36 -0400)]
on_each_cpu() compat fixup from krh

15 years agoradeon: fix kernel_mm properly
Dave Airlie [Wed, 13 Aug 2008 23:17:43 +0000 (09:17 +1000)]
radeon: fix kernel_mm properly

15 years agoradeon: FEDORA: patch to make 3D driver work
Dave Airlie [Wed, 13 Aug 2008 23:15:28 +0000 (09:15 +1000)]
radeon: FEDORA: patch to make 3D driver work

set gart buffers start

15 years agoradeon: remove debugging
Dave Airlie [Wed, 13 Aug 2008 23:14:56 +0000 (09:14 +1000)]
radeon: remove debugging

15 years agoradeon: use mm_enabled variable to denote memory manager running
Dave Airlie [Wed, 13 Aug 2008 23:14:14 +0000 (09:14 +1000)]
radeon: use mm_enabled variable to denote memory manager running

15 years agoradeon: make buffer swap for older drivers work again on GEM
Dave Airlie [Wed, 13 Aug 2008 23:12:36 +0000 (09:12 +1000)]
radeon: make buffer swap for older drivers work again on GEM

15 years agoradeon: add userspace call for mm support check
Dave Airlie [Wed, 13 Aug 2008 23:11:15 +0000 (09:11 +1000)]
radeon: add userspace call for mm support check

15 years agoradeon: FEDORA: add old DMA buffers on top of GEM
Dave Airlie [Wed, 13 Aug 2008 23:10:11 +0000 (09:10 +1000)]
radeon: FEDORA: add old DMA buffers on top of GEM

This really shouldn't go upstream, it just lets me
run the old 3D driver on GEM setup system

15 years agoi915: setup hardware status page if physical addrs are required
Jesse Barnes [Wed, 13 Aug 2008 18:39:22 +0000 (11:39 -0700)]
i915: setup hardware status page if physical addrs are required

Needed for the modesetting case where we initialize the ring at load time.

15 years agoMerge branch 'modesetting-101' into modesetting-gem
Jesse Barnes [Wed, 13 Aug 2008 17:09:41 +0000 (10:09 -0700)]
Merge branch 'modesetting-101' into modesetting-gem

15 years agoMerge branch 'master' into modesetting-gem
Jesse Barnes [Wed, 13 Aug 2008 17:08:02 +0000 (10:08 -0700)]
Merge branch 'master' into modesetting-gem

Conflicts:

libdrm/Makefile.am
libdrm/xf86drm.h
shared-core/i915_dma.c
shared-core/i915_irq.c

15 years agoDon't call the vblank tasklet with irqs disabled.
Thomas Hellstrom [Wed, 13 Aug 2008 08:04:21 +0000 (10:04 +0200)]
Don't call the vblank tasklet with irqs disabled.
If a specific tasklet shares data with irq context,
it needs to take a private irq-blocking spinlock within
the tasklet itself.

15 years ago[intel_bufmgr_gem] Fix flink buffer name caching (#17085, #17092).
Kristian Høgsberg [Wed, 13 Aug 2008 02:22:15 +0000 (22:22 -0400)]
[intel_bufmgr_gem] Fix flink buffer name caching (#17085, #17092).

Store the global name in global_name, don't overwrite the gem_handle.

15 years agoAdd error checking to framebuffer creation
Jesse Barnes [Wed, 13 Aug 2008 01:23:58 +0000 (18:23 -0700)]
Add error checking to framebuffer creation

Make the Intel routine return an error if needed and make the core check for
it.

15 years agoExport a generic dri_bo handle for use by clients
Jesse Barnes [Wed, 13 Aug 2008 01:22:34 +0000 (18:22 -0700)]
Export a generic dri_bo handle for use by clients

We'll need something like this (either a handle field or a dri_bo_get_handle
function) for kernel mode setting to get at the handles.

15 years agolibdrm: Allow build outside of source tree.
Matthieu Herrb [Mon, 11 Aug 2008 17:44:39 +0000 (10:44 -0700)]
libdrm: Allow build outside of source tree.

15 years agodrm_vm: fix for build on 2.6.22
Dave Airlie [Mon, 11 Aug 2008 00:58:41 +0000 (10:58 +1000)]
drm_vm: fix for build on 2.6.22

thanks to malc0 for pointing it out

15 years agodrm: add OS_HAS_GEM option.
Dave Airlie [Mon, 11 Aug 2008 00:47:00 +0000 (10:47 +1000)]
drm: add OS_HAS_GEM option.

To build i915 driver pass OS_HAS_GEM=1 to make for now

15 years agoNV50: minor changes
Maarten Maathuis [Sat, 9 Aug 2008 17:50:00 +0000 (19:50 +0200)]
NV50: minor changes

15 years agoNV50: enable hotplug irq
Maarten Maathuis [Sat, 9 Aug 2008 17:47:06 +0000 (19:47 +0200)]
NV50: enable hotplug irq

15 years agoNV50: call drm_sysfs_hotplug_event when appropriate
Maarten Maathuis [Sat, 9 Aug 2008 17:33:32 +0000 (19:33 +0200)]
NV50: call drm_sysfs_hotplug_event when appropriate

15 years agodrm: TRUE/true
Dave Airlie [Sat, 9 Aug 2008 07:19:16 +0000 (17:19 +1000)]
drm: TRUE/true

15 years agoDrop TTM interfaces from the userland library.
Eric Anholt [Fri, 8 Aug 2008 22:55:34 +0000 (15:55 -0700)]
Drop TTM interfaces from the userland library.

15 years agoFix compile warning from check_aperture change.
Eric Anholt [Fri, 8 Aug 2008 21:08:43 +0000 (14:08 -0700)]
Fix compile warning from check_aperture change.

15 years agoMerge branch 'drm-gem'
Eric Anholt [Fri, 8 Aug 2008 21:05:01 +0000 (14:05 -0700)]
Merge branch 'drm-gem'

Conflicts:

shared-core/i915_dma.c

This brings in kernel support and userland interface for intel GEM.

15 years agoReplace the check_aperture API with one we can make thread-safe.
Eric Anholt [Fri, 8 Aug 2008 20:13:46 +0000 (13:13 -0700)]
Replace the check_aperture API with one we can make thread-safe.

While the bufmgr isn't thread-safe at the moment, we need it to be for shared
objects between contexts.

15 years agonouveau: wait for pgraph idle after loading or saving a context
Stuart Bennett [Fri, 8 Aug 2008 15:20:52 +0000 (16:20 +0100)]
nouveau: wait for pgraph idle after loading or saving a context

the nvidia driver does this, and it stops the error message appearing on nv40

15 years agoradeon: add initial support for legacy crtc/encoders.
Dave Airlie [Fri, 8 Aug 2008 06:04:45 +0000 (16:04 +1000)]
radeon: add initial support for legacy crtc/encoders.

not all there yet

15 years agoMake modesetting-gem build with recent kernels
Jesse Barnes [Fri, 8 Aug 2008 00:15:50 +0000 (17:15 -0700)]
Make modesetting-gem build with recent kernels

Needed to merge in VM fault changes & pci_read_base API update.

15 years agoMake flink save the kernel-assigned name and return it instead of creating another...
Keith Packard [Thu, 7 Aug 2008 22:26:30 +0000 (15:26 -0700)]
Make flink save the kernel-assigned name and return it instead of creating another name

15 years agoMerge branch 'drm-gem' into modesetting-gem
Jesse Barnes [Thu, 7 Aug 2008 21:02:04 +0000 (14:02 -0700)]
Merge branch 'drm-gem' into modesetting-gem

15 years agoSwitch from shmem_getpage to read_mapping_page
Keith Packard [Tue, 5 Aug 2008 06:33:03 +0000 (23:33 -0700)]
Switch from shmem_getpage to read_mapping_page

15 years agoradeon: fixup PCI GART table with GEM enabled
Dave Airlie [Wed, 6 Aug 2008 05:59:31 +0000 (15:59 +1000)]
radeon: fixup PCI GART table with GEM enabled

15 years agoradeon: just evict to TT not cached
Dave Airlie [Wed, 6 Aug 2008 05:58:09 +0000 (15:58 +1000)]
radeon: just evict to TT not cached

15 years agodrm: don't teardown things in modeset paths
Dave Airlie [Wed, 6 Aug 2008 05:57:38 +0000 (15:57 +1000)]
drm: don't teardown things in modeset paths

15 years agopcigart: fixup memset + remove wbinvd
Dave Airlie [Wed, 6 Aug 2008 05:56:08 +0000 (15:56 +1000)]
pcigart: fixup memset + remove wbinvd

15 years agoradeon: fix setting new memmap in right place
Dave Airlie [Wed, 6 Aug 2008 00:21:20 +0000 (10:21 +1000)]
radeon: fix setting new memmap in right place

15 years ago[gem-intel] Retiring flush requests should clear flushed write_domains
Keith Packard [Tue, 5 Aug 2008 23:06:40 +0000 (16:06 -0700)]
[gem-intel] Retiring flush requests should clear flushed write_domains

When i915_gem_retire_request has a flush which matches an object write
domain, clear the write domain. This will move the object to the inactive
list rather than the flushing list, avoiding trouble with objects left stuck
on the flushing list.