profile/ivi/libdrm.git
16 years agoradeon_ms: avoid to unintialize things which haven't been initialized
Jerome Glisse [Thu, 6 Dec 2007 21:38:44 +0000 (22:38 +0100)]
radeon_ms: avoid to unintialize things which haven't been initialized

16 years agoradeon_ms: radeon modesetting first commit.
Jerome Glisse [Sun, 2 Dec 2007 22:48:45 +0000 (23:48 +0100)]
radeon_ms: radeon modesetting first commit.

This should work on all radeon but there is still many things todo:
    - add crtc2
    - tmds
    - lvds
    - add bios data table so we don't need to hardcode dac/crtc infos
    - separate clock control to make power saving easier & cleaner
    - tiling (warning tiling shouldn't be enable in double scan or interlace)
    - surface reg manager (this goes along with tiling)
    - suspend/resume hook
    - avivo & r500 family support
    - atom bios support (for posting card mostly)
    - finish superioctl skeleton
    - what else ? :)

16 years agoDon't use panel fitter if we're programming a native mode
Jesse Barnes [Tue, 27 Nov 2007 20:39:09 +0000 (12:39 -0800)]
Don't use panel fitter if we're programming a native mode

Fix from the DDX driver.

16 years agodrm/modesetting: add initial gettable properites code.
Dave Airlie [Tue, 27 Nov 2007 04:31:02 +0000 (14:31 +1000)]
drm/modesetting: add initial gettable properites code.

This allow the user to retrieve a list of properties for an output.
Properties can either be 32-bit values or an enum with an associated name.
Range properties are to be supported.

This API is probably not all correct, I may make properties part of the general
resource get when I think about it some more.

So basically you can create properties and attached them to whatever outputs you want,
so it should be possible to create some generics and just attach them to every output.

16 years agofb: make fb interface use user mode attach/detach for adding modes
Dave Airlie [Mon, 26 Nov 2007 04:06:42 +0000 (15:06 +1100)]
fb: make fb interface use user mode attach/detach for adding modes

16 years agoadd _ioctl to the end of two more ioctls
Dave Airlie [Mon, 26 Nov 2007 03:28:48 +0000 (14:28 +1100)]
add _ioctl to the end of two more ioctls

16 years agodrm: make fb modes use usermode add/remove interface
Dave Airlie [Mon, 26 Nov 2007 03:05:49 +0000 (14:05 +1100)]
drm: make fb modes use usermode add/remove interface

this stops usermode from getting a mode in the crtc it can't make sense off.

16 years agoMerge branch 'origin' into modesetting-101
Dave Airlie [Thu, 22 Nov 2007 06:17:06 +0000 (17:17 +1100)]
Merge branch 'origin' into modesetting-101

Conflicts:

linux-core/drmP.h
shared-core/i915_dma.c
shared-core/i915_drm.h
shared-core/radeon_drv.h

16 years agodrm: major whitespace/coding style realignment with kernel
Dave Airlie [Thu, 22 Nov 2007 06:10:36 +0000 (16:10 +1000)]
drm: major whitespace/coding style realignment with kernel

16 years agodrm: cleanup drm_regman.c coding style
Dave Airlie [Thu, 22 Nov 2007 03:29:17 +0000 (13:29 +1000)]
drm: cleanup drm_regman.c coding style

16 years agoi915: add context handle to superioctl struct
Dave Airlie [Wed, 21 Nov 2007 23:17:34 +0000 (09:17 +1000)]
i915: add context handle to superioctl struct

This will be used later for lockless operation.

16 years agodrm: don't reset to 0 irq_enabled when client open file descriptor
Jerome Glisse [Sun, 18 Nov 2007 18:16:40 +0000 (19:16 +0100)]
drm: don't reset to 0 irq_enabled when client open file descriptor

16 years agodrm: don't reset to 0 irq_enabled when client open file descriptor
Jerome Glisse [Sun, 18 Nov 2007 18:16:40 +0000 (19:16 +0100)]
drm: don't reset to 0 irq_enabled when client open file descriptor

