-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Media Common] [VP] Enable pat index setting when creating bo
Enable pat index setting for perf close #1680
- Loading branch information
1 parent
3b5369d
commit cf94234
Showing
14 changed files
with
393 additions
and
117 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,45 +13,55 @@ $ make headers_install INSTALL_HDR_PATH=/path/to/install | |
|
||
The last update was done at the following kernel commit: | ||
|
||
commit 1cc064dce4ed0ff111b6d6cb06b3cccf1cba29f5 | ||
Author: Umesh Nerlige Ramappa <[email protected]> | ||
Date: Thu Mar 23 15:58:59 2023 -0700 | ||
|
||
drm/i915/perf: Add support for OA media units | ||
|
||
MTL introduces additional OA units dedicated to media use cases. Add | ||
support for programming these OA units by passing the media engine class | ||
and instance parameters. | ||
|
||
UMD specific changes for GPUvis support: | ||
https://patchwork.freedesktop.org/patch/522827/?series=114023 | ||
https://patchwork.freedesktop.org/patch/522822/?series=114023 | ||
https://patchwork.freedesktop.org/patch/522826/?series=114023 | ||
https://patchwork.freedesktop.org/patch/522828/?series=114023 | ||
https://patchwork.freedesktop.org/patch/522816/?series=114023 | ||
https://patchwork.freedesktop.org/patch/522825/?series=114023 | ||
|
||
v2: (Ashutosh) | ||
- check for IP_VER(12, 70) instead of MTL | ||
- remove PERF_GROUP_OAG comment in mtl_oa_base | ||
- remove oa_buffer.group | ||
- use engine->oa_group->type in engine_supports_oa_format | ||
- remove fw_domains and use FORCEWAKE_ALL | ||
- remove MPES/MPEC comment | ||
- s/xehp/mtl/ in b counter validation function name | ||
- remove engine_supports_oa in __oa_engine_group | ||
- remove warn_ON from __oam_engine_group | ||
- refactor oa_init_groups and oa_init_regs | ||
- assign g->type correctly | ||
- use enum oa_type definition | ||
|
||
v3: (Ashutosh) | ||
- Drop oa_unit_functional as engine_supports_oa is enough | ||
|
||
v4: | ||
- s/DRM_DEBUG/drm_dbg/ | ||
|
||
Signed-off-by: Umesh Nerlige Ramappa <[email protected]> | ||
Reviewed-by: Ashutosh Dixit <[email protected]> | ||
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] | ||
commit 81b1b599dfd71c958418dad586fa72c8d30d1065 | ||
Author: Fei Yang <[email protected]> | ||
Date: Tue Jun 6 12:00:42 2023 +0200 | ||
|
||
drm/i915: Allow user to set cache at BO creation | ||
|
||
To comply with the design that buffer objects shall have immutable | ||
cache setting through out their life cycle, {set, get}_caching ioctl's | ||
are no longer supported from MTL onward. With that change caching | ||
policy can only be set at object creation time. The current code | ||
applies a default (platform dependent) cache setting for all objects. | ||
However this is not optimal for performance tuning. The patch extends | ||
the existing gem_create uAPI to let user set PAT index for the object | ||
at creation time. | ||
The new extension is platform independent, so UMD's can switch to using | ||
this extension for older platforms as well, while {set, get}_caching are | ||
still supported on these legacy paltforms for compatibility reason. | ||
However, since PAT index was not clearly defined for platforms prior to | ||
GEN12 (TGL), so we are limiting this externsion to GEN12+ platforms | ||
only. See ext_set_pat() in for the implementation details. | ||
|
||
The documentation related to the PAT/MOCS tables is currently available | ||
for Tiger Lake here: | ||
https://www.intel.com/content/www/us/en/docs/graphics-for-linux/developer-reference/1-0/tiger-lake.html | ||
|
||
The documentation for other platforms is currently being updated. | ||
|
||
BSpec: 45101 | ||
|
||
Mesa support has been submitted in this merge request: | ||
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22878 | ||
|
||
The media driver supprt has bin submitted in this merge request: | ||
https://github.com/intel/media-driver/pull/1680 | ||
|
||
The IGT test related to this change is | ||
igt@gem_create@create-ext-set-pat | ||
|
||
Signed-off-by: Fei Yang <[email protected]> | ||
Cc: Chris Wilson <[email protected]> | ||
Cc: Matt Roper <[email protected]> | ||
Cc: Andi Shyti <[email protected]> | ||
Reviewed-by: Andi Shyti <[email protected]> | ||
Acked-by: Jordan Justen <[email protected]> | ||
Tested-by: Jordan Justen <[email protected]> | ||
Acked-by: Carl Zhang <[email protected]> | ||
Tested-by: Lihao Gu <[email protected]> | ||
Signed-off-by: Andi Shyti <[email protected]> | ||
Acked-by: Tvrtko Ursulin <[email protected]> | ||
Acked-by: Slawomir Milczarek <[email protected]> | ||
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] | ||
|
Oops, something went wrong.