blob: 34d22f27570884cd108474403f0f3fc83736f49b [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
Kevin Rogovinfd5ff5f2018-04-06 11:05:55 +0300252Intel GPU Basics
253----------------
254
255An Intel GPU has multiple engines. There are several engine types.
256
257- RCS engine is for rendering 3D and performing compute, this is named
258 `I915_EXEC_RENDER` in user space.
259- BCS is a blitting (copy) engine, this is named `I915_EXEC_BLT` in user
260 space.
261- VCS is a video encode and decode engine, this is named `I915_EXEC_BSD`
262 in user space
263- VECS is video enhancement engine, this is named `I915_EXEC_VEBOX` in user
264 space.
265- The enumeration `I915_EXEC_DEFAULT` does not refer to specific engine;
266 instead it is to be used by user space to specify a default rendering
267 engine (for 3D) that may or may not be the same as RCS.
268
269The Intel GPU family is a family of integrated GPU's using Unified
270Memory Access. For having the GPU "do work", user space will feed the
271GPU batch buffers via one of the ioctls `DRM_IOCTL_I915_GEM_EXECBUFFER2`
272or `DRM_IOCTL_I915_GEM_EXECBUFFER2_WR`. Most such batchbuffers will
273instruct the GPU to perform work (for example rendering) and that work
274needs memory from which to read and memory to which to write. All memory
275is encapsulated within GEM buffer objects (usually created with the ioctl
276`DRM_IOCTL_I915_GEM_CREATE`). An ioctl providing a batchbuffer for the GPU
277to create will also list all GEM buffer objects that the batchbuffer reads
278and/or writes. For implementation details of memory management see
279`GEM BO Management Implementation Details`_.
280
281The i915 driver allows user space to create a context via the ioctl
282`DRM_IOCTL_I915_GEM_CONTEXT_CREATE` which is identified by a 32-bit
283integer. Such a context should be viewed by user-space as -loosely-
284analogous to the idea of a CPU process of an operating system. The i915
285driver guarantees that commands issued to a fixed context are to be
286executed so that writes of a previously issued command are seen by
287reads of following commands. Actions issued between different contexts
288(even if from the same file descriptor) are NOT given that guarantee
289and the only way to synchronize across contexts (even from the same
290file descriptor) is through the use of fences. At least as far back as
291Gen4, also have that a context carries with it a GPU HW context;
292the HW context is essentially (most of atleast) the state of a GPU.
293In addition to the ordering guarantees, the kernel will restore GPU
294state via HW context when commands are issued to a context, this saves
295user space the need to restore (most of atleast) the GPU state at the
296start of each batchbuffer. The non-deprecated ioctls to submit batchbuffer
297work can pass that ID (in the lower bits of drm_i915_gem_execbuffer2::rsvd1)
298to identify what context to use with the command.
299
300The GPU has its own memory management and address space. The kernel
301driver maintains the memory translation table for the GPU. For older
302GPUs (i.e. those before Gen8), there is a single global such translation
303table, a global Graphics Translation Table (GTT). For newer generation
304GPUs each context has its own translation table, called Per-Process
305Graphics Translation Table (PPGTT). Of important note, is that although
306PPGTT is named per-process it is actually per context. When user space
307submits a batchbuffer, the kernel walks the list of GEM buffer objects
308used by the batchbuffer and guarantees that not only is the memory of
309each such GEM buffer object resident but it is also present in the
310(PP)GTT. If the GEM buffer object is not yet placed in the (PP)GTT,
311then it is given an address. Two consequences of this are: the kernel
312needs to edit the batchbuffer submitted to write the correct value of
313the GPU address when a GEM BO is assigned a GPU address and the kernel
314might evict a different GEM BO from the (PP)GTT to make address room
315for another GEM BO. Consequently, the ioctls submitting a batchbuffer
316for execution also include a list of all locations within buffers that
317refer to GPU-addresses so that the kernel can edit the buffer correctly.
318This process is dubbed relocation.
319
320GEM BO Management Implementation Details
321----------------------------------------
322
323.. kernel-doc:: drivers/gpu/drm/i915/i915_vma.h
324 :doc: Virtual Memory Address
325
326Buffer Object Eviction
327----------------------
328
329This section documents the interface functions for evicting buffer
330objects to make space available in the virtual gpu address spaces. Note
331that this is mostly orthogonal to shrinking buffer objects caches, which
332has the goal to make main memory (shared with the gpu through the
333unified memory architecture) available.
334
335.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_evict.c
336 :internal:
337
338Buffer Object Memory Shrinking
339------------------------------
340
341This section documents the interface function for shrinking memory usage
342of buffer object caches. Shrinking is used to make main memory
343available. Note that this is mostly orthogonal to evicting buffer
344objects, which has the goal to make space in gpu virtual address spaces.
345
346.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_shrinker.c
347 :internal:
348
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300349Batchbuffer Parsing
Jani Nikula22554022016-06-21 14:49:00 +0300350-------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300351
352.. kernel-doc:: drivers/gpu/drm/i915/i915_cmd_parser.c
353 :doc: batch buffer command parser
354
355.. kernel-doc:: drivers/gpu/drm/i915/i915_cmd_parser.c
356 :internal:
357
358Batchbuffer Pools
Jani Nikula22554022016-06-21 14:49:00 +0300359-----------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300360
361.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_batch_pool.c
362 :doc: batch pool
363
364.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_batch_pool.c
365 :internal:
366
Kevin Rogovin4d42db12018-04-06 11:05:56 +0300367User Batchbuffer Execution
368--------------------------
369
370.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_execbuffer.c
371 :doc: User command execution
372
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300373Logical Rings, Logical Ring Contexts and Execlists
Jani Nikula22554022016-06-21 14:49:00 +0300374--------------------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300375
376.. kernel-doc:: drivers/gpu/drm/i915/intel_lrc.c
377 :doc: Logical Rings, Logical Ring Contexts and Execlists
378
379.. kernel-doc:: drivers/gpu/drm/i915/intel_lrc.c
380 :internal:
381
382Global GTT views
Jani Nikula22554022016-06-21 14:49:00 +0300383----------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300384
385.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_gtt.c
386 :doc: Global GTT views
387
388.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_gtt.c
389 :internal:
390
391GTT Fences and Swizzling
Jani Nikula22554022016-06-21 14:49:00 +0300392------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300393
Daniel Vetterebc896d2016-11-14 12:58:17 +0100394.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_fence_reg.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300395 :internal:
396
397Global GTT Fence Handling
Jani Nikula22554022016-06-21 14:49:00 +0300398~~~~~~~~~~~~~~~~~~~~~~~~~
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300399
Daniel Vetterebc896d2016-11-14 12:58:17 +0100400.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_fence_reg.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300401 :doc: fence register handling
402
403Hardware Tiling and Swizzling Details
Jani Nikula22554022016-06-21 14:49:00 +0300404~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300405
Daniel Vetterebc896d2016-11-14 12:58:17 +0100406.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_fence_reg.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300407 :doc: tiling swizzling details
408
409Object Tiling IOCTLs
Jani Nikula22554022016-06-21 14:49:00 +0300410--------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300411
412.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_tiling.c
413 :internal:
414
415.. kernel-doc:: drivers/gpu/drm/i915/i915_gem_tiling.c
416 :doc: buffer object tiling
417
Yaodong Lifbe6f8f2018-03-22 16:59:22 -0700418WOPCM
419=====
420
421WOPCM Layout
422------------
423
424.. kernel-doc:: drivers/gpu/drm/i915/intel_wopcm.c
425 :doc: WOPCM Layout
426
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300427GuC
Jani Nikula22554022016-06-21 14:49:00 +0300428===
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300429
430GuC-specific firmware loader
Jani Nikula22554022016-06-21 14:49:00 +0300431----------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300432
Randy Dunlap006c2332017-12-03 15:36:20 -0800433.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_fw.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300434 :internal:
435
436GuC-based command submission
Jani Nikula22554022016-06-21 14:49:00 +0300437----------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300438
Sagar Arun Kamblea2695742017-11-16 19:02:41 +0530439.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_submission.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300440 :doc: GuC-based command submission
441
Sagar Arun Kamblea2695742017-11-16 19:02:41 +0530442.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_submission.c
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300443 :internal:
444
445GuC Firmware Layout
Jani Nikula22554022016-06-21 14:49:00 +0300446-------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300447
448.. kernel-doc:: drivers/gpu/drm/i915/intel_guc_fwif.h
449 :doc: GuC Firmware Layout
450
Yaodong Lifbe6f8f2018-03-22 16:59:22 -0700451GuC Address Space
452-----------------
453
454.. kernel-doc:: drivers/gpu/drm/i915/intel_guc.c
455 :doc: GuC Address Space
456
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300457Tracing
Jani Nikula22554022016-06-21 14:49:00 +0300458=======
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300459
460This sections covers all things related to the tracepoints implemented
461in the i915 driver.
462
463i915_ppgtt_create and i915_ppgtt_release
Jani Nikula22554022016-06-21 14:49:00 +0300464----------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300465
466.. kernel-doc:: drivers/gpu/drm/i915/i915_trace.h
467 :doc: i915_ppgtt_create and i915_ppgtt_release tracepoints
468
469i915_context_create and i915_context_free
Jani Nikula22554022016-06-21 14:49:00 +0300470-----------------------------------------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300471
472.. kernel-doc:: drivers/gpu/drm/i915/i915_trace.h
473 :doc: i915_context_create and i915_context_free tracepoints
474
475switch_mm
Jani Nikula22554022016-06-21 14:49:00 +0300476---------
Jani Nikulaca00c2b2016-06-21 14:48:58 +0300477
478.. kernel-doc:: drivers/gpu/drm/i915/i915_trace.h
479 :doc: switch_mm tracepoint
480
Robert Bragg16d98b32016-12-07 21:40:33 +0000481Perf
482====
483
484Overview
485--------
486.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
487 :doc: i915 Perf Overview
488
489Comparison with Core Perf
490-------------------------
491.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
492 :doc: i915 Perf History and Comparison with Core Perf
493
494i915 Driver Entry Points
495------------------------
496
497This section covers the entrypoints exported outside of i915_perf.c to
498integrate with drm/i915 and to handle the `DRM_I915_PERF_OPEN` ioctl.
499
500.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
501 :functions: i915_perf_init
502.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
503 :functions: i915_perf_fini
504.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
505 :functions: i915_perf_register
506.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
507 :functions: i915_perf_unregister
508.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
509 :functions: i915_perf_open_ioctl
510.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
511 :functions: i915_perf_release
Lionel Landwerlinf89823c2017-08-03 18:05:50 +0100512.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
513 :functions: i915_perf_add_config_ioctl
514.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
515 :functions: i915_perf_remove_config_ioctl
Robert Bragg16d98b32016-12-07 21:40:33 +0000516
517i915 Perf Stream
518----------------
519
520This section covers the stream-semantics-agnostic structures and functions
521for representing an i915 perf stream FD and associated file operations.
522
523.. kernel-doc:: drivers/gpu/drm/i915/i915_drv.h
524 :functions: i915_perf_stream
525.. kernel-doc:: drivers/gpu/drm/i915/i915_drv.h
526 :functions: i915_perf_stream_ops
527
528.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
529 :functions: read_properties_unlocked
530.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
531 :functions: i915_perf_open_ioctl_locked
532.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
533 :functions: i915_perf_destroy_locked
534.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
535 :functions: i915_perf_read
536.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
537 :functions: i915_perf_ioctl
538.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
539 :functions: i915_perf_enable_locked
540.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
541 :functions: i915_perf_disable_locked
542.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
543 :functions: i915_perf_poll
544.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
545 :functions: i915_perf_poll_locked
546
547i915 Perf Observation Architecture Stream
548-----------------------------------------
549
550.. kernel-doc:: drivers/gpu/drm/i915/i915_drv.h
551 :functions: i915_oa_ops
552
553.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
554 :functions: i915_oa_stream_init
555.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
556 :functions: i915_oa_read
557.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
558 :functions: i915_oa_stream_enable
559.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
560 :functions: i915_oa_stream_disable
561.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
562 :functions: i915_oa_wait_unlocked
563.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
564 :functions: i915_oa_poll_wait
565
566All i915 Perf Internals
567-----------------------
568
569This section simply includes all currently documented i915 perf internals, in
570no particular order, but may include some more minor utilities or platform
571specific details than found in the more high-level sections.
572
573.. kernel-doc:: drivers/gpu/drm/i915/i915_perf.c
574 :internal:
Jani Nikula1aa920e2017-08-10 15:29:44 +0300575
576Style
577=====
578
579The drm/i915 driver codebase has some style rules in addition to (and, in some
580cases, deviating from) the kernel coding style.
581
582Register macro definition style
583-------------------------------
584
585The style guide for ``i915_reg.h``.
586
587.. kernel-doc:: drivers/gpu/drm/i915/i915_reg.h
588 :doc: The i915 register macro definition style guide