platform/upstream/libdrm.git
15 years agoradeon: add gart useable size to report to userspace
Dave Airlie [Mon, 10 Nov 2008 05:38:32 +0000 (15:38 +1000)]
radeon: add gart useable size to report to userspace

15 years agoradeon: upgrade atom headers
Dave Airlie [Mon, 10 Nov 2008 05:37:51 +0000 (15:37 +1000)]
radeon: upgrade atom headers

15 years agoradeon: fix fence race condition hopefully
Dave Airlie [Mon, 10 Nov 2008 05:37:36 +0000 (15:37 +1000)]
radeon: fix fence race condition hopefully

For some reason reading the SCRATCH reg from RAM causes some race to occur.
Hopefully fix this.

15 years agodrm/radeon: add dpms connector functions
Dave Airlie [Mon, 10 Nov 2008 05:37:16 +0000 (15:37 +1000)]
drm/radeon: add dpms connector functions

15 years agoradeon: avivo cursors are across the full surface.
Dave Airlie [Mon, 10 Nov 2008 05:35:34 +0000 (15:35 +1000)]
radeon: avivo cursors are across the full surface.

fixes cursor on second head

15 years agomodesetting: set the crtc x,y after the mode base change
Dave Airlie [Mon, 10 Nov 2008 05:35:16 +0000 (15:35 +1000)]
modesetting: set the crtc x,y after the mode base change

15 years agodrm/radeon: add uncached allocator to drm ttm code.
Dave Airlie [Mon, 10 Nov 2008 05:30:21 +0000 (15:30 +1000)]
drm/radeon: add uncached allocator to drm ttm code.

15 years agoradeon: fix ring tail overflow issue since alignment
Dave Airlie [Mon, 10 Nov 2008 05:25:27 +0000 (15:25 +1000)]
radeon: fix ring tail overflow issue since alignment

15 years agoradeon: disable HDP read cache for now
Dave Airlie [Mon, 10 Nov 2008 05:25:12 +0000 (15:25 +1000)]
radeon: disable HDP read cache for now

15 years agoradeon: force all ring writes to 16-dword alignment.
Dave Airlie [Mon, 10 Nov 2008 05:24:42 +0000 (15:24 +1000)]
radeon: force all ring writes to 16-dword alignment.

15 years agoradeon: fixup vram visible calculation to take a/c pinned objects for now
Dave Airlie [Mon, 10 Nov 2008 05:13:08 +0000 (15:13 +1000)]
radeon: fixup vram visible calculation to take a/c pinned objects for now

16 years agoradeon: add more packet3 relocations handling
Jerome Glisse [Sun, 9 Nov 2008 17:48:46 +0000 (18:48 +0100)]
radeon: add more packet3 relocations handling

16 years agolibdrm-radeon: update libdrm-radeon to match current CS relocation structures
Jerome Glisse [Sun, 9 Nov 2008 17:45:43 +0000 (18:45 +0100)]
libdrm-radeon: update libdrm-radeon to match current CS relocation structures

16 years agoradeon: lib radeon add bo & cs gem backend
Jerome Glisse [Wed, 5 Nov 2008 23:40:06 +0000 (00:40 +0100)]
radeon: lib radeon add bo & cs gem backend

16 years agoradeon: libdrm_radeon add handle to debug string
Jerome Glisse [Wed, 5 Nov 2008 15:00:04 +0000 (16:00 +0100)]
radeon: libdrm_radeon add handle to debug string

16 years agoMerge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modeset...
Jerome Glisse [Wed, 5 Nov 2008 14:59:37 +0000 (15:59 +0100)]
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem

16 years agoradeon: make build again
Dave Airlie [Sun, 2 Nov 2008 23:58:12 +0000 (09:58 +1000)]
radeon: make build again

16 years agoradeon: fix ROP values for the paint ROP
Dave Airlie [Sun, 2 Nov 2008 23:52:40 +0000 (09:52 +1000)]
radeon: fix ROP values for the paint ROP

