mei: update mei-pxp's component interface with timeouts
authorAlan Previn <alan.previn.teres.alexis@intel.com>
Wed, 11 Oct 2023 11:01:57 +0000 (14:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2023 08:01:33 +0000 (10:01 +0200)
commitfb99e79ee62aaa07d9e77cb3a15c5f1ae2790e6a
tree21c407cdbffb5db5e7a93cf9f424be203951801f
parentdab79a2235e5a1d6aadfeb601c84f31b5cb97141
mei: update mei-pxp's component interface with timeouts

In debugging platform or firmware related MEI-PXP connection
issues, having a timeout when clients (such as i915) calling
into mei-pxp's send/receive functions have proven useful as opposed to
blocking forever until the kernel triggers a watchdog panic (when
platform issues are experienced).

Update the mei-pxp component interface send and receive functions
to take in timeouts.

Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20231011110157.247552-5-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/pxp/intel_pxp_tee.c
drivers/misc/mei/pxp/mei_pxp.c
include/drm/i915_pxp_tee_interface.h