drm/i915/huc: Check HuC status in dedicated function
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 14 Mar 2018 20:04:29 +0000 (20:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Mar 2018 15:04:28 +0000 (15:04 +0000)
commitfa265275910f9d2396f8656317196c830878bd40
treebde4dc5215f75e2f636bb74e43aa7f78c7310e3d
parent8b5eb5e2b5d2ddf9185e55669f22ea87d28f4e90
drm/i915/huc: Check HuC status in dedicated function

We try to keep all HuC related code in dedicated file.
There is no need to peek HuC register directly during
handling getparam ioctl.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180314200429.40132-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_huc.c
drivers/gpu/drm/i915/intel_huc.h