[Intel-gfx] [PATCH 01/14] drm/i915: Cleanup gt powerstate from gem

Mika Kuoppala mika.kuoppala at linux.intel.com
Mon Aug 13 16:04:17 UTC 2018


Chris Wilson <chris at chris-wilson.co.uk> writes:

> Since the gt powerstate is allocated by i915_gem_init, clean it from
> i915_gem_fini for symmetry and to correct the imbalance on error.
>

Was first confused about the allocation as it is embedded.
But vlv really does allocate an underlying power context object.

And the asymmetry could lead to freeing an not allocated
object on error path.

> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>


More information about the Intel-gfx mailing list