2 * Copyright © 2008 Intel Corporation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
29 #include <linux/sched/mm.h>
30 #include <linux/sort.h>
31 #include <linux/string_helpers.h>
33 #include <linux/debugfs.h>
34 #include <drm/drm_debugfs.h>
36 #include "gem/i915_gem_context.h"
37 #include "gt/intel_gt.h"
38 #include "gt/intel_gt_buffer_pool.h"
39 #include "gt/intel_gt_clock_utils.h"
40 #include "gt/intel_gt_debugfs.h"
41 #include "gt/intel_gt_pm.h"
42 #include "gt/intel_gt_pm_debugfs.h"
43 #include "gt/intel_gt_regs.h"
44 #include "gt/intel_gt_requests.h"
45 #include "gt/intel_rc6.h"
46 #include "gt/intel_reset.h"
47 #include "gt/intel_rps.h"
48 #include "gt/intel_sseu_debugfs.h"
50 #include "i915_debugfs.h"
51 #include "i915_debugfs_params.h"
52 #include "i915_driver.h"
53 #include "i915_gpu_error.h"
56 #include "i915_scheduler.h"
57 #include "intel_mchbar_regs.h"
59 static inline struct drm_i915_private *node_to_i915(struct drm_info_node *node)
61 return to_i915(node->minor->dev);
64 static int i915_capabilities(struct seq_file *m, void *data)
66 struct drm_i915_private *i915 = node_to_i915(m->private);
67 struct drm_printer p = drm_seq_file_printer(m);
69 seq_printf(m, "pch: %d\n", INTEL_PCH_TYPE(i915));
71 intel_device_info_print(INTEL_INFO(i915), RUNTIME_INFO(i915), &p);
72 i915_print_iommu_status(i915, &p);
73 intel_gt_info_print(&to_gt(i915)->info, &p);
74 intel_driver_caps_print(&i915->caps, &p);
76 i915_params_dump(&i915->params, &p);
81 static char get_tiling_flag(struct drm_i915_gem_object *obj)
83 switch (i915_gem_object_get_tiling(obj)) {
85 case I915_TILING_NONE: return ' ';
86 case I915_TILING_X: return 'X';
87 case I915_TILING_Y: return 'Y';
91 static char get_global_flag(struct drm_i915_gem_object *obj)
93 return READ_ONCE(obj->userfault_count) ? 'g' : ' ';
96 static char get_pin_mapped_flag(struct drm_i915_gem_object *obj)
98 return obj->mm.mapping ? 'M' : ' ';
102 stringify_page_sizes(unsigned int page_sizes, char *buf, size_t len)
106 switch (page_sizes) {
109 case I915_GTT_PAGE_SIZE_4K:
111 case I915_GTT_PAGE_SIZE_64K:
113 case I915_GTT_PAGE_SIZE_2M:
119 if (page_sizes & I915_GTT_PAGE_SIZE_2M)
120 x += snprintf(buf + x, len - x, "2M, ");
121 if (page_sizes & I915_GTT_PAGE_SIZE_64K)
122 x += snprintf(buf + x, len - x, "64K, ");
123 if (page_sizes & I915_GTT_PAGE_SIZE_4K)
124 x += snprintf(buf + x, len - x, "4K, ");
131 static const char *stringify_vma_type(const struct i915_vma *vma)
133 if (i915_vma_is_ggtt(vma))
136 if (i915_vma_is_dpt(vma))
142 static const char *i915_cache_level_str(struct drm_i915_gem_object *obj)
144 struct drm_i915_private *i915 = obj_to_i915(obj);
146 if (IS_GFX_GT_IP_RANGE(to_gt(i915), IP_VER(12, 70), IP_VER(12, 74))) {
147 switch (obj->pat_index) {
148 case 0: return " WB";
149 case 1: return " WT";
150 case 2: return " UC";
151 case 3: return " WB (1-Way Coh)";
152 case 4: return " WB (2-Way Coh)";
153 default: return " not defined";
155 } else if (GRAPHICS_VER(i915) >= 12) {
156 switch (obj->pat_index) {
157 case 0: return " WB";
158 case 1: return " WC";
159 case 2: return " WT";
160 case 3: return " UC";
161 default: return " not defined";
164 switch (obj->pat_index) {
165 case 0: return " UC";
166 case 1: return HAS_LLC(i915) ?
168 case 2: return " L3+LLC";
169 case 3: return " WT";
170 default: return " not defined";
176 i915_debugfs_describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj)
178 struct i915_vma *vma;
181 seq_printf(m, "%pK: %c%c%c %8zdKiB %02x %02x %s%s%s",
183 get_tiling_flag(obj),
184 get_global_flag(obj),
185 get_pin_mapped_flag(obj),
186 obj->base.size / 1024,
189 i915_cache_level_str(obj),
190 obj->mm.dirty ? " dirty" : "",
191 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : "");
193 seq_printf(m, " (name: %d)", obj->base.name);
195 spin_lock(&obj->vma.lock);
196 list_for_each_entry(vma, &obj->vma.list, obj_link) {
197 if (!drm_mm_node_allocated(&vma->node))
200 spin_unlock(&obj->vma.lock);
202 if (i915_vma_is_pinned(vma))
205 seq_printf(m, " (%s offset: %08llx, size: %08llx, pages: %s",
206 stringify_vma_type(vma),
207 i915_vma_offset(vma), i915_vma_size(vma),
208 stringify_page_sizes(vma->resource->page_sizes_gtt,
210 if (i915_vma_is_ggtt(vma) || i915_vma_is_dpt(vma)) {
211 switch (vma->gtt_view.type) {
212 case I915_GTT_VIEW_NORMAL:
213 seq_puts(m, ", normal");
216 case I915_GTT_VIEW_PARTIAL:
217 seq_printf(m, ", partial [%08llx+%x]",
218 vma->gtt_view.partial.offset << PAGE_SHIFT,
219 vma->gtt_view.partial.size << PAGE_SHIFT);
222 case I915_GTT_VIEW_ROTATED:
223 seq_printf(m, ", rotated [(%ux%u, src_stride=%u, dst_stride=%u, offset=%u), (%ux%u, src_stride=%u, dst_stride=%u, offset=%u)]",
224 vma->gtt_view.rotated.plane[0].width,
225 vma->gtt_view.rotated.plane[0].height,
226 vma->gtt_view.rotated.plane[0].src_stride,
227 vma->gtt_view.rotated.plane[0].dst_stride,
228 vma->gtt_view.rotated.plane[0].offset,
229 vma->gtt_view.rotated.plane[1].width,
230 vma->gtt_view.rotated.plane[1].height,
231 vma->gtt_view.rotated.plane[1].src_stride,
232 vma->gtt_view.rotated.plane[1].dst_stride,
233 vma->gtt_view.rotated.plane[1].offset);
236 case I915_GTT_VIEW_REMAPPED:
237 seq_printf(m, ", remapped [(%ux%u, src_stride=%u, dst_stride=%u, offset=%u), (%ux%u, src_stride=%u, dst_stride=%u, offset=%u)]",
238 vma->gtt_view.remapped.plane[0].width,
239 vma->gtt_view.remapped.plane[0].height,
240 vma->gtt_view.remapped.plane[0].src_stride,
241 vma->gtt_view.remapped.plane[0].dst_stride,
242 vma->gtt_view.remapped.plane[0].offset,
243 vma->gtt_view.remapped.plane[1].width,
244 vma->gtt_view.remapped.plane[1].height,
245 vma->gtt_view.remapped.plane[1].src_stride,
246 vma->gtt_view.remapped.plane[1].dst_stride,
247 vma->gtt_view.remapped.plane[1].offset);
251 MISSING_CASE(vma->gtt_view.type);
256 seq_printf(m, " , fence: %d", vma->fence->id);
259 spin_lock(&obj->vma.lock);
261 spin_unlock(&obj->vma.lock);
263 seq_printf(m, " (pinned x %d)", pin_count);
264 if (i915_gem_object_is_stolen(obj))
265 seq_printf(m, " (stolen: %08llx)", obj->stolen->start);
266 if (i915_gem_object_is_framebuffer(obj))
267 seq_printf(m, " (fb)");
270 static int i915_gem_object_info(struct seq_file *m, void *data)
272 struct drm_i915_private *i915 = node_to_i915(m->private);
273 struct drm_printer p = drm_seq_file_printer(m);
274 struct intel_memory_region *mr;
275 enum intel_region_id id;
277 seq_printf(m, "%u shrinkable [%u free] objects, %llu bytes\n",
278 i915->mm.shrink_count,
279 atomic_read(&i915->mm.free_count),
280 i915->mm.shrink_memory);
281 for_each_memory_region(mr, i915, id)
282 intel_memory_region_debug(mr, &p);
287 static int i915_frequency_info(struct seq_file *m, void *unused)
289 struct drm_i915_private *i915 = node_to_i915(m->private);
290 struct intel_gt *gt = to_gt(i915);
291 struct drm_printer p = drm_seq_file_printer(m);
293 intel_gt_pm_frequency_dump(gt, &p);
298 static const char *swizzle_string(unsigned swizzle)
301 case I915_BIT_6_SWIZZLE_NONE:
303 case I915_BIT_6_SWIZZLE_9:
305 case I915_BIT_6_SWIZZLE_9_10:
307 case I915_BIT_6_SWIZZLE_9_11:
309 case I915_BIT_6_SWIZZLE_9_10_11:
310 return "bit9/bit10/bit11";
311 case I915_BIT_6_SWIZZLE_9_17:
313 case I915_BIT_6_SWIZZLE_9_10_17:
314 return "bit9/bit10/bit17";
315 case I915_BIT_6_SWIZZLE_UNKNOWN:
322 static int i915_swizzle_info(struct seq_file *m, void *data)
324 struct drm_i915_private *dev_priv = node_to_i915(m->private);
325 struct intel_uncore *uncore = &dev_priv->uncore;
326 intel_wakeref_t wakeref;
328 seq_printf(m, "bit6 swizzle for X-tiling = %s\n",
329 swizzle_string(to_gt(dev_priv)->ggtt->bit_6_swizzle_x));
330 seq_printf(m, "bit6 swizzle for Y-tiling = %s\n",
331 swizzle_string(to_gt(dev_priv)->ggtt->bit_6_swizzle_y));
333 if (dev_priv->gem_quirks & GEM_QUIRK_PIN_SWIZZLED_PAGES)
334 seq_puts(m, "L-shaped memory detected\n");
336 /* On BDW+, swizzling is not used. See detect_bit_6_swizzle() */
337 if (GRAPHICS_VER(dev_priv) >= 8 || IS_VALLEYVIEW(dev_priv))
340 wakeref = intel_runtime_pm_get(&dev_priv->runtime_pm);
342 if (IS_GRAPHICS_VER(dev_priv, 3, 4)) {
343 seq_printf(m, "DDC = 0x%08x\n",
344 intel_uncore_read(uncore, DCC));
345 seq_printf(m, "DDC2 = 0x%08x\n",
346 intel_uncore_read(uncore, DCC2));
347 seq_printf(m, "C0DRB3 = 0x%04x\n",
348 intel_uncore_read16(uncore, C0DRB3_BW));
349 seq_printf(m, "C1DRB3 = 0x%04x\n",
350 intel_uncore_read16(uncore, C1DRB3_BW));
351 } else if (GRAPHICS_VER(dev_priv) >= 6) {
352 seq_printf(m, "MAD_DIMM_C0 = 0x%08x\n",
353 intel_uncore_read(uncore, MAD_DIMM_C0));
354 seq_printf(m, "MAD_DIMM_C1 = 0x%08x\n",
355 intel_uncore_read(uncore, MAD_DIMM_C1));
356 seq_printf(m, "MAD_DIMM_C2 = 0x%08x\n",
357 intel_uncore_read(uncore, MAD_DIMM_C2));
358 seq_printf(m, "TILECTL = 0x%08x\n",
359 intel_uncore_read(uncore, TILECTL));
360 if (GRAPHICS_VER(dev_priv) >= 8)
361 seq_printf(m, "GAMTARBMODE = 0x%08x\n",
362 intel_uncore_read(uncore, GAMTARBMODE));
364 seq_printf(m, "ARB_MODE = 0x%08x\n",
365 intel_uncore_read(uncore, ARB_MODE));
366 seq_printf(m, "DISP_ARB_CTL = 0x%08x\n",
367 intel_uncore_read(uncore, DISP_ARB_CTL));
370 intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref);
375 static int i915_rps_boost_info(struct seq_file *m, void *data)
377 struct drm_i915_private *dev_priv = node_to_i915(m->private);
378 struct intel_rps *rps = &to_gt(dev_priv)->rps;
380 seq_printf(m, "RPS enabled? %s\n",
381 str_yes_no(intel_rps_is_enabled(rps)));
382 seq_printf(m, "RPS active? %s\n",
383 str_yes_no(intel_rps_is_active(rps)));
384 seq_printf(m, "GPU busy? %s\n", str_yes_no(to_gt(dev_priv)->awake));
385 seq_printf(m, "Boosts outstanding? %d\n",
386 atomic_read(&rps->num_waiters));
387 seq_printf(m, "Interactive? %d\n", READ_ONCE(rps->power.interactive));
388 seq_printf(m, "Frequency requested %d, actual %d\n",
389 intel_gpu_freq(rps, rps->cur_freq),
390 intel_rps_read_actual_frequency(rps));
391 seq_printf(m, " min hard:%d, soft:%d; max soft:%d, hard:%d\n",
392 intel_gpu_freq(rps, rps->min_freq),
393 intel_gpu_freq(rps, rps->min_freq_softlimit),
394 intel_gpu_freq(rps, rps->max_freq_softlimit),
395 intel_gpu_freq(rps, rps->max_freq));
396 seq_printf(m, " idle:%d, efficient:%d, boost:%d\n",
397 intel_gpu_freq(rps, rps->idle_freq),
398 intel_gpu_freq(rps, rps->efficient_freq),
399 intel_gpu_freq(rps, rps->boost_freq));
401 seq_printf(m, "Wait boosts: %d\n", READ_ONCE(rps->boosts));
406 static int i915_runtime_pm_status(struct seq_file *m, void *unused)
408 struct drm_i915_private *dev_priv = node_to_i915(m->private);
409 struct pci_dev *pdev = to_pci_dev(dev_priv->drm.dev);
411 if (!HAS_RUNTIME_PM(dev_priv))
412 seq_puts(m, "Runtime power management not supported\n");
414 seq_printf(m, "Runtime power status: %s\n",
415 str_enabled_disabled(!dev_priv->display.power.domains.init_wakeref));
417 seq_printf(m, "GPU idle: %s\n", str_yes_no(!to_gt(dev_priv)->awake));
418 seq_printf(m, "IRQs disabled: %s\n",
419 str_yes_no(!intel_irqs_enabled(dev_priv)));
421 seq_printf(m, "Usage count: %d\n",
422 atomic_read(&dev_priv->drm.dev->power.usage_count));
424 seq_printf(m, "Device Power Management (CONFIG_PM) disabled\n");
426 seq_printf(m, "PCI device power state: %s [%d]\n",
427 pci_power_name(pdev->current_state),
428 pdev->current_state);
430 if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_RUNTIME_PM)) {
431 struct drm_printer p = drm_seq_file_printer(m);
433 print_intel_runtime_pm_wakeref(&dev_priv->runtime_pm, &p);
439 static int i915_engine_info(struct seq_file *m, void *unused)
441 struct drm_i915_private *i915 = node_to_i915(m->private);
442 struct intel_engine_cs *engine;
443 intel_wakeref_t wakeref;
444 struct drm_printer p;
446 wakeref = intel_runtime_pm_get(&i915->runtime_pm);
448 seq_printf(m, "GT awake? %s [%d], %llums\n",
449 str_yes_no(to_gt(i915)->awake),
450 atomic_read(&to_gt(i915)->wakeref.count),
451 ktime_to_ms(intel_gt_get_awake_time(to_gt(i915))));
452 seq_printf(m, "CS timestamp frequency: %u Hz, %d ns\n",
453 to_gt(i915)->clock_frequency,
454 to_gt(i915)->clock_period_ns);
456 p = drm_seq_file_printer(m);
457 for_each_uabi_engine(engine, i915)
458 intel_engine_dump(engine, &p, "%s\n", engine->name);
460 intel_gt_show_timelines(to_gt(i915), &p, i915_request_show_with_schedule);
462 intel_runtime_pm_put(&i915->runtime_pm, wakeref);
467 static int i915_wa_registers(struct seq_file *m, void *unused)
469 struct drm_i915_private *i915 = node_to_i915(m->private);
470 struct intel_engine_cs *engine;
472 for_each_uabi_engine(engine, i915) {
473 const struct i915_wa_list *wal = &engine->ctx_wa_list;
474 const struct i915_wa *wa;
481 seq_printf(m, "%s: Workarounds applied: %u\n",
482 engine->name, count);
484 for (wa = wal->list; count--; wa++)
485 seq_printf(m, "0x%X: 0x%08X, mask: 0x%08X\n",
486 i915_mmio_reg_offset(wa->reg),
495 static int i915_wedged_get(void *data, u64 *val)
497 struct drm_i915_private *i915 = data;
503 for_each_gt(gt, i915, i) {
506 ret = intel_gt_debugfs_reset_show(gt, val);
510 /* at least one tile should be wedged */
518 static int i915_wedged_set(void *data, u64 val)
520 struct drm_i915_private *i915 = data;
524 for_each_gt(gt, i915, i)
525 intel_gt_debugfs_reset_store(gt, val);
530 DEFINE_SIMPLE_ATTRIBUTE(i915_wedged_fops,
531 i915_wedged_get, i915_wedged_set,
535 i915_perf_noa_delay_set(void *data, u64 val)
537 struct drm_i915_private *i915 = data;
540 * This would lead to infinite waits as we're doing timestamp
541 * difference on the CS with only 32bits.
543 if (intel_gt_ns_to_clock_interval(to_gt(i915), val) > U32_MAX)
546 atomic64_set(&i915->perf.noa_programming_delay, val);
551 i915_perf_noa_delay_get(void *data, u64 *val)
553 struct drm_i915_private *i915 = data;
555 *val = atomic64_read(&i915->perf.noa_programming_delay);
559 DEFINE_SIMPLE_ATTRIBUTE(i915_perf_noa_delay_fops,
560 i915_perf_noa_delay_get,
561 i915_perf_noa_delay_set,
564 #define DROP_UNBOUND BIT(0)
565 #define DROP_BOUND BIT(1)
566 #define DROP_RETIRE BIT(2)
567 #define DROP_ACTIVE BIT(3)
568 #define DROP_FREED BIT(4)
569 #define DROP_SHRINK_ALL BIT(5)
570 #define DROP_IDLE BIT(6)
571 #define DROP_RESET_ACTIVE BIT(7)
572 #define DROP_RESET_SEQNO BIT(8)
573 #define DROP_RCU BIT(9)
574 #define DROP_ALL (DROP_UNBOUND | \
581 DROP_RESET_ACTIVE | \
585 i915_drop_caches_get(void *data, u64 *val)
593 gt_drop_caches(struct intel_gt *gt, u64 val)
597 if (val & DROP_RESET_ACTIVE &&
598 wait_for(intel_engines_are_idle(gt), 200))
599 intel_gt_set_wedged(gt);
601 if (val & DROP_RETIRE)
602 intel_gt_retire_requests(gt);
604 if (val & (DROP_IDLE | DROP_ACTIVE)) {
605 ret = intel_gt_wait_for_idle(gt, MAX_SCHEDULE_TIMEOUT);
610 if (val & DROP_IDLE) {
611 ret = intel_gt_pm_wait_for_idle(gt);
616 if (val & DROP_RESET_ACTIVE && intel_gt_terminally_wedged(gt))
617 intel_gt_handle_error(gt, ALL_ENGINES, 0, NULL);
619 if (val & DROP_FREED)
620 intel_gt_flush_buffer_pool(gt);
626 i915_drop_caches_set(void *data, u64 val)
628 struct drm_i915_private *i915 = data;
634 drm_dbg(&i915->drm, "Dropping caches: 0x%08llx [0x%08llx]\n",
635 val, val & DROP_ALL);
637 for_each_gt(gt, i915, i) {
638 ret = gt_drop_caches(gt, val);
643 fs_reclaim_acquire(GFP_KERNEL);
644 flags = memalloc_noreclaim_save();
645 if (val & DROP_BOUND)
646 i915_gem_shrink(NULL, i915, LONG_MAX, NULL, I915_SHRINK_BOUND);
648 if (val & DROP_UNBOUND)
649 i915_gem_shrink(NULL, i915, LONG_MAX, NULL, I915_SHRINK_UNBOUND);
651 if (val & DROP_SHRINK_ALL)
652 i915_gem_shrink_all(i915);
653 memalloc_noreclaim_restore(flags);
654 fs_reclaim_release(GFP_KERNEL);
659 if (val & DROP_FREED)
660 i915_gem_drain_freed_objects(i915);
665 DEFINE_SIMPLE_ATTRIBUTE(i915_drop_caches_fops,
666 i915_drop_caches_get, i915_drop_caches_set,
669 static int i915_sseu_status(struct seq_file *m, void *unused)
671 struct drm_i915_private *i915 = node_to_i915(m->private);
672 struct intel_gt *gt = to_gt(i915);
674 return intel_sseu_status(m, gt);
677 static int i915_forcewake_open(struct inode *inode, struct file *file)
679 struct drm_i915_private *i915 = inode->i_private;
683 for_each_gt(gt, i915, i)
684 intel_gt_pm_debugfs_forcewake_user_open(gt);
689 static int i915_forcewake_release(struct inode *inode, struct file *file)
691 struct drm_i915_private *i915 = inode->i_private;
695 for_each_gt(gt, i915, i)
696 intel_gt_pm_debugfs_forcewake_user_release(gt);
701 static const struct file_operations i915_forcewake_fops = {
702 .owner = THIS_MODULE,
703 .open = i915_forcewake_open,
704 .release = i915_forcewake_release,
707 static const struct drm_info_list i915_debugfs_list[] = {
708 {"i915_capabilities", i915_capabilities, 0},
709 {"i915_gem_objects", i915_gem_object_info, 0},
710 {"i915_frequency_info", i915_frequency_info, 0},
711 {"i915_swizzle_info", i915_swizzle_info, 0},
712 {"i915_runtime_pm_status", i915_runtime_pm_status, 0},
713 {"i915_engine_info", i915_engine_info, 0},
714 {"i915_wa_registers", i915_wa_registers, 0},
715 {"i915_sseu_status", i915_sseu_status, 0},
716 {"i915_rps_boost_info", i915_rps_boost_info, 0},
719 static const struct i915_debugfs_files {
721 const struct file_operations *fops;
722 } i915_debugfs_files[] = {
723 {"i915_perf_noa_delay", &i915_perf_noa_delay_fops},
724 {"i915_wedged", &i915_wedged_fops},
725 {"i915_gem_drop_caches", &i915_drop_caches_fops},
728 void i915_debugfs_register(struct drm_i915_private *dev_priv)
730 struct drm_minor *minor = dev_priv->drm.primary;
733 i915_debugfs_params(dev_priv);
735 debugfs_create_file("i915_forcewake_user", S_IRUSR, minor->debugfs_root,
736 to_i915(minor->dev), &i915_forcewake_fops);
737 for (i = 0; i < ARRAY_SIZE(i915_debugfs_files); i++) {
738 debugfs_create_file(i915_debugfs_files[i].name,
742 i915_debugfs_files[i].fops);
745 drm_debugfs_create_files(i915_debugfs_list,
746 ARRAY_SIZE(i915_debugfs_list),
747 minor->debugfs_root, minor);
749 i915_gpu_error_debugfs_register(dev_priv);