]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mei: bus-fixup: set timeout for MKHI send operations
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sat, 15 Jun 2024 06:31:59 +0000 (09:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 14:40:29 +0000 (16:40 +0200)
commit783100f6ea0ae74a4ff3d616d4bce3b54badf347
treeb46cedfef746637cd9b6f86b3a40f252c071a746
parentc4681b2b3862d2b5e8e3182a4205adf314e321aa
mei: bus-fixup: set timeout for MKHI send operations

Set a timeout for MKHI client send operations in the bus fixup routines
to prevent potential lock-ups on the cl_bus_lock mutex.
In rare conditions, such as when the i915 or Xe driver is stopping and
not routing interrupts or when GSC FW is in unexpectedly reset the fixup
routines can get stuck.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20240615063159.1460290-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus-fixup.c