16 years agoradeon: add mtrr support for VRAM aperture.
Dave Airlie [Sun, 2 Nov 2008 23:52:25 +0000 (09:52 +1000)]
radeon: add mtrr support for VRAM aperture.

16 years agoradeon: disable AGP for certain chips if not specified until we figure it out
Dave Airlie [Sun, 2 Nov 2008 23:51:57 +0000 (09:51 +1000)]
radeon: disable AGP for certain chips if not specified until we figure it out

16 years agoradeon: disable debugging message
Dave Airlie [Sun, 2 Nov 2008 23:51:33 +0000 (09:51 +1000)]
radeon: disable debugging message

16 years agoradeon: commit ring after emitting the buffer discards
Dave Airlie [Sun, 2 Nov 2008 23:50:46 +0000 (09:50 +1000)]
radeon: commit ring after emitting the buffer discards

16 years agoradeon: add more HDMI bits
Dave Airlie [Sun, 2 Nov 2008 23:49:59 +0000 (09:49 +1000)]
radeon: add more HDMI bits

16 years agoradeon: set dma bufs bo type to a kernel type
Dave Airlie [Sun, 2 Nov 2008 23:49:41 +0000 (09:49 +1000)]
radeon: set dma bufs bo type to a kernel type

16 years agoradeon: enable DVI-D + HDMI connectors.
Dave Airlie [Sun, 2 Nov 2008 23:48:10 +0000 (09:48 +1000)]
radeon: enable DVI-D + HDMI connectors.

This allows the rs690 to work on DVI

16 years agoradeon: setup isync cntl properly
Dave Airlie [Sun, 2 Nov 2008 23:47:49 +0000 (09:47 +1000)]
radeon: setup isync cntl properly

16 years agoradeon: add more debugging
Dave Airlie [Sun, 2 Nov 2008 23:47:14 +0000 (09:47 +1000)]
radeon: add more debugging

16 years agoradeon: overhaul ring interactions
Dave Airlie [Sun, 2 Nov 2008 23:46:54 +0000 (09:46 +1000)]
radeon: overhaul ring interactions

emit in 16-dword blocks, emit irqs at same time as everything else

16 years agoradeon: fix race in sysfs
Dave Airlie [Sun, 2 Nov 2008 23:46:07 +0000 (09:46 +1000)]
radeon: fix race in sysfs

16 years agoradeon: add proc debugging for interrupts/ring
Dave Airlie [Sun, 2 Nov 2008 23:45:43 +0000 (09:45 +1000)]
radeon: add proc debugging for interrupts/ring

16 years agoradeon: only enable dynclks if asked for
Dave Airlie [Sun, 2 Nov 2008 23:44:32 +0000 (09:44 +1000)]
radeon: only enable dynclks if asked for

16 years agoradeon: add wait rendering API
Dave Airlie [Sun, 2 Nov 2008 23:44:03 +0000 (09:44 +1000)]
radeon: add wait rendering API

16 years agoradeon: rs480 fixes for bus mastering
Dave Airlie [Sun, 2 Nov 2008 23:43:29 +0000 (09:43 +1000)]
radeon: rs480 fixes for bus mastering

16 years agoradeon: remove unused gem indirect ioctl
Dave Airlie [Sun, 2 Nov 2008 23:42:01 +0000 (09:42 +1000)]
radeon: remove unused gem indirect ioctl

16 years agoradeon: fix some warnings
Dave Airlie [Sun, 2 Nov 2008 23:41:30 +0000 (09:41 +1000)]
radeon: fix some warnings

16 years agoradeon: fix free after refcount
Dave Airlie [Sun, 2 Nov 2008 23:41:12 +0000 (09:41 +1000)]
radeon: fix free after refcount

