mei: bus: extend bus API to support command streamer API
authorVitaly Lubart <vitaly.lubart@intel.com>
Wed, 28 Sep 2022 00:41:34 +0000 (17:41 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 3 Oct 2022 18:29:10 +0000 (11:29 -0700)
commit2266e58a1c08efacc97a46fd3793a3b1a9323741
tree0402908944a001647955f8bb65a7bca59ee7b12e
parent2af56dde08a1ae9ef8cfb1186d78d2b9620dc997
mei: bus: extend bus API to support command streamer API

Add mei bus API for sending gsc commands: mei_cldev_send_gsc_command()

The GSC commands are originated in the graphics stack
and are in form of SGL DMA buffers.
The GSC commands are synchronous, the response is received
in the same call on the out sg list buffers.
The function setups pointers for in and out sg lists in the
mei sgl extended header and sends it to the firmware.

Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220928004145.745803-5-daniele.ceraolospurio@intel.com
drivers/misc/mei/bus.c
include/linux/mei_cl_bus.h