Commit 097c317
ice: retry acquiring hardware semaphore during cross-timestamp request
The hardware for performing a cross-timestamp on E822 uses a hardware
semaphore which we must acquire before initiating the cross-timestamp
operation.
The current implementation only attempts to acquire the semaphore once, and
assumes that it will succeed. If the semaphore is busy for any reason, the
cross-timestamp operation fails with -EFAULT.
Instead of immediately failing, try the acquire the lock a few times with a
small sleep between attempts. This ensures that most requests will go
through without issue.
Additionally, return -EBUSY instead of -EFAULT if the operation can't
continue due to the semaphore being busy.
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 40326b2 commit 097c317
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
1980 | | - | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
1981 | 1991 | | |
1982 | 1992 | | |
1983 | | - | |
| 1993 | + | |
1984 | 1994 | | |
1985 | 1995 | | |
1986 | 1996 | | |
1987 | 1997 | | |
1988 | 1998 | | |
1989 | 1999 | | |
1990 | 2000 | | |
1991 | | - | |
1992 | | - | |
1993 | | - | |
| 2001 | + | |
1994 | 2002 | | |
1995 | 2003 | | |
1996 | 2004 | | |
| |||
2019 | 2027 | | |
2020 | 2028 | | |
2021 | 2029 | | |
2022 | | - | |
| 2030 | + | |
2023 | 2031 | | |
2024 | 2032 | | |
2025 | 2033 | | |
| |||
0 commit comments