aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorAndrew Donnellan <[email protected]>2023-02-10 19:03:36 +1100
committerMichael Ellerman <[email protected]>2023-02-12 22:12:36 +1100
commitf74dcbfd27c647af9b7b83f3711c63712c677abd (patch)
tree17289769689d7030704977ca57ccf3bfa568b247 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentfc8a898cfdbb0e63cfde547715c2031de22e7893 (diff)
powerpc/pseries: Fix handling of PLPKS object flushing timeout
plpks_confirm_object_flushed() uses the H_PKS_CONFIRM_OBJECT_FLUSHED hcall to check whether changes to an object in the Platform KeyStore have been flushed to non-volatile storage. The hcall returns two output values, the return code and the flush status. plpks_confirm_object_flushed() polls the hcall until either the flush status has updated, the return code is an error, or a timeout has been exceeded. While we're still polling, the hcall is returning H_SUCCESS (0) as the return code. In the timeout case, this means that upon exiting the polling loop, rc is 0, and therefore 0 is returned to the user. Handle the timeout case separately and return ETIMEDOUT if triggered. Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStore") Reported-by: Benjamin Gray <[email protected]> Signed-off-by: Andrew Donnellan <[email protected]> Tested-by: Russell Currey <[email protected]> Reviewed-by: Russell Currey <[email protected]> Signed-off-by: Russell Currey <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions