diff options
author | Tvrtko Ursulin <[email protected]> | 2021-03-02 11:42:13 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2021-03-12 11:20:50 +1000 |
commit | a829f033e966d5e4aa27c3ef2b381f51734e4a7f (patch) | |
tree | 14e3eb176929c23a58ce3aab9728d94bcb3e06e3 /tools/perf/scripts/python/stat-cpi.py | |
parent | fb198483ed63b359559b9d5399e708bf882e1bf8 (diff) |
drm/i915: Wedge the GPU if command parser setup fails
Commit 311a50e76a33 ("drm/i915: Add support for mandatory cmdparsing")
introduced mandatory command parsing but setup failures were not
translated into wedging the GPU which was probably the intent.
Possible errors come in two categories. Either the sanity check on
internal tables has failed, which should be caught in CI unless an
affected platform would be missed in testing; or memory allocation failure
happened during driver load, which should be extremely unlikely but for
correctness should still be handled.
v2:
* Tidy coding style. (Chris)
[airlied: cherry-picked to avoid rc1 base]
Signed-off-by: Tvrtko Ursulin <[email protected]>
Fixes: 311a50e76a33 ("drm/i915: Add support for mandatory cmdparsing")
Cc: Jon Bloomfield <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 5a1a659762d35a6dc51047c9127c011303c77b7f)
Signed-off-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions