OrangePi_CM5/drivers/platform/x86/intel_speed_select_if
Srinivas Pandruvada 4ddfac16b5 platform/x86: ISST: Account for increased timeout in some cases
[ Upstream commit 5c782817a981981917ec3c647cf521022ee07143 ]

In some cases when firmware is busy or updating, some mailbox commands
still timeout on some newer CPUs. To fix this issue, change how we
process timeout.

With this change, replaced timeout from using simple count with real
timeout in micro-seconds using ktime. When the command response takes
more than average processing time, yield to other tasks. The worst case
timeout is extended upto 1 milli-second.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20210330220840.3113959-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-11 14:47:20 +02:00
..
Kconfig
…
Makefile
…
isst_if_common.c
…
isst_if_common.h platform/x86: ISST: Add new PCI device ids 2020-07-15 12:46:59 +03:00
isst_if_mbox_msr.c platform/x86: Convert to new CPU match macros 2020-03-24 21:33:00 +01:00
isst_if_mbox_pci.c platform/x86: ISST: Account for increased timeout in some cases 2021-05-11 14:47:20 +02:00
isst_if_mmio.c platform/x86: ISST: Add new PCI device ids 2020-07-15 12:46:59 +03:00