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);
42 return sysfs_emit(buf, "%d\n", xe->d3cold.vram_threshold);
50 struct xe_device *xe = pdev_to_xe_device(pdev);
54 ret = kstrtou32(buff, 0, &vram_d3cold_threshold);
58 drm_dbg(&xe->drm, "vram_d3cold_threshold: %u\n", vram_d3cold_threshold);
60 guard(xe_pm_runtime)(xe);
61 ret = xe_pm_set_vram_threshold(xe, vram_d3cold_threshold);
80 struct xe_device *xe = pdev_to_xe_device(to_pci_dev(dev));
81 struct xe_tile *root = xe_device_get_root_tile(xe);
82 u32 cap = 0, ver_low = FAN_TABLE, ver_high = FAN_TABLE;
83 u16 major = 0, minor = 0, hotfix = 0, build = 0;
86 guard(xe_pm_runtime)(xe);
88 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
94 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_LOW, 0),
99 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_HIGH, 0),
117 struct xe_device *xe = pdev_to_xe_device(to_pci_dev(dev));
118 struct xe_tile *root = xe_device_get_root_tile(xe);
119 u32 cap = 0, ver_low = VR_CONFIG, ver_high = VR_CONFIG;
120 u16 major = 0, minor = 0, hotfix = 0, build = 0;
123 guard(xe_pm_runtime)(xe);
125 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
131 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_LOW, 0),
136 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_VERSION_HIGH, 0),
161 struct xe_device *xe = pdev_to_xe_device(to_pci_dev(dev));
162 struct xe_tile *root = xe_device_get_root_tile(xe);
163 u32 cap = 0;
166 ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
169 return 0;
178 return 0;
200 * speed with boolean output value of ``0`` or ``1``, meaning `incapable` or
215 * of ``0`` or ``1``, where ``0`` means no auto-downgrading was required during
228 struct xe_device *xe = pdev_to_xe_device(pdev);
231 guard(xe_pm_runtime)(xe);
232 val = xe_mmio_read32(xe_root_tile_mmio(xe), BMG_PCIE_CAP);
243 struct xe_device *xe = pdev_to_xe_device(pdev);
244 /* default the auto_link_downgrade status to 0 */
245 u32 val = 0;
248 guard(xe_pm_runtime)(xe);
249 ret = xe_pcode_read(xe_device_get_root_tile(xe),
250 PCODE_MBOX(DGFX_PCODE_STATUS, DGFX_GET_INIT_STATUS, 0),
267 int xe_device_sysfs_init(struct xe_device *xe)
269 struct device *dev = xe->drm.dev;
272 if (xe->d3cold.capable) {
278 if (xe->info.platform == XE_BATTLEMAGE && !IS_SRIOV_VF(xe)) {
288 return 0;