<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/firmware/imx, branch linux-5.6.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.6.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.6.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-17T14:42:01Z</updated>
<entry>
<title>firmware: imx: scu: Fix corruption of header</title>
<updated>2020-06-17T14:42:01Z</updated>
<author>
<name>Franck LENORMAND</name>
</author>
<published>2020-03-25T22:00:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf39fe5340fc377fa57f828403e56a746c7a0583'/>
<id>urn:sha1:cf39fe5340fc377fa57f828403e56a746c7a0583</id>
<content type='text'>
[ Upstream commit f5f27b79eab80de0287c243a22169e4876b08d5e ]

The header of the message to send can be changed if the
response is longer than the request:
 - 1st word, the header is sent
 - the remaining words of the message are sent
 - the response is received asynchronously during the
   execution of the loop, changing the size field in
   the header
 - the for loop test the termination condition using
   the corrupted header

It is the case for the API build_info which has just a
header as request but 3 words in response.

This issue is fixed storing the header locally instead of
using a pointer on it.

Fixes: edbee095fafb (firmware: imx: add SCU firmware driver support)

Signed-off-by: Franck LENORMAND &lt;franck.lenormand@nxp.com&gt;
Reviewed-by: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Signed-off-by: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Cc: stable@vger.kernel.org
Reviewed-by: Dong Aisheng &lt;aisheng.dong@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx-scu: Support one TX and one RX</title>
<updated>2020-06-17T14:42:01Z</updated>
<author>
<name>Peng Fan</name>
</author>
<published>2020-03-19T07:49:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29c4ccc6fb1533178e7ca8e80ca13b6cae7a7757'/>
<id>urn:sha1:29c4ccc6fb1533178e7ca8e80ca13b6cae7a7757</id>
<content type='text'>
[ Upstream commit f25a066d1a07affb7bea4e5d9c179c3338338e23 ]

Current imx-scu requires four TX and four RX to communicate with
SCU. This is low efficient and causes lots of mailbox interrupts.

With imx-mailbox driver could support one TX to use all four transmit
registers and one RX to use all four receive registers, imx-scu
could use one TX and one RX.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: Align imx_sc_msg_req_cpu_start to 4</title>
<updated>2020-02-24T07:27:48Z</updated>
<author>
<name>Leonard Crestez</name>
</author>
<published>2020-02-20T16:29:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5bfeff44612d304deb100065a9f712309dc2783'/>
<id>urn:sha1:f5bfeff44612d304deb100065a9f712309dc2783</id>
<content type='text'>
The imx SC api strongly assumes that messages are composed out of
4-bytes words but some of our message structs have odd sizeofs.

This produces many oopses with CONFIG_KASAN=y.

Fix by marking with __aligned(4).

Fixes: d90bf296ae18 ("firmware: imx: Add support to start/stop a CPU")
Signed-off-by: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: scu-pd: Align imx sc msg structs to 4</title>
<updated>2020-02-24T07:26:55Z</updated>
<author>
<name>Leonard Crestez</name>
</author>
<published>2020-02-20T16:29:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c1a1c814ccc858633c761951c2546041202b24e'/>
<id>urn:sha1:7c1a1c814ccc858633c761951c2546041202b24e</id>
<content type='text'>
The imx SC api strongly assumes that messages are composed out of
4-bytes words but some of our message structs have odd sizeofs.

This produces many oopses with CONFIG_KASAN=y.

Fix by marking with __aligned(4).

Fixes: c800cd7824bd ("firmware: imx: add SCU power domain driver")
Signed-off-by: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: misc: Align imx sc msg structs to 4</title>
<updated>2020-02-24T07:26:44Z</updated>
<author>
<name>Leonard Crestez</name>
</author>
<published>2020-02-20T16:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1e6a4eba693ac72e6f91b4252458c933110e5f4c'/>
<id>urn:sha1:1e6a4eba693ac72e6f91b4252458c933110e5f4c</id>
<content type='text'>
The imx SC api strongly assumes that messages are composed out of
4-bytes words but some of our message structs have odd sizeofs.

This produces many oopses with CONFIG_KASAN=y:

    BUG: KASAN: stack-out-of-bounds in imx_mu_send_data+0x108/0x1f0

It shouldn't cause an issues in normal use because these structs are
always allocated on the stack.