16 years agoradeon: CS2 make it all work with new relocs style
Dave Airlie [Sun, 2 Nov 2008 23:40:52 +0000 (09:40 +1000)]
radeon: CS2 make it all work with new relocs style

16 years agoradeon: don't copy to user the cs ids
Dave Airlie [Sun, 2 Nov 2008 23:40:24 +0000 (09:40 +1000)]
radeon: don't copy to user the cs ids

16 years agoradeon: make new CS2 command submission interface port older interface to this
Dave Airlie [Sun, 2 Nov 2008 23:39:53 +0000 (09:39 +1000)]
radeon: make new CS2 command submission interface port older interface to this

16 years agoradeon/drm: fixup ref counting in on fb objs
Dave Airlie [Sun, 2 Nov 2008 23:36:03 +0000 (09:36 +1000)]
radeon/drm: fixup ref counting in on fb objs

16 years agoradeon: release agp on module unload
Dave Airlie [Sun, 2 Nov 2008 23:33:32 +0000 (09:33 +1000)]
radeon: release agp on module unload

16 years agoradeon: add r423 bits to modesetting
Dave Airlie [Sun, 2 Nov 2008 23:33:12 +0000 (09:33 +1000)]
radeon: add r423 bits to modesetting

16 years agoradeon: pull bus master enable into its own function
Dave Airlie [Sun, 2 Nov 2008 23:32:39 +0000 (09:32 +1000)]
radeon: pull bus master enable into its own function

16 years agoradeon: fix accessible VRAM sizing
Dave Airlie [Sun, 2 Nov 2008 23:31:17 +0000 (09:31 +1000)]
radeon: fix accessible VRAM sizing

16 years agoradeon: update proper chip family
Dave Airlie [Sun, 2 Nov 2008 23:30:48 +0000 (09:30 +1000)]
radeon: update proper chip family

16 years agoradeon: fixup scratch register interactions properly
Dave Airlie [Sun, 2 Nov 2008 23:29:22 +0000 (09:29 +1000)]
radeon: fixup scratch register interactions properly

16 years agoradeon: make writeback work again
Dave Airlie [Sun, 2 Nov 2008 23:28:56 +0000 (09:28 +1000)]
radeon: make writeback work again

16 years agoradeon: fix some warnings
Dave Airlie [Sun, 2 Nov 2008 23:28:36 +0000 (09:28 +1000)]
radeon: fix some warnings

16 years agoradeon: fix small typo in agp code
Dave Airlie [Sun, 2 Nov 2008 23:27:00 +0000 (09:27 +1000)]
radeon: fix small typo in agp code

16 years agoradeon: workaround failure to parse some rs48x edid
Dave Airlie [Sun, 2 Nov 2008 23:26:32 +0000 (09:26 +1000)]
radeon: workaround failure to parse some rs48x edid

16 years agoradeon: don't enable dynclks on rs48x
Dave Airlie [Sun, 2 Nov 2008 23:26:00 +0000 (09:26 +1000)]
radeon: don't enable dynclks on rs48x

16 years agoradeon: export radeon_modeset
Dave Airlie [Sun, 2 Nov 2008 23:25:32 +0000 (09:25 +1000)]
radeon: export radeon_modeset

16 years agoradeon: fix unused agp functionality
Dave Airlie [Sun, 2 Nov 2008 23:24:13 +0000 (09:24 +1000)]
radeon: fix unused agp functionality

16 years agoradeon: add some more r100 support to test AGP
Dave Airlie [Sun, 2 Nov 2008 23:23:19 +0000 (09:23 +1000)]
radeon: add some more r100 support to test AGP

16 years agoradeon: debug bo
Jerome Glisse [Sun, 2 Nov 2008 15:00:06 +0000 (16:00 +0100)]
radeon: debug bo

16 years agoMerge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modeset...
Jerome Glisse [Wed, 29 Oct 2008 22:41:48 +0000 (23:41 +0100)]
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem

