<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/drm_gem.c, branch linux-3.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-03-18T09:09:10Z</updated>
<entry>
<title>Merge branch 'drm-docs' of ssh://people.freedesktop.org/~danvet/drm into drm-next</title>
<updated>2014-03-18T09:09:10Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2014-03-18T09:09:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=978c6050165bba52eab7ef3581d447eb215def77'/>
<id>urn:sha1:978c6050165bba52eab7ef3581d447eb215def77</id>
<content type='text'>
Here's my drm documentation update and driver api polish pull request.
Alex reviewed the entire pile, I've applied a little bit of spelling
polish in a few places since then and otherwise the Usual Suspects (David,
Rob, ...) don't seem up to have another look at it (I've poked them on
irc). So I think it's as good as it gets ;-)

Note that I've dropped the final imx breaker patch since that's blocked on
imx getting sane. Once that's landed I'll ping you to pick up that
straggler.

* 'drm-docs' of ssh://people.freedesktop.org/~danvet/drm: (34 commits)
  drm/imx: remove drm_mode_connector_detach_encoder harder
  drm: kerneldoc polish for drm_crtc.c
  drm: kerneldoc polish for drm_crtc_helper.c
  drm: drop error code for drm_helper_resume_force_mode
  drm/crtc-helper: remove LOCKING from kerneldoc
  drm: remove return value from drm_helper_mode_fill_fb_struct
  drm/doc: Fix misplaced &lt;/para&gt;
  drm: remove drm_display_mode-&gt;private_size
  drm: polish function kerneldoc for drm_modes.[hc]
  drm/modes: drop maxPitch from drm_mode_validate_size
  drm/modes: drop return value from drm_display_mode_from_videomode
  drm/modes: remove drm_mode_height/width
  drm: extract drm_modes.h for drm_crtc.h functions
  drm: move drm_mode related functions into drm_modes.c
  drm/doc: Repleace LOCKING kerneldoc sections in drm_modes.c
  drm/doc: Integrate drm_modes.c kerneldoc
  drm/kms: rip out drm_mode_connector_detach_encoder
  drm/doc: Add function reference documentation for drm_mm.c
  drm/doc: Overview documentation for drm_mm.c
  drm/mm: Remove MM_UNUSED_TARGET
  ...
</content>
</entry>
<entry>
<title>drm/gem: dont init "ret" in drm_gem_mmap()</title>
<updated>2014-03-16T11:11:01Z</updated>
<author>
<name>David Herrmann</name>
</author>
<published>2014-01-20T19:15:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8469aa81de532180846b22e8ead3d8f4d2f96a2'/>
<id>urn:sha1:a8469aa81de532180846b22e8ead3d8f4d2f96a2</id>
<content type='text'>
There is no need to initialize this variable, so drop it. Otherwise, the
compiler won't warn if we use it unintialized.

Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/gem: free vma-node during object-cleanup</title>
<updated>2014-03-16T11:11:01Z</updated>
<author>
<name>David Herrmann</name>
</author>
<published>2014-01-20T19:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=77472347972add74a3d89a0b9152b8eebc0ad2b0'/>
<id>urn:sha1:77472347972add74a3d89a0b9152b8eebc0ad2b0</id>
<content type='text'>
All drivers currently need to clean up the vma-node manually. There is no
fancy logic involved so lets just clean it up unconditionally. The
vma-manager correctly catches multiple calls so we are fine.

Signed-off-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/gem: fix indentation</title>
<updated>2014-03-16T11:11:01Z</updated>
<author>
<name>David Herrmann</name>
</author>
<published>2014-01-20T19:07:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16d2831d6f590681ef239562ac6d73c605e7d6dc'/>
<id>urn:sha1:16d2831d6f590681ef239562ac6d73c605e7d6dc</id>
<content type='text'>
Remove double-whitespace and wrong indentation.

Signed-off-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/doc: Clean up and integrate kerneldoc for drm_gem.c</title>
<updated>2014-03-13T11:48:27Z</updated>
<author>
<name>Daniel Vetter</name>
</author>
<published>2014-01-21T11:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=89d61fc0f5d384f07f3e93af2bb52009ce26283a'/>
<id>urn:sha1:89d61fc0f5d384f07f3e93af2bb52009ce26283a</id>
<content type='text'>
Fairly incomplete, but at least a start.

Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/gem: Always initialize the gem object in object_init</title>
<updated>2014-01-21T09:19:58Z</updated>
<author>
<name>Daniel Vetter</name>
</author>
<published>2014-01-20T07:21:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ab11a2635ce988ebc2e798947beb72cf7324119'/>
<id>urn:sha1:6ab11a2635ce988ebc2e798947beb72cf7324119</id>
<content type='text'>
At least drm/i915 expects that the obj-&gt;dev pointer is set even in
failure paths. Specifically when the shmem initialization fails we
call i915_gem_object_free which needs to deref obj-&gt;base.dev to get at
the slab pointer in the device private structure. And the shmem
allocation can easily fail when userspace is hitting open file limits.

