[PATCH v2] powerpc/pseries: fix max polling time in plpks_confirm_object_flushed() function

Andrew Donnellan ajd at linux.ibm.com
Fri Mar 15 14:24:11 AEDT 2024


On Thu, 2024-03-14 at 00:17 -0400, Nayna Jain wrote:
> usleep_range() function takes input time and range in usec. However,
> currently it is assumed in msec in the function
> plpks_confirm_object_flushed().
> 
> Fix the total polling time for the object flushing from 5msec to
> 5sec.
> 
> Reported-by: Nageswara R Sastry <rnsastry at linux.ibm.com>
> Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform
> KeyStore")
> Suggested-by: Michael Ellerman <mpe at ellerman.id.au>
> Signed-off-by: Nayna Jain <nayna at linux.ibm.com>
> Tested-by: Nageswara R Sastry <rnsastry at linux.ibm.com>

plpks_signed_update_var() also relies on PLPKS_MAX_TIMEOUT, and assumes
it to be in milliseconds rather than microseconds.

-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd at linux.ibm.com   IBM Australia Limited


More information about the Linuxppc-dev mailing list