/** * DOC: Xe device sysfs * Xe driver requires exposing certain tunable knobs controlled by user space for * each graphics device. Considering this, we need to add sysfs attributes at device * level granularity. * These sysfs attributes will be available under pci device kobj directory. * * vram_d3cold_threshold - Report/change vram used threshold(in MB) below * which vram save/restore is permissible during runtime D3cold entry/exit. * * lb_fan_control_version - Fan control version provisioned by late binding. * Exposed only if supported by the device. * * lb_voltage_regulator_version - Voltage regulator version provisioned by late * binding. Exposed only if supported by the device.
*/
ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
&cap, NULL); if (ret) { if (ret == -ENXIO) {
drm_dbg(&xe->drm, "Late binding not supported by firmware\n");
ret = 0;
} goto out;
}
if (REG_FIELD_GET(V1_FAN_SUPPORTED, cap)) {
ret = sysfs_create_file(&dev->kobj, &dev_attr_lb_fan_control_version.attr); if (ret) goto out;
}
if (REG_FIELD_GET(VR_PARAMS_SUPPORTED, cap))
ret = sysfs_create_file(&dev->kobj, &dev_attr_lb_voltage_regulator_version.attr);
out:
xe_pm_runtime_put(xe);
ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
&cap, NULL); if (ret) goto out;
if (REG_FIELD_GET(V1_FAN_SUPPORTED, cap))
sysfs_remove_file(&dev->kobj, &dev_attr_lb_fan_control_version.attr);
if (REG_FIELD_GET(VR_PARAMS_SUPPORTED, cap))
sysfs_remove_file(&dev->kobj, &dev_attr_lb_voltage_regulator_version.attr);
out:
xe_pm_runtime_put(xe);
}
/** * DOC: PCIe Gen5 Limitations * * Default link speed of discrete GPUs is determined by configuration parameters * stored in their flash memory, which are subject to override through user * initiated firmware updates. It has been observed that devices configured with * PCIe Gen5 as their default link speed can come across link quality issues due * to host or motherboard limitations and may have to auto-downgrade their link * to PCIe Gen4 speed when faced with unstable link at Gen5, which makes * firmware updates rather risky on such setups. It is required to ensure that * the device is capable of auto-downgrading its link to PCIe Gen4 speed before * pushing the firmware image with PCIe Gen5 as default configuration. This can * be done by reading ``auto_link_downgrade_capable`` sysfs entry, which will * denote if the device is capable of auto-downgrading its link to PCIe Gen4 * speed with boolean output value of ``0`` or ``1``, meaning `incapable` or * `capable` respectively. * * .. code-block:: shell * * $ cat /sys/bus/pci/devices/<bdf>/auto_link_downgrade_capable * * Pushing the firmware image with PCIe Gen5 as default configuration on a auto * link downgrade incapable device and facing link instability due to host or * motherboard limitations can result in driver failing to bind to the device, * making further firmware updates impossible with RMA being the only last * resort. * * Link downgrade status of auto link downgrade capable devices is available * through ``auto_link_downgrade_status`` sysfs entry with boolean output value * of ``0`` or ``1``, where ``0`` means no auto-downgrading was required during * link training (which is the optimal scenario) and ``1`` means the device has * auto-downgraded its link to PCIe Gen4 speed due to unstable Gen5 link. * * .. code-block:: shell * * $ cat /sys/bus/pci/devices/<bdf>/auto_link_downgrade_status
*/
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.