Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [PATCH] ACPI, APEI, EINJ: Relax platform response timeout to 1 second. | Date | Fri, 15 Oct 2021 15:37:06 +0000 |
| |
> We observe that the waiting time for DDR error injection is about 10 ms > and that for PCIe error injection is about 500 ms in Arm platfrom. > > In this patch, we relax the response timeout to 1 second and allow user to > pass the time out value as a argument.
Spinning for 1ms was maybe ok. Spinning for up to 1s seems like a bad idea.
This code is executed inside a mutex ... so maybe it is safe to sleep instead of spin?
-Tony
| |