<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/gpu/drm/drm_lock.c, branch v3.0.5</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/gpu/drm/drm_lock.c?h=v3.0.5</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/gpu/drm/drm_lock.c?h=v3.0.5'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-09-26T03:35:49Z</updated>
<entry>
<title>drm: readd drm_lock_free in drm_unlock</title>
<updated>2010-09-26T03:35:49Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2010-09-25T22:24:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=45ff46c54a31bf8924b61e3e3411654410a3b5c3'/>
<id>urn:sha1:45ff46c54a31bf8924b61e3e3411654410a3b5c3</id>
<content type='text'>
I've accidently killed a little bit too much in

commit 1da3f87ebb7edb3e0b829ec4bbe5fb3d9d93986f
Author: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Date:   Mon Aug 23 22:53:24 2010 +0200

    drm: kill kernel_context_switch callbacks

Note to self: Next time also test with AIGLX disabled.

Reported-and-Tested-by: Andy Furniss &lt;lists@andyfurniss.entadsl.com&gt;
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30374
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm: don't export dri1 locking functions</title>
<updated>2010-08-29T23:39:00Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2010-08-23T20:53:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4ac5ec40ec70022e4dea8cc6254d2dadd1e43d57'/>
<id>urn:sha1:4ac5ec40ec70022e4dea8cc6254d2dadd1e43d57</id>
<content type='text'>
Only used by ioctl, not by any in-tree drivers.

Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm: kill dma_ready callbacks</title>
<updated>2010-08-29T23:38:12Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2010-08-23T20:53:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=23ddc0243d7313942b94f1a2e44e6394f7bb996e'/>
<id>urn:sha1:23ddc0243d7313942b94f1a2e44e6394f7bb996e</id>
<content type='text'>
Not used by any driver. So drop it.

Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm: kill kernel_context_switch callbacks</title>
<updated>2010-08-29T23:37:56Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2010-08-23T20:53:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1da3f87ebb7edb3e0b829ec4bbe5fb3d9d93986f'/>
<id>urn:sha1:1da3f87ebb7edb3e0b829ec4bbe5fb3d9d93986f</id>
<content type='text'>
Not used by any in-kernel driver. So drop it.

Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm: fix regression in drm locking since BKL removal.</title>
<updated>2010-08-26T23:10:28Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2010-08-26T22:55:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=08f2e669a81b5906adf6e4716f92d99d7966d224'/>
<id>urn:sha1:08f2e669a81b5906adf6e4716f92d99d7966d224</id>
<content type='text'>
This locking path needs proper auditing but probably too late for changes at this point for 2.6.36, so lets go with the quick fix, which is to drop the lock around schedule.

Reported-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm: Avoid client deadlocks when the master disappears.</title>
<updated>2009-03-02T23:50:20Z</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2009-03-02T10:10:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fda714c29cdf360464059044b221450decb4b913'/>
<id>urn:sha1:fda714c29cdf360464059044b221450decb4b913</id>
<content type='text'>
This is done by
1) Wake up lock waiters when we close the master file descriptor.
   Not when the master structure is removed, since the latter
   requires the waiters themselves to release the refcount on the
   master structure -&gt; Deadlock.
2) Send a SIGTERM to all clients waiting for the lock.
   Normally these clients will get a SIGPIPE when the X server dies,
   but clients may also spin trying to grab the DRM lock, without
   getting any sort of notification.

Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: Don't return ERESTARTSYS to user-space.</title>
<updated>2009-03-02T23:49:46Z</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2009-03-02T10:10:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4d77c88e912e5eb9480432af09e950ca8995c253'/>
<id>urn:sha1:4d77c88e912e5eb9480432af09e950ca8995c253</id>
<content type='text'>
That return code is for in-kernel use only.
Use EINTR instead.

Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: move to kref per-master structures.</title>
<updated>2008-12-29T07:47:22Z</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2008-11-28T04:22:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7c1c2871a6a3a114853ec6836e9035ac1c0c7f7a'/>
<id>urn:sha1:7c1c2871a6a3a114853ec6836e9035ac1c0c7f7a</id>
<content type='text'>
This is step one towards having multiple masters sharing a drm
device in order to get fast-user-switching to work.

It splits out the information associated with the drm master
into a separate kref counted structure, and allocates this when
a master opens the device node. It also allows the current master
to abdicate (say while VT switched), and a new master to take over
the hardware.

It moves the Intel and radeon drivers to using the sarea from
within the new master structures.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm: Remove infrastructure for supporting i915's vblank swapping.</title>
<updated>2008-11-11T07:44:26Z</updated>
<author>
<name>Eric Anholt</name>
<email>eric@anholt.net</email>
</author>
<published>2008-11-05T02:36:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5d8e6bb7a20b6206e1fe44565efc383a941b81fa'/>
<id>urn:sha1:5d8e6bb7a20b6206e1fe44565efc383a941b81fa</id>
<content type='text'>
It's not used in any other drivers, and doesn't look like it will be from
drm.git master.

Signed-off-by: Eric Anholt &lt;eric@anholt.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm/i915: hold dev-&gt;struct_mutex and DRM lock during vblank ring operations</title>
<updated>2008-10-23T03:45:56Z</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2008-10-17T04:18:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9e44af790f8bf8c3aa8a3101fd4f9bca2e932baa'/>
<id>urn:sha1:9e44af790f8bf8c3aa8a3101fd4f9bca2e932baa</id>
<content type='text'>
To synchronize clip lists with the X server, the DRM lock must be held while
looking at drawable clip lists. To synchronize with other ring access, the
ring mutex must be held while inserting commands into the ring.  Failure to
do the first resulted in easy visual corruption when moving windows, and the
second could have corrupted the ring with DRI2.

Grabbing the DRM lock involves using the DRM tasklet mechanism, grabbing the
ring mutex means potentially sleeping. Deal with both of these by always
running the tasklet from a work handler.

Also, protect from clip list changes since the vblank request was queued by
making sure the window has at least one rectangle while looking inside,
preventing oopses .

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
Signed-off-by: Eric Anholt &lt;eric@anholt.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
</feed>
