[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()
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") Signed-off-by: Xiaolei Wang --- drivers/soc/imx/soc-imx8m.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/imx/soc-imx8m.c b/drivers/soc/imx/soc-imx8m.c index 466b95242b3e..8217361ad232 100644 --- a/drivers/soc/imx/soc-imx8m.c +++ b/drivers/soc/imx/soc-imx8m.c @@ -135,15 +135,15 @@ static void __init imx8mm_soc_uid(void) soc_uid <<= 32; soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW + offset); - clk_disable_unprepare(clk); - clk_put(clk); - if (offset) { soc_uid_h = readl_relaxed(ocotp_base + IMX8MP_OCOTP_UID_HIGH + 0x10); soc_uid_h <<= 32; soc_uid_h |= readl_relaxed(ocotp_base + IMX8MP_OCOTP_UID_HIGH); } + clk_disable_unprepare(clk); + clk_put(clk); + iounmap(ocotp_base); of_node_put(np); } -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13942): https://lists.yoctoproject.org/g/linux-yocto/message/13942 Mute This Topic: https://lists.yoctoproject.org/mt/106136196/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [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
merged. Bruce In message: [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 on 15/05/2024 Xiaolei Wang wrote: > 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 context at > include/linux/sched/mm.h:274 > in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 529, name: python3 > preempt_count: 1, expected: 0 > RCU nest depth: 0, expected: 0 > Preemption disabled at: > [] ethosu_rpmsg_register+0x24/0x64 > CPU: 1 PID: 529 Comm: python3 Tainted: G C > 6.1.90-yocto-standard #1 > Hardware name: NXP i.MX93 11X11 EVK board (DT) > Call trace: > dump_backtrace.part.0+0xc8/0xd4 > show_stack+0x20/0x30 > dump_stack_lvl+0x6c/0x88 > dump_stack+0x18/0x34 > __might_resched+0x154/0x1c0 > __might_sleep+0x54/0xa4 > kmem_cache_alloc+0x458/0x630 > radix_tree_node_alloc.constprop.0+0x54/0x110 > idr_get_free+0x22c/0x2b0 > idr_alloc_u32+0x70/0x100 > idr_alloc_cyclic+0x6c/0xf0 > ethosu_rpmsg_register+0x3c/0x64 > ethosu_inference_create+0xc0/0x2a4 > ethosu_network_ioctl+0xd4/0x2a0 > __arm64_sys_ioctl+0xb4/0x100 > > Signed-off-by: Xiaolei Wang > --- > drivers/staging/ethosu/ethosu_rpmsg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/ethosu/ethosu_rpmsg.c > b/drivers/staging/ethosu/ethosu_rpmsg.c > index d3e597e82762..f2ab3b366de7 100644 > --- a/drivers/staging/ethosu/ethosu_rpmsg.c > +++ b/drivers/staging/ethosu/ethosu_rpmsg.c > @@ -36,7 +36,7 @@ int ethosu_rpmsg_register(struct ethosu_rpmsg *erp, > struct ethosu_rpmsg_msg *msg) > { > write_lock(>lock); > - msg->id = idr_alloc_cyclic(>msg_idr, msg, 0, INT_MAX, GFP_KERNEL); > + msg->id = idr_alloc_cyclic(>msg_idr, msg, 0, INT_MAX, GFP_ATOMIC); > write_unlock(>lock); > if (msg->id < 0) > return msg->id; > -- > 2.25.1 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13941): https://lists.yoctoproject.org/g/linux-yocto/message/13941 Mute This Topic: https://lists.yoctoproject.org/mt/106112654/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [kernel-cache][PATCH] features/intel-npu: introduce Intel NPU fragment
Which branches were to looking at for this ? 6.6 and master ? just master ? Bruce In message: [kernel-cache][PATCH] features/intel-npu: introduce Intel NPU fragment on 15/05/2024 Naveen Saini wrote: > Add config fragment for the system with an 14th generation > Intel CPU (Meteor Lake) or newer. It will allow users to > enable Intel NPU (formerly called Intel VPU) > which is a CPU-integrated inference accelerator for > Computer Vision and Deep Learning applications. > > Signed-off-by: Naveen Saini > --- > features/intel-npu/intel-npu.cfg | 3 +++ > features/intel-npu/intel-npu.scc | 4 > kern-features.rc | 1 + > 3 files changed, 8 insertions(+) > create mode 100644 features/intel-npu/intel-npu.cfg > create mode 100644 features/intel-npu/intel-npu.scc > > diff --git a/features/intel-npu/intel-npu.cfg > b/features/intel-npu/intel-npu.cfg > new file mode 100644 > index ..6b7ced30 > --- /dev/null > +++ b/features/intel-npu/intel-npu.cfg > @@ -0,0 +1,3 @@ > +# SPDX-License-Identifier: MIT > +CONFIG_DRM_ACCEL=y > +CONFIG_DRM_ACCEL_IVPU=m > diff --git a/features/intel-npu/intel-npu.scc > b/features/intel-npu/intel-npu.scc > new file mode 100644 > index ..782c8499 > --- /dev/null > +++ b/features/intel-npu/intel-npu.scc > @@ -0,0 +1,4 @@ > +# SPDX-License-Identifier: MIT > +define KFEATURE_DESCRIPTION "Enable Intel NPU for Computer Vision and Deep > Learning applications" > + > +kconf hardware intel-npu.cfg > diff --git a/kern-features.rc b/kern-features.rc > index 0e83053c..14381cc8 100644 > --- a/kern-features.rc > +++ b/kern-features.rc > @@ -72,6 +72,7 @@ > config = features/lxc/lxc-enable.scc > config = features/inline/inline.scc > config = features/intel-tco/intel-tco.scc > + config = features/intel-npu/intel-npu.scc > config = features/ftrace/ftrace-function-tracer-disable.scc > config = features/ftrace/ftrace.scc > config = features/vxlan/vxlan-enable.scc > -- > 2.37.3 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13940): https://lists.yoctoproject.org/g/linux-yocto/message/13940 Mute This Topic: https://lists.yoctoproject.org/mt/106109710/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: add support NXP PCF2131 RTC
merged. Bruce In message: [linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: add support NXP PCF2131 RTC on 15/05/2024 Xulin Sun wrote: > Add support NXP PCF2131 RTC for LX2160A-RDB Rev.D. > > Signed-off-by: Xulin Sun > --- > bsp/nxp-lx2xxx/nxp-lx2xxx.cfg | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg > index f8008cb7..c0321756 100644 > --- a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg > +++ b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg > @@ -138,6 +138,7 @@ CONFIG_I2C_MUX_PCA954x=y > CONFIG_RTC_CLASS=y > CONFIG_RTC_DRV_PCF2127=y > CONFIG_RTC_DRV_FSL_FTM_ALARM=y > +CONFIG_RTC_DRV_PCF2131=y > > CONFIG_DMADEVICES=y > CONFIG_FSL_EDMA=y > -- > 2.35.5 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13939): https://lists.yoctoproject.org/g/linux-yocto/message/13939 Mute This Topic: https://lists.yoctoproject.org/mt/106106960/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-