<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/misc/mei/client.c, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-06-22T10:40:31Z</updated>
<entry>
<title>mei: revamp mei extension header structure layout.</title>
<updated>2021-06-22T10:40:31Z</updated>
<author>
<name>Tomas Winkler</name>
</author>
<published>2021-06-21T19:37:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40292383640a2a4f73632e08a553681d0d88c80a'/>
<id>urn:sha1:40292383640a2a4f73632e08a553681d0d88c80a</id>
<content type='text'>
The mei extension header was build as array of flexible structures
which will not work if actually more headers are added.
(Currently only vtag header was used).
Sparse reports:

drivers/misc/mei/hw.h:253:32: warning: array of flexible structures

Use basic type u8 for the variable sized extension.
Define explicitly mei_ext_hdr_vtag structure.
And also fix mei_ext_next() function to point correctly to the
end of the header.

Note: the headers are part of firmware interface and need to be __packed.

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20210621193756.134027-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: fix kdoc in the driver</title>
<updated>2021-06-22T10:40:31Z</updated>
<author>
<name>Tamar Mashiah</name>
</author>
<published>2021-06-21T19:37:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=09f8c33a4cad3623874766033544abf34e3e365d'/>
<id>urn:sha1:09f8c33a4cad3623874766033544abf34e3e365d</id>
<content type='text'>
Over time the functions were renamed,
but this was not always reflected in kdoc, fix that.

Signed-off-by: Tamar Mashiah &lt;tamar.mashiah@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20210621193756.134027-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: allow map and unmap of client dma buffer only for disconnected client</title>
<updated>2021-03-23T14:15:15Z</updated>
<author>
<name>Tomas Winkler</name>
</author>
<published>2021-03-18T05:59:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ce068bc7da473e39b64d130101e178406023df0c'/>
<id>urn:sha1:ce068bc7da473e39b64d130101e178406023df0c</id>
<content type='text'>
Allow map and unmap of the client dma buffer only when the client is not
connected. The functions return -EPROTO if the client is already connected.
This is to fix the race when traffic may start or stop when buffer
is not available.

Cc: &lt;stable@vger.kernel.org&gt; #v5.11+
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20210318055959.305627-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: implement client dma setup.</title>
<updated>2021-02-06T14:48:11Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2021-02-06T14:43:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=369aea84595189200a2e6b028f556a7efa0ec489'/>
<id>urn:sha1:369aea84595189200a2e6b028f556a7efa0ec489</id>
<content type='text'>
Implement HBM message protocol to setup and tear down
DMA buffer on behalf of an client. On top there DMA
buffer allocation and its life time management.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20210206144325.25682-5-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: allow clients on bus to communicate in remove callback</title>
<updated>2021-02-06T14:48:11Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2021-02-06T14:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=36edb1407c3c042240b5dbc2530d6e7119535baa'/>
<id>urn:sha1:36edb1407c3c042240b5dbc2530d6e7119535baa</id>
<content type='text'>
Introduce new intermediate state to allow the clients on the bus
to communicate with the firmware from the remove handler.
This is to enable to perform a clean shutdown.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20210206144325.25682-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: document that mei_msg_hdr_init returns ERR_PTR</title>
<updated>2021-01-29T15:59:11Z</updated>
<author>
<name>Tomas Winkler</name>
</author>
<published>2021-01-29T12:07:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7615da2be0069254099bbb596583b46e9623e385'/>
<id>urn:sha1:7615da2be0069254099bbb596583b46e9623e385</id>
<content type='text'>
Document that mei_msg_hdr_init returns ERR_PTR.

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20210129120752.850325-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: bus: add vtag support</title>
<updated>2020-12-07T09:29:57Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2020-11-16T12:56:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85261c1ff156eb60fc26c378748387f2e85c6878'/>
<id>urn:sha1:85261c1ff156eb60fc26c378748387f2e85c6878</id>
<content type='text'>
Add API to support vtag in communication on mei bus.

Add mei_cldev_send_vtag, mei_cldev_recv_vtag and
mei_cldev_recv_nonblock_vtag functions to allow sending a message
with vtag set and to receive vtag of an incoming message.

Cc: Sean Z Huang &lt;sean.z.huang@intel.com&gt;
Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20201116125612.1660971-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: handle tx queue flushing for vtag connections</title>
<updated>2020-08-18T13:44:44Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2020-08-18T11:51:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15ffa991d9cb4bd1e9cdc9caf25201c6627b5432'/>
<id>urn:sha1:15ffa991d9cb4bd1e9cdc9caf25201c6627b5432</id>
<content type='text'>
Since multiple file pointers (fp) can be associated
with a single host client, upon close() only objects
associated with the fp has to flushed from the tx queues.
The control queues should be flushed only when all
the connections are closed and the client is disconnected.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20200818115147.2567012-9-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: add a vtag map for each client</title>
<updated>2020-08-18T13:44:44Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2020-08-18T11:51:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f35fe5f47ed0ea532a81603cac13a259d056c077'/>
<id>urn:sha1:f35fe5f47ed0ea532a81603cac13a259d056c077</id>
<content type='text'>
Vtag map is a list of tuples of vtag and file pointer (struct
mei_cl_vtag) associated with a particular me host client.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20200818115147.2567012-8-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: add a spin lock to protect rd_completed queue</title>
<updated>2020-08-18T13:44:43Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2020-08-18T11:51:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1376f3d89d5177dae7cae40f3f9fdf73e9bfec9'/>
<id>urn:sha1:d1376f3d89d5177dae7cae40f3f9fdf73e9bfec9</id>
<content type='text'>
In order to support vtags we need to access read completed
queue out of driver big lock.
Add a spin lock to protect rd_completed queue.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Link: https://lore.kernel.org/r/20200818115147.2567012-7-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
