<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/rpmsg/qcom_smd.c, branch linux-5.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-03-17T19:16:36Z</updated>
<entry>
<title>rpmsg: char: Use rpmsg_sendto to specify the message destination address</title>
<updated>2021-03-17T19:16:36Z</updated>
<author>
<name>Arnaud Pouliquen</name>
</author>
<published>2021-03-11T14:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4ce7e2ebcc52ff907c5a922bf19c3dfa39dddb1'/>
<id>urn:sha1:b4ce7e2ebcc52ff907c5a922bf19c3dfa39dddb1</id>
<content type='text'>
When the endpoint device is created by the application, a destination
address is specified in the rpmsg_channel_info structure. Since the
rpmsg_endpoint structure does not store the destination address,
this destination address must be specified when sending a message.

Replaces rpmsg_send with rpmsg_sendto to allow to specify the
destination address. This implementation is requested for compatibly with
some rpmsg backends like the virtio backend.

For this, the GLINK an SMD drivers have been updated to support the
rpmsg_sendto, even if the destination address is ignored for these
backends. For these drivers, the rpmsg_send and rpmsg_trysend ops are
preserved to avoid breaking the legacy.

Signed-off-by: Arnaud Pouliquen &lt;arnaud.pouliquen@foss.st.com&gt;

Reviewed-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
Reviewed-by: Mathieu Poirier &lt;mathieu.poirier@linaro.org&gt;
Link: https://lore.kernel.org/r/20210311140413.31725-5-arnaud.pouliquen@foss.st.com
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: Fix a kobj leak in in qcom_smd_parse_edge()</title>
<updated>2020-09-15T03:41:37Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2020-09-08T07:18:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e69ee0cf655e8e0c4a80f4319e36019b74f17639'/>
<id>urn:sha1:e69ee0cf655e8e0c4a80f4319e36019b74f17639</id>
<content type='text'>
We need to call of_node_put(node) on the error paths for this function.

Fixes: 53e2822e56c7 ("rpmsg: Introduce Qualcomm SMD backend")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Link: https://lore.kernel.org/r/20200908071841.GA294938@mwanda
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: fix memory leak on channel create</title>
<updated>2018-09-28T03:11:11Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-09-27T21:36:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=940c620d6af8fca7d115de40f19870fba415efac'/>
<id>urn:sha1:940c620d6af8fca7d115de40f19870fba415efac</id>
<content type='text'>
Currently a failed allocation of channel-&gt;name leads to an
immediate return without freeing channel. Fix this by setting
ret to -ENOMEM and jumping to an exit path that kfree's channel.

Detected by CoverityScan, CID#1473692 ("Resource Leak")

Fixes: 53e2822e56c7 ("rpmsg: Introduce Qualcomm SMD backend")
Cc: stable@vger.kernel.org
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: Convert to using %pOFn instead of device_node.name</title>
<updated>2018-08-28T03:07:15Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2018-08-28T01:52:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8a54c0c9a7dbb8b99851e3a9cb2dacabf3b80c6'/>
<id>urn:sha1:c8a54c0c9a7dbb8b99851e3a9cb2dacabf3b80c6</id>
<content type='text'>
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Cc: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
Cc: linux-remoteproc@vger.kernel.org
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: fix kerneldoc warnings</title>
<updated>2018-07-31T06:22:23Z</updated>
<author>
<name>Srinivas Kandagatla</name>
</author>
<published>2018-06-18T12:33:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=82eca590cf5bf6eb1d1f2a282f5eb0f80ec0e57c'/>
<id>urn:sha1:82eca590cf5bf6eb1d1f2a282f5eb0f80ec0e57c</id>
<content type='text'>
This patch fixes below kerneldoc warnings

qcom_smd.c:141: warning: Function parameter or member 'dev' not described in 'qcom_smd_edge'
qcom_smd.c:141: warning: Function parameter or member 'name' not described in 'qcom_smd_edge'
qcom_smd.c:141: warning: Function parameter or member 'new_channel_event' not described in 'qcom_smd_edge'
qcom_smd.c:222: warning: Function parameter or member 'qsept' not described in 'qcom_smd_channel'
qcom_smd.c:222: warning: Function parameter or member 'registered' not described in 'qcom_smd_channel'
qcom_smd.c:222: warning: Function parameter or member 'state_change_event' not described in 'qcom_smd_channel'
qcom_smd.c:222: warning: Function parameter or member 'drvdata' not described in 'qcom_smd_channel'
qcom_smd.c:737: warning: Function parameter or member 'wait' not described in '__qcom_smd_send'

