]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915/huc: Assert that HuC vma is placed in GuC accessible range
authorMichał Winiarski <michal.winiarski@intel.com>
Fri, 20 Jan 2017 19:23:47 +0000 (20:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Jan 2017 19:59:57 +0000 (19:59 +0000)
HuC firmware is mapped at GuC accessible range. Let's add an assert to
verify that.

Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170120192348.2049-2-michal.winiarski@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_huc.c

index 5edd4f7c3c60cc4d9475288d336f23464cf73e65..c144609425f633620384f67bbe7e369bd8bea535 100644 (file)
@@ -312,7 +312,7 @@ void intel_guc_auth_huc(struct drm_i915_private *dev_priv)
 
        /* Specify auth action and where public signature is. */
        data[0] = INTEL_GUC_ACTION_AUTHENTICATE_HUC;
-       data[1] = i915_ggtt_offset(vma) + huc->fw.rsa_offset;
+       data[1] = guc_ggtt_offset(vma) + huc->fw.rsa_offset;
 
        ret = intel_guc_send(guc, data, ARRAY_SIZE(data));
        if (ret) {