Lines Matching full:policy

61 		xe_gt_sriov_notice(gt, "Failed to push %u policy KLV%s (%pe)\n",
97 static int pf_update_policy_bool(struct xe_gt *gt, u16 key, bool *policy, bool value)
103 xe_gt_sriov_notice(gt, "Failed to update policy %#x '%s' to '%s' (%pe)\n",
109 xe_gt_sriov_dbg(gt, "policy key %#x '%s' updated to '%s'\n",
113 *policy = value;
117 static int pf_update_policy_u32(struct xe_gt *gt, u16 key, u32 *policy, u32 value)
123 xe_gt_sriov_notice(gt, "Failed to update policy %#x '%s' to '%s' (%pe)\n",
129 xe_gt_sriov_dbg(gt, "policy key %#x '%s' updated to %u\n",
132 *policy = value;
156 &gt->sriov.pf.policy.guc.sched_if_idle,
170 return pf_provision_sched_if_idle(gt, gt->sriov.pf.policy.guc.sched_if_idle);
178 gt->sriov.pf.policy.guc.sched_if_idle = false;
182 * xe_gt_sriov_pf_policy_set_sched_if_idle - Control the 'sched_if_idle' policy.
183 * @gt: the &xe_gt where to apply the policy
184 * @enable: the value of the 'sched_if_idle' policy
202 * xe_gt_sriov_pf_policy_get_sched_if_idle - Retrieve value of 'sched_if_idle' policy.
203 * @gt: the &xe_gt where to read the policy from
207 * Return: value of 'sched_if_idle' policy.
216 enable = gt->sriov.pf.policy.guc.sched_if_idle;
228 &gt->sriov.pf.policy.guc.reset_engine, enable);
236 return pf_provision_reset_engine(gt, gt->sriov.pf.policy.guc.reset_engine);
244 gt->sriov.pf.policy.guc.reset_engine = false;
248 * xe_gt_sriov_pf_policy_set_reset_engine - Control the 'reset_engine' policy.
249 * @gt: the &xe_gt where to apply the policy
250 * @enable: the value of the 'reset_engine' policy
268 * xe_gt_sriov_pf_policy_get_reset_engine - Retrieve value of 'reset_engine' policy.
269 * @gt: the &xe_gt where to read the policy from
273 * Return: value of 'reset_engine' policy.
282 enable = gt->sriov.pf.policy.guc.reset_engine;
294 &gt->sriov.pf.policy.guc.sample_period, value);
302 return pf_provision_sample_period(gt, gt->sriov.pf.policy.guc.sample_period);
310 gt->sriov.pf.policy.guc.sample_period = 0;
314 * xe_gt_sriov_pf_policy_set_sample_period - Control the 'sample_period' policy.
315 * @gt: the &xe_gt where to apply the policy
316 * @value: the value of the 'sample_period' policy
334 * xe_gt_sriov_pf_policy_get_sample_period - Retrieve value of 'sample_period' policy.
335 * @gt: the &xe_gt where to read the policy from
339 * Return: value of 'sample_period' policy.
348 value = gt->sriov.pf.policy.guc.sample_period;
362 * xe_gt_sriov_pf_policy_sanitize - Reset policy settings.
377 * xe_gt_sriov_pf_policy_reprovision - Reprovision (and optionally reset) policy settings.
404 static void print_guc_policies(struct drm_printer *p, struct xe_gt_sriov_guc_policies *policy)
408 str_enabled_disabled(policy->sched_if_idle));
411 str_enabled_disabled(policy->reset_engine));
414 policy->sample_period, policy->sample_period ? "ms" : "(disabled)");
418 * xe_gt_sriov_pf_policy_print - Dump actual policy values.
419 * @gt: the &xe_gt where to read the policy from
431 print_guc_policies(p, &gt->sriov.pf.policy.guc);