| 1558b1a8 | 08-Oct-2023 |
Hao Ge <[email protected]> |
firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels()
dsp_chan->name and chan_name points to same block of memory, because dev_err still needs to be used it,so we need free it's memory af
firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels()
dsp_chan->name and chan_name points to same block of memory, because dev_err still needs to be used it,so we need free it's memory after use to avoid use_after_free.
Fixes: e527adfb9b7d ("firmware: imx-dsp: Fix an error handling path in imx_dsp_setup_channels()") Signed-off-by: Hao Ge <[email protected]> Reviewed-by: Daniel Baluta <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| c081197a | 07-Aug-2023 |
Ranjani Vaidyanathan <[email protected]> |
firmware: imx: scu-irq: support identifying SCU wakeup source from sysfs
Record SCU wakeup interrupt in /sys/power/pm_wakeup_irq The user can further identify the exact wakeup source by using the fo
firmware: imx: scu-irq: support identifying SCU wakeup source from sysfs
Record SCU wakeup interrupt in /sys/power/pm_wakeup_irq The user can further identify the exact wakeup source by using the following interface: cat /sys/firmware/scu_wakeup_source/wakeup_src
The above will print the wake groups and the irqs that could have contributed to waking up the kernel. For example if ON/OFF button was the wakeup source: cat /sys/firmware/scu_wakeup_source/wakeup_src Wakeup source group = 3, irq = 0x1
The user can refer to the SCFW API documentation to identify all the wake groups and irqs.
Signed-off-by: Ranjani Vaidyanathan <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| 6c59ce48 | 07-Aug-2023 |
Peng Fan <[email protected]> |
firmware: imx: scu-irq: enlarge the IMX_SC_IRQ_NUM_GROUP
Per SCFW update, update the IMX_SC_IRQ_NUM_GROUP to 9.
Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <shawnguo@kernel.
firmware: imx: scu-irq: enlarge the IMX_SC_IRQ_NUM_GROUP
Per SCFW update, update the IMX_SC_IRQ_NUM_GROUP to 9.
Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| d2bd250c | 07-Aug-2023 |
Peng Fan <[email protected]> |
firmware: imx: scu-irq: add imx_scu_irq_get_status
Extract the scu irq get status code from imx_scu_irq_work_handler and make into a new function imx_scu_irq_get_status which could be used by others
firmware: imx: scu-irq: add imx_scu_irq_get_status
Extract the scu irq get status code from imx_scu_irq_work_handler and make into a new function imx_scu_irq_get_status which could be used by others, such as SECO.
Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| 19a72e0c | 07-Aug-2023 |
Robin Gong <[email protected]> |
firmware: imx: scu-irq: fix RCU complaint after M4 partition reset
Use blocking_notifier_chain instead of atomic_notifier_chain, otherwise there will be RCU complaint, because unregister/register_vi
firmware: imx: scu-irq: fix RCU complaint after M4 partition reset
Use blocking_notifier_chain instead of atomic_notifier_chain, otherwise there will be RCU complaint, because unregister/register_virtio_device() will issue mbox message.
mbox_send_message() is blocking again after received M4 partition reset.
Actually, no need atomic notifier for scu irq notification since this notifier is called in worker instead of interrupt handler.
[ 389.706645] i2c-rpmsg virtio0.rpmsg-i2c-channel.-1.2: i2c rpmsg driver is removed [ 389.767362] Wait for remote ready timeout, use first_notify. [ 389.774084] ------------[ cut here ]------------ [ 389.778729] WARNING: CPU: 0 PID: 397 at kernel/rcu/tree_plugin.h:293 rcu_note_context_switch+0x34/0x338 [ 389.788131] Modules linked in: [ 389.791195] CPU: 0 PID: 397 Comm: kworker/0:13 Not tainted 5.4.0-rc5-02977-g08f78722f07b #26 [ 389.799633] Hardware name: Freescale i.MX8DXL MEK (DT) [ 389.805481] Workqueue: events imx_scu_irq_work_handler
Signed-off-by: Robin Gong <[email protected]> Reviewed-by: Dong Aisheng <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| 150019de | 07-Aug-2023 |
Peng Fan <[email protected]> |
firmware: imx: scu: use soc name for soc_id
Same as soc-imx8m and soc-imx driver, use soc name for soc_id which is user friendly.
Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo
firmware: imx: scu: use soc name for soc_id
Same as soc-imx8m and soc-imx driver, use soc name for soc_id which is user friendly.
Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| 4b9ccf04 | 07-Aug-2023 |
Dong Aisheng <[email protected]> |
firmware: imx: scu: increase RPC timeout
When system loading is high, we can meet some command timeout issue occasionally, so increase the timeout to a safe value.
Signed-off-by: Dong Aisheng <aish
firmware: imx: scu: increase RPC timeout
When system loading is high, we can meet some command timeout issue occasionally, so increase the timeout to a safe value.
Signed-off-by: Dong Aisheng <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| 16dcfe97 | 26-Jan-2022 |
Ming Qian <[email protected]> |
firmware: imx: scu-pd: imx8q: add vpu mu resources
the vpu core depends on the mu resources. if they're missed, the vpu can't work.
Signed-off-by: Ming Qian <[email protected]> Signed-off-by: Shiji
firmware: imx: scu-pd: imx8q: add vpu mu resources
the vpu core depends on the mu resources. if they're missed, the vpu can't work.
Signed-off-by: Ming Qian <[email protected]> Signed-off-by: Shijie Qin <[email protected]> Signed-off-by: Zhou Peng <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|
| 7c6b0892 | 17-Mar-2021 |
Ulf Hansson <[email protected]> |
firmware: imx: scu-pd: Update comments for single global power domain
Since the introduction of the PM domain support for the scu-pd, the genpd framework has been continuously improved. More preciou
firmware: imx: scu-pd: Update comments for single global power domain
Since the introduction of the PM domain support for the scu-pd, the genpd framework has been continuously improved. More preciously, using a single global power domain can quite easily be deployed for imx platforms.
To avoid confusions, let's therefore make an update to the comments about the missing pieces.
Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
show more ...
|