Home
last modified time | relevance | path

Searched refs:GRAPHICS_VER (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_hdcp_regs.h85 (GRAPHICS_VER(dev_priv) >= 12 ? \
98 (GRAPHICS_VER(dev_priv) >= 12 ? \
108 (GRAPHICS_VER(dev_priv) >= 12 ? \
118 (GRAPHICS_VER(dev_priv) >= 12 ? \
129 (GRAPHICS_VER(dev_priv) >= 12 ? \
140 (GRAPHICS_VER(dev_priv) >= 12 ? \
151 (GRAPHICS_VER(dev_priv) >= 12 ? \
162 (GRAPHICS_VER(dev_priv) >= 12 ? \
203 (GRAPHICS_VER(dev_priv) >= 12 ? \
214 (GRAPHICS_VER(dev_priv) >= 12 ? \
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_suspend.c41 if (GRAPHICS_VER(dev_priv) == 2 && IS_MOBILE(dev_priv)) { in intel_save_swf()
48 } else if (GRAPHICS_VER(dev_priv) == 2) { in intel_save_swf()
66 if (GRAPHICS_VER(dev_priv) == 2 && IS_MOBILE(dev_priv)) { in intel_restore_swf()
73 } else if (GRAPHICS_VER(dev_priv) == 2) { in intel_restore_swf()
94 if (GRAPHICS_VER(dev_priv) <= 4) in i915_save_display()
97 if (GRAPHICS_VER(dev_priv) == 4) in i915_save_display()
113 if (GRAPHICS_VER(dev_priv) == 4) in i915_restore_display()
118 if (GRAPHICS_VER(dev_priv) <= 4) in i915_restore_display()
Di915_gpu_error.c448 if (ee->engine->class != RENDER_CLASS || GRAPHICS_VER(m->i915) <= 3) in error_print_instdone()
454 if (GRAPHICS_VER(m->i915) <= 6) in error_print_instdone()
467 if (GRAPHICS_VER(m->i915) < 12) in error_print_instdone()
561 if (GRAPHICS_VER(m->i915) >= 4) { in error_print_engine()
570 if (GRAPHICS_VER(m->i915) >= 6) { in error_print_engine()
574 if (GRAPHICS_VER(m->i915) >= 11) { in error_print_engine()
586 if (GRAPHICS_VER(m->i915) >= 8) { in error_print_engine()
762 if (GRAPHICS_VER(m->i915) >= 8) in err_print_gt_global()
766 if (GRAPHICS_VER(m->i915) == 7) in err_print_gt_global()
772 if (GRAPHICS_VER(m->i915) == 12) in err_print_gt_global()
[all …]
Di915_irq.c455 if (GRAPHICS_VER(i915) >= 6) in ilk_irq_handler()
472 if (GRAPHICS_VER(i915) >= 6) { in ilk_irq_handler()
684 if (GRAPHICS_VER(dev_priv) == 7) in ilk_irq_reset()
1291 if (HAS_GT_UC(dev_priv) && GRAPHICS_VER(dev_priv) < 11) in intel_irq_init()
1316 else if (GRAPHICS_VER(dev_priv) == 4) in intel_irq_handler()
1318 else if (GRAPHICS_VER(dev_priv) == 3) in intel_irq_handler()
1325 else if (GRAPHICS_VER(dev_priv) >= 11) in intel_irq_handler()
1327 else if (GRAPHICS_VER(dev_priv) >= 8) in intel_irq_handler()
1341 else if (GRAPHICS_VER(dev_priv) == 4) in intel_irq_reset()
1343 else if (GRAPHICS_VER(dev_priv) == 3) in intel_irq_reset()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dintel_gt_clock_utils.c159 if (GRAPHICS_VER(uncore->i915) >= 11) in read_clock_frequency()
161 else if (GRAPHICS_VER(uncore->i915) >= 9) in read_clock_frequency()
163 else if (GRAPHICS_VER(uncore->i915) >= 6) in read_clock_frequency()
165 else if (GRAPHICS_VER(uncore->i915) == 5) in read_clock_frequency()
169 else if (GRAPHICS_VER(uncore->i915) == 4) in read_clock_frequency()
180 if (GRAPHICS_VER(gt->i915) == 11) in intel_gt_init_clock_frequency()
236 if (GRAPHICS_VER(gt->i915) == 6) in intel_gt_ns_to_pm_interval()
Dintel_ring_submission.c42 if (GRAPHICS_VER(engine->i915) >= 6) in set_hwstam()
56 if (GRAPHICS_VER(engine->i915) >= 4) in set_hws_pga()
84 if (GRAPHICS_VER(engine->i915) == 7) { in set_hwsp()
106 } else if (GRAPHICS_VER(engine->i915) == 6) { in set_hwsp()
168 if (GRAPHICS_VER(engine->i915) >= 7) { in set_pp_dir()
247 if (GRAPHICS_VER(engine->i915) > 2) in xcs_resume()
702 if (GRAPHICS_VER(i915) == 7) in mi_set_context()
704 else if (GRAPHICS_VER(i915) == 5) in mi_set_context()
718 if (GRAPHICS_VER(i915) == 7) { in mi_set_context()
734 } else if (GRAPHICS_VER(i915) == 5) { in mi_set_context()
[all …]
Dintel_ggtt_fencing.c65 if (GRAPHICS_VER(fence_to_i915(fence)) >= 6) { in i965_write_fence_reg()
182 if (GRAPHICS_VER(i915) == 2) in fence_write()
184 else if (GRAPHICS_VER(i915) == 3) in fence_write()
197 return GRAPHICS_VER(fence_to_i915(fence)) < 4; in gpu_uses_fence_registers()
578 if (GRAPHICS_VER(i915) >= 8 || IS_VALLEYVIEW(i915)) { in detect_bit_6_swizzle()
588 } else if (GRAPHICS_VER(i915) >= 6) { in detect_bit_6_swizzle()
620 } else if (GRAPHICS_VER(i915) == 5) { in detect_bit_6_swizzle()
627 } else if (GRAPHICS_VER(i915) == 2) { in detect_bit_6_swizzle()
706 if (GRAPHICS_VER(i915) == 4 && in detect_bit_6_swizzle()
852 else if (GRAPHICS_VER(i915) >= 7 && in intel_ggtt_init_fences()
[all …]
Dintel_gt_pm_irq.c20 if (GRAPHICS_VER(i915) >= 11) { in write_pm_imr()
23 } else if (GRAPHICS_VER(i915) >= 8) { in write_pm_imr()
65 i915_reg_t reg = GRAPHICS_VER(gt->i915) >= 8 ? GEN8_GT_IIR(2) : GEN6_PMIIR; in gen6_gt_pm_reset_iir()
81 if (GRAPHICS_VER(i915) >= 11) { in write_pm_ier()
84 } else if (GRAPHICS_VER(i915) >= 8) { in write_pm_ier()
Dintel_lrc.c78 if (GRAPHICS_VER(engine->i915) >= 11) in set_offsets()
101 if (GRAPHICS_VER(engine->i915) >= 11) in set_offsets()
690 GEM_BUG_ON(GRAPHICS_VER(engine->i915) >= 12 && in reg_offsets()
700 else if (GRAPHICS_VER(engine->i915) >= 12) in reg_offsets()
702 else if (GRAPHICS_VER(engine->i915) >= 11) in reg_offsets()
704 else if (GRAPHICS_VER(engine->i915) >= 9) in reg_offsets()
711 else if (GRAPHICS_VER(engine->i915) >= 12) in reg_offsets()
713 else if (GRAPHICS_VER(engine->i915) >= 9) in reg_offsets()
724 else if (GRAPHICS_VER(engine->i915) >= 12) in lrc_ring_mi_mode()
726 else if (GRAPHICS_VER(engine->i915) >= 9) in lrc_ring_mi_mode()
[all …]
Dintel_gt_pm_debugfs.c31 if (GRAPHICS_VER(gt->i915) >= 6) in intel_gt_pm_debugfs_forcewake_user_open()
37 if (GRAPHICS_VER(gt->i915) >= 6) in intel_gt_pm_debugfs_forcewake_user_release()
123 if (GRAPHICS_VER(i915) >= 9) { in gen6_drpc()
130 if (GRAPHICS_VER(i915) <= 7) in gen6_drpc()
137 if (GRAPHICS_VER(i915) >= 9) { in gen6_drpc()
172 if (GRAPHICS_VER(i915) >= 9) { in gen6_drpc()
188 if (GRAPHICS_VER(i915) <= 7) { in gen6_drpc()
326 else if (GRAPHICS_VER(i915) >= 6) in drpc_show()
345 if (GRAPHICS_VER(i915) == 5) { in intel_gt_pm_frequency_dump()
390 } else if (GRAPHICS_VER(i915) >= 6) { in intel_gt_pm_frequency_dump()
[all …]
Dintel_gt.c156 } else if (GRAPHICS_VER(i915) == 2) { in init_unused_rings()
159 } else if (GRAPHICS_VER(i915) == 3) { in init_unused_rings()
176 if (HAS_EDRAM(i915) && GRAPHICS_VER(i915) < 9) in intel_gt_init_hw()
229 if (GRAPHICS_VER(gt->i915) < 11) in intel_gt_perf_limit_reasons_reg()
244 if (GRAPHICS_VER(i915) != 2) in intel_gt_clear_error_registers()
247 if (GRAPHICS_VER(i915) < 4) in intel_gt_clear_error_registers()
269 } else if (GRAPHICS_VER(i915) >= 12) { in intel_gt_clear_error_registers()
272 } else if (GRAPHICS_VER(i915) >= 8) { in intel_gt_clear_error_registers()
275 } else if (GRAPHICS_VER(i915) >= 6) { in intel_gt_clear_error_registers()
349 if (GRAPHICS_VER(gt->i915) >= 12) { in gen8_check_faults()
[all …]
Dintel_engine_cs.c284 switch (GRAPHICS_VER(gt->i915)) { in intel_engine_context_size()
286 MISSING_CASE(GRAPHICS_VER(gt->i915)); in intel_engine_context_size()
321 GRAPHICS_VER(gt->i915), cxt_size * 64, in intel_engine_context_size()
338 if (GRAPHICS_VER(gt->i915) < 8) in intel_engine_context_size()
350 if (GRAPHICS_VER(i915) >= bases[i].graphics_ver) in __engine_mmio_base()
377 if (GRAPHICS_VER(engine->i915) < 6 && engine->class != RENDER_CLASS) in intel_engine_set_hwsp_writemask()
380 if (GRAPHICS_VER(engine->i915) >= 3) in intel_engine_set_hwsp_writemask()
485 engine->reset_domain = get_reset_domain(GRAPHICS_VER(gt->i915), in intel_engine_setup()
529 if (GRAPHICS_VER(i915) == 12 && (engine->flags & I915_ENGINE_HAS_RCS_REG_STATE)) in intel_engine_setup()
631 if (GRAPHICS_VER(i915) >= 11 || in __setup_engine_capabilities()
[all …]
Dintel_rps.c227 if (GRAPHICS_VER(gt->i915) >= 11) in rps_reset_interrupts()
660 if (GRAPHICS_VER(rps_to_i915(rps)) >= 9) { in rps_limits()
728 (GRAPHICS_VER(gt->i915) > 9 ? 0 : GEN6_RP_MEDIA_TURBO) | in rps_set_power()
803 if (GRAPHICS_VER(i915) >= 9) in gen6_rps_set()
844 else if (GRAPHICS_VER(i915) >= 6) in rps_set()
851 if (update && GRAPHICS_VER(i915) >= 6) in rps_set()
885 if (GRAPHICS_VER(rps_to_i915(rps)) == 5) in intel_rps_unpark()
1131 if (GRAPHICS_VER(i915) >= 10) in __gen6_rps_get_freq_caps()
1140 if (IS_GEN9_BC(i915) || GRAPHICS_VER(i915) >= 11) { in __gen6_rps_get_freq_caps()
1185 IS_GEN9_BC(i915) || GRAPHICS_VER(i915) >= 11) { in gen6_rps_init()
[all …]
Dintel_workarounds.c928 if (GRAPHICS_VER(i915) >= 12) in __intel_engine_init_ctx_wa()
944 else if (GRAPHICS_VER(i915) == 12) in __intel_engine_init_ctx_wa()
946 else if (GRAPHICS_VER(i915) == 11) in __intel_engine_init_ctx_wa()
962 else if (GRAPHICS_VER(i915) == 7) in __intel_engine_init_ctx_wa()
964 else if (GRAPHICS_VER(i915) == 6) in __intel_engine_init_ctx_wa()
966 else if (GRAPHICS_VER(i915) < 8) in __intel_engine_init_ctx_wa()
969 MISSING_CASE(GRAPHICS_VER(i915)); in __intel_engine_init_ctx_wa()
1122 GEM_BUG_ON(GRAPHICS_VER(i915) != 9); in gen9_wa_init_mcr()
1282 GEM_BUG_ON(GRAPHICS_VER(gt->i915) < 11); in icl_wa_init_mcr()
1839 else if (GRAPHICS_VER(i915) == 12) in gt_init_workarounds()
[all …]
Dselftest_engine_cs.c46 if (GRAPHICS_VER(i915) == 5 || IS_G4X(i915)) in timestamp_reg()
65 if (GRAPHICS_VER(rq->i915) >= 8) in write_timestamp()
138 if (GRAPHICS_VER(gt->i915) < 4) /* Any CS_TIMESTAMP? */ in perf_mi_bb_start()
148 if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0) in perf_mi_bb_start()
265 if (GRAPHICS_VER(gt->i915) < 4) /* Any CS_TIMESTAMP? */ in perf_mi_noop()
275 if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0) in perf_mi_noop()
Dintel_wopcm.c86 if (GRAPHICS_VER(i915) >= 11) in intel_wopcm_init_early()
98 else if (GRAPHICS_VER(i915) >= 11) in context_reserved_size()
150 if (GRAPHICS_VER(i915) == 9 && !gen9_check_dword_gap(i915, guc_wopcm_base, in check_hw_restrictions()
154 if (GRAPHICS_VER(i915) == 9 && in check_hw_restrictions()
Dintel_gtt.c426 else if (GRAPHICS_VER(i915) >= 9 && GRAPHICS_VER(i915) <= 11) in gtt_write_workarounds()
443 GRAPHICS_VER(i915) <= 10) in gtt_write_workarounds()
592 if (GRAPHICS_VER(i915) >= 9) in bdw_setup_private_ppat()
642 GEM_BUG_ON(GRAPHICS_VER(i915) < 8); in setup_private_pat()
653 else if (GRAPHICS_VER(i915) >= 12) in setup_private_pat()
655 else if (GRAPHICS_VER(i915) >= 11) in setup_private_pat()
Dselftest_gt_pm.c46 if (GRAPHICS_VER(i915) == 5 || IS_G4X(i915)) in read_timestamp()
91 if (GRAPHICS_VER(gt->i915) < 4) /* Any CS_TIMESTAMP? */ in live_gt_clocks()
103 if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0) in live_gt_clocks()
/linux-6.6.21/drivers/gpu/drm/i915/soc/
Dintel_gmch.c39 int reg = GRAPHICS_VER(i915) >= 4 ? MCHBAR_I965 : MCHBAR_I915; in intel_alloc_mchbar_resource()
44 if (GRAPHICS_VER(i915) >= 4) in intel_alloc_mchbar_resource()
69 if (GRAPHICS_VER(i915) >= 4) in intel_alloc_mchbar_resource()
81 int mchbar_reg = GRAPHICS_VER(i915) >= 4 ? MCHBAR_I965 : MCHBAR_I915; in intel_gmch_bar_setup()
119 int mchbar_reg = GRAPHICS_VER(i915) >= 4 ? MCHBAR_I965 : MCHBAR_I915; in intel_gmch_bar_teardown()
Dintel_pch.c17 drm_WARN_ON(&dev_priv->drm, GRAPHICS_VER(dev_priv) != 5); in intel_pch_type()
22 GRAPHICS_VER(dev_priv) != 6 && !IS_IVYBRIDGE(dev_priv)); in intel_pch_type()
27 GRAPHICS_VER(dev_priv) != 6 && !IS_IVYBRIDGE(dev_priv)); in intel_pch_type()
195 else if (GRAPHICS_VER(dev_priv) == 6 || IS_IVYBRIDGE(dev_priv)) in intel_virt_detect_pch()
197 else if (GRAPHICS_VER(dev_priv) == 5) in intel_virt_detect_pch()
Dintel_dram.c184 else if (GRAPHICS_VER(i915) == 5) in detect_mem_freq()
278 if (GRAPHICS_VER(i915) >= 11) { in skl_dram_get_dimm_info()
551 if (GRAPHICS_VER(dev_priv) == 12) { in icl_pcode_read_mem_global_info()
662 if (GRAPHICS_VER(i915) < 9 || IS_DG2(i915) || !HAS_DISPLAY(i915)) in intel_dram_detect()
673 else if (GRAPHICS_VER(i915) >= 12) in intel_dram_detect()
675 else if (GRAPHICS_VER(i915) >= 11) in intel_dram_detect()
704 if (!(IS_HASWELL(i915) || IS_BROADWELL(i915) || GRAPHICS_VER(i915) >= 9)) in intel_dram_edram_detect()
718 if (GRAPHICS_VER(i915) < 9) in intel_dram_edram_detect()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Digt_spinner.c162 if (GRAPHICS_VER(rq->i915) >= 8) { in igt_spinner_create_request()
166 } else if (GRAPHICS_VER(rq->i915) >= 6) { in igt_spinner_create_request()
170 } else if (GRAPHICS_VER(rq->i915) >= 4) { in igt_spinner_create_request()
182 if (GRAPHICS_VER(rq->i915) >= 8) in igt_spinner_create_request()
186 else if (GRAPHICS_VER(rq->i915) >= 6) in igt_spinner_create_request()
204 if (GRAPHICS_VER(rq->i915) <= 5) in igt_spinner_create_request()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_tiling.c67 if (GRAPHICS_VER(i915) >= 4) { in i915_gem_fence_size()
74 if (GRAPHICS_VER(i915) == 3) in i915_gem_fence_size()
107 if (GRAPHICS_VER(i915) >= 4) in i915_gem_fence_alignment()
135 if (GRAPHICS_VER(i915) >= 7) { in i915_tiling_ok()
138 } else if (GRAPHICS_VER(i915) >= 4) { in i915_tiling_ok()
149 if (GRAPHICS_VER(i915) == 2 || in i915_tiling_ok()
Di915_gemfs.c32 if (GRAPHICS_VER(i915) < 11 && !i915_vtd_active(i915)) in i915_gemfs_init()
53 GRAPHICS_VER(i915) >= 11 ? " on this platform!" : in i915_gemfs_init()
Di915_gem_stolen.c50 if (GRAPHICS_VER(i915) >= 8 && start < 4096) in i915_gem_stolen_insert_node_in_range()
100 if (GRAPHICS_VER(i915) <= 4 && in adjust_stolen()
107 if (GRAPHICS_VER(i915) == 4) in adjust_stolen()
183 if (!r && GRAPHICS_VER(i915) != 3) { in request_smem_stolen()
224 drm_WARN(&i915->drm, GRAPHICS_VER(i915) == 5, in g4x_get_stolen_reserved()
435 if (GRAPHICS_VER(i915) >= 11) { in init_reserved_stolen()
438 } else if (GRAPHICS_VER(i915) >= 8) { in init_reserved_stolen()
445 } else if (GRAPHICS_VER(i915) >= 7) { in init_reserved_stolen()
452 } else if (GRAPHICS_VER(i915) >= 6) { in init_reserved_stolen()
455 } else if (GRAPHICS_VER(i915) >= 5 || IS_G4X(i915)) { in init_reserved_stolen()
[all …]

12345