]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/pseries: make max polling consistent for longer H_CALLs
authorNayna Jain <nayna@linux.ibm.com>
Thu, 18 Apr 2024 03:12:30 +0000 (23:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:14:35 +0000 (12:14 +0200)
commit57fae373e987e6995c2b4bb9270d2aa7502b79d4
treea079c6f2fdb26e25563f153a0f2387fa3cf4ac0a
parent9708e5081cfc4f085690294163389bcf82655f90
powerpc/pseries: make max polling consistent for longer H_CALLs

[ Upstream commit 784354349d2c988590c63a5a001ca37b2a6d4da1 ]

Currently, plpks_confirm_object_flushed() function polls for 5msec in
total instead of 5sec.

Keep max polling time consistent for all the H_CALLs, which take longer
than expected, to be 5sec. Also, make use of fsleep() everywhere to
insert delay.

Reported-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStore")
Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Tested-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240418031230.170954-1-nayna@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/plpks.h
arch/powerpc/platforms/pseries/plpks.c