16 years agoradeon: libdrm_radeon updates bo & cs interfaces
Jerome Glisse [Wed, 29 Oct 2008 22:40:20 +0000 (23:40 +0100)]
radeon: libdrm_radeon updates bo & cs interfaces

16 years agolibdrm: fix ABI change in drm_mode_get_encoder
Jesse Barnes [Wed, 29 Oct 2008 19:17:39 +0000 (12:17 -0700)]
libdrm: fix ABI change in drm_mode_get_encoder

The encoder_type field should be at the top to match the kernel.

16 years agoradeon: reloc are backend dependant
Jerome Glisse [Mon, 27 Oct 2008 22:26:15 +0000 (23:26 +0100)]
radeon: reloc are backend dependant

16 years agoMerge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modeset...
Jerome Glisse [Mon, 27 Oct 2008 18:33:56 +0000 (19:33 +0100)]
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem

16 years agoradeon: radeon util library
Jerome Glisse [Mon, 27 Oct 2008 18:27:15 +0000 (19:27 +0100)]
radeon: radeon util library

16 years agodrm: make handles 32-bits again not sure why they changed
Dave Airlie [Mon, 27 Oct 2008 07:06:23 +0000 (17:06 +1000)]
drm: make handles 32-bits again not sure why they changed

16 years agomode: Try to settle on a standard for struct fields
Jakob Bornecrantz [Fri, 24 Oct 2008 16:43:55 +0000 (18:43 +0200)]
mode: Try to settle on a standard for struct fields

16 years agomode: Indent defines
Jakob Bornecrantz [Fri, 24 Oct 2008 16:23:39 +0000 (18:23 +0200)]
mode: Indent defines

16 years agolink libdrm_intel properly
Dave Airlie [Thu, 16 Oct 2008 20:40:38 +0000 (06:40 +1000)]
link libdrm_intel properly

libdrm_intel needs symbols from libdrm, so link against it.
(cherry picked from commit d9c2f65dd8e50736a33e97a55c257ef6843e1ce7)

Conflicts:

libdrm/Makefile.am

16 years agolibdrm: don't depend or link to libdrm_intel
Dave Airlie [Sun, 12 Oct 2008 21:16:33 +0000 (07:16 +1000)]
libdrm: don't depend or link to libdrm_intel

16 years agointel: Protect bufmgr objects with a pthread mutex.
Eric Anholt [Fri, 13 Jun 2008 06:22:26 +0000 (23:22 -0700)]
intel: Protect bufmgr objects with a pthread mutex.

We want to be able to use the bufmgr from multiple threads for GL, and thus
we need to protect the internal structures.

The pthread-stubs package is used so that programs not linked against
pthreads get weak symbols to stubs and don't eat most of the cost.

16 years agoradeon: add initial agp support.
Dave Airlie [Thu, 16 Oct 2008 00:59:31 +0000 (10:59 +1000)]
radeon: add initial agp support.

This add agpmode command line option.

16 years agoradeon: add CS support for r100/r200 in 2D driver
Dave Airlie [Thu, 16 Oct 2008 00:57:31 +0000 (10:57 +1000)]
radeon: add CS support for r100/r200 in 2D driver

16 years agoradeon: fixup interrupt suspend/resume
Dave Airlie [Thu, 16 Oct 2008 00:55:24 +0000 (10:55 +1000)]
radeon: fixup interrupt suspend/resume

16 years agoradeon: fixup suspend/resume bus master enable
Dave Airlie [Thu, 16 Oct 2008 00:53:55 +0000 (10:53 +1000)]
radeon: fixup suspend/resume bus master enable

16 years agoradeon: re-enable hw blits for copying from VRAM
Dave Airlie [Thu, 16 Oct 2008 00:53:26 +0000 (10:53 +1000)]
radeon: re-enable hw blits for copying from VRAM

