<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/misc/mei/main.c, branch linux-4.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-03-12T05:44:13Z</updated>
<entry>
<title>mei: remove support for broken parallel read</title>
<updated>2017-03-12T05:44:13Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2017-02-07T22:41:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8fbc16143918511377544927f1dfb27e5eeed4fa'/>
<id>urn:sha1:8fbc16143918511377544927f1dfb27e5eeed4fa</id>
<content type='text'>
commit cb97fbbcac15982406e0c74cd5512a8b6fcf10b3 upstream.

Parallel reads from multiple threads on a file descriptor
are not well defined and racy. It is safer to return to original
behavior and simply fail the additional read.
The solution is to remove request for next read credit.

Fixes: ff1586a7ea57 ("mei: enqueue consecutive reads")
Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>mei: enable to set the internal flag for client write</title>
<updated>2016-11-10T12:18:02Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-11-08T16:26:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e0cb6b2f878d210441e8ed232e98454ccc7fd812'/>
<id>urn:sha1:e0cb6b2f878d210441e8ed232e98454ccc7fd812</id>
<content type='text'>
Prepare the client write functions to set the internal flag in message
header. Carry both blocking and internal modes inside the transmit cb,
and call internal bus function  __mei_cl_send() with send mode bit mask.
The Internal flag should be added only on messages generated by the
driver.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: show the HBM protocol versions in the device attributes</title>
<updated>2016-10-31T10:00:09Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-10-29T23:42:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=88d1bece891f85523048de208906258d63678d11'/>
<id>urn:sha1:88d1bece891f85523048de208906258d63678d11</id>
<content type='text'>
The HBM protocol version is negotiated during the setup phase, then settled
on a highest possible common version of the driver and the firmware.
The sysfs API advertises both negotiated and driver supported versions
in the device attributes.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: amthif: drop mei_amthif_read</title>
<updated>2016-08-30T12:39:42Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-07-25T22:06:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d27e73c1897c17e535987a4758fddb7a2fe1fd3'/>
<id>urn:sha1:9d27e73c1897c17e535987a4758fddb7a2fe1fd3</id>
<content type='text'>
mei_amthif_read have only one difference from mei_read, it is not
calling mei_read_start().
Make mei_read_start return immediately for amthif client and drop the
special mei_amthif_read function.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: enqueue consecutive reads</title>
<updated>2016-08-30T12:39:42Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-07-25T22:06:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff1586a7ea57a4758a3f10ad7c9cdb26edcbd7f3'/>
<id>urn:sha1:ff1586a7ea57a4758a3f10ad7c9cdb26edcbd7f3</id>
<content type='text'>
The FW supports only one pending read per host client, in order to
support  issuing of consecutive reads the driver  queues read requests
internally and send them to the firmware after pending one has
completed.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: add wrapper for queuing control commands.</title>
<updated>2016-08-30T12:39:42Z</updated>
<author>
<name>Tomas Winkler</name>
</author>
<published>2016-07-25T22:06:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3030dc056459439d756d81a920e135893076a348'/>
<id>urn:sha1:3030dc056459439d756d81a920e135893076a348</id>
<content type='text'>
Enclose the boiler plate code of allocating a control/hbm command cb
and enqueueing it onto ctrl_wr.list in a convenient wrapper
mei_cl_enqueue_ctrl_wr_cb().

This is a preparatory patch for enabling consecutive reads.

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: add file pointer to the host client structure</title>
<updated>2016-08-30T12:36:39Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-06-16T14:58:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97d549b4d5fca22ebde0798cb8c16c19b4ae837a'/>
<id>urn:sha1:97d549b4d5fca22ebde0798cb8c16c19b4ae837a</id>
<content type='text'>
Store the file associated with a client in the host client structure,
this enables dropping the special amthif client file pointer from struct
mei_device, and this is also a preparation for changing the way rx
packet allocation for fixed_address clients

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: fix return value on disconnection</title>
<updated>2016-08-30T12:36:39Z</updated>
<author>
<name>Tomas Winkler</name>
</author>
<published>2016-06-22T21:25:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a'/>
<id>urn:sha1:2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a</id>
<content type='text'>
Correct errno on client disconnection is -ENODEV not -EBUSY

Cc: &lt;stable@vger.kernel.org&gt; #4.3+
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: drop read complete queue emptiness check</title>
<updated>2016-08-30T12:36:39Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-06-16T14:58:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1eb5bd4d83f566e5ea8521b6020d0cfcb8f1c3ef'/>
<id>urn:sha1:1eb5bd4d83f566e5ea8521b6020d0cfcb8f1c3ef</id>
<content type='text'>
In the course of the read flow we want to wait for read completion only
if the read queue is empty.
However the calling list_empty(&amp;cl-&gt;rd_completed) is a duplication as the
same check was performed by mei_cl_read_cb() and the waiting is skipped
if it returns not NULL.

Signed-off-by: Alexander Usyskin &lt;alexander.usyskin@intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mei: amthif: enable poll for async events</title>
<updated>2016-08-30T12:35:14Z</updated>
<author>
<name>Alexander Usyskin</name>
</author>
<published>2016-05-24T20:03:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9fa0be8bb66a42a5f75e00a54732c92f3772aa6e'/>
<id>urn:sha1:9fa0be8bb66a42a5f75e00a54732c92f3772aa6e</id>
<content type='text'>
Currently the poll function is bailing early for amthif client and
ignores requests for async events notifications.
Move async event processing before amthif to enable async events
notifications on amthif client.

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