Pekka Paalanen
3762c97c82
drm compat: fix euid for >=2.6.28
...
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-02-10 08:55:32 +10:00
Ben Skeggs
95fc1b0b52
nv50/kms: be less verbose without debug=1
2009-02-04 15:03:48 +10:00
Ben Skeggs
15ed426dd4
nv50/kms: use DRM_DEBUG
2009-02-04 15:03:48 +10:00
Ben Skeggs
988b805fd6
nv50/kms: oops, re-enable fbcon unregister, got disabled while debugging
2009-02-04 15:03:47 +10:00
Ben Skeggs
bf8181b78a
nv50/kms: store dcb entry ptr & or in encoder struct, remove nv50_output.h
2009-02-04 15:03:47 +10:00
Ben Skeggs
5923c976fb
nv50/kms: nv50_kms_ -> nv50_
2009-02-04 15:03:47 +10:00
Ben Skeggs
cd2a87a682
nv50/kms: remove the last of nv50_kms_wrapper
2009-02-04 15:03:47 +10:00
Ben Skeggs
69beb9c191
nv50/kms: remove last bit of state mirroring
2009-02-04 15:03:46 +10:00
Ben Skeggs
0d7e613b66
nv50/kms: remove nv50_fb
2009-02-04 15:03:46 +10:00
Ben Skeggs
af8a76bd22
nv50/kms: get rid of nv50_fb_info
2009-02-04 15:03:46 +10:00
Ben Skeggs
f16514cccc
nv50/kms: remove kms_priv
2009-02-04 15:03:46 +10:00
Ben Skeggs
8ed61cf557
nv50/kms: remove nv50_kms_get_scaling_mode()
2009-02-04 15:03:46 +10:00
Ben Skeggs
98e859f2f7
nv50/kms: remove redefinitions of scaling modes..
2009-02-04 15:03:45 +10:00
Ben Skeggs
140a2da135
nv50/kms: remove or_counter, unused
2009-02-04 15:03:45 +10:00
Ben Skeggs
9f20d45d0a
nv50/kms: clean up dcb_table usage a little
2009-02-04 15:03:45 +10:00
Ben Skeggs
d2b4a1fc8b
nv50/kms: remove now unused fields from structs
2009-02-04 15:03:45 +10:00
Ben Skeggs
12f2125f11
nv50/kms: remove nv50_connector.type, also redundant
2009-02-04 15:03:44 +10:00
Ben Skeggs
c45ad75cd5
nv50/kms: remove nv50_output.type, it's redundant
2009-02-04 15:03:44 +10:00
Ben Skeggs
d84972f0eb
nv50/kms: get rid of struct nouveau_mode
2009-02-04 15:03:44 +10:00
Ben Skeggs
ef42af67ce
nv50/kms: merge nv50_kms_crtc and nv50_crtc
2009-02-04 15:03:44 +10:00
Ben Skeggs
1b6ff5a4db
nv50/kms: merge nv50_output and nv50_kms_output
2009-02-04 15:03:44 +10:00
Ben Skeggs
4736d2172f
nv50/kms: merge nv50_connector and nv50_kms_connector
2009-02-04 15:03:43 +10:00
Ben Skeggs
8e96ee5341
nouveau: bring in current mm implementation
2009-02-04 15:03:43 +10:00
Ben Skeggs
91a86bdc12
ttm: fix drm_fence_wait_polling timeout value
2009-02-04 13:27:54 +10:00
Jesse Barnes
c67a83dfe1
Merge branch 'modesetting-gem' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-gem
2008-11-19 12:42:49 -08:00
Jerome Glisse
e98eda9159
Revert "gem: protect idr_pre with the spinlock"
...
This reverts commit f46aba4332 .
2008-11-17 13:35:51 +01:00
Jerome Glisse
f46aba4332
gem: protect idr_pre with the spinlock
...
There seems to be an issue if we don't protect idr_pre with
the spinlock we use for idr operations.
2008-11-16 18:13:16 +01:00
Dave Airlie
1f66021854
drm/bo: fix stupid lock imbalance
2008-11-15 12:30:09 +10:00
Jesse Barnes
965b4d662a
Merge branch 'master' into modesetting-gem
...
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-13 15:30:06 -08:00
Jakob Bornecrantz
9a4cb7eab4
mode: Minor reodering and renaming
2008-11-12 19:17:18 +01:00
Jakob Bornecrantz
1ead45c8f0
mode: Remove hotplug support from ioctl interface
2008-11-12 18:40:04 +01:00
Jerome Glisse
a7457915f5
radeon+libdrm-radeon: change relocation informations
...
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-12 16:57:09 +01:00
Dave Airlie
15464f5181
radeon: add gart useable size to report to userspace
2008-11-10 15:38:32 +10:00
Dave Airlie
532c63cddd
radeon: upgrade atom headers
2008-11-10 15:37:51 +10:00
Dave Airlie
213a71f31b
radeon: fix fence race condition hopefully
...
For some reason reading the SCRATCH reg from RAM causes some race to occur.
Hopefully fix this.
2008-11-10 15:37:36 +10:00
Dave Airlie
195cc0d817
drm/radeon: add dpms connector functions
2008-11-10 15:37:16 +10:00
Dave Airlie
327631c8b5
radeon: avivo cursors are across the full surface.
...
fixes cursor on second head
2008-11-10 15:35:34 +10:00
Dave Airlie
b1cf46378a
modesetting: set the crtc x,y after the mode base change
2008-11-10 15:35:16 +10:00
Dave Airlie
241a9b6414
drm/radeon: add uncached allocator to drm ttm code.
2008-11-10 15:30:21 +10:00
Dave Airlie
31b0c4cd20
radeon: fixup vram visible calculation to take a/c pinned objects for now
2008-11-10 15:13:08 +10:00
Jerome Glisse
273cc1a698
radeon: lib radeon add bo & cs gem backend
2008-11-06 00:40:06 +01:00
Dave Airlie
68fcb7770e
radeon: make build again
2008-11-03 09:58:12 +10:00
Dave Airlie
b7108445c9
radeon: fix ROP values for the paint ROP
2008-11-03 09:52:40 +10:00
Dave Airlie
0e1df6216e
radeon: add mtrr support for VRAM aperture.
2008-11-03 09:52:25 +10:00
Dave Airlie
c153a86af7
radeon: add more HDMI bits
2008-11-03 09:49:59 +10:00
Dave Airlie
49551f87fc
radeon: set dma bufs bo type to a kernel type
2008-11-03 09:49:41 +10:00
Dave Airlie
cdddff8355
radeon: enable DVI-D + HDMI connectors.
...
This allows the rs690 to work on DVI
2008-11-03 09:48:10 +10:00
Dave Airlie
13d9acd311
radeon: add more debugging
2008-11-03 09:47:14 +10:00
Dave Airlie
31b8a640db
radeon: overhaul ring interactions
...
emit in 16-dword blocks, emit irqs at same time as everything else
2008-11-03 09:46:54 +10:00
Dave Airlie
ce2cd141c3
radeon: fix race in sysfs
2008-11-03 09:46:07 +10:00