forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'drm-intel-gt-next-2022-04-27' of git://anongit.freedesktop…
….org/drm/drm-intel into drm-next UAPI Changes: - GuC hwconfig support and query (John Harrison, Rodrigo Vivi, Tvrtko Ursulin) - Sysfs support for multi-tile devices (Andi Shyti, Sujaritha Sundaresan) - Per client GPU utilisation via fdinfo (Tvrtko Ursulin, Ashutosh Dixit) - Add DRM_I915_QUERY_GEOMETRY_SUBSLICES (Matt Atwood) Cross-subsystem Changes: - Add GSC as a MEI auxiliary device (Tomas Winkler, Alexander Usyskin) Core Changes: - Document fdinfo format specification (Tvrtko Ursulin) Driver Changes: - Fix prime_mmap to work when using LMEM (Gwan-gyeong Mun) - Fix vm open count and remove vma refcount (Thomas Hellström) - Fixup setting screen_size (Matthew Auld) - Opportunistically apply ALLOC_CONTIGIOUS (Matthew Auld) - Limit where we apply TTM_PL_FLAG_CONTIGUOUS (Matthew Auld) - Drop aux table invalidation on FlatCCS platforms (Matt Roper) - Add missing boundary check in vm_access (Mastan Katragadda) - Update topology dumps for Xe_HP (Matt Roper) - Add support for steered register writes (Matt Roper) - Add steering info to GuC register save/restore list (Daniele Ceraolo Spurio) - Small PCI BAR enabling (Matthew Auld, Akeem G Abodunrin, CQ Tang) - Add preemption changes for Wa_14015141709 (Akeem G Abodunrin) - Add logical mapping for video decode engines (Matthew Brost) - Don't evict unmappable VMAs when pinning with PIN_MAPPABLE (v2) (Vivek Kasireddy) - GuC error capture support (Alan Previn, Daniele Ceraolo Spurio) - avoid concurrent writes to aux_inv (Fei Yang) - Add Wa_22014226127 (José Roberto de Souza) - Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL (Matt Roper) - Evict and restore of compressed objects (Ramalingam C) - Update to GuC version 70.1.1 (John Harrison) - Add Wa_22011802037 force cs halt (Tilak Tangudu) - Enable Wa_22011802037 for gen12 GuC based platforms (Umesh Nerlige Ramappa) - GuC based workarounds for DG2 (Vinay Belgaumkar, John Harrison, Matthew Brost, José Roberto de Souza) - consider min_page_size when migrating (Matthew Auld) - Prep work for next GuC firmware release (John Harrison) - Support platforms with CCS engines but no RCS (Matt Roper, Stuart Summers) - Don't overallocate subslice storage (Matt Roper) - Reduce stack usage in debugfs due to SSEU (John Harrison) - Report steering details in debugfs (Matt Roper) - Refactor some x86-ism out to prepare for non-x86 builds (Michael Cheng) - add lmem_size modparam (CQ Tang) - Refactor for non-x86 driver builds (Casey Bowman) - Centralize computation of freq caps (Ashutosh Dixit) - Update dma_buf_ops.unmap_dma_buf callback to use drm_gem_unmap_dma_buf() (Gwan-gyeong Mun) - Limit the async bind to bind_async_flags (Matthew Auld) - Stop checking for NULL vma->obj (Matthew Auld) - Reduce overzealous alignment constraints for GGTT (Matthew Auld) - Remove GEN12_SFC_DONE_MAX from register defs header (Matt Roper) - Fix renamed struct field (Lucas De Marchi) - Do not return '0' if there is nothing to return (Andi Shyti) - fix i915_reg_t initialization (Jani Nikula) - move the migration sanity check (Matthew Auld) - handle more rounding in selftests (Matthew Auld) - Perf and i915 query kerneldoc updates (Matt Roper) - Use i915_probe_error instead of drm_err (Vinay Belgaumkar) - sanity check object size in the buddy allocator (Matthew Auld) - fixup selftests min_alignment usage (Matthew Auld) - tweak selftests misaligned_case (Matthew Auld) Signed-off-by: Dave Airlie <[email protected]> # Conflicts: # drivers/gpu/drm/i915/i915_vma.c From: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/Ymkfy8FjsG2JrodK@tursulin-mobl2
- Loading branch information
Showing
143 changed files
with
8,164 additions
and
2,333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
.. _drm-client-usage-stats: | ||
|
||
====================== | ||
DRM client usage stats | ||
====================== | ||
|
||
DRM drivers can choose to export partly standardised text output via the | ||
`fops->show_fdinfo()` as part of the driver specific file operations registered | ||
in the `struct drm_driver` object registered with the DRM core. | ||
|
||
One purpose of this output is to enable writing as generic as practicaly | ||
feasible `top(1)` like userspace monitoring tools. | ||
|
||
Given the differences between various DRM drivers the specification of the | ||
output is split between common and driver specific parts. Having said that, | ||
wherever possible effort should still be made to standardise as much as | ||
possible. | ||
|
||
File format specification | ||
========================= | ||
|
||
- File shall contain one key value pair per one line of text. | ||
- Colon character (`:`) must be used to delimit keys and values. | ||
- All keys shall be prefixed with `drm-`. | ||
- Whitespace between the delimiter and first non-whitespace character shall be | ||
ignored when parsing. | ||
- Neither keys or values are allowed to contain whitespace characters. | ||
- Numerical key value pairs can end with optional unit string. | ||
- Data type of the value is fixed as defined in the specification. | ||
|
||
Key types | ||
--------- | ||
|
||
1. Mandatory, fully standardised. | ||
2. Optional, fully standardised. | ||
3. Driver specific. | ||
|
||
Data types | ||
---------- | ||
|
||
- <uint> - Unsigned integer without defining the maximum value. | ||
- <str> - String excluding any above defined reserved characters or whitespace. | ||
|
||
Mandatory fully standardised keys | ||
--------------------------------- | ||
|
||
- drm-driver: <str> | ||
|
||
String shall contain the name this driver registered as via the respective | ||
`struct drm_driver` data structure. | ||
|
||
Optional fully standardised keys | ||
-------------------------------- | ||
|
||
- drm-pdev: <aaaa:bb.cc.d> | ||
|
||
For PCI devices this should contain the PCI slot address of the device in | ||
question. | ||
|
||
- drm-client-id: <uint> | ||
|
||
Unique value relating to the open DRM file descriptor used to distinguish | ||
duplicated and shared file descriptors. Conceptually the value should map 1:1 | ||
to the in kernel representation of `struct drm_file` instances. | ||
|
||
Uniqueness of the value shall be either globally unique, or unique within the | ||
scope of each device, in which case `drm-pdev` shall be present as well. | ||
|
||
Userspace should make sure to not double account any usage statistics by using | ||
the above described criteria in order to associate data to individual clients. | ||
|
||
- drm-engine-<str>: <uint> ns | ||
|
||
GPUs usually contain multiple execution engines. Each shall be given a stable | ||
and unique name (str), with possible values documented in the driver specific | ||
documentation. | ||
|
||
Value shall be in specified time units which the respective GPU engine spent | ||
busy executing workloads belonging to this client. | ||
|
||
Values are not required to be constantly monotonic if it makes the driver | ||
implementation easier, but are required to catch up with the previously reported | ||
larger value within a reasonable period. Upon observing a value lower than what | ||
was previously read, userspace is expected to stay with that larger previous | ||
value until a monotonic update is seen. | ||
|
||
- drm-engine-capacity-<str>: <uint> | ||
|
||
Engine identifier string must be the same as the one specified in the | ||
drm-engine-<str> tag and shall contain a greater than zero number in case the | ||
exported engine corresponds to a group of identical hardware engines. | ||
|
||
In the absence of this tag parser shall assume capacity of one. Zero capacity | ||
is not allowed. | ||
|
||
- drm-memory-<str>: <uint> [KiB|MiB] | ||
|
||
Each possible memory type which can be used to store buffer objects by the | ||
GPU in question shall be given a stable and unique name to be returned as the | ||
string here. | ||
|
||
Value shall reflect the amount of storage currently consumed by the buffer | ||
object belong to this client, in the respective memory region. | ||
|
||
Default unit shall be bytes with optional unit specifiers of 'KiB' or 'MiB' | ||
indicating kibi- or mebi-bytes. | ||
|
||
=============================== | ||
Driver specific implementations | ||
=============================== | ||
|
||
:ref:`i915-usage-stats` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.