aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDaniele Ceraolo Spurio <[email protected]>2022-09-27 17:41:43 -0700
committerDaniele Ceraolo Spurio <[email protected]>2022-10-03 11:29:20 -0700
commitb76c14c8fb2af1e481d51a4eeab8e0c0594824c0 (patch)
tree6b918c5ea988dc6ca32369777012decba516c12d /tools/perf/scripts/python
parente6177ec586d19fc62bba833ca0f6939f1a750928 (diff)
drm/i915/huc: better define HuC status getparam possible return values.
The current HuC status getparam return values are a bit confusing in regards to what happens in some scenarios. In particular, most of the error cases cause the ioctl to return an error, but a couple of them, INIT_FAIL and LOAD_FAIL, are not explicitly handled and neither is their expected return value documented; these 2 error cases therefore end up into the catch-all umbrella of the "HuC not loaded" case, with this case therefore including both some error scenarios and the load in progress one. The updates included in this patch change the handling so that all error cases behave the same way, i.e. return an errno code, and so that the HuC load in progress case is unambiguous. The patch also includes a small change to the FW init path to make sure we always transition to an error state if something goes wrong. Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Tony Ye <[email protected]> Acked-by: Tvrtko Ursulin <[email protected]> Acked-by: Tony Ye <[email protected]> Reviewed-by: Alan Previn <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions