Lines Matching full:gt
8 #include "gt/intel_gt.h"
9 #include "gt/intel_gt_print.h"
10 #include "gt/intel_reset.h"
17 #include "gt/intel_rps.h"
59 struct intel_gt *gt = uc_to_gt(uc); in __intel_uc_reset_hw() local
63 ret = i915_inject_probe_error(gt->i915, -ENXIO); in __intel_uc_reset_hw()
67 ret = intel_reset_guc(gt); in __intel_uc_reset_hw()
69 gt_err(gt, "Failed to reset GuC, ret = %d\n", ret); in __intel_uc_reset_hw()
73 guc_status = intel_uncore_read(gt->uncore, GUC_STATUS); in __intel_uc_reset_hw()
74 gt_WARN(gt, !(guc_status & GS_MIA_IN_RESET), in __intel_uc_reset_hw()
83 struct intel_gt *gt = uc_to_gt(uc); in __confirm_options() local
84 struct drm_i915_private *i915 = gt->i915; in __confirm_options()
86 gt_dbg(gt, "enable_guc=%d (guc:%s submission:%s huc:%s slpc:%s)\n", in __confirm_options()
102 gt_info(gt, "Incompatible option enable_guc=%d - %s\n", in __confirm_options()
107 gt_info(gt, "Incompatible option enable_guc=%d - %s\n", in __confirm_options()
111 gt_info(gt, "Incompatible option enable_guc=%d - %s\n", in __confirm_options()
222 struct intel_gt *gt = guc_to_gt(guc); in guc_enable_communication() local
223 struct drm_i915_private *i915 = gt->i915; in guc_enable_communication()
243 spin_lock_irq(gt->irq_lock); in guc_enable_communication()
245 spin_unlock_irq(gt->irq_lock); in guc_enable_communication()
278 struct intel_gt *gt = uc_to_gt(uc); in __uc_fetch_firmwares() local
287 gt_dbg(gt, "Failed to fetch GuC fw (%pe) disabling HuC\n", ERR_PTR(err)); in __uc_fetch_firmwares()
293 gt_dbg(gt, "Failed to fetch GuC fw (%pe) disabling GSC\n", ERR_PTR(err)); in __uc_fetch_firmwares()
365 struct intel_gt *gt = uc_to_gt(uc); in uc_init_wopcm() local
366 struct intel_uncore *uncore = gt->uncore; in uc_init_wopcm()
367 u32 base = intel_wopcm_guc_base(>->wopcm); in uc_init_wopcm()
368 u32 size = intel_wopcm_guc_size(>->wopcm); in uc_init_wopcm()
374 gt_probe_error(gt, "Unsuccessful WOPCM partitioning\n"); in uc_init_wopcm()
384 err = i915_inject_probe_error(gt->i915, -ENXIO); in uc_init_wopcm()
405 gt_probe_error(gt, "Failed to init uC WOPCM registers!\n"); in uc_init_wopcm()
406 gt_probe_error(gt, "%s(%#x)=%#x\n", "DMA_GUC_WOPCM_OFFSET", in uc_init_wopcm()
409 gt_probe_error(gt, "%s(%#x)=%#x\n", "GUC_WOPCM_SIZE", in uc_init_wopcm()
418 struct intel_gt *gt = uc_to_gt(uc); in uc_is_wopcm_locked() local
419 struct intel_uncore *uncore = gt->uncore; in uc_is_wopcm_locked()
444 static void print_fw_ver(struct intel_gt *gt, struct intel_uc_fw *fw) in print_fw_ver() argument
446 gt_info(gt, "%s firmware %s version %u.%u.%u\n", in print_fw_ver()
455 struct intel_gt *gt = uc_to_gt(uc); in __uc_init_hw() local
456 struct drm_i915_private *i915 = gt->i915; in __uc_init_hw()
465 print_fw_ver(gt, &guc->fw); in __uc_init_hw()
468 print_fw_ver(gt, &huc->fw); in __uc_init_hw()
492 i915_hwmon_power_max_disable(gt->i915, &pl1en); in __uc_init_hw()
512 gt_dbg(gt, "GuC fw load failed (%pe) will reset and retry %d more time(s)\n", in __uc_init_hw()
527 * survive GT reset, we still need to update our SW bookkeeping to make in __uc_init_hw()
546 /* Restore GT back to RPn for non-SLPC path */ in __uc_init_hw()
550 i915_hwmon_power_max_restore(gt->i915, pl1en); in __uc_init_hw()
565 /* Return GT back to RPn */ in __uc_init_hw()
568 i915_hwmon_power_max_restore(gt->i915, pl1en); in __uc_init_hw()
573 gt_notice(gt, "GuC is uninitialized\n"); in __uc_init_hw()
578 gt_probe_error(gt, "GuC initialization failed %pe\n", ERR_PTR(ret)); in __uc_init_hw()
712 struct intel_gt *gt = guc_to_gt(guc); in __uc_resume() local
729 intel_guc_pm_intrmsk_enable(gt); in __uc_resume()