Fixes: 15e1f2bc8b3b ("firmware: imx: add misc svc support")
Signed-off-by: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: scu: Ensure sequential TX</title>
<updated>2020-02-24T07:02:25Z</updated>
<author>
<name>Leonard Crestez</name>
</author>
<published>2020-02-20T16:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=26d0fba29c96241de8a9d16f045b1de49875884c'/>
<id>urn:sha1:26d0fba29c96241de8a9d16f045b1de49875884c</id>
<content type='text'>
SCU requires that all messages words are written sequentially but linux MU
driver implements multiple independent channels for each register so ordering
between different channels must be ensured by SCU API interface.

Wait for tx_done before every send to ensure that no queueing happens at the
mailbox channel level.

Fixes: edbee095fafb ("firmware: imx: add SCU firmware driver support")
Signed-off-by: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Reviewed-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Reviewed-by:: Oleksij Rempel &lt;o.rempel@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: Allow IMX DSP to be selected as module</title>
<updated>2020-01-09T09:21:33Z</updated>
<author>
<name>Daniel Baluta</name>
</author>
<published>2020-01-04T15:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f52cdcce9197fef9d4a68792dd3b840ad2b77117'/>
<id>urn:sha1:f52cdcce9197fef9d4a68792dd3b840ad2b77117</id>
<content type='text'>
IMX DSP is only needed by SOF or any other module that
wants to communicate with the DSP. When SOF is build
as a module IMX DSP is forced to be built inside the
kernel image. This is not optimal, so allow IMX DSP
to be built as a module.

Signed-off-by: Daniel Baluta &lt;daniel.baluta@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: add missing include of &lt;linux/firmware/imx/sci.h&gt;</title>
<updated>2019-10-28T06:50:09Z</updated>
<author>
<name>Ben Dooks (Codethink)</name>
</author>
<published>2019-10-22T15:40:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e4f9eefbb8a976bb86dbdc9d2dd1a2a113801464'/>
<id>urn:sha1:e4f9eefbb8a976bb86dbdc9d2dd1a2a113801464</id>
<content type='text'>
Include &lt;linux/firmware/imx/sci.h&gt; for the declarations of the
functions exported from this driver. This fixes the following
sparse warnings:

drivers/firmware/imx/imx-scu-irq.c:45:5: warning: symbol 'imx_scu_irq_register_notifier' was not declared. Should it be static?
drivers/firmware/imx/imx-scu-irq.c:52:5: warning: symbol 'imx_scu_irq_unregister_notifier' was not declared. Should it be static?
drivers/firmware/imx/imx-scu-irq.c:97:5: warning: symbol 'imx_scu_irq_group_enable' was not declared. Should it be static?
drivers/firmware/imx/imx-scu-irq.c:130:5: warning: symbol 'imx_scu_enable_general_irq_channel' was not declared. Should it be static?

Signed-off-by: Ben Dooks (Codethink) &lt;ben.dooks@codethink.co.uk&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: Remove call to devm_of_platform_populate</title>
<updated>2019-10-28T01:57:13Z</updated>
<author>
<name>Daniel Baluta</name>
</author>
<published>2019-10-14T15:32:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0e4e8cc30a2940c57448af1376e40d3c0996fb29'/>
<id>urn:sha1:0e4e8cc30a2940c57448af1376e40d3c0996fb29</id>
<content type='text'>
IMX DSP device is created by SOF layer. The current call to
devm_of_platform_populate is not needed and it doesn't produce
any effects.

Fixes: ffbf23d50353915d ("firmware: imx: Add DSP IPC protocol interface)
Signed-off-by: Daniel Baluta &lt;daniel.baluta@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>firmware: imx: Skip return value check for some special SCU firmware APIs</title>
<updated>2019-10-14T12:48:17Z</updated>
<author>
<name>Anson Huang</name>
</author>
<published>2019-10-07T01:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=51f5afabc07a13e3d030076c772a1c36e1687b99'/>
<id>urn:sha1:51f5afabc07a13e3d030076c772a1c36e1687b99</id>
<content type='text'>
The SCU firmware does NOT always have return value stored in message
header's function element even the API has response data, those special
APIs are defined as void function in SCU firmware, so they should be
treated as return success always.

Signed-off-by: Anson Huang &lt;Anson.Huang@nxp.com&gt;
Reviewed-by: Marco Felsch &lt;m.felsch@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
</feed>
