blob: 46875c2bcc3113de6e8dea0df32e359753752272 [file] [log] [blame]
Jani Nikula22554022016-06-21 14:49:00 +03001===========================
2 drm/i915 Intel GFX Driver
3===========================
Jani Nikulaca00c2b2016-06-21 14:48:58 +03004
5The drm/i915 driver supports all (with the exception of some very early
6models) integrated GFX chipsets with both Intel display and rendering
7blocks. This excludes a set of SoC platforms with an SGX rendering unit,
8those have basic support through the gma500 drm driver.
9
10Core Driver Infrastructure
Jani Nikula22554022016-06-21 14:49:00 +030011==========================
Jani Nikulaca00c2b2016-06-21 14:48:58 +030012
13This section covers core driver infrastructure used by both the display
14and the GEM parts of the driver.
15
16Runtime Power Management
Jani Nikula22554022016-06-21 14:49:00 +030017------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +030018
19.. kernel-doc:: drivers/gpu/drm/i915/intel_runtime_pm.c
20 :doc: runtime pm
21
22.. kernel-doc:: drivers/gpu/drm/i915/intel_runtime_pm.c
23 :internal:
24
25.. kernel-doc:: drivers/gpu/drm/i915/intel_uncore.c
26 :internal:
27
28Interrupt Handling
Jani Nikula22554022016-06-21 14:49:00 +030029------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +030030
31.. kernel-doc:: drivers/gpu/drm/i915/i915_irq.c
32 :doc: interrupt handling
33
34.. kernel-doc:: drivers/gpu/drm/i915/i915_irq.c
35 :functions: intel_irq_init intel_irq_init_hw intel_hpd_init
36
37.. kernel-doc:: drivers/gpu/drm/i915/i915_irq.c
38 :functions: intel_runtime_pm_disable_interrupts
39
40.. kernel-doc:: drivers/gpu/drm/i915/i915_irq.c
41 :functions: intel_runtime_pm_enable_interrupts
42
43Intel GVT-g Guest Support(vGPU)
Jani Nikula22554022016-06-21 14:49:00 +030044-------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +030045
46.. kernel-doc:: drivers/gpu/drm/i915/i915_vgpu.c
47 :doc: Intel GVT-g guest support
48
49.. kernel-doc:: drivers/gpu/drm/i915/i915_vgpu.c
50 :internal:
51
Zhenyu Wang22681c72016-10-19 14:40:59 +080052Intel GVT-g Host Support(vGPU device model)
53-------------------------------------------
54
55.. kernel-doc:: drivers/gpu/drm/i915/intel_gvt.c
56 :doc: Intel GVT-g host support
57
58.. kernel-doc:: drivers/gpu/drm/i915/intel_gvt.c
59 :internal:
60
Jani Nikulaca00c2b2016-06-21 14:48:58 +030061Display Hardware Handling
Jani Nikula22554022016-06-21 14:49:00 +030062=========================
Jani Nikulaca00c2b2016-06-21 14:48:58 +030063
64This section covers everything related to the display hardware including
65the mode setting infrastructure, plane, sprite and cursor handling and
66display, output probing and related topics.
67
68Mode Setting Infrastructure
Jani Nikula22554022016-06-21 14:49:00 +030069---------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +030070
71The i915 driver is thus far the only DRM driver which doesn't use the
72common DRM helper code to implement mode setting sequences. Thus it has
73its own tailor-made infrastructure for executing a display configuration
74change.
75
76Frontbuffer Tracking
Jani Nikula22554022016-06-21 14:49:00 +030077--------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +030078
79.. kernel-doc:: drivers/gpu/drm/i915/intel_frontbuffer.c
80 :doc: frontbuffer tracking
81
Chris Wilson5d723d72016-08-04 16:32:35 +010082.. kernel-doc:: drivers/gpu/drm/i915/intel_frontbuffer.h
83 :internal:
84
Jani Nikulaca00c2b2016-06-21 14:48:58 +030085.. kernel-doc:: drivers/gpu/drm/i915/intel_frontbuffer.c
86 :internal:
87
88.. kernel-doc:: drivers/gpu/drm/i915/i915_gem.c
89 :functions: i915_gem_track_fb
90
91Display FIFO Underrun Reporting
Jani Nikula22554022016-06-21 14:49:00 +030092-------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +030093
94.. kernel-doc:: drivers/gpu/drm/i915/intel_fifo_underrun.c
95 :doc: fifo underrun handling
96
97.. kernel-doc:: drivers/gpu/drm/i915/intel_fifo_underrun.c
98 :internal:
99
100Plane Configuration
Jani Nikula22554022016-06-21 14:49:00 +0300101-------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300102
103This section covers plane configuration and composition with the primary
104plane, sprites, cursors and overlays. This includes the infrastructure
105to do atomic vsync'ed updates of all this state and also tightly coupled
106topics like watermark setup and computation, framebuffer compression and
107panel self refresh.
108
109Atomic Plane Helpers
Jani Nikula22554022016-06-21 14:49:00 +0300110--------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300111
112.. kernel-doc:: drivers/gpu/drm/i915/intel_atomic_plane.c
113 :doc: atomic plane helpers
114
115.. kernel-doc:: drivers/gpu/drm/i915/intel_atomic_plane.c
116 :internal:
117
118Output Probing
Jani Nikula22554022016-06-21 14:49:00 +0300119--------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300120
121This section covers output probing and related infrastructure like the
122hotplug interrupt storm detection and mitigation code. Note that the
123i915 driver still uses most of the common DRM helper code for output
124probing, so those sections fully apply.
125
126Hotplug
Jani Nikula22554022016-06-21 14:49:00 +0300127-------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300128
129.. kernel-doc:: drivers/gpu/drm/i915/intel_hotplug.c
130 :doc: Hotplug
131
132.. kernel-doc:: drivers/gpu/drm/i915/intel_hotplug.c
133 :internal:
134
135High Definition Audio
Jani Nikula22554022016-06-21 14:49:00 +0300136---------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300137
138.. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c
139 :doc: High Definition Audio over HDMI and Display Port
140
141.. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c
142 :internal:
143
144.. kernel-doc:: include/drm/i915_component.h
145 :internal:
146
Takashi Iwaieacc8da2017-01-26 10:50:43 +0100147Intel HDMI LPE Audio Support
148----------------------------
149
150.. kernel-doc:: drivers/gpu/drm/i915/intel_lpe_audio.c
151 :doc: LPE Audio integration for HDMI or DP playback
152
153.. kernel-doc:: drivers/gpu/drm/i915/intel_lpe_audio.c
154 :internal:
155
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300156Panel Self Refresh PSR (PSR/SRD)
Jani Nikula22554022016-06-21 14:49:00 +0300157--------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300158
159.. kernel-doc:: drivers/gpu/drm/i915/intel_psr.c
160 :doc: Panel Self Refresh (PSR/SRD)
161
162.. kernel-doc:: drivers/gpu/drm/i915/intel_psr.c
163 :internal:
164
165Frame Buffer Compression (FBC)
Jani Nikula22554022016-06-21 14:49:00 +0300166------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300167
168.. kernel-doc:: drivers/gpu/drm/i915/intel_fbc.c
169 :doc: Frame Buffer Compression (FBC)
170
171.. kernel-doc:: drivers/gpu/drm/i915/intel_fbc.c
172 :internal:
173
174Display Refresh Rate Switching (DRRS)
Jani Nikula22554022016-06-21 14:49:00 +0300175-------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300176
177.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
178 :doc: Display Refresh Rate Switching (DRRS)
179
180.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
181 :functions: intel_dp_set_drrs_state
182
183.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
184 :functions: intel_edp_drrs_enable
185
186.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
187 :functions: intel_edp_drrs_disable
188
189.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
190 :functions: intel_edp_drrs_invalidate
191
192.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
193 :functions: intel_edp_drrs_flush
194
195.. kernel-doc:: drivers/gpu/drm/i915/intel_dp.c
196 :functions: intel_dp_drrs_init
197
198DPIO
Jani Nikula22554022016-06-21 14:49:00 +0300199----
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300200
Ander Conselvan de Oliveiraf38861b2016-10-06 19:22:18 +0300201.. kernel-doc:: drivers/gpu/drm/i915/intel_dpio_phy.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300202 :doc: DPIO
203
204CSR firmware support for DMC
Jani Nikula22554022016-06-21 14:49:00 +0300205----------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300206
207.. kernel-doc:: drivers/gpu/drm/i915/intel_csr.c
208 :doc: csr support for dmc
209
210.. kernel-doc:: drivers/gpu/drm/i915/intel_csr.c
211 :internal:
212
213Video BIOS Table (VBT)
Jani Nikula22554022016-06-21 14:49:00 +0300214----------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300215
216.. kernel-doc:: drivers/gpu/drm/i915/intel_bios.c
217 :doc: Video BIOS Table (VBT)
218
219.. kernel-doc:: drivers/gpu/drm/i915/intel_bios.c
220 :internal:
221
222.. kernel-doc:: drivers/gpu/drm/i915/intel_vbt_defs.h
223 :internal:
224
Ville Syrjälä7ff89ca2017-02-07 20:33:05 +0200225Display clocks
226--------------
227
228.. kernel-doc:: drivers/gpu/drm/i915/intel_cdclk.c
229 :doc: CDCLK / RAWCLK
230
231.. kernel-doc:: drivers/gpu/drm/i915/intel_cdclk.c
232 :internal:
233
Ander Conselvan de Oliveira294591c2016-12-29 17:22:11 +0200234Display PLLs
235------------
236
237.. kernel-doc:: drivers/gpu/drm/i915/intel_dpll_mgr.c
238 :doc: Display PLLs
239
240.. kernel-doc:: drivers/gpu/drm/i915/intel_dpll_mgr.c
241 :internal:
242
243.. kernel-doc:: drivers/gpu/drm/i915/intel_dpll_mgr.h
244 :internal:
245
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300246Memory Management and Command Submission
Jani Nikula22554022016-06-21 14:49:00 +0300247========================================
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300248
249This sections covers all things related to the GEM implementation in the
250i915 driver.
251
252Batchbuffer Parsing
Jani Nikula22554022016-06-21 14:49:00 +0300253-------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300254
255.. kernel-doc:: drivers/gpu/drm/i915/i915_cmd_parser.c
256 :doc: batch buffer command parser
257
258.. kernel-doc:: drivers/gpu/drm/i915/i915_cmd_parser.c
259 :internal:
260
261Batchbuffer Pools
Jani Nikula22554022016-06-21 14:49:00 +0300262-----------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300263
264.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_batch_pool.c
265 :doc: batch pool
266
267.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_batch_pool.c
268 :internal:
269
270Logical Rings, Logical Ring Contexts and Execlists
Jani Nikula22554022016-06-21 14:49:00 +0300271--------------------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300272
273.. kernel-doc:: drivers/gpu/drm/i915/intel_lrc.c
274 :doc: Logical Rings, Logical Ring Contexts and Execlists
275
276.. kernel-doc:: drivers/gpu/drm/i915/intel_lrc.c
277 :internal:
278
279Global GTT views
Jani Nikula22554022016-06-21 14:49:00 +0300280----------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300281
282.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_gtt.c
283 :doc: Global GTT views
284
285.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_gtt.c
286 :internal:
287
288GTT Fences and Swizzling
Jani Nikula22554022016-06-21 14:49:00 +0300289------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300290
Daniel Vetterebc896d2016-11-14 12:58:17 +0100291.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_fence_reg.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300292 :internal:
293
294Global GTT Fence Handling
Jani Nikula22554022016-06-21 14:49:00 +0300295~~~~~~~~~~~~~~~~~~~~~~~~~
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300296
Daniel Vetterebc896d2016-11-14 12:58:17 +0100297.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_fence_reg.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300298 :doc: fence register handling
299
300Hardware Tiling and Swizzling Details
Jani Nikula22554022016-06-21 14:49:00 +0300301~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300302
Daniel Vetterebc896d2016-11-14 12:58:17 +0100303.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_fence_reg.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300304 :doc: tiling swizzling details
305
306Object Tiling IOCTLs
Jani Nikula22554022016-06-21 14:49:00 +0300307--------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300308
309.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_tiling.c
310 :internal:
311
312.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_tiling.c
313 :doc: buffer object tiling
314
315Buffer Object Eviction
Jani Nikula22554022016-06-21 14:49:00 +0300316----------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300317
318This section documents the interface functions for evicting buffer
319objects to make space available in the virtual gpu address spaces. Note
320that this is mostly orthogonal to shrinking buffer objects caches, which
321has the goal to make main memory (shared with the gpu through the
322unified memory architecture) available.
323
324.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_evict.c
325 :internal:
326
327Buffer Object Memory Shrinking
Jani Nikula22554022016-06-21 14:49:00 +0300328------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300329
330This section documents the interface function for shrinking memory usage
331of buffer object caches. Shrinking is used to make main memory
332available. Note that this is mostly orthogonal to evicting buffer
333objects, which has the goal to make space in gpu virtual address spaces.
334
335.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_shrinker.c
336 :internal:
337
338GuC
Jani Nikula22554022016-06-21 14:49:00 +0300339===
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300340
341GuC-specific firmware loader
Jani Nikula22554022016-06-21 14:49:00 +0300342----------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300343
344.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_loader.c
345 :doc: GuC-specific firmware loader
346
347.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_loader.c
348 :internal:
349
350GuC-based command submission
Jani Nikula22554022016-06-21 14:49:00 +0300351----------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300352
353.. kernel-doc:: drivers/gpu/drm/i915/i915_guc_submission.c
354 :doc: GuC-based command submission
355
356.. kernel-doc:: drivers/gpu/drm/i915/i915_guc_submission.c
357 :internal:
358
359GuC Firmware Layout
Jani Nikula22554022016-06-21 14:49:00 +0300360-------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300361
362.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_fwif.h
363 :doc: GuC Firmware Layout
364
365Tracing
Jani Nikula22554022016-06-21 14:49:00 +0300366=======
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300367
368This sections covers all things related to the tracepoints implemented
369in the i915 driver.
370
371i915_ppgtt_create and i915_ppgtt_release
Jani Nikula22554022016-06-21 14:49:00 +0300372----------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300373
374.. kernel-doc:: drivers/gpu/drm/i915/i915_trace.h
375 :doc: i915_ppgtt_create and i915_ppgtt_release tracepoints
376
377i915_context_create and i915_context_free
Jani Nikula22554022016-06-21 14:49:00 +0300378-----------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300379
380.. kernel-doc:: drivers/gpu/drm/i915/i915_trace.h
381 :doc: i915_context_create and i915_context_free tracepoints
382
383switch_mm
Jani Nikula22554022016-06-21 14:49:00 +0300384---------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300385
386.. kernel-doc:: drivers/gpu/drm/i915/i915_trace.h
387 :doc: switch_mm tracepoint
388
Robert Bragg16d98b32016-12-07 21:40:33 +0000389Perf
390====
391
392Overview
393--------
394.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
395 :doc: i915 Perf Overview
396
397Comparison with Core Perf
398-------------------------
399.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
400 :doc: i915 Perf History and Comparison with Core Perf
401
402i915 Driver Entry Points
403------------------------
404
405This section covers the entrypoints exported outside of i915_perf.c to
406integrate with drm/i915 and to handle the `DRM_I915_PERF_OPEN` ioctl.
407
408.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
409 :functions: i915_perf_init
410.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
411 :functions: i915_perf_fini
412.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
413 :functions: i915_perf_register
414.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
415 :functions: i915_perf_unregister
416.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
417 :functions: i915_perf_open_ioctl
418.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
419 :functions: i915_perf_release
Lionel Landwerlinf89823c2017-08-03 18:05:50 +0100420.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
421 :functions: i915_perf_add_config_ioctl
422.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
423 :functions: i915_perf_remove_config_ioctl
Robert Bragg16d98b32016-12-07 21:40:33 +0000424
425i915 Perf Stream
426----------------
427
428This section covers the stream-semantics-agnostic structures and functions
429for representing an i915 perf stream FD and associated file operations.
430
431.. kernel-doc:: drivers/gpu/drm/i915/i915_drv.h
432 :functions: i915_perf_stream
433.. kernel-doc:: drivers/gpu/drm/i915/i915_drv.h
434 :functions: i915_perf_stream_ops
435
436.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
437 :functions: read_properties_unlocked
438.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
439 :functions: i915_perf_open_ioctl_locked
440.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
441 :functions: i915_perf_destroy_locked
442.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
443 :functions: i915_perf_read
444.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
445 :functions: i915_perf_ioctl
446.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
447 :functions: i915_perf_enable_locked
448.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
449 :functions: i915_perf_disable_locked
450.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
451 :functions: i915_perf_poll
452.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
453 :functions: i915_perf_poll_locked
454
455i915 Perf Observation Architecture Stream
456-----------------------------------------
457
458.. kernel-doc:: drivers/gpu/drm/i915/i915_drv.h
459 :functions: i915_oa_ops
460
461.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
462 :functions: i915_oa_stream_init
463.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
464 :functions: i915_oa_read
465.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
466 :functions: i915_oa_stream_enable
467.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
468 :functions: i915_oa_stream_disable
469.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
470 :functions: i915_oa_wait_unlocked
471.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
472 :functions: i915_oa_poll_wait
473
474All i915 Perf Internals
475-----------------------
476
477This section simply includes all currently documented i915 perf internals, in
478no particular order, but may include some more minor utilities or platform
479specific details than found in the more high-level sections.
480
481.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
482 :internal:
483
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300484.. WARNING: DOCPROC directive not supported: !Cdrivers/gpu/drm/i915/i915_irq.c