Skip to content

Commit

Permalink
platform/x86: ISST: Increase timeout
Browse files Browse the repository at this point in the history
Fix timeout issue on some Ice Lake servers, where mail box command is
timing out before the response,

Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
spandruvada authored and andy-shev committed May 30, 2020
1 parent f441d66 commit 2adaec4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
#define PUNIT_MAILBOX_BUSY_BIT 31

/*
* Commands has variable amount of processing time. Most of the commands will
* be done in 0-3 tries, but some takes up to 50.
* The real processing time was observed as 25us for the most of the commands
* at 2GHz. It is possible to optimize this count taking samples on customer
* systems.
* The average time to complete some commands is about 40us. The current
* count is enough to satisfy 40us. But when the firmware is very busy, this
* causes timeout occasionally. So increase to deal with some worst case
* scenarios. Most of the command still complete in few us.
*/
#define OS_MAILBOX_RETRY_COUNT 50
#define OS_MAILBOX_RETRY_COUNT 100

struct isst_if_device {
struct mutex mutex;
Expand Down

0 comments on commit 2adaec4

Please sign in to comment.