Home
last modified time | relevance | path

Searched refs:huc (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_huc.c82 static void __delayed_huc_load_complete(struct intel_huc *huc) in __delayed_huc_load_complete() argument
84 if (!i915_sw_fence_done(&huc->delayed_load.fence)) in __delayed_huc_load_complete()
85 i915_sw_fence_complete(&huc->delayed_load.fence); in __delayed_huc_load_complete()
88 static void delayed_huc_load_complete(struct intel_huc *huc) in delayed_huc_load_complete() argument
90 hrtimer_cancel(&huc->delayed_load.timer); in delayed_huc_load_complete()
91 __delayed_huc_load_complete(huc); in delayed_huc_load_complete()
94 static void __gsc_init_error(struct intel_huc *huc) in __gsc_init_error() argument
96 huc->delayed_load.status = INTEL_HUC_DELAYED_LOAD_ERROR; in __gsc_init_error()
97 __delayed_huc_load_complete(huc); in __gsc_init_error()
100 static void gsc_init_error(struct intel_huc *huc) in gsc_init_error() argument
[all …]
H A Dintel_huc.h56 int intel_huc_sanitize(struct intel_huc *huc);
57 void intel_huc_init_early(struct intel_huc *huc);
58 void intel_huc_fini_late(struct intel_huc *huc);
59 int intel_huc_init(struct intel_huc *huc);
60 void intel_huc_fini(struct intel_huc *huc);
61 int intel_huc_auth(struct intel_huc *huc, enum intel_huc_authentication_type type);
62 int intel_huc_wait_for_auth_complete(struct intel_huc *huc,
64 bool intel_huc_is_authenticated(struct intel_huc *huc,
66 int intel_huc_check_status(struct intel_huc *huc);
67 void intel_huc_update_auth_status(struct intel_huc *huc);
[all …]
H A Dintel_huc_fw.c27 int intel_huc_fw_auth_via_gsccs(struct intel_huc *huc) in intel_huc_fw_auth_via_gsccs() argument
29 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_fw_auth_via_gsccs()
38 if (!huc->heci_pkt) in intel_huc_fw_auth_via_gsccs()
41 obj = huc->heci_pkt->obj; in intel_huc_fw_auth_via_gsccs()
42 pkt_offset = i915_ggtt_offset(huc->heci_pkt); in intel_huc_fw_auth_via_gsccs()
61 msg_in->huc_in.huc_base_address = huc->fw.vma_res.start; in intel_huc_fw_auth_via_gsccs()
62 msg_in->huc_in.huc_size = huc->fw.obj->base.size; in intel_huc_fw_auth_via_gsccs()
70 huc_err(huc, "failed to submit GSC request to auth: %d\n", err); in intel_huc_fw_auth_via_gsccs()
85 huc_err(huc, "invalid GSC reply length %u [expected %zu]\n", in intel_huc_fw_auth_via_gsccs()
98 huc_err(huc, "auth failed with GSC error = 0x%x\n", in intel_huc_fw_auth_via_gsccs()
[all …]
H A Dintel_huc_debugfs.c14 struct intel_huc *huc = m->private; in huc_info_show() local
17 if (!intel_huc_is_supported(huc)) in huc_info_show()
20 intel_huc_load_status(huc, &p); in huc_info_show()
26 void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root) in intel_huc_debugfs_register() argument
32 if (!intel_huc_is_supported(huc)) in intel_huc_debugfs_register()
35 intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), huc); in intel_huc_debugfs_register()
H A Dintel_uc.c120 intel_huc_init_early(&uc->huc); in intel_uc_init_early()
139 intel_huc_fini_late(&uc->huc); in intel_uc_driver_late_release()
288 intel_uc_fw_change_status(&uc->huc.fw, in __uc_fetch_firmwares()
302 intel_uc_fw_fetch(&uc->huc.fw); in __uc_fetch_firmwares()
311 intel_uc_fw_cleanup_fetch(&uc->huc.fw); in __uc_cleanup_firmwares()
318 struct intel_huc *huc = &uc->huc; in __uc_init() local
334 intel_huc_init(huc); in __uc_init()
345 intel_huc_fini(&uc->huc); in __uc_fini()
352 struct intel_huc *huc = &uc->huc; in __uc_sanitize() local
356 intel_huc_sanitize(huc); in __uc_sanitize()
[all …]
H A Dintel_huc_fw.h14 int intel_huc_fw_load_and_auth_via_gsc(struct intel_huc *huc);
15 int intel_huc_fw_auth_via_gsccs(struct intel_huc *huc);
16 int intel_huc_fw_upload(struct intel_huc *huc);
H A Dintel_uc.h34 struct intel_huc huc; member
90 uc_state_checkers(huc, huc);
H A Dintel_huc_debugfs.h12 void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root);
H A Dintel_uc_debugfs.c64 intel_huc_debugfs_register(&uc->huc, root); in intel_uc_debugfs_register()
H A Dintel_gsc_uc.c54 intel_huc_is_authenticated(&gt->uc.huc, INTEL_HUC_AUTH_BY_GUC)) in gsc_work()
55 intel_huc_auth(&gt->uc.huc, INTEL_HUC_AUTH_BY_GSC); in gsc_work()
/linux/drivers/gpu/drm/xe/
H A Dxe_huc_debugfs.c18 huc_to_gt(struct xe_huc *huc) in huc_to_gt() argument
20 return container_of(huc, struct xe_gt, uc.huc); in huc_to_gt()
24 huc_to_xe(struct xe_huc *huc) in huc_to_xe() argument
26 return gt_to_xe(huc_to_gt(huc)); in huc_to_xe()
36 struct xe_huc *huc = node_to_huc(m->private); in huc_info() local
37 struct xe_device *xe = huc_to_xe(huc); in huc_info()
41 xe_huc_print_info(huc, &p); in huc_info()
51 void xe_huc_debugfs_register(struct xe_huc *huc, struct dentry *parent) in xe_huc_debugfs_register() argument
53 struct drm_minor *minor = huc_to_xe(huc)->drm.primary; in xe_huc_debugfs_register()
58 local = drmm_kmalloc(&huc_to_xe(huc)->drm, DEBUGFS_SIZE, GFP_KERNEL); in xe_huc_debugfs_register()
[all …]
H A Dxe_huc.h20 int xe_huc_init(struct xe_huc *huc);
21 int xe_huc_init_post_hwconfig(struct xe_huc *huc);
22 int xe_huc_upload(struct xe_huc *huc);
23 int xe_huc_auth(struct xe_huc *huc, enum xe_huc_auth_types type);
24 bool xe_huc_is_authenticated(struct xe_huc *huc, enum xe_huc_auth_types type);
25 void xe_huc_sanitize(struct xe_huc *huc);
26 void xe_huc_print_info(struct xe_huc *huc, struct drm_printer *p);
H A Dxe_uc.c64 ret = xe_huc_init(&uc->huc); in xe_uc_init()
113 err = xe_huc_init_post_hwconfig(&uc->huc); in xe_uc_init_post_hwconfig()
136 xe_huc_sanitize(&uc->huc); in xe_uc_sanitize()
195 ret = xe_huc_upload(&uc->huc); in xe_uc_load_hw()
222 ret = xe_huc_auth(&uc->huc, XE_HUC_AUTH_VIA_GUC); in xe_uc_load_hw()
H A Dxe_huc_debugfs.h12 void xe_huc_debugfs_register(struct xe_huc *huc, struct dentry *parent);
H A Dxe_uc_debugfs.c29 xe_huc_debugfs_register(&uc->huc, root); in xe_uc_debugfs_register()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_gt.h107 static inline struct intel_gt *huc_to_gt(struct intel_huc *huc) in huc_to_gt() argument
109 return container_of(huc, struct intel_gt, uc.huc); in huc_to_gt()
H A Dintel_gsc.c137 intel_huc_unregister_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_destroy_one()
249 intel_huc_register_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_init_one()
256 intel_huc_unregister_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_init_one()
/linux/drivers/gpu/drm/i915/pxp/
H A Dintel_pxp_tee.c180 if (intel_uc_uses_huc(uc) && intel_huc_is_loaded_by_gsc(&uc->huc)) { in i915_pxp_tee_component_bind()
183 ret = intel_huc_fw_load_and_auth_via_gsc(&uc->huc); in i915_pxp_tee_component_bind()