16 years agoradeon: fix buffer copying for VRAM->TT
Dave Airlie [Thu, 16 Oct 2008 00:52:53 +0000 (10:52 +1000)]
radeon: fix buffer copying for VRAM->TT

16 years agoradeon: move memcpy until after CP is stopped
Dave Airlie [Thu, 16 Oct 2008 00:52:28 +0000 (10:52 +1000)]
radeon: move memcpy until after CP is stopped

16 years agodrm: remove stray debug code
Dave Airlie [Thu, 16 Oct 2008 00:51:56 +0000 (10:51 +1000)]
drm: remove stray debug code

16 years agoradeon: use discardable flags on no backing store objects
Dave Airlie [Thu, 16 Oct 2008 00:51:31 +0000 (10:51 +1000)]
radeon: use discardable flags on no backing store objects

16 years agodrm: add discardable flag.
Dave Airlie [Thu, 16 Oct 2008 00:50:31 +0000 (10:50 +1000)]
drm: add discardable flag.

This discards memory contents on suspend/resume with the
hope the upper layers know something we don't.

16 years agodrm/radeon: initial suspend/resume fix.
Dave Airlie [Thu, 16 Oct 2008 00:49:58 +0000 (10:49 +1000)]
drm/radeon: initial suspend/resume fix.

This enables the evict code and also sets radeon up
to allow evict from VRAM to LOCAL

16 years agoradeon: pull in recent fixes from ddx
Alex Deucher [Tue, 7 Oct 2008 18:10:39 +0000 (14:10 -0400)]
radeon: pull in recent fixes from ddx

- fixup atom digital encoder setup
- pull in add get edid (currently disabled due to
  lack of support for atom fb/scratch space)

16 years agoradeon: fix alignment so Xv works again
Dave Airlie [Mon, 6 Oct 2008 06:40:45 +0000 (16:40 +1000)]
radeon: fix alignment so Xv works again

16 years agoradeon: fix pin ioctl interface to mesa can find offset for pinned buffers
Dave Airlie [Mon, 6 Oct 2008 06:40:20 +0000 (16:40 +1000)]
radeon: fix pin ioctl interface to mesa can find offset for pinned buffers

16 years agodrm/radeon: fixup clean flag handling
Dave Airlie [Mon, 6 Oct 2008 06:39:25 +0000 (16:39 +1000)]
drm/radeon: fixup clean flag handling

16 years agointel bufmgr: reinstate buffer handle tracking
Jesse Barnes [Tue, 30 Sep 2008 23:35:26 +0000 (16:35 -0700)]
intel bufmgr: reinstate buffer handle tracking

We need a way of getting at the underlying handle for use with mode
setting.  We can either export it in the dri_bo object or provide a new
callback to get it.

16 years agoMerge remote branch 'origin/modesetting-gem' into modesetting-gem
Dave Airlie [Tue, 30 Sep 2008 04:17:27 +0000 (14:17 +1000)]
Merge remote branch 'origin/modesetting-gem' into modesetting-gem

16 years agoMerge remote branch 'origin/master' into modesetting-gem
Dave Airlie [Fri, 26 Sep 2008 05:37:21 +0000 (15:37 +1000)]
Merge remote branch 'origin/master' into modesetting-gem

Conflicts:

libdrm/Makefile.am
libdrm/dri_bufmgr.h
linux-core/drm_irq.c
linux-core/drm_sysfs.c
linux-core/drm_ttm.c
shared-core/i915_dma.c
shared-core/i915_irq.c
shared-core/nouveau_drv.h
shared-core/radeon_cp.c

16 years agoradeon: use atom for ext tmds on r4xx
Alex Deucher [Fri, 26 Sep 2008 21:32:15 +0000 (17:32 -0400)]
radeon: use atom for ext tmds on r4xx

16 years agoradeon: make atom on r4xx a module option
Alex Deucher [Fri, 26 Sep 2008 21:20:04 +0000 (17:20 -0400)]
radeon: make atom on r4xx a module option