16 years agoFix capitalization of __linux__ define.
Eric Anholt [Mon, 19 Nov 2007 16:41:23 +0000 (08:41 -0800)]
Fix capitalization of __linux__ define.

16 years agodrm: fix dead lock in drm_buffer_object_transfer
Jerome Glisse [Mon, 19 Nov 2007 13:37:21 +0000 (14:37 +0100)]
drm: fix dead lock in drm_buffer_object_transfer

16 years agodrm: fix dead lock in drm_buffer_object_transfer
Jerome Glisse [Mon, 19 Nov 2007 13:37:21 +0000 (14:37 +0100)]
drm: fix dead lock in drm_buffer_object_transfer

16 years agoBug #13233: Fix build on FreeBSD.
Robert Noland [Tue, 13 Nov 2007 22:50:46 +0000 (17:50 -0500)]
Bug #13233: Fix build on FreeBSD.

16 years agoBug #13233: Chase move of agp headers on FreeBSD.
Robert Noland [Mon, 19 Nov 2007 06:40:13 +0000 (22:40 -0800)]
Bug #13233: Chase move of agp headers on FreeBSD.

16 years agoradeon: refactor out the fb/agp location read/write.
Dave Airlie [Sun, 18 Nov 2007 09:25:31 +0000 (19:25 +1000)]
radeon: refactor out the fb/agp location read/write.

Add a new get param to get the fb location into userspace. Mesa currently
hits MMIO to do this, but this isn't always possible.

16 years agoFix connection status ABI
Jesse Barnes [Fri, 16 Nov 2007 21:58:43 +0000 (13:58 -0800)]
Fix connection status ABI

Userspace expects a 1 based enum for connection status so fix up the kernel
definition.

16 years agoFix typo in copy_to_user calls
Jesse Barnes [Fri, 16 Nov 2007 21:57:42 +0000 (13:57 -0800)]
Fix typo in copy_to_user calls

We want to copy to card_res->modes + copied, not &card_res->modes + copied.

16 years agonouveau: also mention the number of succcessfully copied bios bytes.
Stephane Marchesin [Fri, 16 Nov 2007 14:02:25 +0000 (15:02 +0100)]
nouveau: also mention the number of succcessfully copied bios bytes.

16 years agonouveau: rename
Jeremy Kolb [Fri, 16 Nov 2007 03:09:59 +0000 (22:09 -0500)]
nouveau: rename

16 years agonouveau: flip buffer into gart.
Jeremy Kolb [Fri, 16 Nov 2007 01:46:49 +0000 (20:46 -0500)]
nouveau: flip buffer into gart.

16 years agoUse user copy routines for writing modes & ids back to userspace
Jesse Barnes [Fri, 16 Nov 2007 01:14:03 +0000 (17:14 -0800)]
Use user copy routines for writing modes & ids back to userspace

Since the drm_mode_card_res structure contains user pointers, we have to use
put_user and copy_to_user to write stuff out.  The DRM ioctl wrapper will only
take care of copying the base drm_mode_card_res struct, not the included
arrays.

16 years agonouveau: be verbose about PPC bios for now.
Stephane Marchesin [Thu, 15 Nov 2007 19:42:38 +0000 (20:42 +0100)]
nouveau: be verbose about PPC bios for now.

16 years agonouveau: revert the nv34 context size change, it was not the culprit after all.
Stephane Marchesin [Thu, 15 Nov 2007 17:01:26 +0000 (18:01 +0100)]
nouveau: revert the nv34 context size change, it was not the culprit after all.

16 years agonouveau: use get_property instead of of_get_property on pre-2.6.22 kernels.
Stephane Marchesin [Thu, 15 Nov 2007 15:00:25 +0000 (16:00 +0100)]
nouveau: use get_property instead of of_get_property on pre-2.6.22 kernels.