Doing the structure init even when the shmem file allocation fails
prevents this Oops.

This is a regression from

commit 89c8233f82d9c8af5b20e72e4a185a38a7d3c50b
Author: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Date:   Thu Jul 11 11:56:32 2013 +0200

    drm/gem: simplify object initialization

v2: Add regression note which Chris supplied.

Testcase: igt/gem_fd_exhaustion
Reported-and-Suggested-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
References: http://lists.freedesktop.org/archives/intel-gfx/2014-January/038433.html
Cc: stable@vger.kernel.org
Reviewed-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Cc: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm: store the gem vma offset manager in a typed pointer</title>
<updated>2014-01-14T02:38:32Z</updated>
<author>
<name>Daniel Vetter</name>
</author>
<published>2013-12-11T13:24:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b04a590623661132fbafdda53a6566b227dc39cf'/>
<id>urn:sha1:b04a590623661132fbafdda53a6566b227dc39cf</id>
<content type='text'>
This was hidden in a generic void * dev-&gt;mm_private. But only ever
used for gem. But thanks to this fake generic pretension no one
noticed that Rob's drm drivers are now all broken.

So just give the offset manager a type pointer and fix up msm, omapdrm
and tilcdc.

v2: Fixup compile fail.

v3: Fixup rebase fail that David spotted.

Cc: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
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 reference objects in the flink name idr</title>
<updated>2013-12-18T00:48:17Z</updated>
<author>
<name>Kristian Hogsberg</name>
</author>
<published>2013-12-03T01:36:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee61c7303f84e2ef978aaed9b9640476c63ba586'/>
<id>urn:sha1:ee61c7303f84e2ef978aaed9b9640476c63ba586</id>
<content type='text'>
There's no reason to keep a reference to objects in the name idr.  Each
handle to an object has a reference to the object and just before we
destroy the last handle we take the object out of the name idr.  Thus,
if an object is in the name idr, there's at least one reference to the
object.

Or to put it another way, the name idr reference will never keep the
object alive.  It just looks like it, which is confusing.

Signed-off-by: Kristian Høgsberg &lt;krh@bitplanet.net&gt;
Reviewed-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 -&gt;gem_init_object() and friends</title>
<updated>2013-10-09T04:38:02Z</updated>
<author>
<name>David Herrmann</name>
</author>
<published>2013-10-02T08:15:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16eb5f4379b2097438a224381be3b4d9e56ac979'/>
<id>urn:sha1:16eb5f4379b2097438a224381be3b4d9e56ac979</id>
<content type='text'>
All drivers embed gem-objects into their own buffer objects. There is no
reason to keep drm_gem_object_alloc(), gem-&gt;driver_private and
-&gt;gem_init_object() anymore.

New drivers are highly encouraged to do the same. There is no benefit in
allocating gem-objects separately.

Cc: Dave Airlie &lt;airlied@gmail.com&gt;
Cc: Alex Deucher &lt;alexdeucher@gmail.com&gt;
Cc: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Cc: Jerome Glisse &lt;jglisse@redhat.com&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Cc: Inki Dae &lt;inki.dae@samsung.com&gt;
Cc: Ben Skeggs &lt;skeggsb@gmail.com&gt;
Cc: Patrik Jakobsson &lt;patrik.r.jakobsson@gmail.com&gt;
Signed-off-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Acked-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm/prime: Remove PRIME handles only if supported</title>
<updated>2013-08-29T23:11:59Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2013-08-28T10:04:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c784855067a8d10cef6088b14a58083e3918fdc'/>
<id>urn:sha1:9c784855067a8d10cef6088b14a58083e3918fdc</id>
<content type='text'>
Drivers that don't support PRIME will not have initialized the PRIME
specific private component of struct drm_file. If called for such
drivers, the drm_gem_remove_prime_handles() function will crash. Fix
it by checking for PRIME support prior to removing the PRIME handles.

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@gmail.com&gt;
</content>
</entry>
</feed>
