dumbbell b1e2503a5c drm/i915: Import Linux commit 168f83660211b9e059e3bc0638daaa01e9ea0b71
This makes sure the default context of each ring is cleaned up with the
ring itself and fixes a memory leak.

Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Date:   Fri May 3 16:29:08 2013 +0300

    drm/i915: unreference default context on module unload

    Before module unload is called, gpu_idle() will switch
    to default context. This will increment ref count of base
    object as the default context is 'running' on module unload
    time. Unreference the drm object so that when context
    is freed, base object is freed as well.

    v2: added comment to explain the refcounts (Ben Widawsky)

    Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
    Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

Obtained from:	Linux
2016-03-12 20:05:23 +00:00
..
2016-03-01 17:47:32 +00:00
2016-02-17 21:24:26 +00:00
2016-02-18 01:24:10 +00:00
2016-03-12 09:44:23 +00:00
2016-02-18 01:24:10 +00:00
2016-02-18 01:24:10 +00:00
2016-03-01 17:47:32 +00:00
2015-02-24 01:00:46 +00:00
2015-03-08 19:55:46 +00:00
2016-03-01 17:47:32 +00:00
2016-02-25 04:32:17 +00:00
2015-01-23 15:14:30 +00:00
2015-06-30 17:00:45 +00:00
2015-06-30 17:00:45 +00:00
2015-08-30 08:48:31 +00:00
2016-01-07 21:16:44 +00:00
2016-02-19 01:57:51 +00:00
2016-03-03 19:49:37 +00:00
2016-02-18 01:24:10 +00:00
2015-04-29 20:08:03 +00:00
2016-03-01 17:47:32 +00:00
2016-02-25 02:46:47 +00:00
2016-03-01 17:47:32 +00:00
2016-03-01 17:47:32 +00:00
2016-02-20 12:28:20 +00:00
2015-08-28 02:29:31 +00:00
2015-07-28 04:54:05 +00:00
2014-11-18 21:58:57 +00:00
2016-02-19 18:05:02 +00:00
2016-01-26 22:32:58 +00:00
2016-02-17 21:09:19 +00:00
2015-09-07 21:59:11 +00:00
2016-03-01 17:47:32 +00:00
2016-02-18 03:05:08 +00:00
2015-06-30 17:00:45 +00:00
2016-02-21 18:51:48 +00:00
2015-06-30 17:00:45 +00:00
2016-01-01 17:56:52 +00:00
2016-03-01 17:47:32 +00:00
2016-02-18 01:24:10 +00:00
2015-10-08 17:32:17 +00:00
2014-11-21 21:34:19 +00:00
2015-06-30 17:00:45 +00:00
2016-03-01 17:47:32 +00:00
2016-02-18 01:24:10 +00:00
2016-03-01 17:47:32 +00:00