Dave Airlie
088b383829
fb: fixup the offset by getting it from the right place
2008-02-15 16:42:44 +10:00
Dave Airlie
222092a1a8
various fixes from trying to get userspace started
2008-02-15 16:15:04 +10:00
Dave Airlie
75b01cf996
switch naming to new proposed scheme
2008-02-15 10:04:28 +10:00
Dave Airlie
f2f8ace3e1
remove drm_minors_limit
2008-02-15 09:57:30 +10:00
Dave Airlie
8bf8cd63bb
missing bits
2008-02-14 07:37:34 +10:00
Dave Airlie
a4fc1d7ac6
start moving over to proper hierarchy wrt master accesses
2008-02-13 16:30:15 +10:00
Dave Airlie
0fbee62ec1
major port of multi-master ideas into modesetting
2008-02-13 15:19:42 +10:00
Dave Airlie
db85ed25af
Revert "After the previous revert fix libdrm to start at minor 1"
...
This reverts commit f51dc37d75
.
Conflicts:
tests/modedemo/demo.c
2008-02-13 12:20:02 +10:00
Dave Airlie
f276c845bd
drm: re-write minor number allocation to use an idr.
...
Fixup the minor number allocation scheme to use an idr and move the control
nodes up higher.
2008-02-13 12:12:52 +10:00
Jerome Glisse
04257f1a5a
radeon_ms: bring radeon_ms up to date with lastest changes
2008-02-09 18:23:35 +01:00
Jakob Bornecrantz
db2a1a223b
Added you can now clone displays in modedemo
2008-02-07 23:49:07 +01:00
Alan Hourihane
f51dc37d75
After the previous revert fix libdrm to start at minor 1
...
and fixup the demos
2008-02-07 22:21:50 +00:00
Alan Hourihane
fe83c06861
Revert "DRM_CONTROL_ALLOW logic was reversed"
...
This reverts commit 7af1bb874d
.
2008-02-07 21:18:37 +00:00
Jakob Bornecrantz
2ceafcccb7
Wrong open call
2008-02-07 19:32:20 +01:00
Jakob Bornecrantz
c8b45e9362
Added userspace part of hotplug ioctl and demo
2008-02-07 19:25:52 +01:00
Jakob Bornecrantz
0618ac8a07
Added kernel part of hotplug ioctl
2008-02-07 19:24:58 +01:00
Jakob Bornecrantz
34b76e0fac
Added hotplug ioctl
2008-02-07 19:23:27 +01:00
Jakob Bornecrantz
87d5f9cb2d
Small update to modedemo
2008-02-07 19:22:38 +01:00
Alan Hourihane
516c7a7b28
update app to cycle through 4 fbdev's
2008-02-05 15:30:28 +00:00
Alan Hourihane
127cb1ff9a
tweak it
2008-02-05 15:24:29 +00:00
Alan Hourihane
936e32b08c
make modefb/modedemo match each others test output.
2008-02-05 15:18:05 +00:00
Alan Hourihane
5997e10ca7
consistency
2008-02-05 15:15:13 +00:00
Alan Hourihane
7af1bb874d
DRM_CONTROL_ALLOW logic was reversed
2008-02-05 15:12:46 +00:00
Alan Hourihane
53937a189f
build fix for older kernels
2008-02-05 10:12:21 +00:00
Alan Hourihane
de0084590b
fix some warnings
2008-02-05 10:11:46 +00:00
Alan Hourihane
5e81a40f3b
build fix for older kernels
2008-02-05 10:11:24 +00:00
Alan Hourihane
f2c706e247
Fix function declaration
2008-02-05 10:11:01 +00:00
Alan Hourihane
7cc825f594
Add missing round_jiffies_relative() for older kernels
2008-02-05 10:10:36 +00:00
Alan Hourihane
c9772f8c03
consistency
2008-02-05 09:28:51 +00:00
Alan Hourihane
709aa46293
Remove duplicate
2008-02-05 09:28:32 +00:00
Jakob Bornecrantz
d8bbd02a60
Modedemo now uses two crtc and output pairs
2008-02-04 20:51:59 +01:00
Jakob Bornecrantz
abed099558
Fix for cursor off
2008-01-30 16:16:10 +01:00
Jakob Bornecrantz
841ef9eb8d
ModeFB demo now display cursor
2008-01-30 15:47:26 +01:00
Jakob Bornecrantz
b9b6f9234d
Misc panning fixes for intel_fb
2008-01-28 22:06:09 +01:00
Jakob Bornecrantz
a2254c5a96
Added cursor support
2008-01-28 03:14:56 +01:00
Dave Airlie
98361cf28c
if irq already enabled well just keep trucking
2008-01-25 16:34:05 +10:00
Dave Airlie
fa7b779c91
don't reinit ring if already initialised
2008-01-25 16:32:09 +10:00
Dave Airlie
e7a41d7f5b
Merge remote branch 'origin/master' into modesetting-101
...
Conflicts:
linux-core/drm_bo.c
linux-core/drm_drv.c
shared-core/drm.h
shared-core/i915_dma.c
shared-core/i915_drv.h
shared-core/i915_irq.c
shared-core/radeon_irq.c
2008-01-25 15:27:53 +10:00
Jesse Barnes
bfdddd218e
Fixup modeset ioctl number & typedef usage
...
Should be 0x08 rather than 0xa0, and shouldn't use typedefs.
2008-01-24 21:13:33 -08:00
Eric Anholt
e3c42f0004
Merge commit 'airlied/i915-ttm-cfu'
...
This requires updated Mesa to handle the new relocation format.
2008-01-24 12:44:19 -08:00
Jesse Barnes
c7ee6cc269
Remove broken 'in vblank' accounting
...
We need to return an accurate vblank count to the callers of
->get_vblank_counter, and in the Intel case the actual frame count
register isn't udpated until the next active line is displayed, so we
need to return one more than the frame count register if we're currently
in a vblank period.
However, none of the various ways of doing this is working yet, so
disable the logic for now. This may result in a few missed events, but
should fix the hangs some people have seen due to the current code
tripping the wraparound logic in drm_update_vblank_count.
2008-01-24 08:57:04 -08:00
Dave Airlie
5b99306452
i915: fix missing header when copying data from userspace
2008-01-24 15:18:09 +10:00
Dave Airlie
34b71eb451
i915 make relocs use copy from user
...
Switch relocs to using copy from user and remove index and pass buffer
handles in instead.
2008-01-24 14:37:40 +10:00
Jesse Barnes
b5a34f5da5
Fix thinko in get_vblank_counter
...
Should use vtotal not htotal to figure out if we're in a vblank period.
2008-01-23 08:39:57 -08:00
Jesse Barnes
cb91784371
Fix IS_I915G macro
...
One to many parantheses...
2008-01-23 08:38:01 -08:00
Maarten Maathuis
7c726086dd
nouveau: Fix warning in nouveau_mem.c
2008-01-23 16:40:19 +01:00
Dave Airlie
c57f43e3a2
i915/flush: get the ret the right way around
2008-01-23 16:45:09 +10:00
Dave Airlie
2f19fe4498
drm/i915: add support for E7221
2008-01-23 16:44:51 +10:00
Jesse Barnes
531f25cfe9
Correct vblank count value
...
The frame count registers don't increment until the start of the next
frame, so make sure we return an incremented count if called during the
actual vblank period.
2008-01-22 15:16:01 -08:00
Jesse Barnes
893e311999
i915 irq fixes
...
Ack the IRQs correctly (PIPExSTAT first followed by IIR). Don't read
vblank counter registers on disabled pipes (might hang otherwise). And
deal with flipped pipe/plane mappings if present.
2008-01-22 13:11:29 -08:00