Signed-off-by: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: Add missing include of sizes.h</title>
<updated>2018-07-02T06:32:21Z</updated>
<author>
<name>Niklas Cassel</name>
</author>
<published>2018-06-29T17:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=67cd0eec5b62e0c6715d4ff5d43a80fa8edeee6a'/>
<id>urn:sha1:67cd0eec5b62e0c6715d4ff5d43a80fa8edeee6a</id>
<content type='text'>
Add missing include of sizes.h.

drivers/rpmsg/qcom_smd.c: In function ‘qcom_smd_channel_open’:
drivers/rpmsg/qcom_smd.c:809:36: error: ‘SZ_4K’ undeclared (first use in this function)
  bb_size = min(channel-&gt;fifo_size, SZ_4K);
                                    ^~~~~

Signed-off-by: Niklas Cassel &lt;niklas.cassel@linaro.org&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: do not use mananged resources for endpoints and channels</title>
<updated>2018-06-04T19:35:03Z</updated>
<author>
<name>Srinivas Kandagatla</name>
</author>
<published>2018-06-04T09:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a2e84c6ed85434ce7843e4844b4d3263f7e233b'/>
<id>urn:sha1:4a2e84c6ed85434ce7843e4844b4d3263f7e233b</id>
<content type='text'>
All the managed resources would be freed by the time release function
is invoked. Handling such memory in qcom_smd_edge_release() would do
bad things.

Found this issue while testing Audio usecase where the dsp is started up
and shutdown in a loop.

This patch fixes this issue by using simple kzalloc for allocating
channel-&gt;name and channel which is then freed in qcom_smd_edge_release().

Without this patch restarting a remoteproc would crash the system.
Fixes: 53e2822e56c7 ("rpmsg: Introduce Qualcomm SMD backend")
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: Switch to SPDX license identifier</title>
<updated>2018-06-04T00:37:14Z</updated>
<author>
<name>Suman Anna</name>
</author>
<published>2018-05-31T17:11:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49b05978254ad733b8485f315226b7bc13db860a'/>
<id>urn:sha1:49b05978254ad733b8485f315226b7bc13db860a</id>
<content type='text'>
Use the appropriate SPDX license identifier in the rpmsg SMD backend
driver source file and drop the previous boilerplate license text.

Signed-off-by: Suman Anna &lt;s-anna@ti.com&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: qcom_smd: Access APCS through mailbox framework</title>
<updated>2018-04-26T00:09:57Z</updated>
<author>
<name>Bjorn Andersson</name>
</author>
<published>2018-04-20T01:17:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab460a2e72dabecfdabd45eb7e3ee2d73fc876d4'/>
<id>urn:sha1:ab460a2e72dabecfdabd45eb7e3ee2d73fc876d4</id>
<content type='text'>
Attempt to acquire the APCS IPC through the mailbox framework and fall
back to the old syscon based approach, to allow us to move away from
using the syscon.

Reviewed-by: Arun Kumar Neelakantam &lt;aneela@codeaurora.org&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
<entry>
<title>rpmsg: smd: Use announce_create to process any receive work</title>
<updated>2018-03-28T04:54:37Z</updated>
<author>
<name>Bjorn Andersson</name>
</author>
<published>2018-03-27T21:06:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d72038c303c616a63415a07366f916b5edc3830'/>
<id>urn:sha1:0d72038c303c616a63415a07366f916b5edc3830</id>
<content type='text'>
It is possible that incoming data arrives before the client driver has
reached a point in the probe method where adequate context for handling
the incoming message has been established.

In the event that the client's callback function returns an error the
message will be left on the FIFO and by invoking the receive handler
after the device has been probed the message will be picked off the FIFO
and the callback invoked again.

Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
</content>
</entry>
</feed>
