diff options
author | Boris Brezillon <[email protected]> | 2024-05-02 17:52:48 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2024-05-02 18:42:13 +0200 |
commit | 8bdbd8b5580b46c8cae365567f5bf6cc956e6512 (patch) | |
tree | fae890a4044487ac5e6401139587265ffc1859cd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 08f441360f760151e742768b379fede54b0cbf6c (diff) |
drm/panthor: Make sure we handle 'unknown group state' case properly
When we check for state values returned by the FW, we only cover part of
the 0:7 range. Make sure we catch FW inconsistencies by adding a default
to the switch statement, and flagging the group state as unknown in that
case.
When an unknown state is detected, we trigger a reset, and consider the
group as unusable after that point, to prevent the potential corruption
from creeping in other places if we continue executing stuff on this
context.
v2:
- Add Steve's R-b
- Fix commit message
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/dri-devel/[email protected]/T/#u
Suggested-by: Steven Price <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Reviewed-by: Liviu Dudau <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions