new scc and cfg files for BSP nxp-imx6 on branch yocto-6.6.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx6/nxp-imx6-preempt-rt.scc | 7 +
bsp/nxp-imx6/nxp-imx6-standard.scc | 7 +
bsp/nxp-imx6/nxp-imx6.cfg| 226 +++
bsp/nxp-imx6/nxp-imx6.scc|
From: "Xiaolei Wang via lists.yoctoproject.org"
The DMA32 zone on imx8qm is empty, and GFP_DMA32 and
GFP_DMA are a bad combination.
Signed-off-by: Xiaolei Wang
Signed-off-by: Bruce Ashfield
---
drivers/gpu/imx/dpu-blit/dpu-blit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletio
For Atomic Mode Setting, it is safer to use raw spin lock.
Mutex may cause scheduling, which avoids the following warning.
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:283
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 191, name: kworker/5:13
Use raw_spin_lock instead of spin_lock,
this patch fixes the following warning:
BUG: sleeping function called from invalid context at
kernel/locking/spinlock_rt.c:46
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 506, name: sh
preempt_count: 2, expected: 0
RCU nest depth: 0, expected:
Use raw_spin_lock instead of spin_lock,
this patch fixes the following warning:
Hardware name: Freescale i.MX7 Dual (Device Tree)
unwind_backtrace from show_stack+0x18/0x1c
show_stack from dump_stack_lvl+0x40/0x4c
dump_stack_lvl from __might_resched+0x140/0x1b4
__might_resched from
The data structure edid_fbi needs to be initialized, otherwise
edid_fbi->monspecs.modedb and fbi->monspecs.modedb_len are not
initial values, which will cause illegal free to be detected
by KASAN, and the following panic will appear:
Unable to handle kernel paging request at virtual address
Enable pcie for imx6q-sabresd.
Signed-off-by: Xiaolei Wang
Signed-off-by: Bruce Ashfield
---
arch/arm/boot/dts/nxp/imx/imx6q-sabresd.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-sabresd.dts
b/arch/arm/boot/dts/nxp/imx/imx6q-sabresd.dts
index
When mxc_hdmi_disp_init returns failure, hdmi->fbi->modelist needs
to be released in mxc_hdmi_disp_deinit(), this patch solves the
following memory leaks:
unreferenced object 0xc52a45c0 (size 64):
comm "swapper/0", pid 1, jiffies 4294937844 (age 159.630s)
hex dump (first 32 bytes):
80 45
When we don`t set "video=mxcfb0:dev=hdmi" in bootargs,
but connect hdmi to imx6q, it will trigger a periodically
hdmi interrupt in a few seconds. These repeated interruptions
will read edid and alloc modedb, so we need to release the
modedb before the next allocation.
Fix following memory
CPU: 0 PID: 0 Comm: swapper/0 Tainted: GW
5.15.78-rt48-yocto-preempt-rt #1
Hardware name: Freescale i.MX7 Dual (Device Tree)
[<80110f4c>] (unwind_backtrace) from [<8010aef8>] (show_stack+0x18/0x1c)
[<8010aef8>] (show_stack) from [<80be4998>] (dump_stack_lvl+0x40/0x4c)
[<80be4998>]
Refer to commit 323751dadfbe("MLK-21958-13: drm/bridge: adv7511: Limit
supported clocks")
Add Limit supported clocks for adv7533, Some modes are not working with this
converter.
This will cause hdmi link down, so add this workround patch to solve this
problem.
Signed-off-by: Xiaolei Wang
The irqsteer's runtime PM has to be enabled otherwise the probe of
some devices (such as dpu) will fail because of the failure of
irq_chip_pm_get().
But we can't allow the irqsteer to really enter the suspend state
because it will break the kdump with a call trace like below.
Internal error:
Changeset application failure should be destroyed
unreferenced object 0x0008f249a980 (size 128):
comm "kworker/2:1", pid 83, jiffies 4294893542 (age 70.832s) hex dump
(first 32 bytes):
e0 b6 db 11 00 80 ff ff e0 b6 db 11 00 80 ff ff
05 00 00 00 00 00 00 00 20 de 44 ff 08
gpu: imx: dpu: Use raw_spin_lock instead of mutex_lock
Xiaolei Wang via lists.yoctoproject.org (1):
imx: dpu-blit: Remove GFP_DMA32
arch/arm/boot/dts/nxp/imx/imx6q-sabresd.dts | 4 +
arch/arm/mach-imx/Kconfig| 1 +
arch/arm/mach-imx/Makefile | 2 +-
arch
For imx6 bsp, the SDK actually integrates imx6 config
and imx7 config, so lpddr3_freq_imx is needed when we
use imx6, otherwise it will cause a series of problems,
such as blurred graphics displayed by the display system,
etc., so in order to avoid turning on the CONFIG_SOC_IMX7D and
Changeset application failure should be destroyed
unreferenced object 0x0008f2656480 (size 128):
comm "kworker/2:1", pid 83, jiffies 4294893570 (age 70.724s)
hex dump (first 32 bytes):
c0 b6 db 11 00 80 ff ff c0 b6 db 11 00 80 ff ff
02 00 00 00 00 00 00 00 28 9e
A bug was introduced by commit 20932f1f83d3 ("fec_ecat: add fec native
driver for raw packet proto"). When both fd and fast_raw_socket_fd are
-1, the fast_raw_socket_dev would be null, then it will perform a null
pointer operation and causes the following oops. The fast_raw_socket_dev
is only set
commit 328efccc7847 ("soc: imx8m: Enable OCOTP clock for imx8mm
before reading registers") has re-enabled the clock, so reading
the registers needs to be done before clk_disable_unprepare(),
otherwise the kernel will hang.
Fixes a3985483e7f1 ("LF-9486 soc: imx8mp: support 128 bits UID")
Atomic operations should be employed within rwlock, hence GFP_ATOMIC
is utilized instead of GFP_KERNEL. This ensures the avoidance of the
subsequent call trace and prevents potential misinterpretation of NPU
performance degradation during testing.
BUG: sleeping function called from invalid
Reserve memory defined through "reg" is unconditionally set as reserve
memory, so these reserve memory regions can also be successfully set in
the crash kernel. However, if they are also used as CMA memory and
their starting addresses are not within the accessible range of the
crash kernel, it
Enable RTC_DRV_BBNSM for nxp-imx9.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index d68b93be..4726803b 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
Free unused buffer to avoid memory leak in imx9_soc_device_register().
unreferenced object 0xff8009215180 (size 128):
comm "(udev-worker)", pid 309, jiffies 4294901878 (age 65.740s)
hex dump (first 32 bytes):
6c d3 c9 a7 8d 1c 40 bb b4 b8 63 8a 4b 1d 3d cc l.@...c.K.=.
00
Enable VIDEO_AP1302 for imx93, since
ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin
firmware needs to be loaded, build it as a module
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg
Enable GPIO_VF610 for nxp-imx9.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index 8654f93c..5e4cd6dc 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
@@
Replace lpuart_del_timer_sync() with del_timer_sync() to avoid build
errors, which were introduced by commit b7f2b65538dd ("LF-9506-1 tty:
serial: fsl_lpuart: clean up EOP related code in lpuart driver")
Signed-off-by: Xiaolei Wang
---
drivers/tty/serial/fsl_lpuart.c | 2 +-
1 file changed, 1
commit 75e1b1be1109 ("LF-9535 soc: imx: split i.MX93 SoC device support
from soc-imx8m.c") is missing the character 't' during the backport
process, so add it.
Signed-off-by: Xiaolei Wang
---
drivers/soc/imx/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Hi bruce
Would you please help to merge the following patch into branch:
v6.1/standard/nxp-sdk-6.1/nxp-soc
for nxp-imx9 bsp?
The following changes since commit 93c514e7433e49536a23abaca358935674922bad:
arm64: dts: fix ecspi2 dts node (2024-03-22 11:48:47 +0800)
are available in
Hi bruce
Would you please help to merge the following patch into branch:
v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc
for nxp-imx9 bsp?
The following changes since commit 6d570a6b9d2e8aaabc5e7d461334974b9574b386:
arm64: dts: fix ecspi2 dts node (2024-03-22 11:52:56 +0800)
are
Enable Arm ETHOS NPU.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 5 +
1 file changed, 5 insertions(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index 8ad37abb..8654f93c 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
@@
commit ("fec_ecat: add fec native driver for raw packet prot"),
introduced many warnings, which comes from the SDK, Since too
many warnings are introduced by this file, this patch fixes all
warnings.
Signed-off-by: Xiaolei Wang
---
drivers/net/ethernet/freescale/fec_ecat.c | 131
Enable NET_DSA for nxp-imx9.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index 29c3b8e3..c034cb5c 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
@@
MXC_CLK_SCU is specific on imx8, so remove it to avoid warnings
[NOTE]: 'CONFIG_MXC_CLK_SCU' last val (y) and .config val (n) do not match
[INFO]: CONFIG_MXC_CLK_SCU : n
[INFO]: raw config text:
config MXC_CLK_SCU
tristate
depends on COMMON_CLK
IMX_SCU is specific on imx8, so remove it to avoid warnings
[NOTE]: 'CONFIG_PINCTRL_IMX_SCU' last val (y) and .config val (n) do not match
[INFO]: CONFIG_PINCTRL_IMX_SCU : n
[INFO]: raw config text:
config PINCTRL_IMX_SCU
tristate
select
Use priv->plat->fpe_cfg instead of fpe_cfg to avoid fpe_cfg undeclared
Fixes: b102a918b11cb ("net: stmmac: add ethtool preempt support")
Signed-off-by: Xiaolei Wang
---
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Since commit ed7e211b6786 ("net: stmmac: fix FPE events losing")
adds the fpe_cfg parameter, add it to avoid build errors.
error: too few arguments to function 'priv->hw->mac->fpe_send_mpacket'
Signed-off-by: Xiaolei Wang
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
1 file
Hi Bruce
Would you please help to merge the following patch into branch:
v6.1/standard/nxp-sdk-6.1/nxp-soc
for nxp-imx9 bsp?
The following changes since commit b9f1e20c17376d047aa8d6a9f1a06e970da2d1f9:
Merge branch 'v6.1/standard/base' into v6.1/standard/nxp-sdk-6.1/nxp-soc
Hi Bruce
Would you please help to merge the following patch into branch:
v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc
for nxp-imx9 bsp?
The following changes since commit 89c072e5b53d68d8c1f79cfe2f61f3a52556ae1d:
Merge branch 'v6.1/standard/base' into
Add MULTIQ and NET_EMATCH config.
Signed-off-by: Xiaolei Wang
---
features/net_sched/net_sched.cfg | 5 +
1 file changed, 5 insertions(+)
diff --git a/features/net_sched/net_sched.cfg b/features/net_sched/net_sched.cfg
index d0473170..137ca752 100644
--- a/features/net_sched/net_sched.cfg
Add xdp feature config.
Signed-off-by: Xiaolei Wang
---
features/net/xdp/xdp.cfg | 1 +
features/net/xdp/xdp.scc | 1 +
2 files changed, 2 insertions(+)
create mode 100644 features/net/xdp/xdp.cfg
create mode 100644 features/net/xdp/xdp.scc
diff --git a/features/net/xdp/xdp.cfg
Add some related net config required by tsn.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9-preempt-rt.scc | 2 ++
bsp/nxp-imx9/nxp-imx9-standard.scc | 2 ++
bsp/nxp-imx9/nxp-imx9.cfg| 6 ++
3 files changed, 10 insertions(+)
diff --git
Enable PWM_ADP5585 for imx9 ADP5585.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index c4c2b91c..499b0750 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++
Enable NOP_USB_XCEIV for nxp-imx9.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index 1fd96acd..c4c2b91c 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
Enable imx93 MIPI phy.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index 1bee68aa..1fd96acd 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
@@ -341,6
commit 547cc8dae247 ("pwm: Make .get_state() callback return an error code")
has added a return value to get_state(), so modify and add a return value
to avoid build errors.
error: initialization of 'int (*)(struct pwm_chip *, struct pwm_device *,
struct pwm_state *)' from incompatible pointer
nxp-imx9 and nxp-imx8 use a set of kernel cache in the
SDK, and some drivers are common, such as the media module,
so here I deleted the imx8-related pinctrl, clk and other
CPU-related configurations based on the imx8 kernel cache,
no changes will be made to other peripherals.
Signed-off-by:
Enable GPIO_ADP5585 for imx93.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx9/nxp-imx9.cfg | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsp/nxp-imx9/nxp-imx9.cfg b/bsp/nxp-imx9/nxp-imx9.cfg
index 945541a1..1bee68aa 100644
--- a/bsp/nxp-imx9/nxp-imx9.cfg
+++ b/bsp/nxp-imx9/nxp-imx9.cfg
@@
Enable nxp-imx8 CAAM.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 6 ++
1 file changed, 6 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index e5548296..5de6ed4a 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
@@
Enable IMX8MM_THERMAL for iMX8MP.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index e5548296..c79ad57d 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
The DMA32 zone on imx8qm is empty, and GFP_DMA32 and
GFP_DMA are a bad combination.
Signed-off-by: Xiaolei Wang
---
drivers/gpu/imx/dpu-blit/dpu-blit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/imx/dpu-blit/dpu-blit.c
b/drivers/gpu/imx/dpu-blit/dpu-blit.c
Enable nxp-imx8mp sound CONFIG.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 5 +
1 file changed, 5 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 8426aec5..e5548296 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
Enable optee CONFIG for imx8 plat.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 6 ++
1 file changed, 6 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 1116b2c0..8426aec5 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
Hi Bruce,
Please help to merge code into our linux-yocto repo.
repo:
yocto-kernel-cache
branch:
yocto-6.1
Xiaolei Wang (2):
nxp-imx8: Enable PHY_SAMSUNG_HDMI_PHY
nxp-imx8: Enable optee CONFIG for imx8 plat
bsp/nxp-imx8/nxp-imx8.cfg | 7 +++
1 file changed,
Enable PHY_SAMSUNG_HDMI_PHY for imx8mp hdmi
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 5f33ddf8..1116b2c0 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
Enable STMMAC and REALTEK_PHY due to imx8mp use RTL8211FDI-CG PHY.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 0e4fa067..605348bc 100644
---
We observed the following kmemleak report:
unreferenced object 0x07904500 (size 128):
comm "swapper/0", pid 1, jiffies 4294892671 (age 44.036s)
hex dump (first 32 bytes):
00 47 90 07 00 00 ff ff 60 00 c0 ff 00 00 00 00 .G..`...
60 00 80 13 00 80 ff ff a0 00 00 00 00 00
We observed the following kmemleak report:
unreferenced object 0x07904500 (size 128):
comm "swapper/0", pid 1, jiffies 4294892671 (age 44.036s)
hex dump (first 32 bytes):
00 47 90 07 00 00 ff ff 60 00 c0 ff 00 00 00 00 .G..`...
60 00 80 13 00 80 ff ff a0 00 00 00 00 00
From: Sergey Organov
commit 496a4471b7c3ae5c0be1a3fccd69e7debc127e08 from upstream.
Check if hardware Rx flood is in progress, and issue soft reset to UART to
stop the flood.
A way to reproduce the flood (checked on iMX6SX) is: open iMX UART at 9600
8N1, and from external source send 0xf0 char
From: Sergey Organov
commit d45fb2e430e54fac6af3cabb39c36171c4bf3f52 from upstream.
We perform soft reset in 2 places, slightly differently for no sufficient
reasons, so move more generic variant to a function, and re-use the code.
Out of 2 repeat counters, 10 and 100, select 10, as the code
From: Sergey Organov
commit 496a4471b7c3ae5c0be1a3fccd69e7debc127e08 from upstream.
Check if hardware Rx flood is in progress, and issue soft reset to UART to
stop the flood.
A way to reproduce the flood (checked on iMX6SX) is: open iMX UART at 9600
8N1, and from external source send 0xf0 char
From: Sergey Organov
commit d45fb2e430e54fac6af3cabb39c36171c4bf3f52 from upstream.
We perform soft reset in 2 places, slightly differently for no sufficient
reasons, so move more generic variant to a function, and re-use the code.
Out of 2 repeat counters, 10 and 100, select 10, as the code
Add optee CONFIG for imx8 plat.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 6 ++
1 file changed, 6 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 7f44ff44..8eebf588 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
Move mutex_lock to v4l2_msg_read() to avoid the following warning:
wait_event_interruptible_timeout will set task to TASK_INTERRUPT,
if the first v4l2_msg_read() has not ended, and the second
v4l2_msg_read() enters might_sleep, the following warning will be reported.
WARNING: CPU: 1 PID: 236 at
The blocking ops can't be used as a condition parameter of
wait_event_timeout(), otherwise we would get a warning like below:
do not call blocking ops when !TASK_RUNNING; state=2
WARNING: CPU: 5 PID: 741 at kernel/sched/core.c:9859 __might_sleep+0x80/0xa4
CPU: 5 PID: 741 Comm: mxc_v4l2_vpu_te
Drop this patch since there is a little problem with the commit log, I will
send v2
thanks
xiaolei
From: Wang, Xiaolei
Sent: Monday, October 30, 2023 4:21 PM
To: bruce.ashfi...@gmail.com
Cc: linux-yocto@lists.yoctoproject.org
Subject:
The blocking ops can't be used as a condition parameter of
wait_event_timeout(), otherwise we would get a warning like below:
The blocking ops can't be used as a condition parameter of
wait_event_timeout(), otherwise we would get a warning like below:
do not call blocking ops when
Disable CONFIG_CC_OPTIMIZE_FOR_SIZE to fix the warning when
do_kernel_configcheck:
[NOTE]: 'CONFIG_CC_OPTIMIZE_FOR_SIZE' last val (n) and .config val (y) do not
match
[INFO]: CONFIG_CC_OPTIMIZE_FOR_SIZE : y ## .config: 210
:configs/v6.1/standard/preempt-rt/arch/arm/arm.cfg (y)
For Atomic Mode Setting, it is safer to use raw spin lock.
Mutex may cause scheduling, which avoids the following warning.
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:283
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 191, name: kworker/5:13
According to lastest SDK, we need modify IMX_SDMA from 'y' to 'm',
sdma need load firmware,initialization is completed immediately.
otherwise 'sdma or sdma firmware not ready!' will occurs.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 2 +-
1 file changed, 1 insertion(+), 1
Enable RTC_DRV_SNVS for imx8mq.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 116e055a..404d848b 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
@@
Enable QORIQ_THERMAL for imx8mq thermal.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 82e7e81a..116e055a 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
Enable usb dwc3 config for imx8mq.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 9ba3ee88..82e7e81a 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
Prefixing the address with '0x' is already redundant,
so remove it. This patch fixes the following warning:
unit name should not have leading "0x"
Signed-off-by: Xiaolei Wang
---
arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
Use raw_spin_lock instead of spin_lock,
this patch fixes the following warning:
Hardware name: Freescale i.MX7 Dual (Device Tree)
unwind_backtrace from show_stack+0x18/0x1c
show_stack from dump_stack_lvl+0x40/0x4c
dump_stack_lvl from __might_resched+0x140/0x1b4
__might_resched from
Add nxp-imx7 kernel cache for yocto-6.1.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx7/nxp-imx7-preempt-rt.scc | 7 +
bsp/nxp-imx7/nxp-imx7-standard.scc | 7 +
bsp/nxp-imx7/nxp-imx7.cfg| 241 +++
bsp/nxp-imx7/nxp-imx7.scc| 7 +
4 files
Due to imx7 compilation depends on some imx6 code,
so when imx6 config is not enabled, we will encounter
undefined reference to `imx_smp_ops', so include the
compilation of platsmp.c to imx7d.
Signed-off-by: Xiaolei Wang
Signed-off-by: Bruce Ashfield
---
arch/arm/mach-imx/Makefile | 2 +-
1
OCOTP register access needs the OCOTP clock to be
running and this code peeks into this register region,
so it needs to ensure the clock is active. Otherwise,
this will affect the second kernel startup of kexec.
Signed-off-by: Xiaolei Wang
Signed-off-by: Bruce Ashfield
---
Use raw_spin_lock instead of spin_lock,
this patch fixes the following warning:
BUG: sleeping function called from invalid context at
kernel/locking/spinlock_rt.c:46
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 506, name: sh
preempt_count: 2, expected: 0
RCU nest depth: 0, expected:
Enable pcie for imx6q-sabresd.
Signed-off-by: Xiaolei Wang
---
arch/arm/boot/dts/imx6q-sabresd.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/imx6q-sabresd.dts
b/arch/arm/boot/dts/imx6q-sabresd.dts
index ca8c7d1a29cb..b4463f952831 100644
---
nxp-imx8 has been updated to version 6.1.22,
PHY_FSL_IMX8Q_PCIE is necessary for imx8qm, so enable it.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 9ba3ee88..918df233
When mxc_hdmi_disp_init returns failure, hdmi->fbi->modelist needs
to be released in mxc_hdmi_disp_deinit(), this patch solves the
following memory leaks:
unreferenced object 0xc52a45c0 (size 64):
comm "swapper/0", pid 1, jiffies 4294937844 (age 159.630s)
hex dump (first 32 bytes):
80 45
The data structure edid_fbi needs to be initialized, otherwise
edid_fbi->monspecs.modedb and fbi->monspecs.modedb_len are not
initial values, which will cause illegal free to be detected
by KASAN, and the following panic will appear:
Unable to handle kernel paging request at virtual address
When we don`t set "video=mxcfb0:dev=hdmi" in bootargs,
but connect hdmi to imx6q, it will trigger a periodically
hdmi interrupt in a few seconds. These repeated interruptions
will read edid and alloc modedb, so we need to release the
modedb before the next allocation.
Fix following memory
Hi bruce
Would you please merge the following patch into branch
v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc
The following changes since commit 0879a175f62e5b4a576e808065fbcd47a5e1925b:
Merge branch 'v6.1/standard/base' into
v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc (2023-07-27 11:00:34
Hi bruce
Would you please merge the following patch into branch
v6.1/standard/nxp-sdk-6.1/nxp-soc &
v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc
The following changes since commit 417a87f29499c7301ad5cdb16136d38abdea23fa:
LF-8851: dmaengine: imx-sdma: sdma driver code optimization
Fec mac addr exists in nvmem and needs to be read by SCU,
so there is a dependency between fec and IMX_OCOTP,
if IMX_OCOTP is disable, this may cause fec loading delay
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 3 +++
1 file changed, 3 insertions(+)
diff --git
CPU: 0 PID: 0 Comm: swapper/0 Tainted: GW
5.15.78-rt48-yocto-preempt-rt #1
Hardware name: Freescale i.MX7 Dual (Device Tree)
[<80110f4c>] (unwind_backtrace) from [<8010aef8>] (show_stack+0x18/0x1c)
[<8010aef8>] (show_stack) from [<80be4998>] (dump_stack_lvl+0x40/0x4c)
[<80be4998>]
Refer to commit 323751dadfbe("MLK-21958-13: drm/bridge: adv7511: Limit
supported clocks")
Add Limit supported clocks for adv7533, Some modes are not working with this
converter.
This will cause hdmi link down, so add this workround patch to solve this
problem.
Signed-off-by: Xiaolei Wang
---
From: Joy Zou
commit e708cbc250efab668507628d49bfec578b94f3ed from
https://github.com/nxp-imx/linux-imx.git lf-6.1.y
The bluetooth starts to use sdma before sdma driver initialization done.
It will cause NULL pointer access.
This patch adds sdma is_on check in order to avoid accessing NULL
Disable CONFIG_CC_OPTIMIZE_FOR_SIZE to fix the warning when
do_kernel_configcheck:
WARNING: linux-yocto-rt-6.1.27+gitAUTOINC+9045c12fb0_e318b47db6-r0
do_kernel_configcheck: [kernel config]: specified values did not make it into
the kernel's final configuration:
[NOTE]:
RESET_IMX7 and MUX_MMIO are necessary for imx8m hdmi display.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index b116ae2d..5477d081 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
CONFIG_USB_EHCI_MXC has been deleted by SDK,
so delete it.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx6/nxp-imx6.cfg | 1 -
1 file changed, 1 deletion(-)
diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg
index 9d8b42ae..31a56ff2 100644
--- a/bsp/nxp-imx6/nxp-imx6.cfg
+++
drop this patch
thanks
xiaolei
From: linux-yocto@lists.yoctoproject.org
on behalf of Xiaolei Wang via lists.yoctoproject.org
Sent: Thursday, June 29, 2023 4:36 PM
To: bruce.ashfi...@gmail.com
Cc: linux-yocto@lists.yoctoproject.org
Subject: [linux-yocto
CONFIG_USB_EHCI_MXC has been deleted by SDK,
so delete it.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx6/nxp-imx6.cfg | 1 -
1 file changed, 1 deletion(-)
diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg
index 9d8b42ae..31a56ff2 100644
--- a/bsp/nxp-imx6/nxp-imx6.cfg
+++
imx6q has 4 cpus, so enable CONFIG_SMP.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx6/nxp-imx6.cfg | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg
index 9d8b42ae..2117f04c 100644
--- a/bsp/nxp-imx6/nxp-imx6.cfg
+++
Hi bruce
please help merge this patch
thanks
xiaolei
From: linux-yocto@lists.yoctoproject.org
on behalf of Xiaolei Wang via lists.yoctoproject.org
Sent: Friday, June 9, 2023 5:42 PM
To: bruce.ashfi...@gmail.com
Cc: linux-yocto@lists.yoctoproject.org
Subject
ignor this email
thanks
xiaolei
From: linux-yocto@lists.yoctoproject.org
on behalf of Xiaolei Wang via lists.yoctoproject.org
Sent: Friday, June 9, 2023 5:42 PM
To: bruce.ashfi...@gmail.com
Cc: linux-yocto@lists.yoctoproject.org
Subject: [linux-yocto] [v2
Summary: nxp-imx8: Enable USB_CHIPIDEA related config
Tech Review: Mengli
Gatekeeper: Kexin
Lockdown Approval (if needed):
Branch Tag: yocto-6.1
IP Statement (form link or license statement, usually automated):
Crypto URL(s) (if needed): see https://jive.windriver.com/docs/DOC-80428
Parent
Enable USB_CHIPIDEA related config for nxp-imx8.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 7 +++
1 file changed, 7 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 1581cdc6..b116ae2d 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
Enable GPU_VIV config for nxp-imx6 graphic.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx6/nxp-imx6.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg
index 4aff5ceb..9d8b42ae 100644
--- a/bsp/nxp-imx6/nxp-imx6.cfg
+++
Enable typec config for nxp-imx8.
Signed-off-by: Xiaolei Wang
---
bsp/nxp-imx8/nxp-imx8.cfg | 8
1 file changed, 8 insertions(+)
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 233e1d4e..1581cdc6 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++
1 - 100 of 120 matches
Mail list logo