]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Split GuC firmware xfer function into clear steps
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 3 Nov 2017 15:18:12 +0000 (15:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Nov 2017 21:34:08 +0000 (21:34 +0000)
commit8befc16da3d508886ce4389787f83b4df6aabc67
tree0cada760df8c60df73552c197a5e593f314f85c1
parentb64b305a4d13b88ca862d2c511ebe3b69a232957
drm/i915/guc: Split GuC firmware xfer function into clear steps

Transfer of GuC firmware requires few steps that currently
are implemented in two large functions. Split this code into
smaller functions to make these steps small and clear.
Also be prepared for potential DMA xfer step failure.

v2: rename function steps (Sagar)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171103151816.62048-1-michal.wajdeczko@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_guc_fw.c