default is legacy modesetting.  pass module option r4xx_atom
to try using atom on r4xx.

16 years agoMerge branch 'modesetting-gem' of git+ssh://agd5f@git.freedesktop.org/git/mesa/drm...
Alex Deucher [Thu, 25 Sep 2008 22:47:47 +0000 (18:47 -0400)]
Merge branch 'modesetting-gem' of git+ssh://agd5f@git.freedesktop.org/git/mesa/drm into modesetting-gem

16 years agoradeon: first pass at using atombios on r4xx hw
Alex Deucher [Thu, 25 Sep 2008 22:45:07 +0000 (18:45 -0400)]
radeon: first pass at using atombios on r4xx hw

16 years agoSeperate modesetting userspace bits into drm_mode.h
Jakob Bornecrantz [Thu, 25 Sep 2008 21:12:07 +0000 (23:12 +0200)]
Seperate modesetting userspace bits into drm_mode.h

16 years agoradeon: add r600 modesetting registers writes
Dave Airlie [Wed, 24 Sep 2008 05:25:35 +0000 (15:25 +1000)]
radeon: add r600 modesetting registers writes

16 years agoradeon: add parsing for r6xx object tables
Dave Airlie [Wed, 24 Sep 2008 03:58:26 +0000 (13:58 +1000)]
radeon: add parsing for r6xx object tables

16 years agointel: Allow up to 15 seconds chewing on one buffer before acknowledging -EBUSY.
Eric Anholt [Wed, 24 Sep 2008 00:06:01 +0000 (17:06 -0700)]
intel: Allow up to 15 seconds chewing on one buffer before acknowledging -EBUSY.

The gltestperf demo in some cases took over seven seconds to make it through
one batchbuffer on a GM965.

Bug #17004.

16 years agointel: Replace wraparound test logic in bufmgr_fake. Again.
Eric Anholt [Tue, 23 Sep 2008 17:48:39 +0000 (10:48 -0700)]
intel: Replace wraparound test logic in bufmgr_fake.  Again.

I'd swapped the operands, so if we weren't in lockstep with the hardware we
said the sequence was always passed.  Additionally, a race was available that
we might have failed at recovering from.  Instead, I've replaced the logic
with new stuff that should be more robust and not rely on all the parties in
userland following the same IRQ_EMIT() == 1 protocol.  Also, in a radical
departure from past efforts, include a long comment describing the failure
modes and how we're working around them.

Thanks to haihao for catching the original issue.

16 years agointel: Do strerror on errno, not on the -1 return value from ioctl.
Eric Anholt [Tue, 23 Sep 2008 17:47:21 +0000 (10:47 -0700)]
intel: Do strerror on errno, not on the -1 return value from ioctl.

16 years agoUpdate intel modesetting to use mm_private instead of mm_handle.
Kristian Høgsberg [Tue, 23 Sep 2008 06:52:06 +0000 (16:52 +1000)]
Update intel modesetting to use mm_private instead of mm_handle.

16 years agoradeon: fix minor cursor issues
Dave Airlie [Tue, 23 Sep 2008 06:50:39 +0000 (16:50 +1000)]
radeon: fix minor cursor issues

16 years agoradeon: Fix type in check for tmds type.
Kristian Høgsberg [Tue, 23 Sep 2008 06:50:22 +0000 (16:50 +1000)]
radeon: Fix type in check for tmds type.

16 years agoStore the buffer object backing the fb as a void pointer, not a handle.
Kristian Høgsberg [Tue, 23 Sep 2008 06:47:34 +0000 (16:47 +1000)]
Store the buffer object backing the fb as a void pointer, not a handle.

This lets us defer handle creation until userspace acutally asks for
one, at which point we also have a drm_file to associate it with.

16 years agodrm: fix brace placement
Dave Airlie [Thu, 28 Aug 2008 11:20:19 +0000 (21:20 +1000)]
drm: fix brace placement