16 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into modesetting-101
Thomas Hellstrom [Thu, 15 Nov 2007 09:42:47 +0000 (10:42 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into modesetting-101

16 years agomm fixups.
Thomas Hellstrom [Thu, 15 Nov 2007 09:38:55 +0000 (10:38 +0100)]
mm fixups.

16 years agolibdrm: return crtc id to userspace
Dave Airlie [Thu, 15 Nov 2007 08:22:01 +0000 (19:22 +1100)]
libdrm: return crtc id to userspace

16 years agolibdrm: add crtc/output ids to userspace interface
Dave Airlie [Thu, 15 Nov 2007 07:31:50 +0000 (18:31 +1100)]
libdrm: add crtc/output ids to userspace interface

16 years agodrm: send correct fb id to userspace
Dave Airlie [Thu, 15 Nov 2007 07:31:23 +0000 (18:31 +1100)]
drm: send correct fb id to userspace

16 years agomodes: pass type to userspace for preferred showing
Dave Airlie [Thu, 15 Nov 2007 05:52:04 +0000 (16:52 +1100)]
modes: pass type to userspace for preferred showing

16 years agodrm: don't remove mappings added by the driver
Dave Airlie [Thu, 15 Nov 2007 05:51:48 +0000 (16:51 +1100)]
drm: don't remove mappings added by the driver

16 years agointel: fixup || vs |
Dave Airlie [Thu, 15 Nov 2007 05:51:35 +0000 (16:51 +1100)]
intel: fixup || vs |

16 years agotests: update for new drm interface
Dave Airlie [Thu, 15 Nov 2007 05:51:15 +0000 (16:51 +1100)]
tests: update for new drm interface

16 years agoMerge branch 'master' into modesetting-101
Dave Airlie [Thu, 15 Nov 2007 04:04:19 +0000 (15:04 +1100)]
Merge branch 'master' into modesetting-101

Conflicts:

shared-core/i915_dma.c
tests/ttmtest/src/ttmtest.c

16 years agoi915: remove excess debug output
Dave Airlie [Thu, 15 Nov 2007 03:43:23 +0000 (14:43 +1100)]
i915: remove excess debug output

16 years agonouveau: Copy the PPC bios to RAMIN on init, that lets us do proper output detection...
Stephane Marchesin [Thu, 15 Nov 2007 02:43:22 +0000 (03:43 +0100)]
nouveau: Copy the PPC bios to RAMIN on init, that lets us do proper output detection in user space.

16 years agointel: add flushing for i8xx chipsets.
Dave Airlie [Thu, 15 Nov 2007 02:29:55 +0000 (13:29 +1100)]
intel: add flushing for i8xx chipsets.

Add a nut vs hammer style chipset flush for the i8xx chipsets - reenable TTM
code paths

16 years agonouveau: nv30: missing ramin init, does it brake other hw?
Patrice Mandin [Wed, 14 Nov 2007 22:31:59 +0000 (23:31 +0100)]
nouveau: nv30: missing ramin init, does it brake other hw?

16 years agoAdd new shared header file drm_internal.h.
Kristian Høgsberg [Wed, 14 Nov 2007 19:28:34 +0000 (14:28 -0500)]
Add new shared header file drm_internal.h.

This header file is shared across linux and bsd, but is not installed
for user space to access.  It's the place to put prototypes and data
types that aren't platform or chipset specific, but still internal to
the drm.

16 years agonouveau: adjust the size of the NV34 context. That fixes mobile PPC cards.
Stephane Marchesin [Wed, 14 Nov 2007 01:52:55 +0000 (02:52 +0100)]
nouveau: adjust the size of the NV34 context. That fixes mobile PPC cards.

16 years agoFix ttmtest.
Thomas Hellstrom [Tue, 13 Nov 2007 14:42:08 +0000 (15:42 +0100)]
Fix ttmtest.

16 years agonouveau: Also wait until CACHE1 gets emptied.
Ben Skeggs [Tue, 13 Nov 2007 18:36:20 +0000 (05:36 +1100)]
nouveau: Also wait until CACHE1 gets emptied.

16 years agoRevert "nouveau: stub superioctl"
Ben Skeggs [Tue, 13 Nov 2007 18:11:11 +0000 (05:11 +1100)]
Revert "nouveau: stub superioctl"

This reverts commit 2370ded79b4176d76cda1ec5f495fd33c2d566ed.

Err.. didn't mean for that to slip in :)

16 years agoMerge branch 'fifo-cleanup' into upstream-master
Ben Skeggs [Tue, 13 Nov 2007 18:09:07 +0000 (05:09 +1100)]
Merge branch 'fifo-cleanup' into upstream-master

16 years agonouveau: Attempt to wait for channel idle before we destroy it.
Ben Skeggs [Tue, 13 Nov 2007 17:24:36 +0000 (04:24 +1100)]
nouveau: Attempt to wait for channel idle before we destroy it.

16 years agonouveau: Use "new" NV40 USER control regs.
Ben Skeggs [Tue, 13 Nov 2007 17:15:13 +0000 (04:15 +1100)]
nouveau: Use "new" NV40 USER control regs.

Probably entirely pointless, but a simple change in any case.

16 years agonouveau: store user control reg offsets in channel struct
Ben Skeggs [Tue, 13 Nov 2007 17:05:48 +0000 (04:05 +1100)]
nouveau: store user control reg offsets in channel struct

16 years agonouveau: funcs to determine active channel on PFIFO.
Ben Skeggs [Tue, 13 Nov 2007 16:27:37 +0000 (03:27 +1100)]
nouveau: funcs to determine active channel on PFIFO.

16 years agonouveau: stub superioctl
Ben Skeggs [Thu, 8 Nov 2007 17:27:23 +0000 (04:27 +1100)]
nouveau: stub superioctl

16 years agoMake sure PLLs are enabled before writing pipe configuration regs
Jesse Barnes [Sat, 10 Nov 2007 22:39:36 +0000 (14:39 -0800)]
Make sure PLLs are enabled before writing pipe configuration regs

Fix from the X driver.  Make sure the PLLs are enabled and not in VGA mode
before writing PIPE(A|B)CONF regs to avoid hangs or crashes.

16 years agosuspend() and resume() need kernel 2.6.22 or later
Patrice Mandin [Fri, 9 Nov 2007 17:08:08 +0000 (18:08 +0100)]
suspend() and resume() need kernel 2.6.22 or later

16 years agodrm: check edid data, so we deal well with broken driver.
Jerome Glisse [Fri, 9 Nov 2007 16:28:56 +0000 (17:28 +0100)]
drm: check edid data, so we deal well with broken driver.

16 years agodrm: split edid handling in get_edid & add_edid_mode
Jerome Glisse [Fri, 9 Nov 2007 14:47:24 +0000 (15:47 +0100)]
drm: split edid handling in get_edid & add_edid_mode

This way driver can get_edid in output status detection
(using all workaround which are in get_edid) and then provide
this edid data in get_mode callback of output.

16 years agoi915: cleanup pageflip derefs sarea even if no sarea exists
Dave Airlie [Fri, 9 Nov 2007 01:30:50 +0000 (11:30 +1000)]
i915: cleanup pageflip derefs sarea even if no sarea exists

16 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into modesetting-101
Thomas Hellstrom [Wed, 7 Nov 2007 17:10:46 +0000 (18:10 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into modesetting-101

Conflicts:

shared-core/i915_dma.c

16 years agoDon't overwrite TTM page flags.
Thomas Hellstrom [Wed, 7 Nov 2007 17:07:10 +0000 (18:07 +0100)]
Don't overwrite TTM page flags.

16 years agoi915: oops disable TTM is backwards
Dave Airlie [Wed, 7 Nov 2007 13:10:24 +0000 (23:10 +1000)]
i915: oops disable TTM is backwards

16 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into modesetting-101
Thomas Hellstrom [Tue, 6 Nov 2007 09:01:52 +0000 (10:01 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into modesetting-101

Conflicts:

linux-core/Makefile.kernel
shared-core/i915_dma.c
shared-core/i915_drv.h
shared-core/i915_irq.c

16 years agoAvoid buffers not ending up on a list in some cases.
Thomas Hellstrom [Tue, 6 Nov 2007 08:47:57 +0000 (09:47 +0100)]
Avoid buffers not ending up on a list in some cases.

16 years agoAdd missing drm_regman.c file.
Thomas Hellstrom [Tue, 6 Nov 2007 08:36:25 +0000 (09:36 +0100)]
Add missing drm_regman.c file.

16 years agoi915: disable TTM on 8xx chips for now until flushing is solved
Dave Airlie [Tue, 6 Nov 2007 07:13:46 +0000 (18:13 +1100)]
i915: disable TTM on 8xx chips for now until flushing is solved

16 years agoi915: compat code doesn't work in i8xx hw.
Dave Airlie [Tue, 6 Nov 2007 07:00:10 +0000 (18:00 +1100)]
i915: compat code doesn't work in i8xx hw.

16 years ago[PATCH] i915: fix missing G33 detect in IS_I9XX
Zhenyu Wang [Tue, 6 Nov 2007 06:59:14 +0000 (17:59 +1100)]
[PATCH] i915: fix missing G33 detect in IS_I9XX

G33 detect seems missing with Jesse's suspend/resume patch.

16 years agodrm/agp: kernel style fixes
Dave Airlie [Tue, 6 Nov 2007 02:12:10 +0000 (12:12 +1000)]
drm/agp: kernel style fixes

16 years agoi915: cleanup most of the whitespace
Dave Airlie [Tue, 6 Nov 2007 01:32:58 +0000 (11:32 +1000)]
i915: cleanup most of the whitespace

16 years agoMerge branch 'master' into modesetting-101
Thomas Hellstrom [Mon, 5 Nov 2007 12:46:06 +0000 (13:46 +0100)]
Merge branch 'master' into modesetting-101

Conflicts:

linux-core/drm_bufs.c
shared-core/i915_dma.c
shared-core/i915_drv.h
shared-core/i915_irq.c

16 years agoExport a symbol.
Thomas Hellstrom [Mon, 5 Nov 2007 12:22:00 +0000 (13:22 +0100)]
Export a symbol.

16 years agoFix a user-buffer check.
Thomas Hellstrom [Mon, 5 Nov 2007 12:20:16 +0000 (13:20 +0100)]
Fix a user-buffer check.

16 years agoremove unused define
Alan Hourihane [Mon, 5 Nov 2007 10:06:37 +0000 (10:06 +0000)]
remove unused define

16 years agoremove duplicate and obsolete ioctl statements
Alan Hourihane [Mon, 5 Nov 2007 10:05:01 +0000 (10:05 +0000)]
remove duplicate and obsolete ioctl statements

16 years agoadd missing lock
Alan Hourihane [Mon, 5 Nov 2007 10:03:26 +0000 (10:03 +0000)]
add missing lock

16 years agoUse _size
Alan Hourihane [Mon, 5 Nov 2007 10:02:46 +0000 (10:02 +0000)]
Use _size

16 years agoPass pointer to drmModeRmMode.
Alan Hourihane [Mon, 5 Nov 2007 10:00:43 +0000 (10:00 +0000)]
Pass pointer to drmModeRmMode.

16 years agopass pointer for drmModeRmFB
Alan Hourihane [Mon, 5 Nov 2007 10:00:11 +0000 (10:00 +0000)]
pass pointer for drmModeRmFB

16 years agodrm: more kernel coding style cleanups
Dave Airlie [Mon, 5 Nov 2007 09:14:23 +0000 (19:14 +1000)]
drm: more kernel coding style cleanups

16 years agodrm/ttm: apply linux kernel coding style to bo_lock/move/object/ttm.c
Dave Airlie [Mon, 5 Nov 2007 09:09:18 +0000 (19:09 +1000)]
drm/ttm: apply linux kernel coding style to bo_lock/move/object/ttm.c

16 years agodrm/ttm: kernel coding style for bo.c and objects.h
Dave Airlie [Mon, 5 Nov 2007 09:05:32 +0000 (19:05 +1000)]
drm/ttm: kernel coding style for bo.c and objects.h

16 years agodrm: fix the the typo
Dave Airlie [Mon, 5 Nov 2007 08:56:46 +0000 (18:56 +1000)]
drm: fix the the typo

16 years agodrm: fix memset size error
Li Zefan [Mon, 5 Nov 2007 08:48:27 +0000 (18:48 +1000)]
drm: fix memset size error

The size passing to memset is wrong.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
16 years agodrm: update kernel generator script using v4l script
Dave Airlie [Mon, 5 Nov 2007 02:56:55 +0000 (12:56 +1000)]
drm: update kernel generator script using v4l script

16 years agodrm: remove lots of spurious whitespace.
Dave Airlie [Mon, 5 Nov 2007 02:42:22 +0000 (12:42 +1000)]
drm: remove lots of spurious whitespace.

Kernel "cleanfile" script run.

16 years agodrm: move some of the OS stuff into the OS header
Dave Airlie [Mon, 5 Nov 2007 02:10:52 +0000 (12:10 +1000)]
drm: move some of the OS stuff into the OS header

16 years agonouveau: more nv20_graph_init.
Pekka Paalanen [Thu, 25 Oct 2007 19:34:45 +0000 (22:34 +0300)]
nouveau: more nv20_graph_init.

This patch is originally from malc0_, but since it used some NV40_*
regs, I edited them into hex values with a comment.
This seems to correspond quite well with my own mmio-trace,
for the parts I cared to check.

16 years agonouveau: Use a sw method instead of notify interrupt to signal fence completion.
Ben Skeggs [Sun, 4 Nov 2007 18:42:08 +0000 (05:42 +1100)]
nouveau: Use a sw method instead of notify interrupt to signal fence completion.

16 years agonouveau: disable m2mf buffer move for the moment
Ben Skeggs [Sun, 4 Nov 2007 18:15:32 +0000 (05:15 +1100)]
nouveau: disable m2mf buffer move for the moment

16 years agoFill fence sequence after emit ioctl.
Ben Skeggs [Sun, 4 Nov 2007 17:44:40 +0000 (04:44 +1100)]
Fill fence sequence after emit ioctl.

16 years agonouveau: cleanups
Ben Skeggs [Sun, 4 Nov 2007 16:53:46 +0000 (03:53 +1100)]
nouveau: cleanups

16 years agonouveau: only pass annoying messages if irq isn't handled fully.
Ben Skeggs [Sun, 4 Nov 2007 15:35:56 +0000 (02:35 +1100)]
nouveau: only pass annoying messages if irq isn't handled fully.

16 years agonouveau: vram is bar1
Ben Skeggs [Sun, 4 Nov 2007 15:32:46 +0000 (02:32 +1100)]
nouveau: vram is bar1

16 years agonouveau: hook up an inital fence irq handler
Ben Skeggs [Sun, 4 Nov 2007 15:20:35 +0000 (02:20 +1100)]
nouveau: hook up an inital fence irq handler

16 years agonouveau: crappy ttm mm init, disabled for now.
Ben Skeggs [Sun, 4 Nov 2007 13:01:38 +0000 (00:01 +1100)]
nouveau: crappy ttm mm init, disabled for now.

16 years agodrm: fix oops since user objects..
Dave Airlie [Sun, 4 Nov 2007 00:01:27 +0000 (11:01 +1100)]
drm: fix oops since user objects..

16 years agonouveau: add darktama's email address to authors section.
Jeremy Kolb [Fri, 2 Nov 2007 23:46:27 +0000 (19:46 -0400)]
nouveau: add darktama's email address to authors section.

16 years agonouveau: put it all together.
Jeremy Kolb [Fri, 2 Nov 2007 23:44:30 +0000 (19:44 -0400)]
nouveau: put it all together.

16 years agonouveau: Add darktama's fencing code. Restructure some stuff.
Jeremy Kolb [Fri, 2 Nov 2007 23:43:53 +0000 (19:43 -0400)]
nouveau:  Add darktama's fencing code.  Restructure some stuff.

16 years agonouveau: incorporate darktama's buffer object work.
Jeremy Kolb [Fri, 2 Nov 2007 03:35:46 +0000 (23:35 -0400)]
nouveau: incorporate darktama's buffer object work.