Lines Matching +full:0 +full:xe
19 * DOC: Xe device sysfs
20 * Xe driver requires exposing certain tunable knobs controlled by user space for
40 struct xe_device *xe = pdev_to_xe_device(pdev); in vram_d3cold_threshold_show() local
43 xe_pm_runtime_get(xe); in vram_d3cold_threshold_show()
44 ret = sysfs_emit(buf, "%d\n", xe->d3cold.vram_threshold); in vram_d3cold_threshold_show()
45 xe_pm_runtime_put(xe); in vram_d3cold_threshold_show()
55 struct xe_device *xe = pdev_to_xe_device(pdev); in vram_d3cold_threshold_store() local
59 ret = kstrtou32(buff, 0, &vram_d3cold_threshold); in vram_d3cold_threshold_store()
63 drm_dbg(&xe->drm, "vram_d3cold_threshold: %u\n", vram_d3cold_threshold); in vram_d3cold_threshold_store()
65 xe_pm_runtime_get(xe); in vram_d3cold_threshold_store()
66 ret = xe_pm_set_vram_threshold(xe, vram_d3cold_threshold); in vram_d3cold_threshold_store()
67 xe_pm_runtime_put(xe); in vram_d3cold_threshold_store()
86 struct xe_device *xe = pdev_to_xe_device(to_pci_dev(dev)); in lb_fan_control_version_show() local
87 struct xe_tile *root = xe_device_get_root_tile(xe); in lb_fan_control_version_show()
88 u32 cap = 0, ver_low = FAN_TABLE, ver_high = FAN_TABLE; in lb_fan_control_version_show()
89 u16 major = 0, minor = 0, hotfix = 0, build = 0; in lb_fan_control_version_show()
92 xe_pm_runtime_get(xe); in lb_fan_control_version_show()
94 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0), in lb_fan_control_version_show()
100 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_LOW, 0), in lb_fan_control_version_show()
105 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_HIGH, 0), in lb_fan_control_version_show()
116 xe_pm_runtime_put(xe); in lb_fan_control_version_show()
125 struct xe_device *xe = pdev_to_xe_device(to_pci_dev(dev)); in lb_voltage_regulator_version_show() local
126 struct xe_tile *root = xe_device_get_root_tile(xe); in lb_voltage_regulator_version_show()
127 u32 cap = 0, ver_low = VR_CONFIG, ver_high = VR_CONFIG; in lb_voltage_regulator_version_show()
128 u16 major = 0, minor = 0, hotfix = 0, build = 0; in lb_voltage_regulator_version_show()
131 xe_pm_runtime_get(xe); in lb_voltage_regulator_version_show()
133 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0), in lb_voltage_regulator_version_show()
139 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_LOW, 0), in lb_voltage_regulator_version_show()
144 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_HIGH, 0), in lb_voltage_regulator_version_show()
155 xe_pm_runtime_put(xe); in lb_voltage_regulator_version_show()
171 struct xe_device *xe = pdev_to_xe_device(to_pci_dev(dev)); in late_bind_attr_is_visible() local
172 struct xe_tile *root = xe_device_get_root_tile(xe); in late_bind_attr_is_visible()
173 u32 cap = 0; in late_bind_attr_is_visible()
176 xe_pm_runtime_get(xe); in late_bind_attr_is_visible()
178 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0), in late_bind_attr_is_visible()
180 xe_pm_runtime_put(xe); in late_bind_attr_is_visible()
182 return 0; in late_bind_attr_is_visible()
191 return 0; in late_bind_attr_is_visible()
213 * speed with boolean output value of ``0`` or ``1``, meaning `incapable` or
228 * of ``0`` or ``1``, where ``0`` means no auto-downgrading was required during
241 struct xe_device *xe = pdev_to_xe_device(pdev); in auto_link_downgrade_capable_show() local
244 xe_pm_runtime_get(xe); in auto_link_downgrade_capable_show()
245 val = xe_mmio_read32(xe_root_tile_mmio(xe), BMG_PCIE_CAP); in auto_link_downgrade_capable_show()
246 xe_pm_runtime_put(xe); in auto_link_downgrade_capable_show()
257 struct xe_device *xe = pdev_to_xe_device(pdev); in auto_link_downgrade_status_show() local
258 /* default the auto_link_downgrade status to 0 */ in auto_link_downgrade_status_show()
259 u32 val = 0; in auto_link_downgrade_status_show()
262 xe_pm_runtime_get(xe); in auto_link_downgrade_status_show()
263 ret = xe_pcode_read(xe_device_get_root_tile(xe), in auto_link_downgrade_status_show()
264 PCODE_MBOX(DGFX_PCODE_STATUS, DGFX_GET_INIT_STATUS, 0), in auto_link_downgrade_status_show()
266 xe_pm_runtime_put(xe); in auto_link_downgrade_status_show()
282 int xe_device_sysfs_init(struct xe_device *xe) in xe_device_sysfs_init() argument
284 struct device *dev = xe->drm.dev; in xe_device_sysfs_init()
287 if (xe->d3cold.capable) { in xe_device_sysfs_init()
293 if (xe->info.platform == XE_BATTLEMAGE && !IS_SRIOV_VF(xe)) { in xe_device_sysfs_init()
303 return 0; in xe_device_sysfs_init()