diff options
| author | Nirmoy Das <[email protected]> | 2024-01-04 19:26:15 +0100 |
|---|---|---|
| committer | Matt Roper <[email protected]> | 2024-01-08 11:43:19 -0800 |
| commit | ddb5bade29de7a3e1e1ce42df33f4a98f8a9f323 (patch) | |
| tree | 253c1ba2693cd3b1778de2740fbdff625934b014 /tools/perf/scripts/python/libxed.py | |
| parent | be8755a0a81866bbf89bf3fb03ae180978b5a91f (diff) | |
drm/xe/xe2: synchronise CS_CHICKEN1 with WMTP support
Recommendation is to read FUSE4 register to check if WMTP has been
enabled/disabled by HW. If enabled we don't need to do anything special,
however if disabled recommendation is to also disable the WMTP mode in
the FF_SLICE_CS_CHICKEN2 register, falling back to thread-group and
mid-batch preemption only. However on Linux, the per-context CS_CHICKEN1
is how userspace controls pre-emption, so instead use the default lrc to
disable WMTP using CS_CHICKEN1, if disabled by HW. Userspace is still
free to set CS_CHICKEN1 to whatever they want later.
v2: remove redundant version check and also add descriptive name(Matt)
v3: remove usage of REG_FIELD_GET(Matt)
Cc: Matt Roper <[email protected]>
Co-developed-by: Matthew Auld <[email protected]>
Signed-off-by: Matthew Auld <[email protected]>
Signed-off-by: Nirmoy Das <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Matt Roper <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions