/** * DOC: Xe GT Frequency Management * * This component is responsible for the raw GT frequency management, including * the sysfs API. * * Underneath, Xe enables GuC SLPC automated frequency management. GuC is then * allowed to request PCODE any frequency between the Minimum and the Maximum * selected by this component. Furthermore, it is important to highlight that * PCODE is the ultimate decision maker of the actual running frequency, based * on thermal and other running conditions. * * Xe's Freq provides a sysfs API for frequency management: * * device/tile#/gt#/freq0/<item>_freq *read-only* files: * * - act_freq: The actual resolved frequency decided by PCODE. * - cur_freq: The current one requested by GuC PC to the PCODE. * - rpn_freq: The Render Performance (RP) N level, which is the minimal one. * - rpa_freq: The Render Performance (RP) A level, which is the achiveable one. * Calculated by PCODE at runtime based on multiple running conditions * - rpe_freq: The Render Performance (RP) E level, which is the efficient one. * Calculated by PCODE at runtime based on multiple running conditions * - rp0_freq: The Render Performance (RP) 0 level, which is the maximum one. * * device/tile#/gt#/freq0/<item>_freq *read-write* files: * * - min_freq: Min frequency request. * - max_freq: Max frequency request. * If max <= min, then freq_min becomes a fixed frequency request.
*/
/** * xe_gt_freq_init - Initialize Xe Freq component * @gt: Xe GT object * * It needs to be initialized after GT Sysfs and GuC PC components are ready. * * Returns: Returns error value for failure and 0 for success.
*/ int xe_gt_freq_init(struct xe_gt *gt)
{ struct xe_device *xe = gt_to_xe(gt); int err;
if (xe->info.skip_guc_pc) return 0;
gt->freq = kobject_create_and_add("freq0", gt->sysfs); if (!gt->freq) return -ENOMEM;
err = sysfs_create_files(gt->freq, freq_attrs); if (err) return err;
err = devm_add_action_or_reset(xe->drm.dev, freq_fini, gt->freq); if (err) return err;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.