diff options
author | Brett Creeley <brett.creeley@amd.com> | 2023-06-05 22:51:16 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-07 07:10:01 +0300 |
commit | 4f48c30312b7af5365878ab191bb41e7b899e09b (patch) | |
tree | d4ec7b553ea03fdabe90dff2cd2cdb2d695adec6 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 82a01ab35bd02ba4b0b4e12bc95c5b69240eb7b0 (diff) | |
download | linux-4f48c30312b7af5365878ab191bb41e7b899e09b.tar.xz |
pds_core: Fix FW recovery detection
Commit 523847df1b37 ("pds_core: add devcmd device interfaces") included
initial support for FW recovery detection. Unfortunately, the ordering
in pdsc_is_fw_good() was incorrect, which was causing FW recovery to be
undetected by the driver. Fix this by making sure to update the cached
fw_status by calling pdsc_is_fw_running() before setting the local FW
gen.
Fixes: 523847df1b37 ("pds_core: add devcmd device interfaces")
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230605195116.49653-1-brett.creeley@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions