[linux-yocto][yocto-kernel-cache yocto-6.6][PATCH] nxp-imx6: Add scc and cfg files for nxp-imx6 platform

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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|

[linux-yocto] [PATCH 14/14] imx: dpu-blit: Remove GFP_DMA32

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 13/14] gpu: imx: dpu: Use raw_spin_lock instead of mutex_lock

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 11/14] ARM: imx: use raw_spin_lock instead of spin_lock in gpc.c

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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:

[linux-yocto] [PATCH 12/14] ARM: imx: use raw_spin_lock instead of spin_lock in gpcv2.c

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 08/14] video: sii902x: Fix panic caused by sii902x_read_edid

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 10/14] arm: dts: imx6q-sabresd: Enable imx6q pcie

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 09/14] video: fbdev: mxc: hdmi: Fix a memory leak in mxc_hdmi_disp_init

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 07/14] video: fbdev: mxc: Release the previously allocated modedb before parsing edid

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 05/14] ARM: imx: use raw_spin_lock instead of spin_lock

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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>]

[linux-yocto] [PATCH 06/14] drm/bridge: adv7533: Limit supported clocks

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 04/14] irqchip: imx-irqsteer: Block the runtime PM

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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:

[linux-yocto] [PATCH 03/14] drm/bridge: it6263: fix a memory leak when application changeset fails

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 00/14] Patches for nxp-soc

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 01/14] arm: imx: Enable lpddr3_freq_imx for imx6

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [PATCH 02/14] drm/bridge: adv7511: fix a memory leak when application changeset fails

2024-06-05 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] net: Add judgment on fast_raw_socket_fd

2024-05-20 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] soc: imx8mp: place read register before clk_disable_unprepare()

2024-05-16 Thread Xiaolei Wang via lists.yoctoproject.org
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")

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] ethosu: Use GFP_ATOMIC instead of GFP_KERNEL

2024-05-15 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH] arm64: dts: imx93-11x11-evk: Use "alloc-ranges" + "size" instead of "reg" for the eth

2024-05-12 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx9: Enable RTC_DRV_BBNSM for nxp-imx9

2024-05-08 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] soc: imx9: free buf in imx9_soc_device_register()

2024-05-07 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx9: Enable VIDEO_AP1302

2024-04-20 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx9: Enable GPIO_VF610 for nxp-imx9

2024-04-16 Thread Xiaolei Wang via lists.yoctoproject.org
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 @@

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 2/2] tty: serial: fsl_lpuart: use del_timer_sync() instead of lpuart_del_timer_sync()

2024-04-13 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 1/2] soc: imx: add character 't' for SOC_DEV_IMX9

2024-04-13 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [linux-yocto std kernel]: update std kernel for nxp-imx9

2024-04-11 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [linux-yoct rt kernel]: update rt kernel for nxp-imx9

2024-04-11 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/1] nxp-imx9: Enable Arm ETHOS NPU

2024-04-02 Thread Xiaolei Wang via lists.yoctoproject.org
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 @@

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] fec_ecat: Fix build warning in fec_ecat.c

2024-03-28 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 2/3] nxp-imx9: Enable NET_DSA for nxp-imx9

2024-03-26 Thread Xiaolei Wang via lists.yoctoproject.org
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 @@

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 3/3] nxp-imx9: Delete MXC_CLK_SCU since imx93 does not need this driver

2024-03-26 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/3] nxp-imx9: Delete IMX_SCU since imx93 does not need this driver

2024-03-26 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][branch v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 1/2] net: stmmac: Fix build error fpe_cfg undeclared

2024-03-23 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][branch v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 2/2] net: stmmac: Fix build error too few parameters

2024-03-23 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [linux-yocto std kernel]: Add TSN support for imx9

2024-03-22 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [linux-yocto rt kernel]: Add TSN support for imx9

2024-03-22 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 2/3] features/net_sched: Add MULTIQ and NET_EMATCH config

2024-03-21 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/3] features/net: Add xdp feature config

2024-03-21 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 3/3] nxp-imx9: Add some related net config required by tsn

2024-03-21 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 3/3] nxp-imx9: Enable PWM_ADP5585 for imx9 ADP5585

2024-03-06 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 2/3] nxp-imx9: Enable NOP_USB_XCEIV for nxp-imx9

2024-03-06 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/3] nxp-imx9: Enable imx93 MIPI phy

2024-03-06 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] pwm: adp5585: Add return value to pwm_adp5585_get_state()

2024-03-04 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/2] nxp-imx9: Add nxp-imx9 BSP kernel cache

2024-03-03 Thread Xiaolei Wang via lists.yoctoproject.org
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:

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 2/2] nxp-imx9: Enable GPIO_ADP5585 for imx93

2024-03-03 Thread Xiaolei Wang via lists.yoctoproject.org
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 @@

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable nxp-imx8 CAAM

2024-02-18 Thread Xiaolei Wang via lists.yoctoproject.org
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 @@

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable IMX8MM_THERMAL

2024-01-24 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][branch v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH] imx: dpu-blit: Remove GFP_DMA32

2023-12-27 Thread 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 --- 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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable nxp-imx8mp sound CONFIG

2023-12-11 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto] [PATCH 2/2] nxp-imx8: Enable optee CONFIG for imx8 plat

2023-12-08 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto] [PATCH 0/2] Enable optee and hdmi phy

2023-12-08 Thread Xiaolei Wang via lists.yoctoproject.org
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,

[linux-yocto] [PATCH 1/2] nxp-imx8: Enable PHY_SAMSUNG_HDMI_PHY

2023-12-08 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Add imx8mp ethernet CONFIG

2023-12-05 Thread Xiaolei Wang via lists.yoctoproject.org
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 ---

[linux-yocto] [PATCH V2] optee: Suppress false positive kmemleak report in optee_handle_rpc()

2023-12-04 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] optee: Suppress false positive kmemleak report in optee_handle_rpc()

2023-12-04 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 2/2] serial: imx: work-around for hardware RX flood

2023-11-28 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 1/2] serial: imx: factor-out common code to imx_uart_soft_reset()

2023-11-28 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v5.15/standard/nxp-sdk-5.15/nxp-soc & v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-soc][PATCH 2/2] serial: imx: work-around for hardware RX flood

2023-11-28 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][linux-yocto v5.15/standard/nxp-sdk-5.15/nxp-soc & v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-soc][PATCH 1/2] serial: imx: factor-out common code to imx_uart_soft_reset()

2023-11-28 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-5.15] nxp-imx8: Add optee CONFIG for imx8 plat

2023-11-26 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc] mxc: hantro_v4l2: Move mutex_lock from getMsg to v4l2_msg_read()

2023-11-22 Thread Xiaolei Wang via lists.yoctoproject.org
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

[v2][linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] media: amphion: Move the blocking check_is_responsed() out of wait event loop

2023-10-30 Thread Xiaolei Wang via lists.yoctoproject.org
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

Re: [linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] media: amphion: Move the blocking check_is_responsed() out of wait event loop

2023-10-30 Thread Xiaolei Wang via lists.yoctoproject.org
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:

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] media: amphion: Move the blocking check_is_responsed() out of wait event loop

2023-10-30 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx7: set CONFIG_CC_OPTIMIZE_FOR_SIZE to n

2023-10-26 Thread Xiaolei Wang via lists.yoctoproject.org
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)

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] gpu: imx: dpu: Use raw_spin_lock instead of mutex_lock

2023-10-23 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Modify IMX_SDMA from 'y' to 'm'

2023-10-12 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable RTC_DRV_SNVS for imx8mq

2023-10-12 Thread Xiaolei Wang via lists.yoctoproject.org
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 @@

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 2/2] nxp-imx8: Enable QORIQ_THERMAL for imx8mq thermal

2023-10-12 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/2] nxp-imx8: Enable usb dwc3 config

2023-10-12 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 1/1] arm64: dts: imx8qm: Fix build warning unit name should not have leading "0x"

2023-10-10 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH 1/1] ARM: imx: use raw_spin_lock instead of spin_lock

2023-10-09 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx7: Add nxp-imx7 kernel cache for yocto-6.1

2023-09-26 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 1/2] arm: imx: Fix a build error undefined reference to `imx_smp_ops'

2023-09-25 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 2/2] arm: imx: Enable OCOTP clock before reading the register

2023-09-25 Thread Xiaolei Wang via lists.yoctoproject.org
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 ---

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH 1/1] ARM: imx: use raw_spin_lock instead of spin_lock

2023-09-20 Thread Xiaolei Wang via lists.yoctoproject.org
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:

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH] arm: dts: imx6q-sabresd: Enable imx6q pcie

2023-09-12 Thread Xiaolei Wang via lists.yoctoproject.org
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 ---

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable PHY_FSL_IMX8Q_PCIE for imx8qm pci

2023-08-23 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH] video: fbdev: mxc: hdmi: Fix a memory leak in mxc_hdmi_disp_init

2023-08-15 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc] video: sii902x: Fix panic caused by sii902x_read_edid

2023-08-09 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc] video: fbdev: mxc: Release the previously allocated modedb before parsing edid

2023-08-09 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc]Update nxp-soc SDK linux v6.1 patches to rt-kernel

2023-07-27 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][branch v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc]Update nxp-soc SDK linux v6.1 patches

2023-07-26 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 1/1] nxp-imx8: Enable IMX_OCOTP and IMX_OCOTP_SCU

2023-07-21 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] ARM: imx: use raw_spin_lock instead of spin_lock

2023-07-16 Thread Xiaolei Wang via lists.yoctoproject.org
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>]

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH 2/2] drm/bridge: adv7533: Limit supported clocks

2023-07-16 Thread Xiaolei Wang via lists.yoctoproject.org
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 ---

[linux-yocto][v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH 1/2] LF-8851: dmaengine: imx-sdma: sdma driver code optimization

2023-07-16 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx6: set CONFIG_CC_OPTIMIZE_FOR_SIZE to n

2023-07-13 Thread Xiaolei Wang via lists.yoctoproject.org
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]:

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable RESET_IMX7 and MUX_MMIO config

2023-07-12 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx6: Delete unused config CONFIG_USB_EHCI_MXC

2023-07-09 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

Re: [linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Delete unused config CONFIG_USB_EHCI_MXC

2023-06-29 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Delete unused config CONFIG_USB_EHCI_MXC

2023-06-29 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx6: Enable CONFIG_SMP for imx6q

2023-06-27 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

Re: [linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 4/4] nxp-imx8: Enable USB_CHIPIDEA related config

2023-06-12 Thread Xiaolei Wang via lists.yoctoproject.org
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

Re: [linux-yocto] [v2]Review request 0/1: nxp-imx8: Enable USB_CHIPIDEA related config[LIN1023-873 LIN1023-872]

2023-06-09 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto] [v2]Review request 0/1: nxp-imx8: Enable USB_CHIPIDEA related config[LIN1023-873 LIN1023-872]

2023-06-09 Thread Xiaolei Wang via lists.yoctoproject.org
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

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH 4/4] nxp-imx8: Enable USB_CHIPIDEA related config

2023-06-09 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx6: Enable GPU_VIV config for nxp-imx6

2023-06-08 Thread Xiaolei Wang via lists.yoctoproject.org
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 +++

[linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: Enable typec config for nxp-imx8

2023-06-07 Thread Xiaolei Wang via lists.yoctoproject.org
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   2   >