Lines Matching full:policy
80 xe_gt_sriov_notice(gt, "Failed to push %u policy KLV%s (%pe)\n", in pf_push_policy_klvs()
99 static int pf_update_policy_bool(struct xe_gt *gt, u16 key, bool *policy, bool value) in pf_update_policy_bool() argument
105 xe_gt_sriov_notice(gt, "Failed to update policy %#x '%s' to '%s' (%pe)\n", in pf_update_policy_bool()
111 xe_gt_sriov_dbg(gt, "policy key %#x '%s' updated to '%s'\n", in pf_update_policy_bool()
115 *policy = value; in pf_update_policy_bool()
119 static int pf_update_policy_u32(struct xe_gt *gt, u16 key, u32 *policy, u32 value) in pf_update_policy_u32() argument
125 xe_gt_sriov_notice(gt, "Failed to update policy %#x '%s' to '%s' (%pe)\n", in pf_update_policy_u32()
131 xe_gt_sriov_dbg(gt, "policy key %#x '%s' updated to %u\n", in pf_update_policy_u32()
134 *policy = value; in pf_update_policy_u32()
144 >->sriov.pf.policy.guc.sched_if_idle, in pf_provision_sched_if_idle()
153 return pf_provision_sched_if_idle(gt, gt->sriov.pf.policy.guc.sched_if_idle); in pf_reprovision_sched_if_idle()
161 gt->sriov.pf.policy.guc.sched_if_idle = false; in pf_sanitize_sched_if_idle()
165 * xe_gt_sriov_pf_policy_set_sched_if_idle - Control the 'sched_if_idle' policy.
166 * @gt: the &xe_gt where to apply the policy
167 * @enable: the value of the 'sched_if_idle' policy
185 * xe_gt_sriov_pf_policy_get_sched_if_idle - Retrieve value of 'sched_if_idle' policy.
186 * @gt: the &xe_gt where to read the policy from
190 * Return: value of 'sched_if_idle' policy.
199 enable = gt->sriov.pf.policy.guc.sched_if_idle; in xe_gt_sriov_pf_policy_get_sched_if_idle()
211 >->sriov.pf.policy.guc.reset_engine, enable); in pf_provision_reset_engine()
219 return pf_provision_reset_engine(gt, gt->sriov.pf.policy.guc.reset_engine); in pf_reprovision_reset_engine()
227 gt->sriov.pf.policy.guc.reset_engine = false; in pf_sanitize_reset_engine()
231 * xe_gt_sriov_pf_policy_set_reset_engine - Control the 'reset_engine' policy.
232 * @gt: the &xe_gt where to apply the policy
233 * @enable: the value of the 'reset_engine' policy
251 * xe_gt_sriov_pf_policy_get_reset_engine - Retrieve value of 'reset_engine' policy.
252 * @gt: the &xe_gt where to read the policy from
256 * Return: value of 'reset_engine' policy.
265 enable = gt->sriov.pf.policy.guc.reset_engine; in xe_gt_sriov_pf_policy_get_reset_engine()
277 >->sriov.pf.policy.guc.sample_period, value); in pf_provision_sample_period()
285 return pf_provision_sample_period(gt, gt->sriov.pf.policy.guc.sample_period); in pf_reprovision_sample_period()
293 gt->sriov.pf.policy.guc.sample_period = 0; in pf_sanitize_sample_period()
297 * xe_gt_sriov_pf_policy_set_sample_period - Control the 'sample_period' policy.
298 * @gt: the &xe_gt where to apply the policy
299 * @value: the value of the 'sample_period' policy
317 * xe_gt_sriov_pf_policy_get_sample_period - Retrieve value of 'sample_period' policy.
318 * @gt: the &xe_gt where to read the policy from
322 * Return: value of 'sample_period' policy.
331 value = gt->sriov.pf.policy.guc.sample_period; in xe_gt_sriov_pf_policy_get_sample_period()
345 * xe_gt_sriov_pf_policy_sanitize - Reset policy settings.
360 * xe_gt_sriov_pf_policy_reprovision - Reprovision (and optionally reset) policy settings.
387 static void print_guc_policies(struct drm_printer *p, struct xe_gt_sriov_guc_policies *policy) in print_guc_policies() argument
391 str_enabled_disabled(policy->sched_if_idle)); in print_guc_policies()
394 str_enabled_disabled(policy->reset_engine)); in print_guc_policies()
397 policy->sample_period, policy->sample_period ? "ms" : "(disabled)"); in print_guc_policies()
401 * xe_gt_sriov_pf_policy_print - Dump actual policy values.
402 * @gt: the &xe_gt where to read the policy from
414 print_guc_policies(p, >->sriov.pf.policy.guc); in xe_gt_sriov_pf_policy_print()