diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-04-09 12:51:06 +0200 |
---|---|---|
committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-04-10 11:21:48 +0200 |
commit | a918e771e6fbe1fa68932af5b0cdf473e23090cc (patch) | |
tree | 08c02f5873e85969943662f863c2f2a7f7ae10d7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5d6678882da71491768c6d272199360b16d2e1f6 (diff) |
drm/xe: Check pat.ops before dumping PAT settings
We may leave pat.ops unset when running on brand new platform or
when running as a VF. While the former is unlikely, the latter
is valid (future) use case and will cause NPD when someone will
try to dump PAT settings by debugfs.
It's better to check pointer to pat.ops instead of specific .dump
hook, as we have this hook always defined for every .ops variant.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240409105106.1067-2-michal.wajdeczko@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions