<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/char/drm/drm_context.c, branch linux-2.6.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2006-02-02T08:37:46Z</updated>
<entry>
<title>sem2mutex: drivers/char/drm/</title>
<updated>2006-02-02T08:37:46Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2006-02-02T08:37:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30e2fb188194908e48d3f27a53ccea6740eb1e98'/>
<id>urn:sha1:30e2fb188194908e48d3f27a53ccea6740eb1e98</id>
<content type='text'>
From: Arjan van de Ven &lt;arjan@infradead.org&gt;

Semaphore to mutex conversion.

The conversion was generated via scripts, and the result was validated
automatically via a script as well.

Signed-off-by: Arjan van de Ven &lt;arjan@infradead.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: proper fix for drm_context</title>
<updated>2006-01-02T08:25:35Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2006-01-02T08:25:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1e7d51902a8bd08e37113aaf182d12233b157151'/>
<id>urn:sha1:1e7d51902a8bd08e37113aaf182d12233b157151</id>
<content type='text'>
Bad patch in last version

Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: fix issue with contexts running out of RAM</title>
<updated>2006-01-02T08:23:44Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2006-01-02T08:23:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5e9fc13dd0f25a2f422000c185f491bfd4f7335'/>
<id>urn:sha1:b5e9fc13dd0f25a2f422000c185f491bfd4f7335</id>
<content type='text'>
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: fix all sparse warning on 32-bit x86</title>
<updated>2005-09-30T08:37:36Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-09-30T08:37:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3a83639895a422b25f72eec0a5d1d88c3ac4e9e'/>
<id>urn:sha1:b3a83639895a422b25f72eec0a5d1d88c3ac4e9e</id>
<content type='text'>
Finally cleaned up the sparse warnings for the drm.

Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: lindent the drm directory.</title>
<updated>2005-09-25T04:28:13Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-09-25T04:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5e89ed53ed8d24f83ba1941c07382af00ed238e'/>
<id>urn:sha1:b5e89ed53ed8d24f83ba1941c07382af00ed238e</id>
<content type='text'>
I've been threatening this for a while, so no point hanging around.
This lindents the DRM code which was always really bad in tabbing department.
I've also fixed some misnamed files in comments and removed some trailing
whitespace.

Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: small cleanups</title>
<updated>2005-09-05T11:33:44Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-09-05T11:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f210973bb6d17aa220c797e8ea23d127d96859b7'/>
<id>urn:sha1:f210973bb6d17aa220c797e8ea23d127d96859b7</id>
<content type='text'>
This patch contains the following small cleanups:
- make two needlessly global functions static
- drm_sysfs.c: every file should #include the header with the prototypes
              of the global functions it is offering

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: updated DRM map patch for 32/64 bit systems</title>
<updated>2005-08-05T12:11:22Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-08-05T12:11:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1f2b55ad2c11f46e30547a9f7754e99b478348e'/>
<id>urn:sha1:d1f2b55ad2c11f46e30547a9f7754e99b478348e</id>
<content type='text'>
I basically combined Paul's patches with additions that I had made
for PCI scatter gather.
I also tried more carefully to avoid problems with the same token
assigned multiple times while trying to use the base address in the
token if possible to gain as much backward compatibility as possible
for broken DRI clients.

From: Paul Mackerras &lt;paulus@samba.org&gt; and Egbert Eich &lt;eich@suse.de&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: copy the right data back to userspace for getreserved contexts ioctl</title>
<updated>2005-08-05T12:02:48Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-08-05T12:02:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c73681e77b40697d16ada777adf2c6dc4db05917'/>
<id>urn:sha1:c73681e77b40697d16ada777adf2c6dc4db05917</id>
<content type='text'>
This fixes the information copied back to userspace by the get reserved
contexts ioctl.

From: Egbert Eich &lt;eich@suse.de&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: misc cleanup</title>
<updated>2005-07-07T11:03:38Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-07-07T11:03:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c94f70298529d99ac6e1ee7709f61eab00adeb39'/>
<id>urn:sha1:c94f70298529d99ac6e1ee7709f61eab00adeb39</id>
<content type='text'>
This patch contains the following cleanups:
- make needlessly global functions static
- remove the following unused global functions:
 - drm_fops.c: drm_read
 - i915_dma.c: i915_do_cleanup_pageflip

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
<entry>
<title>drm: 32/64-bit DRM ioctl compatibility patch</title>
<updated>2005-06-23T11:29:18Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2005-06-23T11:29:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a18664506dbce5e23f3c5de7b1c5a042dd26520'/>
<id>urn:sha1:9a18664506dbce5e23f3c5de7b1c5a042dd26520</id>
<content type='text'>
The patch is against a 2.6.11 kernel tree.  I am running this with a
32-bit X server (compiled up from X.org CVS as of a couple of weeks
ago) and 32-bit DRI libraries and clients.  All the userland stuff is
identical to what I am using under a 32-bit kernel on my G4 powerbook
(which is a 32-bit machine of course).  I haven't tried compiling up a
64-bit X server or clients yet.

In the compatibility routines I have assumed that the kernel can
safely access user addresses after set_fs(KERNEL_DS).  That is, where
an ioctl argument structure contains pointers to other structures, and
those other structures are already compatible between the 32-bit and
64-bit ABIs (i.e. they only contain things like chars, shorts or
ints), I just check the address with access_ok() and then pass it
through to the 64-bit ioctl code.  I believe this approach may not
work on sparc64, but it does work on ppc64 and x86_64 at least.

One tricky area which may need to be revisited is the question of how
to handle the handles which we pass back to userspace to identify
mappings.  These handles are generated in the ADDMAP ioctl and then
passed in as the offset value to mmap.  However, offset values for
mmap seem to be generated in other ways as well, particularly for AGP
mappings.

The approach I have ended up with is to generate a fake 32-bit handle
only for _DRM_SHM mappings.  The handles for other mappings (AGP, REG,
FB) are physical addresses which are already limited to 32 bits, and
generating fake handles for them created all sorts of problems in the
mmap/nopage code.

This patch has been updated to use the new compatibility ioctls.

From: Paul Mackerras &lt;paulus@samba.org&gt;
Signed-off-by: Dave Airlie &lt;airlied@linux.ie&gt;
</content>
</entry>
</feed>
