Lines Matching refs:guc
33 static bool __detect_slpc_supported(struct intel_guc *guc) in __detect_slpc_supported() argument
36 return guc->submission_supported && in __detect_slpc_supported()
37 GRAPHICS_VER(guc_to_i915(guc)) >= 12; in __detect_slpc_supported()
40 static bool __guc_slpc_selected(struct intel_guc *guc) in __guc_slpc_selected() argument
42 if (!intel_guc_slpc_is_supported(guc)) in __guc_slpc_selected()
45 return guc->submission_selected; in __guc_slpc_selected()
50 struct intel_guc *guc = slpc_to_guc(slpc); in intel_guc_slpc_init_early() local
52 slpc->supported = __detect_slpc_supported(guc); in intel_guc_slpc_init_early()
53 slpc->selected = __guc_slpc_selected(guc); in intel_guc_slpc_init_early()
102 static int guc_action_slpc_set_param_nb(struct intel_guc *guc, u8 id, u32 value) in guc_action_slpc_set_param_nb() argument
112 ret = intel_guc_send_nb(guc, request, ARRAY_SIZE(request), 0); in guc_action_slpc_set_param_nb()
119 struct intel_guc *guc = slpc_to_guc(slpc); in slpc_set_param_nb() local
123 return guc_action_slpc_set_param_nb(guc, id, value); in slpc_set_param_nb()
126 static int guc_action_slpc_set_param(struct intel_guc *guc, u8 id, u32 value) in guc_action_slpc_set_param() argument
136 ret = intel_guc_send(guc, request, ARRAY_SIZE(request)); in guc_action_slpc_set_param()
146 static int guc_action_slpc_query(struct intel_guc *guc, u32 offset) in guc_action_slpc_query() argument
156 ret = intel_guc_send(guc, request, ARRAY_SIZE(request)); in guc_action_slpc_query()
163 struct intel_guc *guc = slpc_to_guc(slpc); in slpc_query_task_state() local
164 u32 offset = intel_guc_ggtt_offset(guc, slpc->vma); in slpc_query_task_state()
167 ret = guc_action_slpc_query(guc, offset); in slpc_query_task_state()
169 guc_probe_error(guc, "Failed to query task state: %pe\n", ERR_PTR(ret)); in slpc_query_task_state()
178 struct intel_guc *guc = slpc_to_guc(slpc); in slpc_set_param() local
183 ret = guc_action_slpc_set_param(guc, id, value); in slpc_set_param()
185 guc_probe_error(guc, "Failed to set param %d to %u: %pe\n", in slpc_set_param()
193 struct intel_guc *guc = slpc_to_guc(slpc); in slpc_force_min_freq() local
200 if (!intel_guc_is_ready(guc)) in slpc_force_min_freq()
217 guc_notice(guc, "Failed to send set_param for min freq(%d): %pe\n", in slpc_force_min_freq()
246 struct intel_guc *guc = slpc_to_guc(slpc); in intel_guc_slpc_init() local
252 err = intel_guc_allocate_and_map_vma(guc, size, &slpc->vma, (void **)&slpc->vaddr); in intel_guc_slpc_init()
254 guc_probe_error(guc, "Failed to allocate SLPC struct: %pe\n", ERR_PTR(err)); in intel_guc_slpc_init()
299 static int guc_action_slpc_reset(struct intel_guc *guc, u32 offset) in guc_action_slpc_reset() argument
309 ret = intel_guc_send(guc, request, ARRAY_SIZE(request)); in guc_action_slpc_reset()
316 struct intel_guc *guc = slpc_to_guc(slpc); in slpc_reset() local
317 u32 offset = intel_guc_ggtt_offset(guc, slpc->vma); in slpc_reset()
320 ret = guc_action_slpc_reset(guc, offset); in slpc_reset()
323 guc_probe_error(guc, "SLPC reset action failed: %pe\n", ERR_PTR(ret)); in slpc_reset()
329 guc_probe_error(guc, "SLPC not enabled! State = %s\n", in slpc_reset()
684 struct intel_guc *guc = slpc_to_guc(slpc); in intel_guc_slpc_enable() local
693 guc_probe_error(guc, "SLPC Reset event returned: %pe\n", ERR_PTR(ret)); in intel_guc_slpc_enable()
711 guc_probe_error(guc, "Failed to set SLPC max to RP0: %pe\n", ERR_PTR(ret)); in intel_guc_slpc_enable()
721 guc_probe_error(guc, "Failed to set SLPC softlimits: %pe\n", ERR_PTR(ret)); in intel_guc_slpc_enable()