[Intel-gfx] [PATCH v2] drm/i915: unreference default context on module unload

Ben Widawsky ben at bwidawsk.net
Fri May 3 17:53:20 CEST 2013


On Fri, May 03, 2013 at 04:29:08PM +0300, Mika Kuoppala wrote:
> 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 at intel.com>

I left an r-b on the other patch. You should feel free to add it if you
actually do what I say.

Reviewed-by: Ben Widawsky <ben at bwidawsk.net>
[snip]
-- 
Ben Widawsky, Intel Open Source Technology Center



More information about the Intel-gfx mailing list