Home
last modified time | relevance | path

Searched refs:huc (Results 1 - 25 of 35) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/
H A Dintel_huc.c81 static void __delayed_huc_load_complete(struct intel_huc *huc) in __delayed_huc_load_complete() argument
83 if (!i915_sw_fence_done(&huc->delayed_load.fence)) in __delayed_huc_load_complete()
84 i915_sw_fence_complete(&huc->delayed_load.fence); in __delayed_huc_load_complete()
87 static void delayed_huc_load_complete(struct intel_huc *huc) in delayed_huc_load_complete() argument
89 hrtimer_cancel(&huc->delayed_load.timer); in delayed_huc_load_complete()
90 __delayed_huc_load_complete(huc); in delayed_huc_load_complete()
93 static void __gsc_init_error(struct intel_huc *huc) in __gsc_init_error() argument
95 huc->delayed_load.status = INTEL_HUC_DELAYED_LOAD_ERROR; in __gsc_init_error()
96 __delayed_huc_load_complete(huc); in __gsc_init_error()
99 static void gsc_init_error(struct intel_huc *huc) in gsc_init_error() argument
105 gsc_init_done(struct intel_huc *huc) gsc_init_done() argument
119 struct intel_huc *huc = container_of(hrtimer, struct intel_huc, delayed_load.timer); huc_delayed_load_timer_callback() local
135 huc_delayed_load_start(struct intel_huc *huc) huc_delayed_load_start() argument
175 struct intel_huc *huc = container_of(nb, struct intel_huc, delayed_load.nb); gsc_notifier() local
196 intel_huc_register_gsc_notifier(struct intel_huc *huc, const struct bus_type *bus) intel_huc_register_gsc_notifier() argument
212 intel_huc_unregister_gsc_notifier(struct intel_huc *huc, const struct bus_type *bus) intel_huc_unregister_gsc_notifier() argument
223 delayed_huc_load_init(struct intel_huc *huc) delayed_huc_load_init() argument
237 delayed_huc_load_fini(struct intel_huc *huc) delayed_huc_load_fini() argument
247 intel_huc_sanitize(struct intel_huc *huc) intel_huc_sanitize() argument
277 intel_huc_init_early(struct intel_huc *huc) intel_huc_init_early() argument
320 check_huc_loading_mode(struct intel_huc *huc) check_huc_loading_mode() argument
375 intel_huc_init(struct intel_huc *huc) intel_huc_init() argument
414 intel_huc_fini(struct intel_huc *huc) intel_huc_fini() argument
429 intel_huc_suspend(struct intel_huc *huc) intel_huc_suspend() argument
442 auth_mode_string(struct intel_huc *huc, enum intel_huc_authentication_type type) auth_mode_string() argument
450 intel_huc_wait_for_auth_complete(struct intel_huc *huc, enum intel_huc_authentication_type type) intel_huc_wait_for_auth_complete() argument
488 intel_huc_auth(struct intel_huc *huc, enum intel_huc_authentication_type type) intel_huc_auth() argument
535 intel_huc_is_authenticated(struct intel_huc *huc, enum intel_huc_authentication_type type) intel_huc_is_authenticated() argument
548 huc_is_fully_authenticated(struct intel_huc *huc) huc_is_fully_authenticated() argument
570 intel_huc_check_status(struct intel_huc *huc) intel_huc_check_status() argument
604 huc_has_delayed_load(struct intel_huc *huc) huc_has_delayed_load() argument
610 intel_huc_update_auth_status(struct intel_huc *huc) intel_huc_update_auth_status() argument
632 intel_huc_load_status(struct intel_huc *huc, struct drm_printer *p) intel_huc_load_status() 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 int intel_huc_init(struct intel_huc *huc);
59 void intel_huc_fini(struct intel_huc *huc);
60 void intel_huc_suspend(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);
72 intel_huc_is_supported(struct intel_huc *huc) intel_huc_is_supported() argument
77 intel_huc_is_wanted(struct intel_huc *huc) intel_huc_is_wanted() argument
82 intel_huc_is_used(struct intel_huc *huc) intel_huc_is_used() argument
88 intel_huc_is_loaded_by_gsc(const struct intel_huc *huc) intel_huc_is_loaded_by_gsc() argument
93 intel_huc_wait_required(struct intel_huc *huc) intel_huc_wait_required() argument
[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, "aut in intel_huc_fw_auth_via_gsccs()
132 struct intel_huc *huc = container_of(huc_fw, struct intel_huc, fw); intel_huc_fw_get_binary_info() local
234 intel_huc_fw_load_and_auth_via_gsc(struct intel_huc *huc) intel_huc_fw_load_and_auth_via_gsc() argument
277 intel_huc_fw_upload(struct intel_huc *huc) intel_huc_fw_upload() argument
[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.c90 gt_dbg(gt, "enable_guc=%d (guc:%s submission:%s huc:%s slpc:%s)\n", in __confirm_options()
129 intel_huc_init_early(&uc->huc); in intel_uc_init_early()
296 intel_uc_fw_change_status(&uc->huc.fw, in __uc_fetch_firmwares()
310 intel_uc_fw_fetch(&uc->huc.fw); in __uc_fetch_firmwares()
319 intel_uc_fw_cleanup_fetch(&uc->huc.fw); in __uc_cleanup_firmwares()
326 struct intel_huc *huc = &uc->huc; in __uc_init() local
342 intel_huc_init(huc); in __uc_init()
353 intel_huc_fini(&uc->huc); in __uc_fini()
360 struct intel_huc *huc in __uc_sanitize() local
466 struct intel_huc *huc = &uc->huc; __uc_init_hw() local
[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.c27 drm_printf(&p, "[huc] supported:%s wanted:%s used:%s\n", in uc_usage_show()
64 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
H A Dintel_huc.c40 void intel_huc_init_early(struct intel_huc *huc) in intel_huc_init_early() argument
42 struct drm_i915_private *i915 = huc_to_gt(huc)->i915; in intel_huc_init_early()
44 intel_uc_fw_init_early(&huc->fw, INTEL_UC_FW_TYPE_HUC); in intel_huc_init_early()
47 huc->status.reg = GEN11_HUC_KERNEL_LOAD_INFO; in intel_huc_init_early()
48 huc->status.mask = HUC_LOAD_SUCCESSFUL; in intel_huc_init_early()
49 huc->status.value = HUC_LOAD_SUCCESSFUL; in intel_huc_init_early()
51 huc->status.reg = HUC_STATUS2; in intel_huc_init_early()
52 huc->status.mask = HUC_FW_VERIFIED; in intel_huc_init_early()
53 huc->status.value = HUC_FW_VERIFIED; in intel_huc_init_early()
57 static int intel_huc_rsa_data_create(struct intel_huc *huc) in intel_huc_rsa_data_create() argument
101 intel_huc_rsa_data_destroy(struct intel_huc *huc) intel_huc_rsa_data_destroy() argument
106 intel_huc_init(struct intel_huc *huc) intel_huc_init() argument
135 intel_huc_fini(struct intel_huc *huc) intel_huc_fini() argument
154 intel_huc_auth(struct intel_huc *huc) intel_huc_auth() argument
211 intel_huc_check_status(struct intel_huc *huc) intel_huc_check_status() argument
243 intel_huc_load_status(struct intel_huc *huc, struct drm_printer *p) intel_huc_load_status() argument
[all...]
H A Dintel_huc.h27 void intel_huc_init_early(struct intel_huc *huc);
28 int intel_huc_init(struct intel_huc *huc);
29 void intel_huc_fini(struct intel_huc *huc);
30 int intel_huc_auth(struct intel_huc *huc);
31 int intel_huc_check_status(struct intel_huc *huc);
33 static inline int intel_huc_sanitize(struct intel_huc *huc) in intel_huc_sanitize() argument
35 intel_uc_fw_sanitize(&huc->fw); in intel_huc_sanitize()
39 static inline bool intel_huc_is_supported(struct intel_huc *huc) in intel_huc_is_supported() argument
41 return intel_uc_fw_is_supported(&huc->fw); in intel_huc_is_supported()
44 static inline bool intel_huc_is_wanted(struct intel_huc *huc) in intel_huc_is_wanted() argument
49 intel_huc_is_used(struct intel_huc *huc) intel_huc_is_used() argument
55 intel_huc_is_authenticated(struct intel_huc *huc) intel_huc_is_authenticated() argument
[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.c49 "enable_guc=%d (guc:%s submission:%s huc:%s)\n", in __confirm_options()
92 intel_huc_init_early(&uc->huc); in intel_uc_init_early()
275 intel_uc_fw_change_status(&uc->huc.fw, in __uc_fetch_firmwares()
283 intel_uc_fw_fetch(&uc->huc.fw); in __uc_fetch_firmwares()
288 intel_uc_fw_cleanup_fetch(&uc->huc.fw); in __uc_cleanup_firmwares()
295 struct intel_huc *huc = &uc->huc; in __uc_init() local
314 ret = intel_huc_init(huc); in __uc_init()
328 intel_huc_fini(&uc->huc); in __uc_fini()
335 struct intel_huc *huc in __uc_sanitize() local
428 struct intel_huc *huc = &uc->huc; __uc_init_hw() local
[all...]
H A Dintel_huc_fw.c12 * @huc: intel_huc structure
22 int intel_huc_fw_upload(struct intel_huc *huc) in intel_huc_fw_upload() argument
25 return intel_uc_fw_upload(&huc->fw, 0, HUC_UKERNEL); in intel_huc_fw_upload()
H A Dintel_uc.h29 struct intel_huc huc; member
78 uc_state_checkers(huc, huc);
H A Dintel_huc_fw.h11 int intel_huc_fw_upload(struct intel_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.c24 drm_printf(&p, "[huc] supported:%s wanted:%s used:%s\n", in uc_usage_show()
58 intel_huc_debugfs_register(&uc->huc, root); in intel_uc_debugfs_register()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/pxp/
H A Dintel_pxp_huc.c20 struct intel_huc *huc; in intel_pxp_huc_load_and_auth() local
32 huc = &gt->uc.huc; in intel_pxp_huc_load_and_auth()
34 huc_phys_addr = i915_gem_object_get_dma_address(huc->fw.obj, 0); in intel_pxp_huc_load_and_auth()
H A Dintel_pxp.c165 intel_huc_is_loaded_by_gsc(&to_gt(i915)->uc.huc) && intel_uc_uses_huc(&to_gt(i915)->uc)) in find_gt_for_required_teelink()
184 intel_uc_fw_is_loadable(&i915->media_gt->uc.huc.fw)) in find_gt_for_required_protected_content()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dintel_gt.h32 static inline struct intel_gt *huc_to_gt(struct intel_huc *huc) in huc_to_gt() argument
34 return container_of(huc, struct intel_gt, uc.huc); in huc_to_gt()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dintel_gt.h43 static inline struct intel_gt *huc_to_gt(struct intel_huc *huc) in huc_to_gt() argument
45 return container_of(huc, struct intel_gt, uc.huc); in huc_to_gt()
H A Dintel_gsc.c149 intel_huc_unregister_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_destroy_one()
263 intel_huc_register_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_init_one()
270 intel_huc_unregister_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_init_one()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_getparam.c105 value = intel_huc_check_status(&i915->media_gt->uc.huc); in i915_getparam_ioctl()
107 value = intel_huc_check_status(&to_gt(i915)->uc.huc); in i915_getparam_ioctl()

Completed in 8 milliseconds

12