]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_drv.c
drm/i915/get_params: Add HuC status to getparams
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Wed, 18 Jan 2017 16:05:58 +0000 (08:05 -0800)
committerJani Nikula <jani.nikula@intel.com>
Thu, 19 Jan 2017 09:19:10 +0000 (11:19 +0200)
commit5464cd657632502c61c64775dffef1cc7ebd4839
tree3299ee0544710a33b221cfbeb1944c46ce77a59f
parentdac84a388528ab002b517213be47f53dc0fd978a
drm/i915/get_params: Add HuC status to getparams

This patch will allow for getparams to return the status of the HuC.
As the HuC has to be validated by the GuC this patch uses the validated
status to show when the HuC is loaded and ready for use. You cannot use
the loaded status as with the GuC as the HuC is verified after it is
loaded and is not usable until it is verified.

v2: removed the forewakes as the registers are already force-woken.
     (T.Ursulin)
v3: rebased on top of drm-tip. Removed any reference to intel_huc.h
v4: rebased. Rename I915_PARAM_HAS_HUC to I915_PARAM_HUC_STATUS.
Remove intel_is_huc_valid() since it is used only in one place.
Put the case of I915_PARAM_HAS_HUC() in the right place.
v5: rebased. Add a comment to specify that I915_READ(reg)
does not read garbage value. The register HUC_STATUS2 is force
woken and no rpm is needed.

Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: Peter Antoine <peter.antoine@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1484755558-1234-6-git-send-email-anusha.srivatsa@intel.com
drivers/gpu/drm/i915/i915_drv.c
include/uapi/drm/i915_drm.h