Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/i915/gt/uc/
A Dintel_huc.c103 __gsc_init_error(huc); in gsc_init_error()
154 gsc_init_error(huc); in huc_delayed_load_start()
184 gsc_init_done(huc); in gsc_notifier()
190 gsc_init_error(huc); in gsc_notifier()
209 gsc_init_error(huc); in intel_huc_register_gsc_notifier()
346 if (!huc->loaded_via_gsc && gsc_enabled && !huc->fw.dma_start_offset) { in check_huc_loading_mode()
371 huc_dbg(huc, "loaded by GSC = %s\n", str_yes_no(huc->loaded_via_gsc)); in check_huc_loading_mode()
407 if (huc->heci_pkt) in intel_huc_init()
423 if (huc->heci_pkt) in intel_huc_fini()
525 huc_info(huc, "authenticated for %s\n", auth_mode_string(huc, type)); in intel_huc_wait_for_auth_complete()
[all …]
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);
66 int intel_huc_check_status(struct intel_huc *huc);
74 return intel_uc_fw_is_supported(&huc->fw); in intel_huc_is_supported()
79 return intel_uc_fw_is_enabled(&huc->fw); in intel_huc_is_wanted()
85 return intel_uc_fw_is_available(&huc->fw); in intel_huc_is_used()
90 return huc->loaded_via_gsc; in intel_huc_is_loaded_by_gsc()
[all …]
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()
62 msg_in->huc_in.huc_size = huc->fw.obj->base.size; in intel_huc_fw_auth_via_gsccs()
238 if (!intel_huc_is_loaded_by_gsc(huc)) in intel_huc_fw_load_and_auth_via_gsc()
241 if (!intel_uc_fw_is_loadable(&huc->fw)) in intel_huc_fw_load_and_auth_via_gsc()
254 GEM_WARN_ON(intel_uc_fw_is_loaded(&huc->fw)); in intel_huc_fw_load_and_auth_via_gsc()
277 int intel_huc_fw_upload(struct intel_huc *huc) in intel_huc_fw_upload() argument
[all …]
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()
A Dintel_uc.c120 intel_huc_init_early(&uc->huc); in intel_uc_init_early()
301 intel_uc_fw_fetch(&uc->huc.fw); in __uc_fetch_firmwares()
317 struct intel_huc *huc = &uc->huc; in __uc_init() local
333 intel_huc_init(huc); in __uc_init()
344 intel_huc_fini(&uc->huc); in __uc_fini()
351 struct intel_huc *huc = &uc->huc; in __uc_sanitize() local
355 intel_huc_sanitize(huc); in __uc_sanitize()
457 struct intel_huc *huc = &uc->huc; in __uc_init_hw() local
467 print_fw_ver(gt, &huc->fw); in __uc_init_hw()
504 intel_huc_fw_upload(huc); in __uc_init_hw()
[all …]
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);
A Dintel_uc.h34 struct intel_huc huc; member
90 uc_state_checkers(huc, huc);
A Dintel_huc_debugfs.h12 void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root);
A Dintel_uc_debugfs.c64 intel_huc_debugfs_register(&uc->huc, root); in intel_uc_debugfs_register()
/linux/drivers/gpu/drm/xe/
A Dxe_huc.c29 huc_to_gt(struct xe_huc *huc) in huc_to_gt() argument
31 return container_of(huc, struct xe_gt, uc.huc); in huc_to_gt()
35 huc_to_xe(struct xe_huc *huc) in huc_to_xe() argument
37 return gt_to_xe(huc_to_gt(huc)); in huc_to_xe()
41 huc_to_guc(struct xe_huc *huc) in huc_to_guc() argument
43 return &container_of(huc, struct xe_uc, huc)->guc; in huc_to_guc()
61 huc->gsc_pkt = bo; in huc_alloc_gsc_pkt()
81 ret = xe_uc_fw_init(&huc->fw); in xe_huc_init()
91 if (huc->fw.has_gsc_headers) { in xe_huc_init()
112 if (!IS_DGFX(huc_to_xe(huc))) in xe_huc_init_post_hwconfig()
[all …]
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 …]
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);
A Dxe_uc.c47 ret = xe_huc_init(&uc->huc); in xe_uc_init()
94 err = xe_huc_init_post_hwconfig(&uc->huc); in xe_uc_init_post_hwconfig()
117 xe_huc_sanitize(&uc->huc); in xe_uc_sanitize()
189 ret = xe_huc_upload(&uc->huc); in xe_uc_init_hw()
214 ret = xe_huc_auth(&uc->huc, XE_HUC_AUTH_VIA_GUC); in xe_uc_init_hw()
A Dxe_uc_fw.c121 fw_def(BATTLEMAGE, no_ver(xe, huc, bmg)) \
122 fw_def(LUNARLAKE, no_ver(xe, huc, lnl)) \
124 fw_def(DG1, no_ver(i915, huc, dg1)) \
125 fw_def(ALDERLAKE_P, no_ver(i915, huc, tgl)) \
126 fw_def(ALDERLAKE_S, no_ver(i915, huc, tgl)) \
127 fw_def(ROCKETLAKE, no_ver(i915, huc, tgl)) \
128 fw_def(TIGERLAKE, no_ver(i915, huc, tgl))
185 return container_of(uc_fw, struct xe_gt, uc.huc.fw); in XE_GUC_FIRMWARE_DEFS()
A Dxe_huc_debugfs.h12 void xe_huc_debugfs_register(struct xe_huc *huc, struct dentry *parent);
A Dxe_uc_types.h21 struct xe_huc huc; member
A Dxe_uc_debugfs.c29 xe_huc_debugfs_register(&uc->huc, root); in xe_uc_debugfs_register()
A Dxe_query.c568 struct xe_huc *huc; in query_uc_fw_version() local
587 huc = &media_gt->uc.huc; in query_uc_fw_version()
588 if (huc->fw.status == XE_UC_FIRMWARE_RUNNING) in query_uc_fw_version()
589 version = &huc->fw.versions.found[XE_UC_FW_VER_RELEASE]; in query_uc_fw_version()
A Dxe_wopcm.c143 u32 huc_agent = xe_uc_fw_is_available(&gt->uc.huc.fw) ? HUC_LOADING_AGENT_GUC : 0; in __wopcm_init_regs()
202 u32 huc_fw_size = xe_uc_fw_get_upload_size(&gt->uc.huc.fw); in xe_wopcm_init()
/linux/drivers/gpu/drm/i915/pxp/
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()
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()
374 if (__intel_uc_fw_status(&pxp->ctrl_gt->uc.huc.fw) == INTEL_UC_FIRMWARE_LOAD_FAIL) in pxp_required_fw_failed()
/linux/drivers/gpu/drm/i915/gt/
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()
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/selftests/
A Di915_selftest.c161 struct intel_huc *huc = &to_gt(i915)->uc.huc; in __wait_gsc_huc_load_completed() local
163 intel_huc_wait_required(huc)); in __wait_gsc_huc_load_completed()
177 wait_for(i915_sw_fence_done(&huc->delayed_load.fence), timeout_ms)) in __wait_gsc_huc_load_completed()
/linux/drivers/gpu/drm/i915/
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 46 milliseconds

12