OSDN Git Service

drm/i915/gtt: Onionify error handling for gen6_ppgtt_create
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jun 2018 08:18:15 +0000 (09:18 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jun 2018 11:57:18 +0000 (12:57 +0100)
commita9ded78535a109389cd2ca38a22c8d5c0099f71e
treea6c39488bbcaefb1e26a65df8a43d21b4021600d
parent35ac40d8b65ab5bd09b683720bca96a1f5a0625b
drm/i915/gtt: Onionify error handling for gen6_ppgtt_create

Pull the empty stubs together into the top level gen6_ppgtt_create, and
tear each one down on error in proper onion order (rather than use
Joonas' pet hate of calling the cleanup function in indeterminable
state).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180612081815.3585-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c