Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
> -Original Message- > From: Bruce Ashfield > Sent: Tuesday, June 18, 2024 9:21 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg > mode during gadget suspend/resume to avoid deadlock > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Tue, Jun 18, 2024 at 8:35 AM Li, Meng wrote: > > > > > > > > > -Original Message- > > > From: linux-yocto@lists.yoctoproject.org > > > > > > On Behalf Of Bruce Ashfield > > > Sent: Tuesday, June 18, 2024 8:29 PM > > > To: Li, Meng > > > Cc: linux-yocto@lists.yoctoproject.org > > > Subject: Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock > > > of otg mode during gadget suspend/resume to avoid deadlock > > > > > > CAUTION: This email comes from a non Wind River email account! > > > Do not click links or open attachments unless you recognize the > > > sender and know the content is safe. > > > > > > On Tue, Jun 18, 2024 at 12:02 AM Meng Li > wrote: > > > > > > > > When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger > > > system > > > > to enter suspend status with below command: > > > > echo mem > /sys/power/state > > > > There will be a deadlock issue occurring. Detailed invoking path > > > > as > > > > below: > > > > dwc3_suspend_common() > > > > spin_lock_irqsave(>lock, flags); <-- 1st > > > > dwc3_gadget_suspend(dwc); > > > > dwc3_gadget_soft_disconnect(dwc); > > > > spin_lock_irqsave(>lock, flags); <-- 2nd > > > > This issue is exposed by commit c7ebd8149ee5 ("usb: dwc3: gadget: > > > > Fix NULL pointer dereference in dwc3_gadget_suspend") that removes > > > > the code of checking whether dwc->gadget_driver is NULL or not. It > > > > causes the following code is executed and deadlock occurs when > > > > trying to get the spinlock. In fact, the root cause is the commit > 5265397f9442("usb: > > > dwc3: > > > > Remove DWC3 locking during gadget suspend/resume") that forgot to > > > > remove the lock of otg mode. So, remove the redundant lock of otg > > > > mode during gadget suspend/resume. > > > > > > > > > > I'll apply this to v6.6/standard/base and linux-yocto-dev > > > v6.10/standard/base. > > > > > > > This patch works fine for v6.6/standard/base. > > About the v6.10/standard/base branch, there is code context conflict. > > I assume that the maintainers patch or other changes are protecting > 6.10 from the issue ? > Yes! I think my v2 patch for mainline will be merged into one of v6.10-rc, and then this issue will be fixed in v6.10. Thanks, LImeng > > > > > Correct me if I'm wrong and you'd still prefer it on the BSP branches. > > > > > > > Yes! I would like to it on BSP branches, too. > > This is now merged. Whenever something goes to standard/base, it will > always be on all BSPs as well since my scripts merge from the core branches to > all BSP leaf branches on every change. > > Bruce > > > > > Thanks, > > Limeng > > > > > Bruce > > > > > > > Fixes: 5265397f9442 ("usb: dwc3: Remove DWC3 locking during gadget > > > > suspend/resume") > > > > Cc: Xu Yang > > > > Cc: sta...@vger.kernel.org > > > > Signed-off-by: Meng Li > > > > --- > > > > drivers/usb/dwc3/core.c | 6 -- > > > > 1 file changed, 6 deletions(-) > > > > > > > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > > > > index a8fb10cc65bc..9bb4ab409bbb 100644 > > > > --- a/drivers/usb/dwc3/core.c > > > > +++ b/drivers/usb/dwc3/core.c > > > > @@ -2112,7 +2112,6 @@ static int dwc3_core_init_for_resume(struct > > > dwc3 > > > > *dwc) > > > > > > > > static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t > > > > msg) > > > { > > > > - unsigned long flags; > > > > u32 reg; > > > > > > > > switch (dwc->current_dr_role) { @@ -2150,9 +2149,7 @@ > > > > sta
Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
> -Original Message- > From: linux-yocto@lists.yoctoproject.org > On Behalf Of Bruce Ashfield > Sent: Tuesday, June 18, 2024 8:29 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg > mode during gadget suspend/resume to avoid deadlock > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Tue, Jun 18, 2024 at 12:02 AM Meng Li wrote: > > > > When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger > system > > to enter suspend status with below command: > > echo mem > /sys/power/state > > There will be a deadlock issue occurring. Detailed invoking path as > > below: > > dwc3_suspend_common() > > spin_lock_irqsave(>lock, flags); <-- 1st > > dwc3_gadget_suspend(dwc); > > dwc3_gadget_soft_disconnect(dwc); > > spin_lock_irqsave(>lock, flags); <-- 2nd > > This issue is exposed by commit c7ebd8149ee5 ("usb: dwc3: gadget: Fix > > NULL pointer dereference in dwc3_gadget_suspend") that removes the > > code of checking whether dwc->gadget_driver is NULL or not. It causes > > the following code is executed and deadlock occurs when trying to get > > the spinlock. In fact, the root cause is the commit 5265397f9442("usb: > dwc3: > > Remove DWC3 locking during gadget suspend/resume") that forgot to > > remove the lock of otg mode. So, remove the redundant lock of otg mode > > during gadget suspend/resume. > > > > I'll apply this to v6.6/standard/base and linux-yocto-dev > v6.10/standard/base. > This patch works fine for v6.6/standard/base. About the v6.10/standard/base branch, there is code context conflict. > Correct me if I'm wrong and you'd still prefer it on the BSP branches. > Yes! I would like to it on BSP branches, too. Thanks, Limeng > Bruce > > > Fixes: 5265397f9442 ("usb: dwc3: Remove DWC3 locking during gadget > > suspend/resume") > > Cc: Xu Yang > > Cc: sta...@vger.kernel.org > > Signed-off-by: Meng Li > > --- > > drivers/usb/dwc3/core.c | 6 -- > > 1 file changed, 6 deletions(-) > > > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index > > a8fb10cc65bc..9bb4ab409bbb 100644 > > --- a/drivers/usb/dwc3/core.c > > +++ b/drivers/usb/dwc3/core.c > > @@ -2112,7 +2112,6 @@ static int dwc3_core_init_for_resume(struct > dwc3 > > *dwc) > > > > static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) > { > > - unsigned long flags; > > u32 reg; > > > > switch (dwc->current_dr_role) { @@ -2150,9 +2149,7 @@ static > > int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) > > break; > > > > if (dwc->current_otg_role == DWC3_OTG_ROLE_DEVICE) { > > - spin_lock_irqsave(>lock, flags); > > dwc3_gadget_suspend(dwc); > > - spin_unlock_irqrestore(>lock, flags); > > synchronize_irq(dwc->irq_gadget); > > } > > > > @@ -2169,7 +2166,6 @@ static int dwc3_suspend_common(struct dwc3 > *dwc, > > pm_message_t msg) > > > > static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) { > > - unsigned long flags; > > int ret; > > u32 reg; > > > > @@ -2227,9 +2223,7 @@ static int dwc3_resume_common(struct dwc3 > *dwc, pm_message_t msg) > > if (dwc->current_otg_role == DWC3_OTG_ROLE_HOST) { > > dwc3_otg_host_init(dwc); > > } else if (dwc->current_otg_role == DWC3_OTG_ROLE_DEVICE) { > > - spin_lock_irqsave(>lock, flags); > > dwc3_gadget_resume(dwc); > > - spin_unlock_irqrestore(>lock, flags); > > } > > > > break; > > -- > > 2.34.1 > > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await thee at > its end > - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14062): https://lists.yoctoproject.org/g/linux-yocto/message/14062 Mute This Topic: https://lists.yoctoproject.org/mt/106735260/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger system to enter suspend status with below command: echo mem > /sys/power/state There will be a deadlock issue occurring. Detailed invoking path as below: dwc3_suspend_common() spin_lock_irqsave(>lock, flags); <-- 1st dwc3_gadget_suspend(dwc); dwc3_gadget_soft_disconnect(dwc); spin_lock_irqsave(>lock, flags); <-- 2nd This issue is exposed by commit c7ebd8149ee5 ("usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend") that removes the code of checking whether dwc->gadget_driver is NULL or not. It causes the following code is executed and deadlock occurs when trying to get the spinlock. In fact, the root cause is the commit 5265397f9442("usb: dwc3: Remove DWC3 locking during gadget suspend/resume") that forgot to remove the lock of otg mode. So, remove the redundant lock of otg mode during gadget suspend/resume. Fixes: 5265397f9442 ("usb: dwc3: Remove DWC3 locking during gadget suspend/resume") Cc: Xu Yang Cc: sta...@vger.kernel.org Signed-off-by: Meng Li --- drivers/usb/dwc3/core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index a8fb10cc65bc..9bb4ab409bbb 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -2112,7 +2112,6 @@ static int dwc3_core_init_for_resume(struct dwc3 *dwc) static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) { - unsigned long flags; u32 reg; switch (dwc->current_dr_role) { @@ -2150,9 +2149,7 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) break; if (dwc->current_otg_role == DWC3_OTG_ROLE_DEVICE) { - spin_lock_irqsave(>lock, flags); dwc3_gadget_suspend(dwc); - spin_unlock_irqrestore(>lock, flags); synchronize_irq(dwc->irq_gadget); } @@ -2169,7 +2166,6 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) { - unsigned long flags; int ret; u32 reg; @@ -2227,9 +2223,7 @@ static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) if (dwc->current_otg_role == DWC3_OTG_ROLE_HOST) { dwc3_otg_host_init(dwc); } else if (dwc->current_otg_role == DWC3_OTG_ROLE_DEVICE) { - spin_lock_irqsave(>lock, flags); dwc3_gadget_resume(dwc); - spin_unlock_irqrestore(>lock, flags); } break; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14053): https://lists.yoctoproject.org/g/linux-yocto/message/14053 Mute This Topic: https://lists.yoctoproject.org/mt/106735260/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
From: Limeng Hi Bruce, This patch is used to fix deadlock issues when testing suspend/resume. I have sent v2to mainline upstream. So, could you please help merge these patches into linux-ycoto kernel in advance, both below 2 branchs? v6.6/standard/nxp-sdk-6.6/nxp-soc v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc diffstat info as below: core.c |6 -- 1 file changed, 6 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14052): https://lists.yoctoproject.org/g/linux-yocto/message/14052 Mute This Topic: https://lists.yoctoproject.org/mt/106647367/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/kernel-rt]: usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
> -Original Message- > From: Bruce Ashfield > Sent: Friday, June 14, 2024 8:53 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: remove lock > of > otg mode during gadget suspend/resume to avoid deadlock > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Thu, Jun 13, 2024 at 8:16 PM Li, Meng wrote: > > > > > > > > > -Original Message- > > > From: Bruce Ashfield > > > Sent: Friday, June 14, 2024 3:24 AM > > > To: Li, Meng > > > Cc: linux-yocto@lists.yoctoproject.org > > > Subject: Re: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: > > > remove lock of otg mode during gadget suspend/resume to avoid > > > deadlock > > > > > > CAUTION: This email comes from a non Wind River email account! > > > Do not click links or open attachments unless you recognize the > > > sender and know the content is safe. > > > > > > In message: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: > > > remove lock of otg mode during gadget suspend/resume to avoid > > > deadlock on 13/06/2024 Meng Li wrote: > > > > > > > From: Limeng > > > > > > > > Hi Bruce, > > > > > > > > This patch is used to fix deadlock issues when testing > > > > suspend/resume. I will > > > send it to mainline upstream in later. > > > > So, could you please help merge these patches into linux-ycoto > > > > kernel in > > > advance, both below 2 branchs? > > > > v6.6/standard/nxp-sdk-6.6/nxp-soc > > > > v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc > > > > > > Given the response of upstream, I'll wait until you've replied and > > > an agreed upon solution is acheived. > > > > > > > Ok! I agree your advice, wait for the upstream response from USB > maintainer, and then improve my patch. > > I can reproduce this issue on NXP platforms using usb dwc3 driver, for > > example, ls1028. And I also verify this patch, suspend/resume feature works > fine with it. > > I think maybe it needs a long period to review this patch in upstream > community, and then accept it finally. Maybe it is not accepted by upstream in > worse case. > > So, is it possible to merge this patch into NXP branch, not standard/base > branch in advance? In this way, it will not affect other BSP. > > > > I haven't checked yet today for any more follow ups on the patch upstream, > but let's give it a few more days. > > I definitely don't need the patch accepted upstream to merge it, but if we can > at least hear that the approach is generally correct from the maintainers, I'm > happy to merge the work in progress patch to the nxp branches. > I got response from usb maintainer. He ACK Xu Yang's patch that is similar with mine, but miss to remove the lock in dwc3_resume_common(). So, maintainer let me send patch again. I will improve the commit log, and then sent patch to you and mainline at the same time. https://lore.kernel.org/lkml/2024061313-october-sniff-5b0c@gregkh/t/ thanks, Limeng > Bruce > > > Thanks, > > LImeng > > > > > Bruce > > > > > > > > > > > diffstat info as below: > > > > > > > > core.c |6 -- > > > > 1 file changed, 6 deletions(-) > > > > > > > > > > > > thanks, > > > > Limeng > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await thee at > its end > - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14051): https://lists.yoctoproject.org/g/linux-yocto/message/14051 Mute This Topic: https://lists.yoctoproject.org/mt/106647367/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/kernel-rt]: usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
> -Original Message- > From: Bruce Ashfield > Sent: Friday, June 14, 2024 8:53 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: remove lock > of > otg mode during gadget suspend/resume to avoid deadlock > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Thu, Jun 13, 2024 at 8:16 PM Li, Meng wrote: > > > > > > > > > -Original Message- > > > From: Bruce Ashfield > > > Sent: Friday, June 14, 2024 3:24 AM > > > To: Li, Meng > > > Cc: linux-yocto@lists.yoctoproject.org > > > Subject: Re: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: > > > remove lock of otg mode during gadget suspend/resume to avoid > > > deadlock > > > > > > CAUTION: This email comes from a non Wind River email account! > > > Do not click links or open attachments unless you recognize the > > > sender and know the content is safe. > > > > > > In message: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: > > > remove lock of otg mode during gadget suspend/resume to avoid > > > deadlock on 13/06/2024 Meng Li wrote: > > > > > > > From: Limeng > > > > > > > > Hi Bruce, > > > > > > > > This patch is used to fix deadlock issues when testing > > > > suspend/resume. I will > > > send it to mainline upstream in later. > > > > So, could you please help merge these patches into linux-ycoto > > > > kernel in > > > advance, both below 2 branchs? > > > > v6.6/standard/nxp-sdk-6.6/nxp-soc > > > > v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc > > > > > > Given the response of upstream, I'll wait until you've replied and > > > an agreed upon solution is acheived. > > > > > > > Ok! I agree your advice, wait for the upstream response from USB > maintainer, and then improve my patch. > > I can reproduce this issue on NXP platforms using usb dwc3 driver, for > > example, ls1028. And I also verify this patch, suspend/resume feature works > fine with it. > > I think maybe it needs a long period to review this patch in upstream > community, and then accept it finally. Maybe it is not accepted by upstream in > worse case. > > So, is it possible to merge this patch into NXP branch, not standard/base > branch in advance? In this way, it will not affect other BSP. > > > > I haven't checked yet today for any more follow ups on the patch upstream, > but let's give it a few more days. > > I definitely don't need the patch accepted upstream to merge it, but if we can > at least hear that the approach is generally correct from the maintainers, I'm > happy to merge the work in progress patch to the nxp branches. > Ok! got it. I will connect with you if I receive response from upstream maintainer. Thanks, LImeng > Bruce > > > Thanks, > > LImeng > > > > > Bruce > > > > > > > > > > > diffstat info as below: > > > > > > > > core.c |6 -- > > > > 1 file changed, 6 deletions(-) > > > > > > > > > > > > thanks, > > > > Limeng > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await thee at > its end > - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14047): https://lists.yoctoproject.org/g/linux-yocto/message/14047 Mute This Topic: https://lists.yoctoproject.org/mt/106647367/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/kernel-rt]: usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
> -Original Message- > From: Bruce Ashfield > Sent: Friday, June 14, 2024 3:24 AM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: remove lock > of > otg mode during gadget suspend/resume to avoid deadlock > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > In message: [linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: remove lock of > otg mode during gadget suspend/resume to avoid deadlock on 13/06/2024 > Meng Li wrote: > > > From: Limeng > > > > Hi Bruce, > > > > This patch is used to fix deadlock issues when testing suspend/resume. I > > will > send it to mainline upstream in later. > > So, could you please help merge these patches into linux-ycoto kernel in > advance, both below 2 branchs? > > v6.6/standard/nxp-sdk-6.6/nxp-soc > > v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc > > Given the response of upstream, I'll wait until you've replied and an agreed > upon solution is acheived. > Ok! I agree your advice, wait for the upstream response from USB maintainer, and then improve my patch. I can reproduce this issue on NXP platforms using usb dwc3 driver, for example, ls1028. And I also verify this patch, suspend/resume feature works fine with it. I think maybe it needs a long period to review this patch in upstream community, and then accept it finally. Maybe it is not accepted by upstream in worse case. So, is it possible to merge this patch into NXP branch, not standard/base branch in advance? In this way, it will not affect other BSP. Thanks, LImeng > Bruce > > > > > diffstat info as below: > > > > core.c |6 -- > > 1 file changed, 6 deletions(-) > > > > > > thanks, > > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14044): https://lists.yoctoproject.org/g/linux-yocto/message/14044 Mute This Topic: https://lists.yoctoproject.org/mt/106647367/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger system to enter suspend status with below command: echo mem > /sys/power/state There will be a deadlock issue occurring. Because dwc3_gadget_suspend() also try to get the lock again when previous invoked dwc3_suspend_common() has got the lock . This issue is introduced by commit c7ebd8149ee5 ("usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend") that removes the code of checking whether dwc->gadget_driver is NULL or not. It causes the following code is executed and deadlock occurs when trying to get the spinlock. To fix the deadlock issue, refer to commit 5265397f9442("usb: dwc3: Remove DWC3 locking during gadget suspend/resume"), remove lock of otg mode during gadget suspend/resume. Fixes: c7ebd8149ee5 ("Fix NULL pointer dereference in dwc3_gadget_suspend") Cc: sta...@vger.kernel.org Signed-off-by: Meng Li --- drivers/usb/dwc3/core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index a8fb10cc65bc..9bb4ab409bbb 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -2112,7 +2112,6 @@ static int dwc3_core_init_for_resume(struct dwc3 *dwc) static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) { - unsigned long flags; u32 reg; switch (dwc->current_dr_role) { @@ -2150,9 +2149,7 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) break; if (dwc->current_otg_role == DWC3_OTG_ROLE_DEVICE) { - spin_lock_irqsave(>lock, flags); dwc3_gadget_suspend(dwc); - spin_unlock_irqrestore(>lock, flags); synchronize_irq(dwc->irq_gadget); } @@ -2169,7 +2166,6 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) { - unsigned long flags; int ret; u32 reg; @@ -2227,9 +2223,7 @@ static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) if (dwc->current_otg_role == DWC3_OTG_ROLE_HOST) { dwc3_otg_host_init(dwc); } else if (dwc->current_otg_role == DWC3_OTG_ROLE_DEVICE) { - spin_lock_irqsave(>lock, flags); dwc3_gadget_resume(dwc); - spin_unlock_irqrestore(>lock, flags); } break; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14032): https://lists.yoctoproject.org/g/linux-yocto/message/14032 Mute This Topic: https://lists.yoctoproject.org/mt/106647368/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
From: Limeng Hi Bruce, This patch is used to fix deadlock issues when testing suspend/resume. I will send it to mainline upstream in later. So, could you please help merge these patches into linux-ycoto kernel in advance, both below 2 branchs? v6.6/standard/nxp-sdk-6.6/nxp-soc v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc diffstat info as below: core.c |6 -- 1 file changed, 6 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14031): https://lists.yoctoproject.org/g/linux-yocto/message/14031 Mute This Topic: https://lists.yoctoproject.org/mt/106647367/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: nxp-ls1046: port kernel patches for nxp-ls1046
From: Limeng Hi Bruce, The 17 patches are used to fix issues for NXP ls1046 BSP So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.6/standard/nxp-sdk-6.6/nxp-soc v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc diffstat info as below: b/arch/arm64/boot/dts/freescale/Makefile|2 ++ b/arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-sdk.dts | 40 b/arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-usdpaa.dts | 40 b/arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-sdk.dts | 40 b/arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-usdpaa.dts | 40 b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts |2 +- b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.c|3 +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c |3 ++- b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.h |3 +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c |4 b/drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c |3 ++- b/drivers/net/ethernet/freescale/sdk_dpaa/mac.c |2 ++ b/drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Port/fm_port.c |8 b/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c | 22 ++ b/drivers/net/ethernet/freescale/sdk_fman/src/xx/xx_arm_linux.c |3 --- b/drivers/staging/fsl_qbman/dpa_alloc.c | 15 +-- b/drivers/staging/fsl_qbman/qman_high.c |9 + b/drivers/usb/core/hcd-pci.c|8 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c | 38 +++--- drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c |6 +- drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c | 11 ++- drivers/staging/fsl_qbman/dpa_alloc.c |6 +++--- drivers/staging/fsl_qbman/qman_high.c | 10 +++--- 23 files changed, 279 insertions(+), 39 deletions(-) Pull request info as below: The following changes since commit 9c188c99046b8997c478634c361373a5515e3d1a: imx: dpu-blit: Remove GFP_DMA32 (2024-06-06 10:06:31 -0400) are available in the Git repository at: https://github.com/limeng-linux/linux-yocto-bsp.git v6.6/standard/nxp-sdk-6.6/nxp-soc for you to fetch changes up to 9c4f6c89fe35a5beaa32ef4244d5d613e39c270d: driver: sdk_fman: move the irq free operation to the front of releasing register resource (2024-06-07 04:57:29 -0400) Meng Li (15): driver: net: dpaa: improve the assignment operation for context cache line arch: arm64: dts: add dts files for nxp-ls1023 platform drvier: staging: fsl_qbman: move used_node variable allocation out the lock/unlock section drvier: dpaa: Convert the rx_pool_channel_init from spinlock to mutex driver: sdk_fman: remove the disable interrupt action in xx_Malloc() driver: staging: fsl_qbman: avoid preempt disable action by invoking this_cpu_ptr() in rt kernel driver: staging: fsl_qbman: improve PORTAL_IRQ_LOCK/UNLOCK() with local lock interface arch: arm64: dts: add dts files for nxp-ls1026 platform arch: arm64: dts: set correct phy-connection-type for aqr107 10G phy driver: net: dpaa: support interface mode usxgmii driver: net: dpaa: release resource when executing kexec drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory driver: net: dpaa: support AQR113C phy on revision C LS1046ARDB board usb: hcd-pci: remove the action of faking interrupt request driver: sdk_fman: move the irq free operation to the front of releasing register resource Tiejun Chen (1): dpaa: make sure FM_PORT_Free work reasonably Zumeng Chen (1): dpaa_ethernet: fix kmemleak false-positive reports for skb arch/arm64/boot/dts/freescale/Makefile| 2 ++ arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-sdk.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-usdpaa.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-sdk.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-usdpaa.dts | 40
[linux-yocto] [PATCH] nxp-ls1046: add scc and cfg files for nxp-ls1046 platform
Refer to scc and cfg files on branch yocto-6.1, add new scc and cfg files for BSP nxp-ls1046 on branch yocto-6.6. Signed-off-by: Meng Li --- bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc | 7 + bsp/nxp-ls1046/nxp-ls1046-standard.scc | 7 + bsp/nxp-ls1046/nxp-ls1046.cfg| 161 +++ bsp/nxp-ls1046/nxp-ls1046.scc| 8 ++ 4 files changed, 183 insertions(+) create mode 100644 bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc create mode 100644 bsp/nxp-ls1046/nxp-ls1046-standard.scc create mode 100644 bsp/nxp-ls1046/nxp-ls1046.cfg create mode 100644 bsp/nxp-ls1046/nxp-ls1046.scc diff --git a/bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc b/bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc new file mode 100644 index ..efdfae9d --- /dev/null +++ b/bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1046 +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include nxp-ls1046.scc diff --git a/bsp/nxp-ls1046/nxp-ls1046-standard.scc b/bsp/nxp-ls1046/nxp-ls1046-standard.scc new file mode 100644 index ..aa7fab23 --- /dev/null +++ b/bsp/nxp-ls1046/nxp-ls1046-standard.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1046 +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include nxp-ls1046.scc diff --git a/bsp/nxp-ls1046/nxp-ls1046.cfg b/bsp/nxp-ls1046/nxp-ls1046.cfg new file mode 100644 index ..36f57dfe --- /dev/null +++ b/bsp/nxp-ls1046/nxp-ls1046.cfg @@ -0,0 +1,161 @@ +.. +.WARNING +. +. This file is a kernel configuration fragment, and not a full kernel +. configuration file. The final kernel configuration is made up of +. an assembly of processed fragments, each of which is designed to +. capture a specific part of the final configuration (e.g. platform +. configuration, feature configuration, and board specific hardware +. configuration). For more information on kernel configuration, please +. consult the product documentation. +. +.. + +CONFIG_ARM64=y +CONFIG_ARM64_VA_BITS_48=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_LAYERSCAPE=y +CONFIG_SCHED_MC=y +CONFIG_ARM_SMMU=y + +CONFIG_PCI=y +CONFIG_PCI_LAYERSCAPE=y +CONFIG_PCI_HOST_GENERIC=y +CONFIG_PCI_XGENE=y +CONFIG_PCI_MSI=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI=y +CONFIG_HOTPLUG_PCI_PCIE=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPUFREQ_DT=y +CONFIG_QORIQ_CPUFREQ=y + +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_ADV_OPTIONS=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_CFI_STAA=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_DATAFLASH=y +CONFIG_MTD_SST25L=y +CONFIG_MTD_NAND_DENALI_DT=y +CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MEMORY=y +CONFIG_MTD_SPI_NOR=y +CONFIG_SPI_FSL_QUADSPI=y +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_AHCI_QORIQ=y + +CONFIG_FSL_XGMAC_MDIO=y + +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_DW=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SERIAL_FSL_LPUART=y +CONFIG_SERIAL_FSL_LPUART_CONSOLE=y + +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_PL022=y + +CONFIG_POWER_RESET_XGENE=y +CONFIG_POWER_RESET_SYSCON=y +CONFIG_ENERGY_MODEL=y +CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y + +CONFIG_CPU_THERMAL=y +CONFIG_WATCHDOG=y +CONFIG_IMX2_WDT=y + +CONFIG_USB=y +CONFIG_USB_OTG=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_HOST=y +CONFIG_USB_GADGET=y + +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_SDHCI_OF_ESDHC=y + +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y +CONFIG_GPIO_MPC8XXX=y + +CONFIG_MDIO_DEVICE=y +CONFIG_MDIO_BITBANG=y +CONFIG_PHYLIB=y +CONFIG_AQUANTIA_PHY=y + +# +# I2C support +# +CONFIG_I2C=y +CONFIG_I2C_IMX=y + +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_PCF2127=y +CONFIG_RTC_DRV_FSL_FTM_ALARM=y +CONFIG_FSL_RCPM=y + +CONFIG_DMADEVICES=y +CONFIG_FSL_EDMA=y +CONFIG_CMA=y +CONFIG_DMA_CMA=y + +CONFIG_VFIO=y + +CONFIG_STAGING=y + +CONFIG_CLK_QORIQ=y + +CONFIG_FSL_GUTS=y + +CONFIG_ARCH_XGENE=y +CONFIG_PHY_XGENE=y + +CONFIG_CRYPTO_DEV_FSL_CAAM=y +CONFIG_CRYPTO_SHA1_ARM64_CE=y +CONFIG_CRYPTO_SHA2_ARM64_CE=y +CONFIG_CRYPTO_GHASH_ARM64_CE=y +CONFIG_CRYPTO_AES_ARM64_CE_CCM=y +CONFIG_CRYPTO_AES_ARM64_CE_BLK=y + +# dpaa1 +CONFIG_FSL_SDK_DPA=y +CONFIG_FSL_SDK_FMAN=y +CONFIG_FSL_SDK_DPAA_ETH=y +CONFIG_FSL_DPAA_TS=y +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_QORIQ=y +CONFIG_FSL_DPAA_1588=y +CONFIG_PHY_FSL_LYNX_10G=y + +# EDAC +CONFIG_EDAC_LAYERSCAPE=y + +# Thermal +CONFIG_THERMAL=y +CONFIG_DEVICE_THERMAL=y +CONFIG_QORIQ_THERMAL=y + +# I2C Slave devices +CONFIG_EEPROM_AT24=y +CONFIG_SENSORS_LM90=y +CONFIG_SENSORS_INA2XX=y diff --git a/bsp/nxp
[linux-yocto] [yocto-kernel-cache]: nxp-ls1046: add scc and cfg files for nxp-ls1046 platform
From: Limeng Hi Bruce, Recently, I am working on nxp ls1046 SoC BSP, and want to add scc and cfg files for this BSP in kernel-cache. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.6? diffstat info as below: nxp-ls1046-preempt-rt.scc |7 +++ nxp-ls1046-standard.scc |7 +++ nxp-ls1046.cfg| 161 + nxp-ls1046.scc|8 4 files changed, 183 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14004): https://lists.yoctoproject.org/g/linux-yocto/message/14004 Mute This Topic: https://lists.yoctoproject.org/mt/106539607/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: nxp-ls1028: port kernel patches for nxp-ls1028
From: Limeng Hi Bruce, The 7 patches are used to fix issues for NXP ls1028 BSP So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.6/standard/nxp-sdk-6.6/nxp-soc v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc diffstat info as below: b/drivers/i2c/busses/Kconfig |1 - b/drivers/net/ethernet/freescale/enetc/enetc_pf.c | 67 +++ b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c |4 b/drivers/net/phy/Kconfig |1 + b/net/tsn/genl_tsn.c |6 +++--- drivers/net/ethernet/freescale/enetc/enetc_tsn.c | 11 +++ 6 files changed, 86 insertions(+), 4 deletions(-) Pull request info as below: The following changes since commit 5422d57e79fa0c5b6a47fe18b5ea783224c18372: Merge branch 'v6.6/standard/base' into v6.6/standard/nxp-sdk-6.6/nxp-soc (2024-05-28 13:31:22 -0400) are available in the Git repository at: https://github.com/limeng-linux/linux-yocto-bsp.git v6.6/standard/nxp-sdk-6.6/nxp-soc for you to fetch changes up to 11ec379557d5960e98cb39faf787e587bc9d0ac9: net: phy: let PHYLINK select MII (2024-05-31 04:50:55 -0400) Meng Li (6): tsn: replace GFP_KERNEL with GFP_ATOMIC to avoid sleeping in atomic context enetc: add suspend/resume function to manage pm in ethernet driver enetc: tsn: release resource before exiting enetc_qci_fmi_get() function enetc: tsn: release resource before exiting enetc_qci_sfi_counters_get() function drivers: i2c: remove default y from I2C_IMX_FLEXIO config drivers: enetc: tsn: free the CBS structure enetc_tsn_deinit() function Xulin Sun (1): net: phy: let PHYLINK select MII drivers/i2c/busses/Kconfig | 1 - drivers/net/ethernet/freescale/enetc/enetc_pf.c | 67 +++ drivers/net/ethernet/freescale/enetc/enetc_tsn.c | 15 +++ drivers/net/phy/Kconfig | 1 + net/tsn/genl_tsn.c | 6 +++--- 5 files changed, 86 insertions(+), 4 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13966): https://lists.yoctoproject.org/g/linux-yocto/message/13966 Mute This Topic: https://lists.yoctoproject.org/mt/106404616/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-ls1028: add scc and cfg files for nxp-ls1028 platform
Refer to scc and cfg files on branch yocto-6.1, add new scc and cfg files for BSP nxp-ls1028 on branch yocto-6.6. Signed-off-by: Meng Li --- bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc | 7 + bsp/nxp-ls1028/nxp-ls1028-standard.scc | 8 + bsp/nxp-ls1028/nxp-ls1028.cfg| 247 +++ bsp/nxp-ls1028/nxp-ls1028.scc| 9 + 4 files changed, 271 insertions(+) create mode 100644 bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc create mode 100644 bsp/nxp-ls1028/nxp-ls1028-standard.scc create mode 100644 bsp/nxp-ls1028/nxp-ls1028.cfg create mode 100644 bsp/nxp-ls1028/nxp-ls1028.scc diff --git a/bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc b/bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc new file mode 100644 index ..6a8eb90d --- /dev/null +++ b/bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1028 +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include nxp-ls1028.scc diff --git a/bsp/nxp-ls1028/nxp-ls1028-standard.scc b/bsp/nxp-ls1028/nxp-ls1028-standard.scc new file mode 100644 index ..151e1661 --- /dev/null +++ b/bsp/nxp-ls1028/nxp-ls1028-standard.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nxp-ls1028 +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include nxp-ls1028.scc diff --git a/bsp/nxp-ls1028/nxp-ls1028.cfg b/bsp/nxp-ls1028/nxp-ls1028.cfg new file mode 100644 index ..818431b7 --- /dev/null +++ b/bsp/nxp-ls1028/nxp-ls1028.cfg @@ -0,0 +1,247 @@ +CONFIG_ARM64=y +CONFIG_64BIT=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_LAYERSCAPE=y +CONFIG_MMU=y +CONFIG_SMP=y +CONFIG_NR_CPUS=2 + +CONFIG_SCHED_MC=y +CONFIG_ARM64_VA_BITS_48=y + +CONFIG_PCI=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI_PCIE=y +CONFIG_HOTPLUG_PCI=y +CONFIG_PCI_LAYERSCAPE=y +CONFIG_PCI_HOST_GENERIC=y +CONFIG_PCI_IOV=y +CONFIG_PCI_MSI=y + +CONFIG_CMA=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_IDLE_GOV_MENU=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPUFREQ_DT=y +CONFIG_QORIQ_CPUFREQ=y + +CONFIG_SOC_BUS=y +CONFIG_REGMAP=y +CONFIG_REGMAP_I2C=y +CONFIG_REGMAP_SPI=y +CONFIG_REGMAP_MMIO=y +CONFIG_DMA_SHARED_BUFFER=y + +CONFIG_DMA_CMA=y +CONFIG_MTD=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_ADV_OPTIONS=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_SST25L=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_NAND_FSL_IFC=y + +CONFIG_COMMON_CLK=y +CONFIG_CLK_QORIQ=y +CONFIG_CLK_LS1028A_PLLDIG=y + +CONFIG_SRAM=y +CONFIG_EEPROM_AT24=y + +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_SATA_AHCI_PLATFORM=y +CONFIG_AHCI_QORIQ=y + +CONFIG_NETDEVICES=y + +# enetc +CONFIG_NET_DSA=y +CONFIG_NET_DSA_TAG_OCELOT=y +CONFIG_NET_DSA_MSCC_FELIX=y +CONFIG_NET_SWITCHDEV=y +CONFIG_FSL_ENETC=y +CONFIG_FSL_ENETC_CORE=y +CONFIG_FSL_ENETC_VF=y +CONFIG_FSL_ENETC_IERB=y +CONFIG_FSL_ENETC_MDIO=y +CONFIG_FSL_ENETC_PTP_CLOCK=y +CONFIG_FSL_ENETC_QOS=y +CONFIG_PHY_FSL_LYNX_10G=y + +# tsn +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_QORIQ=y +CONFIG_TSN=y +CONFIG_NET_PKTGEN=y +CONFIG_NET_VENDOR_MICROSEMI=y +CONFIG_MSCC_OCELOT_SWITCH=y +CONFIG_MSCC_OCELOT_SWITCH_LIB=y +CONFIG_VITESSE_PHY=y +CONFIG_NET_SCH_ETF=y +CONFIG_NET_SCH_CBS=y +CONFIG_NET_SCH_MQPRIO=y +CONFIG_NET_SCH_TAPRIO=y +CONFIG_VLAN_8021Q=y + +CONFIG_BRIDGE=y +CONFIG_BRIDGE_VLAN_FILTERING=y + +# can +CONFIG_CAN=y +CONFIG_CAN_FLEXCAN=y + +CONFIG_INPUT_MATRIXKMAP=y +CONFIG_INPUT_EVDEV=y +CONFIG_INPUT_MISC=y +CONFIG_KEYBOARD_ADC=m +CONFIG_KEYBOARD_GPIO=y +CONFIG_INPUT_MOUSEDEV=y +CONFIG_MOUSE_PS2=y + +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_OF_PLATFORM=y + +CONFIG_I2C=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_MUX=y +CONFIG_I2C_IMX=y +CONFIG_I2C_COMPAT=y +CONFIG_I2C_MUX_PCA954x=y + +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_NXP_FLEXSPI=y + +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y +CONFIG_GPIOLIB_IRQCHIP=y +CONFIG_GPIO_PCA953X=y +CONFIG_GPIO_PCA953X_IRQ=y +CONFIG_GPIO_GENERIC=y +CONFIG_GPIO_DWAPB=y +CONFIG_GPIO_GENERIC_PLATFORM=y +CONFIG_GPIO_MB86S7X=y +CONFIG_GPIO_MPC8XXX=y +CONFIG_GPIO_PL061=y +CONFIG_GPIO_XGENE=y + +CONFIG_POWER_RESET_XGENE=y +CONFIG_POWER_RESET_SYSCON=y +CONFIG_ENERGY_MODEL=y + +CONFIG_SYSCON_REBOOT_MODE=y +CONFIG_BATTERY_BQ27XXX=y +CONFIG_SENSORS_LM90=m +CONFIG_SENSORS_INA2XX=m + +CONFIG_CPU_THERMAL=y + +CONFIG_WATCHDOG=y +CONFIG_IMX2_WDT=y +CONFIG_ARM_ARCH_TIMER=y +CONFIG_ARM_SP805_WATCHDOG=y + +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_REGULATOR_GPIO=y + +CONFIG_MEDIA_SUPPORT=y +CONFIG_MEDIA_CAMERA_SUPPORT=y +CONFIG_MEDIA_ANALOG_TV_SUPPORT=y +CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y +CONFIG_MEDIA_CONTROLLER=y +CONFIG_MEDIA_PLATFORM_SUPPORT=y + +CONFIG_SOUND=y +CONFIG_SND=y +CONFIG_SND_SOC=y +CONFIG_SND_SOC_FSL_SAI=y +CONFIG_SND_SIMPLE_CARD=y +CONFIG_SND_SOC_I2C_AND_SPI=y +CONFIG_SND_SOC_SGTL5000=y +CONFIG_SND_OSSEMUL=y +CONFIG_SND_PCM_OSS=y
[linux-yocto] [yocto-kernel-cache]: nxp-ls1028: add scc and cfg files for nxp-ls1028 platform
From: Limeng Hi Bruce, Recently, I am working on nxp ls1028 SoC BSP, and want to add scc and cfg files for this BSP in kernel-cache. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.6? diffstat info as below: nxp-ls1028-preempt-rt.scc |7 nxp-ls1028-standard.scc |8 + nxp-ls1028.cfg| 248 + nxp-ls1028.scc|9 ++ 4 files changed, 272 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13964): https://lists.yoctoproject.org/g/linux-yocto/message/13964 Mute This Topic: https://lists.yoctoproject.org/mt/106404448/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] driver: sdk_fman: move the irq free operation to the front of releasing register resource
Based on current code, if CONFIG_DEBUG_SHIRQ is enabled, there is below calltrace when executing reboot operation. [ 225.626580] Unable to handle kernel paging request at virtual address 006b6b6b6b6b6c3f .. [ 225.797449] Call trace: [ 225.799890] fman_get_normal_pending+0x14/0x34 [ 225.804333] __free_irq+0x234/0x334 [ 225.807821] free_irq+0x3c/0x8c [ 225.810959] devm_free_irq+0x64/0xa0 [ 225.814534] FreeFmDev.part.0+0x50/0xc4 [ 225.818369] fm_shutdown+0x30/0x4c [ 225.821769] platform_shutdown+0x2c/0x3c [ 225.825691] device_shutdown+0x130/0x210 .. [ 225.860374] el0t_64_sync+0x18c/0x190 The root cause is that the fm_irq() is invoked as a callback function, and there is register operation in fman_get_normal_pending() after register resource has been unmapped. In this way, above calltrace is triggered and system hangs up. Therefore, move the irq free operation forward to make sure that it is before releasing register resource. Signed-off-by: Meng Li --- .../freescale/sdk_fman/src/wrapper/lnxwrp_fm.c| 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c b/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c index 1856130e66a3..71674b10655d 100644 --- a/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c +++ b/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c @@ -1213,6 +1213,12 @@ static void FreeFmDev(t_LnxWrpFmDev *p_LnxWrpFmDev) FreeFmPcdDev(p_LnxWrpFmDev); +if (p_LnxWrpFmDev->err_irq != 0) { + devm_free_irq(p_LnxWrpFmDev->dev, p_LnxWrpFmDev->err_irq, p_LnxWrpFmDev); +} + +devm_free_irq(p_LnxWrpFmDev->dev, p_LnxWrpFmDev->irq, p_LnxWrpFmDev); + #ifdef CONFIG_FSL_SDK_FMAN_RTC_API if (p_LnxWrpFmDev->h_RtcDev) FM_RTC_Free(p_LnxWrpFmDev->h_RtcDev); @@ -1238,11 +1244,6 @@ static void FreeFmDev(t_LnxWrpFmDev *p_LnxWrpFmDev) SYS_UnregisterIoMap(p_LnxWrpFmDev->fmBaseAddr); devm_iounmap(p_LnxWrpFmDev->dev, UINT_TO_PTR(p_LnxWrpFmDev->fmBaseAddr)); devm_release_mem_region(p_LnxWrpFmDev->dev, p_LnxWrpFmDev->fmPhysBaseAddr, p_LnxWrpFmDev->fmMemSize); -if (p_LnxWrpFmDev->err_irq != 0) { -devm_free_irq(p_LnxWrpFmDev->dev, p_LnxWrpFmDev->err_irq, p_LnxWrpFmDev); -} - -devm_free_irq(p_LnxWrpFmDev->dev, p_LnxWrpFmDev->irq, p_LnxWrpFmDev); } /* FMan character device file operations */ -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13949): https://lists.yoctoproject.org/g/linux-yocto/message/13949 Mute This Topic: https://lists.yoctoproject.org/mt/106237503/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt v6.1]: driver: sdk_fman: move the irq free operation to the front of releasing register resource
From: Limeng Hi Bruce, This patch is used to make sure that irq free operation is before releasing register resource. Could you please help merge this patch into linux-ycoto kernel? Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: lnxwrp_fm.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13948): https://lists.yoctoproject.org/g/linux-yocto/message/13948 Mute This Topic: https://lists.yoctoproject.org/mt/106237502/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 v6.6 std/rt]: nxp-bsp: patches for linux-yocto-v6.6 kernel
> -Original Message- > From: linux-yocto@lists.yoctoproject.org > On Behalf Of Bruce Ashfield > Sent: Wednesday, April 10, 2024 1:00 AM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel v6.6 std/rt]: nxp-bsp: patches for linux- > yocto-v6.6 kernel > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > In message: [linux-yocto]: [kernel v6.6 std/rt]: nxp-bsp: patches for linux- > yocto-v6.6 kernel > on 09/04/2024 Meng Li wrote: > > > From: Limeng > > > > Hi Bruce, > > > > I get patches from NXP kernel repo https://github.com/nxp-imx/linux- > imx.git lf-6.6.y, > > and intend to merge them into linux-yocto. > > > > There are 4939 patches in my public repo https://github.com/limeng- > linux/linux-yocto-bsp.git, branch v6.6/standard/nxp-sdk-6.6/nxp-soc. > > Could you please help to create branch v6.6/standard/nxp-sdk-6.6/nxp-soc > based on v6.6/standard/base, and then merge these patches into it? > > Could you please also help to create branch v6.6/standard/preempt-rt/nxp- > sdk-6.6/nxp-soc based on v6.6/standard/preempt-rt/base, and then > > merge these patches into it? > > Can you double check this against the latest 6.6 changes > in linux-yocto ? > > I just tried the merge and got the following conflicts: > > Unmerged paths: > (use "git add ..." to mark resolution) > both modified: arch/arm64/boot/dts/freescale/imx8mm.dtsi > both modified: arch/arm64/boot/dts/freescale/imx8mp-evk.dts > both modified: arch/arm64/boot/dts/freescale/imx8mp.dtsi > both modified: arch/arm64/boot/dts/freescale/imx8mq.dtsi > both modified: drivers/clk/imx/clk-imx8qxp.c > both modified: drivers/dma/fsl-edma-common.c > both modified: drivers/dma/fsl-edma.c > both modified: drivers/dma/fsl-qdma.c > both modified: drivers/firmware/arm_scmi/perf.c > both modified: drivers/gpio/Kconfig > both modified: drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c > both modified: drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c > both modified: drivers/net/ethernet/freescale/fec_main.c > both modified: drivers/net/ethernet/freescale/fman/fman_memac.c > both modified: drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c > both modified: drivers/scsi/scsi_error.c > both modified: drivers/spi/spi-imx.c > both modified: sound/soc/fsl/fsl_sai.c > Thanks for showing me the conflict files, I applied the SDK patches based on v6.6.24. I will improve these patches based on latest v6.6.25. Thanks, Limeng > Bruce > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13785): https://lists.yoctoproject.org/g/linux-yocto/message/13785 Mute This Topic: https://lists.yoctoproject.org/mt/105419365/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt v6.1]: dmaengine: imx-sdma: move memory copy operation before dma map
From: Limeng Hi Bruce, This patch is used to move memory copy operation before dma map Could you please help merge this patch into linux-ycoto kernel? Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: imx-sdma.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13779): https://lists.yoctoproject.org/g/linux-yocto/message/13779 Mute This Topic: https://lists.yoctoproject.org/mt/105397624/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] dmaengine: imx-sdma: move memory copy operation before dma map
On imx8mq platform, system hangs up during booting phase if the HDMI monitor is connected. This issue is caused by commit 501ac079acd7 ("dmaengine: imx-sdma: Make runtime PM irq safe"). After changing the consistent DMA into streaming DMA, it needs to copy data firstly, and then do the DMA mapping operation so that the expected data is stored to dma physical address. Signed-off-by: Meng Li --- drivers/dma/imx-sdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 5de05041e8e4..1f5997db027e 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -898,6 +898,8 @@ static int sdma_load_script(struct sdma_engine *sdma) if (!buf_virt) return -ENOMEM; + memcpy(buf_virt, ram_code, header->ram_code_size); + buf_phys = dma_map_single(sdma->dev, buf_virt, header->ram_code_size, DMA_TO_DEVICE); @@ -912,8 +914,6 @@ static int sdma_load_script(struct sdma_engine *sdma) bd0->buffer_addr = buf_phys; bd0->ext_buffer_addr = addr->ram_code_start_addr; - memcpy(buf_virt, ram_code, header->ram_code_size); - ret = sdma_run_channel0(sdma); spin_unlock_irqrestore(>channel_0_lock, flags); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13780): https://lists.yoctoproject.org/g/linux-yocto/message/13780 Mute This Topic: https://lists.yoctoproject.org/mt/105397625/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] ti-am62: enable optee related kernel configs
Add optee feature and enable it in ti-am62 BSP. Signed-off-by: Meng Li --- bsp/ti-am62/ti-am62.cfg | 0 bsp/ti-am62/ti-am62.scc | 2 ++ features/optee/optee.cfg | 3 +++ features/optee/optee.scc | 4 4 files changed, 9 insertions(+) mode change 100755 => 100644 bsp/ti-am62/ti-am62.cfg create mode 100644 features/optee/optee.cfg create mode 100644 features/optee/optee.scc diff --git a/bsp/ti-am62/ti-am62.cfg b/bsp/ti-am62/ti-am62.cfg old mode 100755 new mode 100644 diff --git a/bsp/ti-am62/ti-am62.scc b/bsp/ti-am62/ti-am62.scc index 9a0dda7f..3d10246a 100644 --- a/bsp/ti-am62/ti-am62.scc +++ b/bsp/ti-am62/ti-am62.scc @@ -4,5 +4,7 @@ include cfg/fs/flash_fs.cfg include features/hugetlb/hugetlb.scc # Enable the ability to run 32 bit apps include arch/arm/32bit-compat.scc +# Enable optee +include features/optee/optee.scc kconf hardware ti-am62.cfg diff --git a/features/optee/optee.cfg b/features/optee/optee.cfg new file mode 100644 index ..3aa27f0a --- /dev/null +++ b/features/optee/optee.cfg @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: MIT +CONFIG_TEE=y +CONFIG_OPTEE=y diff --git a/features/optee/optee.scc b/features/optee/optee.scc new file mode 100644 index ..db4c19e5 --- /dev/null +++ b/features/optee/optee.scc @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: MIT +define KFEATURE_DESCRIPTION "Enable optee support" + +kconf hardware optee.cfg -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13595): https://lists.yoctoproject.org/g/linux-yocto/message/13595 Mute This Topic: https://lists.yoctoproject.org/mt/104509211/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: ti-am62: enable optee related kernel configs
From: Limeng Hi Bruce, This patch is used to enable optee related kernel configs. Could you please help to merge this patch into yocto-kernel-cache, branch is yocto-6.1? diffstat info ad below: bsp/ti-am62/ti-am62.scc |2 ++ features/optee/optee.cfg |3 +++ features/optee/optee.scc |4 3 files changed, 9 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13596): https://lists.yoctoproject.org/g/linux-yocto/message/13596 Mute This Topic: https://lists.yoctoproject.org/mt/104509212/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-ls104x: add configs of i2c slave devices for NXP ls1043/ls1046 platform
Signed-off-by: Meng Li --- bsp/nxp-ls1043/nxp-ls1043.cfg | 5 + bsp/nxp-ls1046/nxp-ls1046.cfg | 5 + 2 files changed, 10 insertions(+) diff --git a/bsp/nxp-ls1043/nxp-ls1043.cfg b/bsp/nxp-ls1043/nxp-ls1043.cfg index 376f7244..1f581b9a 100644 --- a/bsp/nxp-ls1043/nxp-ls1043.cfg +++ b/bsp/nxp-ls1043/nxp-ls1043.cfg @@ -156,3 +156,8 @@ CONFIG_EDAC_LAYERSCAPE=y CONFIG_THERMAL=y CONFIG_DEVICE_THERMAL=y CONFIG_QORIQ_THERMAL=y + +# I2C Slave devices +CONFIG_EEPROM_AT24=y +CONFIG_SENSORS_LM90=y +CONFIG_SENSORS_INA2XX=y diff --git a/bsp/nxp-ls1046/nxp-ls1046.cfg b/bsp/nxp-ls1046/nxp-ls1046.cfg index 14a0b14d..5c0f2218 100644 --- a/bsp/nxp-ls1046/nxp-ls1046.cfg +++ b/bsp/nxp-ls1046/nxp-ls1046.cfg @@ -153,3 +153,8 @@ CONFIG_EDAC_LAYERSCAPE=y CONFIG_THERMAL=y CONFIG_DEVICE_THERMAL=y CONFIG_QORIQ_THERMAL=y + +# I2C Slave devices +CONFIG_EEPROM_AT24=y +CONFIG_SENSORS_LM90=y +CONFIG_SENSORS_INA2XX=y -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13520): https://lists.yoctoproject.org/g/linux-yocto/message/13520 Mute This Topic: https://lists.yoctoproject.org/mt/103968315/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: nxp-ls104x: add configs of i2c slave devices for NXP ls1043/ls1046 platform
From: Limeng Hi Bruce, This patch is used to add configs of i2c slave devices for NXP ls1043/ls1046 platform. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info as below: nxp-ls1043/nxp-ls1043.cfg |5 + nxp-ls1046/nxp-ls1046.cfg |5 + 2 files changed, 10 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13519): https://lists.yoctoproject.org/g/linux-yocto/message/13519 Mute This Topic: https://lists.yoctoproject.org/mt/103968313/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: nxp-s32g: enable optee related kernel configs
From: Limeng Hi Bruce, This patch is used to enable optee related kernel configs. Could you please help to merge this patch into yocto-kernel-cache, branch is yocto-6.1? diffstat info ad below: nxp-s32g.cfg |4 1 file changed, 4 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13448): https://lists.yoctoproject.org/g/linux-yocto/message/13448 Mute This Topic: https://lists.yoctoproject.org/mt/103477595/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-s32g: enable optee related kernel configs
Signed-off-by: Meng Li --- bsp/nxp-s32g/nxp-s32g.cfg | 4 1 file changed, 4 insertions(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index df6458b8..fd95c31a 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -181,3 +181,7 @@ CONFIG_CRYPTO_DEV_NXP_HSE_MU1=y #RANDOM CONFIG_HW_RANDOM=y + +#OPTEE +CONFIG_TEE=y +CONFIG_OPTEE=y -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13447): https://lists.yoctoproject.org/g/linux-yocto/message/13447 Mute This Topic: https://lists.yoctoproject.org/mt/103477594/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/linux-yocto-rt v6.1]: arch: arm64: dts: remove llce_boot_status node to avoid building issue
Correct diffstat info. > -Original Message- > From: linux-yocto@lists.yoctoproject.org > On Behalf Of Meng Li via lists.yoctoproject.org > Sent: Tuesday, November 7, 2023 1:47 PM > To: bruce.ashfi...@gmail.com > Cc: linux-yocto@lists.yoctoproject.org > Subject: [linux-yocto] [linux-yocto/linux-yocto-rt v6.1]: arch: arm64: dts: > remove llce_boot_status node to avoid building issue > > From: Limeng > > Hi Bruce, > > This patch is used to remove llce_boot_status node to avoid building issue. > > Could you please help merge this patch into linux-ycoto kernel? > Branches are v6.1/standard/nxp-sdk-5.15/nxp-s32g and > v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g > > diffstat info as below: > > pci-s32gen1.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > s32gxxxa-cvc-fl.dtsi |4 1 file changed, 4 deletions(-) Thanks, Limeng > > thanks, > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13271): https://lists.yoctoproject.org/g/linux-yocto/message/13271 Mute This Topic: https://lists.yoctoproject.org/mt/102438045/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] arch: arm64: dts: remove llce_boot_status node to avoid building issue
According to commit a6442aafa50b ("s32: llce: Refactor shared memory area"), llce_boot_status node has been removed from nxp s32g platform. So, also remove it from aptiv cvc-fl platform to avoid building issue. Signed-off-by: Meng Li --- arch/arm64/boot/dts/freescale/s32gxxxa-cvc-fl.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/s32gxxxa-cvc-fl.dtsi b/arch/arm64/boot/dts/freescale/s32gxxxa-cvc-fl.dtsi index 961ba2ec1358..f3569655f83d 100644 --- a/arch/arm64/boot/dts/freescale/s32gxxxa-cvc-fl.dtsi +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-cvc-fl.dtsi @@ -781,10 +781,6 @@ _shmem { status = "okay"; }; -_boot_status { - status = "okay"; -}; - _can1 { status = "okay"; }; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13270): https://lists.yoctoproject.org/g/linux-yocto/message/13270 Mute This Topic: https://lists.yoctoproject.org/mt/102438046/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [linux-yocto/linux-yocto-rt v6.1]: arch: arm64: dts: remove llce_boot_status node to avoid building issue
From: Limeng Hi Bruce, This patch is used to remove llce_boot_status node to avoid building issue. Could you please help merge this patch into linux-ycoto kernel? Branches are v6.1/standard/nxp-sdk-5.15/nxp-s32g and v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g diffstat info as below: pci-s32gen1.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13269): https://lists.yoctoproject.org/g/linux-yocto/message/13269 Mute This Topic: https://lists.yoctoproject.org/mt/102438045/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 v5.15]: arch: arm64: dts: remove the dts file with license limitation
> -Original Message- > From: Bruce Ashfield > Sent: Thursday, October 26, 2023 4:29 AM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel v5.15]: arch: arm64: dts: remove the dts > file > with license limitation > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > In message: [linux-yocto]: [kernel v5.15]: arch: arm64: dts: remove the dts > file > with license limitation on 24/10/2023 Meng Li wrote: > > > From: Limeng > > > > Hi Bruce, > > > > This patch is used to remove the dts file with license limitation > > Could you please help to merge this patch into linux-yocto kernel, v5.15, 2 > branches as below? > > v5.15/standard/bcm-2xxx-rpi > > v5.15/standard/preempt-rt/bcm-2xxx-rpi > > Something seems to be missing. > > The preempt-rt branch isn't populated with files that are being modified. > > Did I miss creating something on this old branch ? > > Can you double check and re-send what is needed (even if it includes > populating the entire BSP on the branch). > Very sorry! It is my mistake. This BSP is not supported rt variant on kernel v 5.15, so there is not any SDK patch on v5.15/standard/preempt-rt/bcm-2xxx-rpi. Could you please only merge this patch into v5.15/standard/bcm-2xxx-rpi. >From v6.1, we started supporting for this BSP on std and rt branches, I'm a >bit confused, apologize again. Thanks, LImeng > Bruce > > > > > diffstat info as below. > > > > arch/arm/boot/dts/overlays/gc9a01-overlay.dts | 151 > > > -- > - > > b/arch/arm/boot/dts/overlays/Makefile |1 > > b/arch/arm/boot/dts/overlays/README | 20 -- > > 3 files changed, 172 deletions(-) > > > > > > thanks, > > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13235): https://lists.yoctoproject.org/g/linux-yocto/message/13235 Mute This Topic: https://lists.yoctoproject.org/mt/102152544/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel v5.15]: arch: arm64: dts: remove the dts file with license limitation
From: Limeng Hi Bruce, This patch is used to remove the dts file with license limitation Could you please help to merge this patch into linux-yocto kernel, v5.15, 2 branches as below? v5.15/standard/bcm-2xxx-rpi v5.15/standard/preempt-rt/bcm-2xxx-rpi diffstat info as below. arch/arm/boot/dts/overlays/gc9a01-overlay.dts | 151 --- b/arch/arm/boot/dts/overlays/Makefile |1 b/arch/arm/boot/dts/overlays/README | 20 -- 3 files changed, 172 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13227): https://lists.yoctoproject.org/g/linux-yocto/message/13227 Mute This Topic: https://lists.yoctoproject.org/mt/102152544/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] arch: arm64: dts: remove the dts file with license limitation
Signed-off-by: Meng Li --- arch/arm/boot/dts/overlays/Makefile | 1 - arch/arm/boot/dts/overlays/README | 20 --- arch/arm/boot/dts/overlays/gc9a01-overlay.dts | 151 -- 3 files changed, 172 deletions(-) delete mode 100644 arch/arm/boot/dts/overlays/gc9a01-overlay.dts diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile index 4bbe05ed9760..6cf9cd80a5a2 100644 --- a/arch/arm/boot/dts/overlays/Makefile +++ b/arch/arm/boot/dts/overlays/Makefile @@ -60,7 +60,6 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \ fbtft.dtbo \ fe-pi-audio.dtbo \ fsm-demo.dtbo \ - gc9a01.dtbo \ ghost-amp.dtbo \ goodix.dtbo \ googlevoicehat-soundcard.dtbo \ diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 3152c2354670..0debfaa70285 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -1127,26 +1127,6 @@ Load: dtoverlay=fsm-demo,= Params: fsm_debug Enable debug logging (default off) -Name: gc9a01 -Info: Enables GalaxyCore's GC9A01 single chip driver based displays on -SPI0 as fb1, using GPIOs DC=25, RST=27 and BL=18 (physical -GPIO header pins 22, 13 and 12 respectively) in addition to the -SPI0 pins DIN=10, CLK=11 and CS=8 (physical GPIO header pins 19, -23 and 24 respectively). -Load: dtoverlay=gc9a01,= -Params: speed Display SPI bus speed - -rotate Display rotation {0,90,180,270} - -width Width of the display - -height Height of the display - -fps Delay between frame updates - -debug Debug output level {0-7} - - Name: ghost-amp Info: An overlay for the Ghost amplifier. Load: dtoverlay=ghost-amp,= diff --git a/arch/arm/boot/dts/overlays/gc9a01-overlay.dts b/arch/arm/boot/dts/overlays/gc9a01-overlay.dts deleted file mode 100644 index 3d31030c5564.. --- a/arch/arm/boot/dts/overlays/gc9a01-overlay.dts +++ /dev/null @@ -1,151 +0,0 @@ -/* -Device Tree overlay for Galaxycore GC9A01A single chip driver -for use on SPI TFT LCD, 240x240 65K RGB -Based on Galaxycore's GC9A01A datasheet Rev.1.0 (2019/07/02) -Copyright (C) 2022, Julianno F. C. Silva (@juliannojungle) - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published -by the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>. - -Init sequence partially based on Waveshare team's Arduino LCD_Driver V1.0 (2020/12/09). - -Permission is hereby granted, free of UBYTEge, to any person obtaining a copy -of this software and associated documnetation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - */ - -/dts-v1/; -/plugin/; - -/ { -compatible = "brcm,bcm2835"; - -fragment@0 { -target = <>; -__overlay__ { -status = "disabled"; -}; -}; - -fragment@1 { -target = <>; -__overlay__ { -gc9a01_pins: gc9a01_pins { -brcm,pins = <25 27>; -brcm,function = <1 1>; /* out */ -brcm,pull = <0 0>; /* none */ -}; -}; -}; - -fragment@2 { -target = <>; -__overlay__ { -/* needed to avoid dtc warning */ -#address-cells = <1>; -#size-cells = <0>; -status = "okay"; - -gc9a01: gc9a01@0 { -compatible = "ilitek,ili9340"; -reg = <0>; -pinctrl-names = "default"; -pinctrl-0 = <_pins>; -reset-gpios = < 27 1>; -dc-gpios = < 25 0>; -led-gpios = < 18 0>; -spi-max-frequency = <4000>; -
[linux-yocto] [PATCH] usb: hcd-pci: remove the action of faking interrupt request
With below command steps, PCIe-USB drvier also hangs even if commit c548795abe0d("USB: add check to detect host controller hardware removal") exists in latest kernel. - hot-unplug the PCIe-USB card - echo 1 > /sys/bus/pci/devices//remove The code hangs in function xhci_urb_dequeue() because it is not able to get the spin lock xhci->lock. The root cause is that when PCIe-USB card is hot-plugged, there is an exception("Internal error: synchronous external abort") occurred in function xhci_urb_enqueue() that acquire the xhci->lock during sending data. After exception is processed, the usb-storage kthread is killed, and the code is not able to return to function xhci_urb_enqueue() again, so the xhci->lock is not released and cause the device removing action hangs in xhci_urb_dequeue(). Even if moving code of commit c548795abe0d to function xhci_pci_remove(), it also doesn't resolve the deadlock issue, because in fact, there is an exception ("Internal error: synchronous external abort") occurred without PCIe card. The code doesn't return back again. Because the above steps are not correct operation for PCIe device, it should not hot-unplug the PCIe-USB card directly before removing device from drvier level. Moreover, it has better offer dedicated power to support PCIe hot-plug so that avoid destroying PCIe hardware. Based on above analysis, I think the action of faking interrupt request should be removed, it does not need to resolve a unreasonable use case. Moreover, remove the code of faking interrupt request also can avoid below calltrace in RT kernel. Call trace: .. __might_resched+0x160/0x1c0 rt_spin_lock+0x38/0xb0 xhci_irq+0x44/0x16d0 usb_hcd_irq+0x38/0x5c usb_hcd_pci_remove+0x84/0x14c xhci_pci_remove+0x78/0xc0 pci_device_remove+0x44/0xcc device_remove+0x54/0x8c device_release_driver_internal+0x1ec/0x260 device_release_driver+0x20/0x30 pci_stop_bus_device+0x8c/0xcc pci_stop_and_remove_bus_device_locked+0x28/0x44 .. el0t_64_sync_handler+0xf4/0x120 el0t_64_sync+0x18c/0x190 Fixes: c548795abe0d ("USB: add check to detect host controller hardware removal") Cc: sta...@vger.kernel.org Signed-off-by: Meng Li --- drivers/usb/core/hcd-pci.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index 9b77f49b3560..3202583b0a40 100644 --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c @@ -322,14 +322,6 @@ void usb_hcd_pci_remove(struct pci_dev *dev) if (pci_dev_run_wake(dev)) pm_runtime_get_noresume(>dev); - /* Fake an interrupt request in order to give the driver a chance -* to test whether the controller hardware has been removed (e.g., -* cardbus physical eject). -*/ - local_irq_disable(); - usb_hcd_irq(0, hcd); - local_irq_enable(); - /* Note: dev_set_drvdata must be called while holding the rwsem */ if (dev->class == CL_EHCI) { down_write(_rwsem); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13200): https://lists.yoctoproject.org/g/linux-yocto/message/13200 Mute This Topic: https://lists.yoctoproject.org/mt/102034460/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt v6.1]: usb: hcd-pci: remove the action of faking interrupt request
From: Limeng Hi Bruce, This patch is used to remove the action of faking interrupt request. Could you please help merge this patch into linux-ycoto kernel firstly? I will send it to mainline upstream in later. Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: hcd-pci.c |8 1 file changed, 8 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13199): https://lists.yoctoproject.org/g/linux-yocto/message/13199 Mute This Topic: https://lists.yoctoproject.org/mt/102034459/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] driver: net: dpaa: support AQR113C phy on revision C LS1046ARDB board
On the new revision C LS1046ARDB board AQR107 is replaced With AQR113C. So refer to upstream commit 9dbdfd4a9f34("net: dpaa: Fix <1G ethernet on LS1046ARDB "), make sure the 10G ethernet port(J5) also works under <1G status. Signed-off-by: Meng Li --- drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c b/drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c index 6833fe060f3c..bf0f416f7d54 100644 --- a/drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c +++ b/drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c @@ -496,12 +496,14 @@ static int xgmac_init_phy(struct net_device *net_dev, /* The Aquantia PHYs are capable of performing rate adaptation */ #define PHY_VEND_AQUANTIA 0x03a1b400 +#define PHY_VEND_AQUANTIA2 0x31c31c00 static int memac_init_phy(struct net_device *net_dev, struct mac_device *mac_dev) { struct phy_device *phy_dev; __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, }; void (*adjust_link_handler)(struct net_device *); + u32 phy_vendor; if ((macdev2enetinterface(mac_dev) == e_ENET_MODE_XGMII_1) || (macdev2enetinterface(mac_dev) == e_ENET_MODE_SGMII_2500)) { @@ -545,10 +547,12 @@ static int memac_init_phy(struct net_device *net_dev, return phy_dev == NULL ? -ENODEV : PTR_ERR(phy_dev); } + phy_vendor = phy_dev->drv->phy_id & GENMASK(31, 10); /* Unless the PHY is capable of rate adaptation */ if ((mac_dev->phy_if != PHY_INTERFACE_MODE_XGMII && mac_dev->phy_if != PHY_INTERFACE_MODE_USXGMII) || - ((phy_dev->drv->phy_id & GENMASK(31, 10)) != PHY_VEND_AQUANTIA)) { + (phy_vendor != PHY_VEND_AQUANTIA && +phy_vendor != PHY_VEND_AQUANTIA2)) { /* Remove any features not supported by the controller */ ethtool_convert_legacy_u32_to_link_mode(mask, mac_dev->if_support); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13176): https://lists.yoctoproject.org/g/linux-yocto/message/13176 Mute This Topic: https://lists.yoctoproject.org/mt/101913233/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt v6.1]: driver: net: dpaa: support AQR113C phy on revision C LS1046ARDB board
From: Limeng Hi Bruce, This patch is used to support AQR113C phy on revision C LS1046ARDB board. Could you please help merge this patch into linux-ycoto kernel? Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: mac-api.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13175): https://lists.yoctoproject.org/g/linux-yocto/message/13175 Mute This Topic: https://lists.yoctoproject.org/mt/101913232/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: nxp-ls1046: Add profiling feature
From: Limeng Hi Bruce, This patch is used to add profiling feature configs for this BSP in kernel-cache. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info as below: nxp-ls1046.scc |1 + 1 file changed, 1 insertion(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13170): https://lists.yoctoproject.org/g/linux-yocto/message/13170 Mute This Topic: https://lists.yoctoproject.org/mt/101894360/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-ls1046: Add profiling feature
Add profiling related kernel configs for perf feature. Signed-off-by: Meng Li --- bsp/nxp-ls1046/nxp-ls1046.scc | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/nxp-ls1046/nxp-ls1046.scc b/bsp/nxp-ls1046/nxp-ls1046.scc index dc051775..d040e0c8 100644 --- a/bsp/nxp-ls1046/nxp-ls1046.scc +++ b/bsp/nxp-ls1046/nxp-ls1046.scc @@ -5,3 +5,4 @@ include cfg/usb-mass-storage.scc include features/hugetlb/hugetlb.scc include arch/arm/32bit-compat.scc +include features/profiling/profiling.scc -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13169): https://lists.yoctoproject.org/g/linux-yocto/message/13169 Mute This Topic: https://lists.yoctoproject.org/mt/101894359/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-imx7: enable CONFIG_I2C kernel config explicitly
The CONFIG_I2C kernel config is not enabled if setup WRLinux project with nodistro parameter, so add it into BSP cfg file. Signed-off-by: Meng Li --- bsp/nxp-imx7/nxp-imx7.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/nxp-imx7/nxp-imx7.cfg b/bsp/nxp-imx7/nxp-imx7.cfg index 37438785..930c697e 100644 --- a/bsp/nxp-imx7/nxp-imx7.cfg +++ b/bsp/nxp-imx7/nxp-imx7.cfg @@ -86,6 +86,7 @@ CONFIG_SERIAL_FSL_LPUART_CONSOLE=y CONFIG_NVMEM_IMX_OCOTP=y +CONFIG_I2C=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_IMX=y -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13156): https://lists.yoctoproject.org/g/linux-yocto/message/13156 Mute This Topic: https://lists.yoctoproject.org/mt/101845385/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: nxp-imx7: enable CONFIG_I2C kernel config explicitly
From: Limeng Hi Bruce, This patch is used to enable CONFIG_I2C kernel config explicitly Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? nxp-imx7.cfg |1 + 1 file changed, 1 insertion(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13157): https://lists.yoctoproject.org/g/linux-yocto/message/13157 Mute This Topic: https://lists.yoctoproject.org/mt/101845386/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[v2][linux-yocto]: [kernel/kernel-rt v6.1]: drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory
From: Limeng Hi Bruce, This patch is used to replace GFP_KERNEL with GFP_ATOMIC during allocating memory so that avoid triggering sleep in atomic context. Could you please help merge this patch into linux-ycoto kernel? Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: dpa_alloc.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13094): https://lists.yoctoproject.org/g/linux-yocto/message/13094 Mute This Topic: https://lists.yoctoproject.org/mt/101491801/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH v2] drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory
When running crypto test case, there is below calltrace because of allocating memory with GFP_KERNEL parameter in atomic context. Call trace: .. __might_resched+0x154/0x1c0 __might_sleep+0x54/0xa4 __kmem_cache_alloc_node+0x434/0x594 kmalloc_trace+0x54/0x140 dpa_alloc_new+0x58/0x280 qman_alloc_fqid_range+0x3c/0x4c qman_create_fq+0x6c/0x440 create_caam_req_fq+0x88/0x170 caam_drv_ctx_init+0x134/0x2d4 get_drv_ctx.part.0+0xbc/0xdc aead_edesc_alloc+0x630/0x980 aead_encrypt+0x38/0xc0 crypto_aead_encrypt+0x2c/0x40 test_aead_vec_cfg+0x234/0x84c test_aead+0xc4/0x160 alg_test_aead+0x9c/0x1a0 alg_test+0x380/0x540 cryptomgr_test+0x34/0x54 .. To avoid this calltrace, replace GFP_KERNEL with GFP_ATOMIC. Signed-off-by: Meng Li --- drivers/staging/fsl_qbman/dpa_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl_qbman/dpa_alloc.c b/drivers/staging/fsl_qbman/dpa_alloc.c index e420ef73325a..f23bc11e30d2 100644 --- a/drivers/staging/fsl_qbman/dpa_alloc.c +++ b/drivers/staging/fsl_qbman/dpa_alloc.c @@ -447,16 +447,16 @@ int dpa_alloc_new(struct dpa_alloc *alloc, u32 *result, u32 count, u32 align, /* If 'align' is 0, it should behave as though it was 1 */ if (!align) align = 1; - margin_left = kmalloc(sizeof(*margin_left), GFP_KERNEL); + margin_left = kmalloc(sizeof(*margin_left), GFP_ATOMIC); if (!margin_left) goto err; - margin_right = kmalloc(sizeof(*margin_right), GFP_KERNEL); + margin_right = kmalloc(sizeof(*margin_right), GFP_ATOMIC); if (!margin_right) { kfree(margin_left); goto err; } /* Add the allocation to the used list */ - used_node = kmalloc(sizeof(*used_node), GFP_KERNEL); + used_node = kmalloc(sizeof(*used_node), GFP_ATOMIC); if (!used_node) { kfree(margin_right); kfree(margin_left); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13095): https://lists.yoctoproject.org/g/linux-yocto/message/13095 Mute This Topic: https://lists.yoctoproject.org/mt/101491802/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/kernel-rt v6.1]: drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory
> -Original Message- > From: Bruce Ashfield > Sent: Wednesday, September 20, 2023 12:06 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel/kernel-rt v6.1]: drivers: fsl_qbman: > replace > GFP_KERNEL with GFP_ATOMIC during allocating memory > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Tue, Sep 19, 2023 at 9:53 PM Li, Meng wrote: > > > > > > > > > -Original Message- > > > From: Bruce Ashfield > > > Sent: Wednesday, September 20, 2023 6:21 AM > > > To: Li, Meng > > > Cc: linux-yocto@lists.yoctoproject.org > > > Subject: Re: [linux-yocto]: [kernel/kernel-rt v6.1]: drivers: > > > fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating > > > memory > > > > > > CAUTION: This email comes from a non Wind River email account! > > > Do not click links or open attachments unless you recognize the > > > sender and know the content is safe. > > > > > > I think this came through twice. > > > > > > If I've missed a merge, let me know. > > > > > > > Although this patch modified the same file as the last patch, it fixed the > > same > issue in different function. > > Because there are 2 issues reported to me separately in different days. > > When I > received the second issue I had sent the first patch to you. > > So, I created another patch(the second one) that also needs to be merged. > > Aha. > > to make things easier, can you re-send it as a v2 with a different subject > line ? > Yes! In order to distinguish the 2 patches, I create different subject. The first patch subject that you have merged is "drivers: fsl_qbman: alloc memory with GFP_ATOMIC parameter" This patch(the second one) subject is " drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory" If you think they are still similar, I will re-create subject for the second patch, and send V2. Thanks, LImeng > Bruce > > > > > Thanks, > > Limeng > > > > > Bruce > > > > > > In message: [linux-yocto]: [kernel/kernel-rt v6.1]: drivers: > > > fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating > > > memory on 19/09/2023 Meng Li wrote: > > > > > > > From: Limeng > > > > > > > > Hi Bruce, > > > > > > > > This patch is used alloc memory with GFP_ATOMIC parameter so that > > > > avoid > > > triggering sleep in atomic context. > > > > Could you please help merge this patch into linux-ycoto kernel? > > > > Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and > > > > v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc > > > > > > > > > > > > diffstat info as below: > > > > > > > > dpa_alloc.c |6 +++--- > > > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > > > > > thanks, > > > > Limeng > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await thee at > its end > - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13089): https://lists.yoctoproject.org/g/linux-yocto/message/13089 Mute This Topic: https://lists.yoctoproject.org/mt/101451576/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/kernel-rt v6.1]: drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory
> -Original Message- > From: Bruce Ashfield > Sent: Wednesday, September 20, 2023 6:21 AM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel/kernel-rt v6.1]: drivers: fsl_qbman: > replace > GFP_KERNEL with GFP_ATOMIC during allocating memory > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > I think this came through twice. > > If I've missed a merge, let me know. > Although this patch modified the same file as the last patch, it fixed the same issue in different function. Because there are 2 issues reported to me separately in different days. When I received the second issue I had sent the first patch to you. So, I created another patch(the second one) that also needs to be merged. Thanks, Limeng > Bruce > > In message: [linux-yocto]: [kernel/kernel-rt v6.1]: drivers: fsl_qbman: > replace > GFP_KERNEL with GFP_ATOMIC during allocating memory on 19/09/2023 > Meng Li wrote: > > > From: Limeng > > > > Hi Bruce, > > > > This patch is used alloc memory with GFP_ATOMIC parameter so that avoid > triggering sleep in atomic context. > > Could you please help merge this patch into linux-ycoto kernel? > > Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and > > v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc > > > > > > diffstat info as below: > > > > dpa_alloc.c |6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > thanks, > > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13087): https://lists.yoctoproject.org/g/linux-yocto/message/13087 Mute This Topic: https://lists.yoctoproject.org/mt/101451576/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt v6.1]: drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory
From: Limeng Hi Bruce, This patch is used alloc memory with GFP_ATOMIC parameter so that avoid triggering sleep in atomic context. Could you please help merge this patch into linux-ycoto kernel? Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: dpa_alloc.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13079): https://lists.yoctoproject.org/g/linux-yocto/message/13079 Mute This Topic: https://lists.yoctoproject.org/mt/101451576/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: fsl_qbman: replace GFP_KERNEL with GFP_ATOMIC during allocating memory
When running crypto test case, there is below calltrace because of allocating memory with GFP_KERNEL parameter in atomic context. Call trace: .. __might_resched+0x154/0x1c0 __might_sleep+0x54/0xa4 __kmem_cache_alloc_node+0x434/0x594 kmalloc_trace+0x54/0x140 dpa_alloc_new+0x58/0x280 qman_alloc_fqid_range+0x3c/0x4c qman_create_fq+0x6c/0x440 create_caam_req_fq+0x88/0x170 caam_drv_ctx_init+0x134/0x2d4 get_drv_ctx.part.0+0xbc/0xdc aead_edesc_alloc+0x630/0x980 aead_encrypt+0x38/0xc0 crypto_aead_encrypt+0x2c/0x40 test_aead_vec_cfg+0x234/0x84c test_aead+0xc4/0x160 alg_test_aead+0x9c/0x1a0 alg_test+0x380/0x540 cryptomgr_test+0x34/0x54 .. To avoid this calltrace, replace GFP_KERNEL with GFP_ATOMIC. Signed-off-by: Meng Li --- drivers/staging/fsl_qbman/dpa_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl_qbman/dpa_alloc.c b/drivers/staging/fsl_qbman/dpa_alloc.c index e420ef73325a..f23bc11e30d2 100644 --- a/drivers/staging/fsl_qbman/dpa_alloc.c +++ b/drivers/staging/fsl_qbman/dpa_alloc.c @@ -447,16 +447,16 @@ int dpa_alloc_new(struct dpa_alloc *alloc, u32 *result, u32 count, u32 align, /* If 'align' is 0, it should behave as though it was 1 */ if (!align) align = 1; - margin_left = kmalloc(sizeof(*margin_left), GFP_KERNEL); + margin_left = kmalloc(sizeof(*margin_left), GFP_ATOMIC); if (!margin_left) goto err; - margin_right = kmalloc(sizeof(*margin_right), GFP_KERNEL); + margin_right = kmalloc(sizeof(*margin_right), GFP_ATOMIC); if (!margin_right) { kfree(margin_left); goto err; } /* Add the allocation to the used list */ - used_node = kmalloc(sizeof(*used_node), GFP_KERNEL); + used_node = kmalloc(sizeof(*used_node), GFP_ATOMIC); if (!used_node) { kfree(margin_right); kfree(margin_left); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13080): https://lists.yoctoproject.org/g/linux-yocto/message/13080 Mute This Topic: https://lists.yoctoproject.org/mt/101451577/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt v6.1]: drivers: fsl_qbman: alloc memory with GFP_ATOMIC parameter
From: Limeng Hi Bruce, This patch is used alloc memory with GFP_ATOMIC parameter so that avoid triggering sleep in atomic context. Could you please help merge this patch into linux-ycoto kernel? Branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: dpa_alloc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13076): https://lists.yoctoproject.org/g/linux-yocto/message/13076 Mute This Topic: https://lists.yoctoproject.org/mt/101448249/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: fsl_qbman: alloc memory with GFP_ATOMIC parameter
When running dpdk test case, there is below calltrace because of allocating memory in atomic context. Call trace: .. __might_resched+0x154/0x1c0 __might_sleep+0x54/0xa4 __kmem_cache_alloc_node+0x434/0x594 kmalloc_trace+0x54/0x140 dpa_alloc_reserve+0x100/0x19c qman_reserve_fqid_range+0x2c/0x3c usdpaa_ioctl+0x1314/0x1ae4 __arm64_sys_ioctl+0xb4/0x100 .. To avoid this calltrace, replace GFP_KERNEL with GFP_ATOMIC. Signed-off-by: Meng Li --- drivers/staging/fsl_qbman/dpa_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl_qbman/dpa_alloc.c b/drivers/staging/fsl_qbman/dpa_alloc.c index a98779bf26da..e420ef73325a 100644 --- a/drivers/staging/fsl_qbman/dpa_alloc.c +++ b/drivers/staging/fsl_qbman/dpa_alloc.c @@ -654,7 +654,7 @@ int dpa_alloc_reserve(struct dpa_alloc *alloc, u32 base, u32 num) } } /* Add the allocation to the used list with a refcount of 1 */ - used_node = kmalloc(sizeof(*used_node), GFP_KERNEL); + used_node = kmalloc(sizeof(*used_node), GFP_ATOMIC); if (!used_node) { spin_unlock_irq(>lock); return -ENOMEM; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13077): https://lists.yoctoproject.org/g/linux-yocto/message/13077 Mute This Topic: https://lists.yoctoproject.org/mt/101448250/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-imx8: remove config CONFIG_SOC_DEV_IMX9
Refer to commit 913514b55961("LF-8986 soc: imx: reuse soc-imx8m for i.MX93 soc device"), the kernel config CONFIG_SOC_DEV_IMX9 had been removed. So, also remove it from kernel cache. Signed-off-by: Meng Li --- bsp/nxp-imx8/nxp-imx8.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg index 918df233..0e4fa067 100644 --- a/bsp/nxp-imx8/nxp-imx8.cfg +++ b/bsp/nxp-imx8/nxp-imx8.cfg @@ -542,7 +542,6 @@ CONFIG_IMX_RPMSG_TTY=m # CONFIG_IMX_GPCV2_PM_DOMAINS=y CONFIG_SOC_IMX8M=y -CONFIG_SOC_DEV_IMX9=m CONFIG_IMX8M_BUSFREQ=y CONFIG_IMX8M_PM_DOMAINS=y CONFIG_SOC_IMX9=y -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13043): https://lists.yoctoproject.org/g/linux-yocto/message/13043 Mute This Topic: https://lists.yoctoproject.org/mt/101232021/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: nxp-imx8: remove config CONFIG_SOC_DEV_IMX9
From: Limeng Hi Bruce, This patch is used to remove config CONFIG_SOC_DEV_IMX9 Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info as below: nxp-imx8.cfg |1 - 1 file changed, 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13044): https://lists.yoctoproject.org/g/linux-yocto/message/13044 Mute This Topic: https://lists.yoctoproject.org/mt/101232022/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: enetc: tsn: free the CBS structure enetc_tsn_deinit() function
When running dpdk congiguration script dpdk_configure_1028ardb.sh to setup dpdk work environment, the fsl_enetc driver is unbound. But the CBS structure is not released in enetc_tsn_deinit() function. So, add a function enetc_cbs_free() to free CBS structure. Signed-off-by: Meng Li --- drivers/net/ethernet/freescale/enetc/enetc_tsn.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c index 55652dc43adb..49e0ebf3819e 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c @@ -1915,6 +1915,12 @@ static void enetc_cbs_init(struct enetc_si *si) } } +static void enetc_cbs_free(struct enetc_si *si) +{ + kfree(si->ecbs); + si->ecbs = NULL; +} + static void enetc_qbv_init(struct enetc_hw *hw) { /* Set PSPEED to be 1Gbps */ @@ -1948,6 +1954,12 @@ void enetc_tsn_deinit(struct net_device *ndev) { struct enetc_ndev_priv *priv = netdev_priv(ndev); struct enetc_si *si = priv->si; + u32 capability; + + capability = __enetc_tsn_get_cap(si); + + if (capability & TSN_CAP_CBS) + enetc_cbs_free(si); dev_info(>pdev->dev, "%s: release\n", __func__); } -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13002): https://lists.yoctoproject.org/g/linux-yocto/message/13002 Mute This Topic: https://lists.yoctoproject.org/mt/100866557/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: drivers: enetc: tsn: free the CBS structure enetc_tsn_deinit() function
From: Limeng Hi Bruce, This patch is used to ree the CBS structure enetc_tsn_deinit() function. So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v5.15/standard/nxp-sdk-5.15/nxp-soc v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-soc diffstat info as below: enetc_tsn.c | 12 1 file changed, 12 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13001): https://lists.yoctoproject.org/g/linux-yocto/message/13001 Mute This Topic: https://lists.yoctoproject.org/mt/100866535/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: enetc: tsn: free the CBS structure enetc_tsn_deinit() function
When running dpdk congiguration script dpdk_configure_1028ardb.sh to setup dpdk work environment, the fsl_enetc driver is unbound. But the CBS structure is not released in enetc_tsn_deinit() function. So, add a function enetc_cbs_free() to free CBS structure. Signed-off-by: Meng Li --- drivers/net/ethernet/freescale/enetc/enetc_tsn.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c index 3bf1669792a0..766913c85a0d 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c @@ -1840,6 +1840,12 @@ static void enetc_cbs_init(struct enetc_si *si) } } +static void enetc_cbs_free(struct enetc_si *si) +{ + kfree(si->ecbs); + si->ecbs = NULL; +} + static void enetc_qbv_init(struct enetc_hw *hw) { /* Set PSPEED to be 1Gbps */ @@ -1880,6 +1886,9 @@ static void enetc_tsn_deinit(struct net_device *ndev) if (capability & TSN_CAP_QCI) enetc_qci_disable(>hw); + if (capability & TSN_CAP_CBS) + enetc_cbs_free(si); + dev_info(>pdev->dev, "%s: release\n", __func__); } -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13000): https://lists.yoctoproject.org/g/linux-yocto/message/13000 Mute This Topic: https://lists.yoctoproject.org/mt/100866536/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: drivers: enetc: tsn: free the CBS structure enetc_tsn_deinit() function
From: Limeng Hi Bruce, This patch is used to free the CBS structure enetc_tsn_deinit() function So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.1/standard/nxp-sdk-6.1/nxp-soc v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: enetc_tsn.c |9 + 1 file changed, 9 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12999): https://lists.yoctoproject.org/g/linux-yocto/message/12999 Mute This Topic: https://lists.yoctoproject.org/mt/100866535/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] watchdog: core: stop watchdog when executing poweroff command
On some platforms, for example, NXP ls1028 platform, the watchdog is started in u-boot, and so kernel will create a timer and work to keep watchdog alive. But when user executes commands "poweroff" or "shutdown -h", the system is reset when watchdog triggers timeout even if WDOG_STOP_ON_REBOOT is set in watchdog driver. The root cause is that the watchdog is not stopped properly because the SYS_POWER_OFF case is not supported in notify callback function. So, add this case to stop watchdog when executing poweroff command. Signed-off-by: Meng Li --- drivers/watchdog/watchdog_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/watchdog_core.c b/drivers/watchdog/watchdog_core.c index c777a612d932..401d5d4db3fe 100644 --- a/drivers/watchdog/watchdog_core.c +++ b/drivers/watchdog/watchdog_core.c @@ -161,7 +161,7 @@ static int watchdog_reboot_notifier(struct notifier_block *nb, struct watchdog_device *wdd; wdd = container_of(nb, struct watchdog_device, reboot_nb); - if (code == SYS_DOWN || code == SYS_HALT) { + if (code == SYS_DOWN || code == SYS_HALT || code == SYS_POWER_OFF) { if (watchdog_active(wdd) || watchdog_hw_running(wdd)) { int ret; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12970): https://lists.yoctoproject.org/g/linux-yocto/message/12970 Mute This Topic: https://lists.yoctoproject.org/mt/100735102/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: watchdog: core: stop watchdog when executing poweroff command
From: Limeng Hi Bruce, This patch is used to stop watchdog when executing poweroff command So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.1/standard/nxp-sdk-6.1/nxp-soc v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: watchdog_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12969): https://lists.yoctoproject.org/g/linux-yocto/message/12969 Mute This Topic: https://lists.yoctoproject.org/mt/100735099/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: drivers: i2c: remove default y from I2C_IMX_FLEXIO config
From: Limeng Hi Bruce, This patch is used to remove default y from I2C_IMX_FLEXIO config So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.1/standard/nxp-sdk-6.1/nxp-soc v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: Kconfig |1 - 1 file changed, 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12960): https://lists.yoctoproject.org/g/linux-yocto/message/12960 Mute This Topic: https://lists.yoctoproject.org/mt/100660337/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: i2c: remove default y from I2C_IMX_FLEXIO config
When building kernel with kts test layer, COMPILE_TEST is set as y. This causes I2C_IMX_FLEXIO to be enabled because there is default y option in this kernel config. But the depended MFD_IMX_FLEXIO config is not enabled, and causes below building issue: drivers/i2c/busses/i2c-flexio.c:290: undefined reference to `flexio_sw_reset' Therefore, remove default y to avoid building issue. In this way, users also can select proper driver based on specific SoC. Signed-off-by: Meng Li --- drivers/i2c/busses/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 06a2f5db1352..567f5199c42a 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -725,7 +725,6 @@ config I2C_IMX_LPI2C config I2C_IMX_FLEXIO tristate "NXP IMX FLEXIO I2C MASTER" depends on (ARCH_MXC && MFD_IMX_FLEXIO) || COMPILE_TEST - default y help If you say yes to this option, support will be included for the I2C controller simulated by flexio embedded in NXP IMX8ULP SOCs. -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12961): https://lists.yoctoproject.org/g/linux-yocto/message/12961 Mute This Topic: https://lists.yoctoproject.org/mt/100660338/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 for intel-socfpga]: usb: dwc2: add new compatible for Intel SoCFPGA Stratix10 platform
> -Original Message- > From: Bruce Ashfield > Sent: Friday, July 21, 2023 5:07 AM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel for intel-socfpga]: usb: dwc2: add new > compatible for Intel SoCFPGA Stratix10 platform > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Mon, Jul 17, 2023 at 11:50 PM Meng Li wrote: > > > > From: Limeng > > > > Hi Bruce, > > > > This patch is used to add new compatible for Intel SoCFPGA Stratix10 > > platform Could you please help to merge it into linux-ycoto kernel > > repo, both standard and rt branches > > v6.1/standard/intel-sdk-6.1/intel-socfpga > > v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga > > merged. > > If I grabbed the wrong version, send an incremental patch. When upstream > finally accepts it, also send an incremental patch! > Ok! Got it. Thanks, LImeng > Bruce > > > > > diffstat info as below: > > > > socfpga_stratix10.dtsi |4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > thanks, > > Limeng > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await thee at > its end > - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12878): https://lists.yoctoproject.org/g/linux-yocto/message/12878 Mute This Topic: https://lists.yoctoproject.org/mt/100209590/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] usb: dwc2: add new compatible for Intel SoCFPGA Stratix10 platform
Intel Stratix10 is very the same with Agilex platform, the DWC2 IP on the Stratix platform also does not support clock-gating. The commit 3d8d3504d233("usb: dwc2: Add platform specific data for Intel's Agilex") had fixed this issue. So, add the essential compatible to also use the specific data on Stratix10 platform. Signed-off-by: Meng Li --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index ea788a920eab..b8dd5509c214 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -490,7 +490,7 @@ usbphy0: usbphy@0 { }; usb0: usb@ffb0 { - compatible = "snps,dwc2"; + compatible = "intel,socfpga-agilex-hsotg", "snps,dwc2"; reg = <0xffb0 0x4>; interrupts = <0 93 4>; phys = <>; @@ -504,7 +504,7 @@ usb0: usb@ffb0 { }; usb1: usb@ffb4 { - compatible = "snps,dwc2"; + compatible = "intel,socfpga-agilex-hsotg", "snps,dwc2"; reg = <0xffb4 0x4>; interrupts = <0 94 4>; phys = <>; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12873): https://lists.yoctoproject.org/g/linux-yocto/message/12873 Mute This Topic: https://lists.yoctoproject.org/mt/100210250/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] [PATCH] usb: dwc2: combine platform specific data for Intel Agilex and Stratix10
Hi Bruce, Sorry! I send the wrong patch, it is the old one. Please discard this patch. I will send the new one in later. Thanks, LImeng > -Original Message- > From: linux-yocto@lists.yoctoproject.org > On Behalf Of Meng Li via lists.yoctoproject.org > Sent: Tuesday, July 18, 2023 11:50 AM > To: bruce.ashfi...@gmail.com > Cc: linux-yocto@lists.yoctoproject.org > Subject: [linux-yocto] [PATCH] usb: dwc2: combine platform specific data for > Intel Agilex and Stratix10 > > Intel Stratix10 is very the same with Agilex platform, the DWC2 IP on the > Stratix > platform also does not support clock-gating. So, based on commit > 3d8d3504d233("usb: dwc2: Add platform specific data for Intel's Agilex"), > combine platform specific data for Intel Agilex and > Stratix10 together. In additional, in order to avoid breaking the old device > tree, > keep compatible string "intel,socfpga-agilex-hsotg" unchanged. > > Signed-off-by: Meng Li > --- > Documentation/devicetree/bindings/usb/dwc2.yaml | 2 ++ > arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++-- > drivers/usb/dwc2/params.c | 6 -- > 3 files changed, 8 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml > b/Documentation/devicetree/bindings/usb/dwc2.yaml > index dc4988c0009c..c98ca98d5033 100644 > --- a/Documentation/devicetree/bindings/usb/dwc2.yaml > +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml > @@ -51,6 +51,7 @@ properties: >- amlogic,meson-gxbb-usb >- amlogic,meson-g12a-usb >- intel,socfpga-agilex-hsotg > + - intel,socfpga-hsotg >- const: snps,dwc2 >- const: amcc,dwc-otg >- const: apm,apm82181-dwc-otg > @@ -64,6 +65,7 @@ properties: >- const: snps,dwc2 >- const: samsung,s3c6400-hsotg >- const: intel,socfpga-agilex-hsotg > + - const: intel,socfpga-hsotg > >reg: > maxItems: 1 > diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > index ea788a920eab..c5a51636f657 100644 > --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > @@ -490,7 +490,7 @@ usbphy0: usbphy@0 { > }; > > usb0: usb@ffb0 { > - compatible = "snps,dwc2"; > + compatible = "intel,socfpga-hsotg", "snps,dwc2"; > reg = <0xffb0 0x4>; > interrupts = <0 93 4>; > phys = <>; > @@ -504,7 +504,7 @@ usb0: usb@ffb0 { > }; > > usb1: usb@ffb4 { > - compatible = "snps,dwc2"; > + compatible = "intel,socfpga-hsotg", "snps,dwc2"; > reg = <0xffb4 0x4>; > interrupts = <0 94 4>; > phys = <>; > diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index > 8eab5f38b110..6bb27a24e9e1 100644 > --- a/drivers/usb/dwc2/params.c > +++ b/drivers/usb/dwc2/params.c > @@ -93,7 +93,7 @@ static void dwc2_set_s3c6400_params(struct dwc2_hsotg > *hsotg) > p->phy_utmi_width = 8; > } > > -static void dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg) > +static void dwc2_set_socfpga_params(struct dwc2_hsotg *hsotg) > { > struct dwc2_core_params *p = >params; > > @@ -266,7 +266,9 @@ const struct of_device_id dwc2_of_match_table[] = { > { .compatible = "st,stm32mp15-hsotg", > .data = dwc2_set_stm32mp15_hsotg_params }, > { .compatible = "intel,socfpga-agilex-hsotg", > - .data = dwc2_set_socfpga_agilex_params }, > + .data = dwc2_set_socfpga_params }, > + { .compatible = "intel,socfpga-hsotg", > + .data = dwc2_set_socfpga_params }, > {}, > }; > MODULE_DEVICE_TABLE(of, dwc2_of_match_table); > -- > 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12872): https://lists.yoctoproject.org/g/linux-yocto/message/12872 Mute This Topic: https://lists.yoctoproject.org/mt/100210243/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] usb: dwc2: combine platform specific data for Intel Agilex and Stratix10
Intel Stratix10 is very the same with Agilex platform, the DWC2 IP on the Stratix platform also does not support clock-gating. So, based on commit 3d8d3504d233("usb: dwc2: Add platform specific data for Intel's Agilex"), combine platform specific data for Intel Agilex and Stratix10 together. In additional, in order to avoid breaking the old device tree, keep compatible string "intel,socfpga-agilex-hsotg" unchanged. Signed-off-by: Meng Li --- Documentation/devicetree/bindings/usb/dwc2.yaml | 2 ++ arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++-- drivers/usb/dwc2/params.c | 6 -- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml index dc4988c0009c..c98ca98d5033 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.yaml +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml @@ -51,6 +51,7 @@ properties: - amlogic,meson-gxbb-usb - amlogic,meson-g12a-usb - intel,socfpga-agilex-hsotg + - intel,socfpga-hsotg - const: snps,dwc2 - const: amcc,dwc-otg - const: apm,apm82181-dwc-otg @@ -64,6 +65,7 @@ properties: - const: snps,dwc2 - const: samsung,s3c6400-hsotg - const: intel,socfpga-agilex-hsotg + - const: intel,socfpga-hsotg reg: maxItems: 1 diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index ea788a920eab..c5a51636f657 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -490,7 +490,7 @@ usbphy0: usbphy@0 { }; usb0: usb@ffb0 { - compatible = "snps,dwc2"; + compatible = "intel,socfpga-hsotg", "snps,dwc2"; reg = <0xffb0 0x4>; interrupts = <0 93 4>; phys = <>; @@ -504,7 +504,7 @@ usb0: usb@ffb0 { }; usb1: usb@ffb4 { - compatible = "snps,dwc2"; + compatible = "intel,socfpga-hsotg", "snps,dwc2"; reg = <0xffb4 0x4>; interrupts = <0 94 4>; phys = <>; diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 8eab5f38b110..6bb27a24e9e1 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -93,7 +93,7 @@ static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg) p->phy_utmi_width = 8; } -static void dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg) +static void dwc2_set_socfpga_params(struct dwc2_hsotg *hsotg) { struct dwc2_core_params *p = >params; @@ -266,7 +266,9 @@ const struct of_device_id dwc2_of_match_table[] = { { .compatible = "st,stm32mp15-hsotg", .data = dwc2_set_stm32mp15_hsotg_params }, { .compatible = "intel,socfpga-agilex-hsotg", - .data = dwc2_set_socfpga_agilex_params }, + .data = dwc2_set_socfpga_params }, + { .compatible = "intel,socfpga-hsotg", + .data = dwc2_set_socfpga_params }, {}, }; MODULE_DEVICE_TABLE(of, dwc2_of_match_table); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12870): https://lists.yoctoproject.org/g/linux-yocto/message/12870 Mute This Topic: https://lists.yoctoproject.org/mt/100189631/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel for intel-socfpga]: usb: dwc2: add new compatible for Intel SoCFPGA Stratix10 platform
From: Limeng Hi Bruce, This patch is used to add new compatible for Intel SoCFPGA Stratix10 platform Could you please help to merge it into linux-ycoto kernel repo, both standard and rt branches v6.1/standard/intel-sdk-6.1/intel-socfpga v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga diffstat info as below: socfpga_stratix10.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12871): https://lists.yoctoproject.org/g/linux-yocto/message/12871 Mute This Topic: https://lists.yoctoproject.org/mt/100209590/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel for intel-socfpga]: usb: dwc2: combine platform specific data for Intel Agilex and Stratix10
From: Limeng Hi Bruce, This patch is used to combine platform specific data for Intel Agilex and Stratix10. Could you please help to merge it into linux-ycoto kernel repo, both standard and rt branches v6.1/standard/intel-sdk-6.1/intel-socfpga v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga diffstat info as below: Documentation/devicetree/bindings/usb/dwc2.yaml |2 ++ arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi |4 ++-- drivers/usb/dwc2/params.c |6 -- 3 files changed, 8 insertions(+), 4 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12860): https://lists.yoctoproject.org/g/linux-yocto/message/12860 Mute This Topic: https://lists.yoctoproject.org/mt/100189630/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] usb: dwc2: combine platform specific data for Intel Agilex and Stratix10
Intel Stratix10 is very the same with Agilex platform, the DWC2 IP on the Stratix platform also does not support clock-gating. So, based on commit 3d8d3504d233("usb: dwc2: Add platform specific data for Intel's Agilex"), combine platform specific data for Intel Agilex and Stratix10 together. In additional, in order to avoid breaking the old device tree, keep compatible string "intel,socfpga-agilex-hsotg" unchanged. Signed-off-by: Meng Li --- Documentation/devicetree/bindings/usb/dwc2.yaml | 2 ++ arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++-- drivers/usb/dwc2/params.c | 6 -- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml index dc4988c0009c..c98ca98d5033 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.yaml +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml @@ -51,6 +51,7 @@ properties: - amlogic,meson-gxbb-usb - amlogic,meson-g12a-usb - intel,socfpga-agilex-hsotg + - intel,socfpga-hsotg - const: snps,dwc2 - const: amcc,dwc-otg - const: apm,apm82181-dwc-otg @@ -64,6 +65,7 @@ properties: - const: snps,dwc2 - const: samsung,s3c6400-hsotg - const: intel,socfpga-agilex-hsotg + - const: intel,socfpga-hsotg reg: maxItems: 1 diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index ea788a920eab..c5a51636f657 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -490,7 +490,7 @@ usbphy0: usbphy@0 { }; usb0: usb@ffb0 { - compatible = "snps,dwc2"; + compatible = "intel,socfpga-hsotg", "snps,dwc2"; reg = <0xffb0 0x4>; interrupts = <0 93 4>; phys = <>; @@ -504,7 +504,7 @@ usb0: usb@ffb0 { }; usb1: usb@ffb4 { - compatible = "snps,dwc2"; + compatible = "intel,socfpga-hsotg", "snps,dwc2"; reg = <0xffb4 0x4>; interrupts = <0 94 4>; phys = <>; diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 8eab5f38b110..6bb27a24e9e1 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -93,7 +93,7 @@ static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg) p->phy_utmi_width = 8; } -static void dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg) +static void dwc2_set_socfpga_params(struct dwc2_hsotg *hsotg) { struct dwc2_core_params *p = >params; @@ -266,7 +266,9 @@ const struct of_device_id dwc2_of_match_table[] = { { .compatible = "st,stm32mp15-hsotg", .data = dwc2_set_stm32mp15_hsotg_params }, { .compatible = "intel,socfpga-agilex-hsotg", - .data = dwc2_set_socfpga_agilex_params }, + .data = dwc2_set_socfpga_params }, + { .compatible = "intel,socfpga-hsotg", + .data = dwc2_set_socfpga_params }, {}, }; MODULE_DEVICE_TABLE(of, dwc2_of_match_table); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12861): https://lists.yoctoproject.org/g/linux-yocto/message/12861 Mute This Topic: https://lists.yoctoproject.org/mt/100189631/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel for intel-socfpga]: watchdog: dw_wdt: register notify callback to stop watchdog when shuting down system
From: Limeng Hi Bruce, This patch is used to register notify callback to stop watchdog when shuting down system Could you please help to merge it into linux-ycoto kernel repo, both standard and rt branches v6.1/standard/intel-sdk-6.1/intel-socfpga v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga diffstat info as below: dw_wdt.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12824): https://lists.yoctoproject.org/g/linux-yocto/message/12824 Mute This Topic: https://lists.yoctoproject.org/mt/99844367/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] watchdog: dw_wdt: register notify callback to stop watchdog when shuting down system
On Intel SoC FPGA platform, Stratix10 or Agilex, the watchdog is started in u-boot, so kernel will create a timer and work to keep watchdog alive. But when user executes commands "halt", "poweroff" or "shutdown", the system is reset when watchdog triggers timeout. The root cause is that the watchdog not stopped properly. So, register notify callback to stop watchdog when shuting down system. Signed-off-by: Meng Li --- drivers/watchdog/dw_wdt.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c index 61af5d1332ac..e93150b92040 100644 --- a/drivers/watchdog/dw_wdt.c +++ b/drivers/watchdog/dw_wdt.c @@ -28,6 +28,8 @@ #include #include #include +#include +#include #define WDOG_CONTROL_REG_OFFSET0x00 #define WDOG_CONTROL_REG_WDT_EN_MASK 0x01 @@ -492,6 +494,19 @@ static int dw_wdt_init_timeouts(struct dw_wdt *dw_wdt, struct device *dev) return 0; } +static int dw_wdt_notify(struct notifier_block *nb, + unsigned long code, void *data) +{ + struct watchdog_device *wdd; + + wdd = container_of(nb, struct watchdog_device, reboot_nb); + if (code == SYS_HALT || code == SYS_POWER_OFF) + if (!nowayout) + dw_wdt_stop(wdd); + + return NOTIFY_DONE; +} + #ifdef CONFIG_DEBUG_FS #define DW_WDT_DBGFS_REG(_name, _off) \ @@ -664,14 +679,22 @@ static int dw_wdt_drv_probe(struct platform_device *pdev) watchdog_set_restart_priority(wdd, 128); - ret = watchdog_register_device(wdd); + wdd->reboot_nb.notifier_call = dw_wdt_notify; + ret = register_reboot_notifier(>reboot_nb); if (ret) goto out_assert_rst; + ret = watchdog_register_device(wdd); + if (ret) + goto err_out_notifier; + dw_wdt_dbgfs_init(dw_wdt); return 0; +err_out_notifier: + unregister_reboot_notifier(>reboot_nb); + out_assert_rst: reset_control_assert(dw_wdt->rst); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12823): https://lists.yoctoproject.org/g/linux-yocto/message/12823 Mute This Topic: https://lists.yoctoproject.org/mt/99844366/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: intel-socfpga: enable firmware loading feature for preempt-rt kernel
From: Limeng Hi Bruce, This patch is used to enable firmware loading feature for preempt-rt kernel Could you please help to merge this patch into yocto-kernel-cache, branch is yocto-6.1? diffstat info as below: intel-socfpga-64-preempt-rt.scc |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12808): https://lists.yoctoproject.org/g/linux-yocto/message/12808 Mute This Topic: https://lists.yoctoproject.org/mt/99804858/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] intel-socfpga: enable firmware loading feature for preempt-rt kernel
Signed-off-by: Meng Li --- bsp/intel-socfpga/intel-socfpga-64-preempt-rt.scc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/intel-socfpga/intel-socfpga-64-preempt-rt.scc b/bsp/intel-socfpga/intel-socfpga-64-preempt-rt.scc index af4efb1e..f497973b 100644 --- a/bsp/intel-socfpga/intel-socfpga-64-preempt-rt.scc +++ b/bsp/intel-socfpga/intel-socfpga-64-preempt-rt.scc @@ -3,5 +3,5 @@ define KTYPE preempt-rt define KARCH arm64 include ktypes/preempt-rt - +include features/firmware/firmware.scc include intel-socfpga-64.scc -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12809): https://lists.yoctoproject.org/g/linux-yocto/message/12809 Mute This Topic: https://lists.yoctoproject.org/mt/99804859/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel for intel-socfpga]: intel-socfpga: dts: arch: arm64: dts: improve the overlay used to updating FPGA image
From: Limeng Hi Bruce, This patch is used to i improve the overlay used to updating FPGA image Could you please help to merge it into linux-ycoto kernel repo, both standard and rt branches v6.1/standard/intel-sdk-6.1/intel-socfpga v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga diffstat info as below: altera/socfpga_stratix10_fpga_update.dts |6 ++ intel/socfpga_agilex_fpga_update.dts |6 ++ 2 files changed, 4 insertions(+), 8 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12806): https://lists.yoctoproject.org/g/linux-yocto/message/12806 Mute This Topic: https://lists.yoctoproject.org/mt/99804796/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] arch: arm64: dts: improve the overlay used to updating FPGA image
- remove unnecessary #address-cells and #size-cells property - correct #address-cells and #size-cells property Signed-off-by: Meng Li --- .../arm64/boot/dts/altera/socfpga_stratix10_fpga_update.dts | 6 ++ arch/arm64/boot/dts/intel/socfpga_agilex_fpga_update.dts| 6 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_fpga_update.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_fpga_update.dts index c7811cc92091..a224909a4834 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_fpga_update.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_fpga_update.dts @@ -3,11 +3,9 @@ / { fragment@0 { target-path = "/soc/base_fpga_region"; - #address-cells = <1>; - #size-cells = <1>; __overlay__ { - #address-cells = <1>; - #size-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; firmware-name = "soc_s10_fpga_config.rbf"; config-complete-timeout-us = <200>; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_fpga_update.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_fpga_update.dts index 5383e02bfc35..2e91eddc50ec 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_fpga_update.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_fpga_update.dts @@ -3,11 +3,9 @@ / { fragment@0 { target-path = "/soc/base_fpga_region"; - #address-cells = <1>; - #size-cells = <1>; __overlay__ { - #address-cells = <1>; - #size-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; firmware-name = "soc_agilex_fpga_config.rbf"; config-complete-timeout-us = <200>; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12807): https://lists.yoctoproject.org/g/linux-yocto/message/12807 Mute This Topic: https://lists.yoctoproject.org/mt/99804797/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] intel-socfpga: dts: improve qspi nor-flash partitions for Remote System Update feature
Remote System Update feature is used to update FPGA image that is saved in qspi nor-flash. The region used for RSU is from 0x91 to 0x400, so improve the qspi nor-flash partitions to compatible with RSU feature. Signed-off-by: Meng Li --- .../boot/dts/altera/socfpga_stratix10_socdk.dts | 12 ++-- arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 12 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index cf52d405d771..1bc6207b14a1 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -200,18 +200,18 @@ partitions { #size-cells = <1>; qspi_boot: partition@0 { - label = "fw"; - reg = <0x0091 0x0200>; + label = "Boot and fpga data"; + reg = <0x0091 0x036F>; }; - qspi_uboot: partition@200 { + qspi_uboot: partition@400 { label = "uboot"; - reg = <0x0200 0x0020>; + reg = <0x0400 0x0020>; }; - qspi_rootfs: partition@220 { + qspi_rootfs: partition@420 { label = "root"; - reg = <0x0220 0x0DC0>; + reg = <0x0420 0x0BC0>; }; }; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts index f39f6311b65e..15e6e5219b13 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts @@ -126,18 +126,18 @@ partitions { #size-cells = <1>; qspi_boot: partition@0 { - label = "fw"; - reg = <0x0091 0x0200>; + label = "Boot and fpga data"; + reg = <0x0091 0x036F>; }; - qspi_uboot: partition@200 { + qspi_uboot: partition@400 { label = "uboot"; - reg = <0x0200 0x0020>; + reg = <0x0400 0x0020>; }; - qspi_rootfs: partition@220 { + qspi_rootfs: partition@420 { label = "root"; - reg = <0x0220 0x0DC0>; + reg = <0x0420 0x0BC0>; }; }; }; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12801): https://lists.yoctoproject.org/g/linux-yocto/message/12801 Mute This Topic: https://lists.yoctoproject.org/mt/99782340/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel for intel-socfpga]: intel-socfpga: dts: improve qspi nor-flash partitions for Remote System Update feature
From: Limeng Hi Bruce, This patch is used to improve qspi nor-flash partitions for Remote System Update feature Could you please help to merge it into linux-ycoto kernel repo, both standard and rt branches v6.1/standard/intel-sdk-6.1/intel-socfpga v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga diffstat info as below: altera/socfpga_stratix10_socdk.dts | 12 ++-- intel/socfpga_agilex_socdk.dts | 12 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12800): https://lists.yoctoproject.org/g/linux-yocto/message/12800 Mute This Topic: https://lists.yoctoproject.org/mt/99782339/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-ls1046: add scc and cfg files for nxp-ls1046 platform
Refer to scc and cfg files on branch yocto-5.15, add new scc and cfg files for BSP nxp-ls1046 on branch yocto-6.1. Signed-off-by: Meng Li --- bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc | 7 + bsp/nxp-ls1046/nxp-ls1046-standard.scc | 7 + bsp/nxp-ls1046/nxp-ls1046.cfg| 155 +++ bsp/nxp-ls1046/nxp-ls1046.scc| 7 + 4 files changed, 176 insertions(+) create mode 100644 bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc create mode 100644 bsp/nxp-ls1046/nxp-ls1046-standard.scc create mode 100644 bsp/nxp-ls1046/nxp-ls1046.cfg create mode 100644 bsp/nxp-ls1046/nxp-ls1046.scc diff --git a/bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc b/bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc new file mode 100644 index ..efdfae9d --- /dev/null +++ b/bsp/nxp-ls1046/nxp-ls1046-preempt-rt.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1046 +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include nxp-ls1046.scc diff --git a/bsp/nxp-ls1046/nxp-ls1046-standard.scc b/bsp/nxp-ls1046/nxp-ls1046-standard.scc new file mode 100644 index ..aa7fab23 --- /dev/null +++ b/bsp/nxp-ls1046/nxp-ls1046-standard.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1046 +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include nxp-ls1046.scc diff --git a/bsp/nxp-ls1046/nxp-ls1046.cfg b/bsp/nxp-ls1046/nxp-ls1046.cfg new file mode 100644 index ..14a0b14d --- /dev/null +++ b/bsp/nxp-ls1046/nxp-ls1046.cfg @@ -0,0 +1,155 @@ +.. +.WARNING +. +. This file is a kernel configuration fragment, and not a full kernel +. configuration file. The final kernel configuration is made up of +. an assembly of processed fragments, each of which is designed to +. capture a specific part of the final configuration (e.g. platform +. configuration, feature configuration, and board specific hardware +. configuration). For more information on kernel configuration, please +. consult the product documentation. +. +.. + +CONFIG_ARM64=y +CONFIG_ARM64_VA_BITS_48=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_LAYERSCAPE=y +CONFIG_SCHED_MC=y +CONFIG_ARM_SMMU=y + +CONFIG_PCI=y +CONFIG_PCI_LAYERSCAPE=y +CONFIG_PCI_HOST_GENERIC=y +CONFIG_PCI_XGENE=y +CONFIG_PCI_MSI=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI=y +CONFIG_HOTPLUG_PCI_PCIE=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPUFREQ_DT=y +CONFIG_QORIQ_CPUFREQ=y + +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_ADV_OPTIONS=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_CFI_STAA=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_DATAFLASH=y +CONFIG_MTD_SST25L=y +CONFIG_MTD_NAND_DENALI_DT=y +CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MEMORY=y +CONFIG_MTD_SPI_NOR=y +CONFIG_SPI_FSL_QUADSPI=y +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_AHCI_QORIQ=y + +CONFIG_FSL_XGMAC_MDIO=y + +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_DW=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SERIAL_FSL_LPUART=y +CONFIG_SERIAL_FSL_LPUART_CONSOLE=y + +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_PL022=y + +CONFIG_POWER_RESET_XGENE=y +CONFIG_POWER_RESET_SYSCON=y +CONFIG_ENERGY_MODEL=y +CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y + +CONFIG_CPU_THERMAL=y +CONFIG_WATCHDOG=y +CONFIG_IMX2_WDT=y + +CONFIG_USB=y +CONFIG_USB_OTG=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_STORAGE=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_HOST=y +CONFIG_USB_GADGET=y + +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_SDHCI_OF_ESDHC=y + +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y +CONFIG_GPIO_MPC8XXX=y + +CONFIG_MDIO_DEVICE=y +CONFIG_MDIO_BITBANG=y +CONFIG_PHYLIB=y +CONFIG_AQUANTIA_PHY=y + +# +# I2C support +# +CONFIG_I2C=y +CONFIG_I2C_IMX=y + +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_PCF2127=y +CONFIG_RTC_DRV_FSL_FTM_ALARM=y +CONFIG_FSL_RCPM=y + +CONFIG_DMADEVICES=y +CONFIG_FSL_EDMA=y +CONFIG_CMA=y +CONFIG_DMA_CMA=y + +CONFIG_VFIO=y + +CONFIG_STAGING=y + +CONFIG_CLK_QORIQ=y + +CONFIG_FSL_GUTS=y + +CONFIG_PHY_XGENE=y + +CONFIG_CRYPTO_DEV_FSL_CAAM=y +CONFIG_CRYPTO_SHA1_ARM64_CE=y +CONFIG_CRYPTO_SHA2_ARM64_CE=y +CONFIG_CRYPTO_GHASH_ARM64_CE=y +CONFIG_CRYPTO_AES_ARM64_CE_CCM=y +CONFIG_CRYPTO_AES_ARM64_CE_BLK=y + +# dpaa1 +CONFIG_FSL_SDK_DPA=y +CONFIG_FSL_SDK_FMAN=y +CONFIG_FSL_SDK_DPAA_ETH=y +CONFIG_FSL_DPAA_TS=y +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_QORIQ=y +CONFIG_FSL_DPAA_1588=y + +# EDAC +CONFIG_EDAC_LAYERSCAPE=y + +# Thermal +CONFIG_THERMAL=y +CONFIG_DEVICE_THERMAL=y +CONFIG_QORIQ_THERMAL=y diff --git a/bsp/nxp-ls1046/nxp-ls1046.scc b/bsp/nxp-ls1046/nxp-ls1046.scc new file mode 100644 index ..dc051775 --- /dev/null +++ b
[linux-yocto] [yocto-kernel-cache]: nxp-ls1046: add scc and cfg files for nxp-ls1046 platform
From: Limeng Hi Bruce, Recently, I am working on nxp ls1046 SoC BSP, and want to add scc and cfg files for this BSP in kernel-cache. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info as below: nxp-ls1046-preempt-rt.scc |7 ++ nxp-ls1046-standard.scc |7 ++ nxp-ls1046.cfg| 155 ++ nxp-ls1046.scc|7 ++ 4 files changed, 176 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12708): https://lists.yoctoproject.org/g/linux-yocto/message/12708 Mute This Topic: https://lists.yoctoproject.org/mt/99380255/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/kernel-rt v6.1]: add kernel patches for NXP ls1043ardb/ls1046ardb platform
> -Original Message- > From: Bruce Ashfield > Sent: Monday, June 5, 2023 11:29 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel/kernel-rt v6.1]: add kernel patches for > NXP > ls1043ardb/ls1046ardb platform > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > In message: [linux-yocto]: [kernel/kernel-rt v6.1]: add kernel patches for NXP > ls1043ardb/ls1046ardb platform on 02/06/2023 Meng Li wrote: > > > From: Limeng > > > > Hi Bruce, > > > > The 9 patches are for NXP ls1043ardb/ls1046ardb platform, and I want to > merge them into linux-yocto. > > It looks like there are more than 9 patches from the summary below. > > I was able to fetch and merge to v6.1/standard/nxp-sdk-6.1/nxp-soc, but the > preempt-rt version has conflicts due to the baseline of the branch you > provided. > > That being said, I dumped the 14 patches from the summary below and > manually merged them to the preempt-rt branch. > > If anything is wrong, send follow up patches. > Yes! there is 14 patches that I want to submit. And very appreciate that you merged these patches manually. I will create rt branch for pull request next time so that avoid your extra effort. Thanks again, Limeng > Bruce > > > So, could you please help merge these patches into linux-ycoto kernel, > > branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt- > rt/nxp-sdk-6.1/nxp-soc? > > The 14 patches are in my public repo > > https://github.com/limeng-linux/linux-yocto-6.1.git > > v6.1/standard/nxp-sdk-6.1/nxp-soc > > > > > > diffstat info as below: > > > > arch/arm64/boot/dts/freescale/Makefile| > > 2 > > arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-sdk.dts | > > 40 > + > > arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-usdpaa.dts | > > 40 > + > > arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-sdk.dts | > > 40 > + > > arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-usdpaa.dts | > > 40 > + > > arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi| > > 1 > > arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | > > 2 > > drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| > > 3 > > drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.c| > > 3 > > drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c | > > 41 > +- > > drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.h | > > 3 > > drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c | > > 4 > > drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c | > > 3 > > drivers/net/ethernet/freescale/sdk_dpaa/mac.c | > > 2 > > drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Port/fm_port.c | > 8 - > > drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c | > > 22 > + > > drivers/net/ethernet/freescale/sdk_fman/src/xx/xx_arm_linux.c | > > 3 > > drivers/staging/fsl_qbman/dpa_alloc.c | > > 15 ++- > > drivers/staging/fsl_qbman/qman_high.c | > > 19 +++- > > 19 files changed, 268 insertions(+), 23 deletions(-) > > > > > > Pull request info as below: > > > > The following changes since commit > 763ac07dd98b3dc2423aa279bd382e456112ef6f: > > > > Merge branch 'v6.1/standard/base' into > > v6.1/standard/nxp-sdk-6.1/nxp-soc (2023-05-31 19:35:16 -0400) > > > > are available in the Git repository at: > > > > https://github.com/limeng-linux/linux-yocto-6.1.git > > v6.1/standard/nxp-sdk-6.1/nxp-soc > > > > for you to fetch changes up to 7c9ecab856835cefef51c11a0322089fe81a85a7: > > > > driver: net: dpaa: release resource when executing kexec (2023-06-02 > > 01:38:34 -0400) > > > > > > Meng Li (12): > > driver: net: dpaa: improve the assignment operation for context cache > > line > > arch: arm64: dts: add dts files for nxp-ls1023 platform > > arch: arm64: dts: disable sec_jr2 dts node > > drvier: stag
[linux-yocto]: [kernel/kernel-rt v6.1]: add kernel patches for NXP ls1043ardb/ls1046ardb platform
From: Limeng Hi Bruce, The 9 patches are for NXP ls1043ardb/ls1046ardb platform, and I want to merge them into linux-yocto. So, could you please help merge these patches into linux-ycoto kernel, branch are v6.1/standard/nxp-sdk-6.1/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc? The 14 patches are in my public repo https://github.com/limeng-linux/linux-yocto-6.1.git v6.1/standard/nxp-sdk-6.1/nxp-soc diffstat info as below: arch/arm64/boot/dts/freescale/Makefile|2 arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-sdk.dts | 40 + arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-usdpaa.dts | 40 + arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-sdk.dts | 40 + arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-usdpaa.dts | 40 + arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi|1 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts |2 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c|3 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.c|3 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c | 41 +- drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.h |3 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c |4 drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c |3 drivers/net/ethernet/freescale/sdk_dpaa/mac.c |2 drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Port/fm_port.c |8 - drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c | 22 + drivers/net/ethernet/freescale/sdk_fman/src/xx/xx_arm_linux.c |3 drivers/staging/fsl_qbman/dpa_alloc.c | 15 ++- drivers/staging/fsl_qbman/qman_high.c | 19 +++- 19 files changed, 268 insertions(+), 23 deletions(-) Pull request info as below: The following changes since commit 763ac07dd98b3dc2423aa279bd382e456112ef6f: Merge branch 'v6.1/standard/base' into v6.1/standard/nxp-sdk-6.1/nxp-soc (2023-05-31 19:35:16 -0400) are available in the Git repository at: https://github.com/limeng-linux/linux-yocto-6.1.git v6.1/standard/nxp-sdk-6.1/nxp-soc for you to fetch changes up to 7c9ecab856835cefef51c11a0322089fe81a85a7: driver: net: dpaa: release resource when executing kexec (2023-06-02 01:38:34 -0400) Meng Li (12): driver: net: dpaa: improve the assignment operation for context cache line arch: arm64: dts: add dts files for nxp-ls1023 platform arch: arm64: dts: disable sec_jr2 dts node drvier: staging: fsl_qbman: move used_node variable allocation out the lock/unlock section drvier: dpaa: Convert the rx_pool_channel_init from spinlock to mutex driver: sdk_fman: remove the disable interrupt action in xx_Malloc() driver: staging: fsl_qbman: avoid preempt disable action by invoking this_cpu_ptr() in rt kernel driver: staging: fsl_qbman: improve PORTAL_IRQ_LOCK/UNLOCK() with local lock interface arch: arm64: dts: add dts files for nxp-ls1026 platform arch: arm64: dts: set correct phy-connection-type for aqr107 10G phy driver: net: dpaa: support interface mode usxgmii driver: net: dpaa: release resource when executing kexec Tiejun Chen (1): dpaa: make sure FM_PORT_Free work reasonably Zumeng Chen (1): dpaa_ethernet: fix kmemleak false-positive reports for skb arch/arm64/boot/dts/freescale/Makefile| 2 ++ arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-sdk.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1023a-rdb-usdpaa.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-sdk.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1026a-rdb-usdpaa.dts | 40 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi| 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 3 ++- drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.c| 3 +++ drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c | 41 + drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.h | 3 +++ drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c | 4 drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c | 3 ++- drivers/net/ethernet/freescale/sdk_dpaa/mac.c | 2
[linux-yocto] [PATCH] nxp-ls1043: add scc and cfg files for nxp-ls1043 platform
Refer to scc and cfg files on branch yocto-5.15, add new scc and cfg files for BSP nxp-ls1043 on branch yocto-6.1. Signed-off-by: Meng Li --- bsp/nxp-ls1043/nxp-ls1043-preempt-rt.scc | 7 + bsp/nxp-ls1043/nxp-ls1043-standard.scc | 7 + bsp/nxp-ls1043/nxp-ls1043.cfg| 158 +++ bsp/nxp-ls1043/nxp-ls1043.scc| 9 ++ 4 files changed, 181 insertions(+) create mode 100644 bsp/nxp-ls1043/nxp-ls1043-preempt-rt.scc create mode 100644 bsp/nxp-ls1043/nxp-ls1043-standard.scc create mode 100644 bsp/nxp-ls1043/nxp-ls1043.cfg create mode 100644 bsp/nxp-ls1043/nxp-ls1043.scc diff --git a/bsp/nxp-ls1043/nxp-ls1043-preempt-rt.scc b/bsp/nxp-ls1043/nxp-ls1043-preempt-rt.scc new file mode 100644 index ..f9a00a07 --- /dev/null +++ b/bsp/nxp-ls1043/nxp-ls1043-preempt-rt.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1043 +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include nxp-ls1043.scc diff --git a/bsp/nxp-ls1043/nxp-ls1043-standard.scc b/bsp/nxp-ls1043/nxp-ls1043-standard.scc new file mode 100644 index ..f27fc10b --- /dev/null +++ b/bsp/nxp-ls1043/nxp-ls1043-standard.scc @@ -0,0 +1,7 @@ +define KMACHINE nxp-ls1043 +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include nxp-ls1043.scc diff --git a/bsp/nxp-ls1043/nxp-ls1043.cfg b/bsp/nxp-ls1043/nxp-ls1043.cfg new file mode 100644 index ..376f7244 --- /dev/null +++ b/bsp/nxp-ls1043/nxp-ls1043.cfg @@ -0,0 +1,158 @@ +.. +.WARNING +. +. This file is a kernel configuration fragment, and not a full kernel +. configuration file. The final kernel configuration is made up of +. an assembly of processed fragments, each of which is designed to +. capture a specific part of the final configuration (e.g. platform +. configuration, feature configuration, and board specific hardware +. configuration). For more information on kernel configuration, please +. consult the product documentation. +. +.. + +CONFIG_ARM64=y +CONFIG_ARM64_VA_BITS_48=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_LAYERSCAPE=y +CONFIG_SCHED_MC=y +CONFIG_ARM_SMMU=y + +CONFIG_PCI=y +CONFIG_PCI_LAYERSCAPE=y +CONFIG_PCI_HOST_GENERIC=y +CONFIG_PCI_XGENE=y +CONFIG_PCI_MSI=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI=y +CONFIG_HOTPLUG_PCI_PCIE=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPUFREQ_DT=y +CONFIG_QORIQ_CPUFREQ=y + +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_ADV_OPTIONS=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_CFI_STAA=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_DATAFLASH=y +CONFIG_MTD_SST25L=y +CONFIG_MTD_NAND_DENALI_DT=y +CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MEMORY=y +CONFIG_MTD_SPI_NOR=y +CONFIG_SPI_FSL_QUADSPI=y +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_AHCI_QORIQ=y + +CONFIG_FSL_XGMAC_MDIO=y + +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_DW=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SERIAL_FSL_LPUART=y +CONFIG_SERIAL_FSL_LPUART_CONSOLE=y + +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_PL022=y + +CONFIG_POWER_RESET_XGENE=y +CONFIG_POWER_RESET_SYSCON=y +CONFIG_ENERGY_MODEL=y +CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y + +CONFIG_CPU_THERMAL=y +CONFIG_WATCHDOG=y +CONFIG_IMX2_WDT=y + +CONFIG_USB=y +CONFIG_USB_OTG=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_STORAGE=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_HOST=y +CONFIG_USB_GADGET=y + +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_SDHCI_OF_ESDHC=y + +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y +CONFIG_GPIO_MPC8XXX=y + +CONFIG_MDIO_DEVICE=y +CONFIG_MDIO_BITBANG=y +CONFIG_PHYLIB=y +CONFIG_AQUANTIA_PHY=y + +# +# I2C support +# +CONFIG_I2C=y +CONFIG_I2C_IMX=y + +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_PCF2127=y +CONFIG_RTC_DRV_DS3232=y +CONFIG_RTC_DRV_DS1307=y +CONFIG_RTC_DRV_PCF85363=y +CONFIG_RTC_DRV_FSL_FTM_ALARM=y +CONFIG_FSL_RCPM=y + +CONFIG_DMADEVICES=y +CONFIG_FSL_EDMA=y +CONFIG_CMA=y +CONFIG_DMA_CMA=y + +CONFIG_VFIO=y + +CONFIG_STAGING=y + +CONFIG_CLK_QORIQ=y + +CONFIG_FSL_GUTS=y + +CONFIG_PHY_XGENE=y + +CONFIG_CRYPTO_DEV_FSL_CAAM=y +CONFIG_CRYPTO_SHA1_ARM64_CE=y +CONFIG_CRYPTO_SHA2_ARM64_CE=y +CONFIG_CRYPTO_GHASH_ARM64_CE=y +CONFIG_CRYPTO_AES_ARM64_CE_CCM=y +CONFIG_CRYPTO_AES_ARM64_CE_BLK=y + +# dpaa1 +CONFIG_FSL_SDK_DPA=y +CONFIG_FSL_SDK_FMAN=y +CONFIG_FSL_SDK_DPAA_ETH=y +CONFIG_FSL_DPAA_TS=y +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_QORIQ=y +CONFIG_FSL_DPAA_1588=y + +# EDAC +CONFIG_EDAC_LAYERSCAPE=y + +# Thermal +CONFIG_THERMAL=y +CONFIG_DEVICE_THERMAL=y +CONFIG_QORIQ_THERMAL=y diff --git a/bsp/nxp-ls1043/nxp-ls1043.scc b/bsp/nxp-ls1043/nxp
[linux-yocto] [yocto-kernel-cache]: nxp-ls1043: add scc and cfg files for nxp-ls1043 platform
From: Limeng Hi Bruce, Recently, I am working on nxp ls1043 SoC BSP, and want to add scc and cfg files for this BSP in kernel-cache. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info as below: nxp-ls1043-preempt-rt.scc |7 ++ nxp-ls1043-standard.scc |7 ++ nxp-ls1043.cfg| 158 ++ nxp-ls1043.scc|9 ++ 4 files changed, 181 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12676): https://lists.yoctoproject.org/g/linux-yocto/message/12676 Mute This Topic: https://lists.yoctoproject.org/mt/99255436/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: nxp-ls1028: kernel patches to improve graphics
From: Limeng Hi Bruce, The 2 patches are used to improve graphics for NXP ls1028 BSP So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.1/standard/nxp-sdk-6.1/nxp-soc v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: Kconfig|1 + cdns-mhdp-dp.c | 16 2 files changed, 5 insertions(+), 12 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12495): https://lists.yoctoproject.org/g/linux-yocto/message/12495 Mute This Topic: https://lists.yoctoproject.org/mt/98820971/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 2/2] drivers: drm: cadence: select DRM_DISPLAY_HDMI_HELPER if Cadence HDCP driver is enabled
According to commit 4fc8cb47fcfd("drm/display: Move HDMI Helpers into display-helper module "), it needs to select DRM_DISPLAY_HDMI_HELPER if Cadence HDCP driver is enabled. Signed-off-by: Meng Li --- drivers/gpu/drm/bridge/cadence/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/cadence/Kconfig b/drivers/gpu/drm/bridge/cadence/Kconfig index 736b107fab74..78f0fd4bc143 100644 --- a/drivers/gpu/drm/bridge/cadence/Kconfig +++ b/drivers/gpu/drm/bridge/cadence/Kconfig @@ -30,6 +30,7 @@ config DRM_CDNS_MHDP tristate "Cadence MHDP COMMON API driver" select DRM_DISPLAY_DP_HELPER select DRM_DISPLAY_HELPER + select DRM_DISPLAY_HDMI_HELPER select DRM_DISPLAY_HDCP_HELPER select DRM_KMS_HELPER select DRM_PANEL_BRIDGE -- 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12494): https://lists.yoctoproject.org/g/linux-yocto/message/12494 Mute This Topic: https://lists.yoctoproject.org/mt/98820970/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 1/2] Revert "gpu: drm: bridge: improve the function of getting training status"
This reverts commit 1d6d6a6a2d8704ae641b4439fad0a2d45ecc8372. After upgrading u-boot to version 2022.04, this patch is no longer needed. Signed-off-by: Meng Li --- drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c b/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c index 46fc27dba884..299e533d6b52 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c @@ -233,21 +233,13 @@ static int cdns_mhdp_get_training_status(struct cdns_mhdp_device *mhdp) if (ret) goto err_get_training_status; - if (of_machine_is_compatible("fsl,ls1028a-rdb")) - ret = cdns_mhdp_mailbox_validate_receive(mhdp, MB_MODULE_ID_DP_TX, - DPTX_READ_LINK_STAT, - sizeof(status) - 3); - else - ret = cdns_mhdp_mailbox_validate_receive(mhdp, MB_MODULE_ID_DP_TX, - DPTX_READ_LINK_STAT, - sizeof(status)); + ret = cdns_mhdp_mailbox_validate_receive(mhdp, MB_MODULE_ID_DP_TX, +DPTX_READ_LINK_STAT, +sizeof(status)); if (ret) goto err_get_training_status; - if (of_machine_is_compatible("fsl,ls1028a-rdb")) - ret = cdns_mhdp_mailbox_read_receive(mhdp, status, sizeof(status) - 3); - else - ret = cdns_mhdp_mailbox_read_receive(mhdp, status, sizeof(status)); + ret = cdns_mhdp_mailbox_read_receive(mhdp, status, sizeof(status)); if (ret) goto err_get_training_status; -- 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12493): https://lists.yoctoproject.org/g/linux-yocto/message/12493 Mute This Topic: https://lists.yoctoproject.org/mt/98820969/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-ls1028: add scc and cfg files for nxp-ls1028 platform
Refer to scc and cfg files on branch yocto-5.15, add new scc and cfg files for BSP nxp-ls1028 on branch yocto-6.1. Signed-off-by: Meng Li --- bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc | 8 + bsp/nxp-ls1028/nxp-ls1028-standard.scc | 9 + bsp/nxp-ls1028/nxp-ls1028.cfg| 250 +++ bsp/nxp-ls1028/nxp-ls1028.scc| 9 + 4 files changed, 276 insertions(+) create mode 100644 bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc create mode 100644 bsp/nxp-ls1028/nxp-ls1028-standard.scc create mode 100644 bsp/nxp-ls1028/nxp-ls1028.cfg create mode 100644 bsp/nxp-ls1028/nxp-ls1028.scc diff --git a/bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc b/bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc new file mode 100644 index ..e75210b0 --- /dev/null +++ b/bsp/nxp-ls1028/nxp-ls1028-preempt-rt.scc @@ -0,0 +1,8 @@ +define KMACHINE nxp-ls1028 +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt +branch nxp-ls1028 + +include nxp-ls1028.scc diff --git a/bsp/nxp-ls1028/nxp-ls1028-standard.scc b/bsp/nxp-ls1028/nxp-ls1028-standard.scc new file mode 100644 index ..8f98a496 --- /dev/null +++ b/bsp/nxp-ls1028/nxp-ls1028-standard.scc @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nxp-ls1028 +define KTYPE standard +define KARCH arm64 + +include ktypes/standard +branch nxp-ls1028 + +include nxp-ls1028.scc diff --git a/bsp/nxp-ls1028/nxp-ls1028.cfg b/bsp/nxp-ls1028/nxp-ls1028.cfg new file mode 100644 index ..d2a95703 --- /dev/null +++ b/bsp/nxp-ls1028/nxp-ls1028.cfg @@ -0,0 +1,250 @@ +CONFIG_ARM64=y +CONFIG_64BIT=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_LAYERSCAPE=y +CONFIG_MMU=y +CONFIG_SMP=y +CONFIG_NR_CPUS=2 + +CONFIG_SCHED_MC=y +CONFIG_ARM64_VA_BITS_48=y + +CONFIG_PCI=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI_PCIE=y +CONFIG_HOTPLUG_PCI=y +CONFIG_PCI_LAYERSCAPE=y +CONFIG_PCI_HOST_GENERIC=y +CONFIG_PCI_IOV=y +CONFIG_PCI_MSI=y + +CONFIG_CMA=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_IDLE_GOV_MENU=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPUFREQ_DT=y +CONFIG_QORIQ_CPUFREQ=y + +CONFIG_SOC_BUS=y +CONFIG_REGMAP=y +CONFIG_REGMAP_I2C=y +CONFIG_REGMAP_SPI=y +CONFIG_REGMAP_MMIO=y +CONFIG_DMA_SHARED_BUFFER=y + +CONFIG_DMA_CMA=y +CONFIG_MTD=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_ADV_OPTIONS=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_SST25L=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_NAND_FSL_IFC=y + +CONFIG_COMMON_CLK=y +CONFIG_CLK_QORIQ=y +CONFIG_CLK_LS1028A_PLLDIG=y + +CONFIG_SRAM=y +CONFIG_EEPROM_AT24=y + +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_SATA_AHCI_PLATFORM=y +CONFIG_AHCI_QORIQ=y + +CONFIG_NETDEVICES=y + +# enetc +CONFIG_NET_DSA=y +CONFIG_NET_DSA_TAG_OCELOT=y +CONFIG_NET_DSA_MSCC_FELIX=y +CONFIG_NET_SWITCHDEV=y +CONFIG_FSL_ENETC=y +CONFIG_FSL_ENETC_VF=y +CONFIG_FSL_ENETC_MDIO=y +CONFIG_FSL_ENETC_PTP_CLOCK=y +CONFIG_FSL_ENETC_QOS=y + +# tsn +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_QORIQ=y +CONFIG_TSN=y +CONFIG_ENETC_TSN=y +CONFIG_NET_PKTGEN=y +CONFIG_NET_VENDOR_MICROSEMI=y +CONFIG_MSCC_OCELOT_SWITCH=y +CONFIG_MSCC_FELIX_SWITCH_TSN=y +CONFIG_MSCC_OCELOT_SWITCH_LIB=y +CONFIG_VITESSE_PHY=y +CONFIG_NET_SCH_ETF=y +CONFIG_NET_SCH_CBS=y +CONFIG_NET_SCH_MQPRIO=y +CONFIG_NET_SCH_TAPRIO=y + +CONFIG_BRIDGE=y +CONFIG_BRIDGE_VLAN_FILTERING=y + +# can +CONFIG_CAN=y +CONFIG_CAN_FLEXCAN=y + +CONFIG_INPUT_MATRIXKMAP=y +CONFIG_CHROME_PLATFORMS=y +CONFIG_CROS_EC=y +CONFIG_INPUT_EVDEV=y +CONFIG_INPUT_MISC=y +CONFIG_KEYBOARD_ADC=m +CONFIG_KEYBOARD_GPIO=y +CONFIG_INPUT_MOUSEDEV=y +CONFIG_MOUSE_PS2=y +CONFIG_KEYBOARD_CROS_EC=y + +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_OF_PLATFORM=y + +CONFIG_I2C=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_MUX=y +CONFIG_I2C_IMX=y +CONFIG_I2C_COMPAT=y +CONFIG_I2C_MUX_PCA954x=y + +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_NXP_FLEXSPI=y + +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y +CONFIG_GPIOLIB_IRQCHIP=y +CONFIG_GPIO_PCA953X=y +CONFIG_GPIO_PCA953X_IRQ=y +CONFIG_GPIO_GENERIC=y +CONFIG_GPIO_DWAPB=y +CONFIG_GPIO_GENERIC_PLATFORM=y +CONFIG_GPIO_MB86S7X=y +CONFIG_GPIO_MPC8XXX=y +CONFIG_GPIO_PL061=y +CONFIG_GPIO_XGENE=y + +CONFIG_POWER_RESET_XGENE=y +CONFIG_POWER_RESET_SYSCON=y +CONFIG_ENERGY_MODEL=y + +CONFIG_SYSCON_REBOOT_MODE=y +CONFIG_BATTERY_BQ27XXX=y +CONFIG_SENSORS_LM90=m +CONFIG_SENSORS_INA2XX=m + +CONFIG_CPU_THERMAL=y + +CONFIG_WATCHDOG=y +CONFIG_IMX2_WDT=y +CONFIG_ARM_ARCH_TIMER=y +CONFIG_ARM_SP805_WATCHDOG=y + +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_REGULATOR_GPIO=y + +CONFIG_MEDIA_SUPPORT=y +CONFIG_MEDIA_CAMERA_SUPPORT=y +CONFIG_MEDIA_ANALOG_TV_SUPPORT=y +CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y +CONFIG_MEDIA_CONTROLLER=y +CONFIG_MEDIA_PLATFORM_SUPPORT=y + +CONFIG_SOUND=y +CONFIG_SND=y +CONFIG_SND_SOC=y +CONFIG_SND_SOC_FSL_SAI=y +CONFIG_SND_SIMPLE_CARD=y +CONFIG_SND_SOC_I2C_AND_SPI=y +CONFIG_SND_SOC_SGTL5000=y
[linux-yocto] [yocto-kernel-cache]: nxp-ls1028: add scc and cfg files for nxp- ls1028 platform
From: Limeng Hi Bruce, Recently, I am working on nxp ls1028 SoC BSP, and want to add scc and cfg files for this BSP in kernel-cache. Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info as below: nxp-ls1028-preempt-rt.scc |8 + nxp-ls1028-standard.scc |9 + nxp-ls1028.cfg| 250 ++ nxp-ls1028.scc|9 + 4 files changed, 276 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12445): https://lists.yoctoproject.org/g/linux-yocto/message/12445 Mute This Topic: https://lists.yoctoproject.org/mt/98555973/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 5/5] enetc: tsn: release resource before exiting enetc_qci_sfi_counters_get() function
When testing FMI feature with below command tsntool qcisfiget --device eth0 --index 2 There is a memory leak occurring as below unreferenced object 0x00402000 (size 128): comm "tsntool", pid 445, jiffies 4294959297 (age 25.588s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 backtrace: [<7dda64ca>] kmem_cache_alloc_trace+0x3e8/0x680 [<a11048d9>] enetc_qci_sfi_counters_get+0x6c/0x1c0 [<1154ca2b>] cmd_qci_sfi_get.isra.0+0xd4/0x3d0 [<71bf773b>] tsn_qci_sfi_get+0x28/0x40 [<cf9549d3>] genl_family_rcv_msg_doit+0xd0/0x15c [<4c0bcaf9>] genl_rcv_msg+0xec/0x1f0 [<cb7761f5>] netlink_rcv_skb+0x64/0x130 [<5ac4890d>] genl_rcv+0x40/0x60 [<ea5c8605>] netlink_unicast+0x230/0x310 [<5dc31afc>] netlink_sendmsg+0x1bc/0x400 [<f8b85637>] __sys_sendto+0xd4/0x12c [<6b3b6e55>] __arm64_sys_sendto+0x30/0x40 [<558195c4>] invoke_syscall+0x5c/0x130 [<9b6bc5a1>] el0_svc_common.constprop.0+0x4c/0x100 [<1d66b8d7>] do_el0_svc+0x4c/0xb4 [<1d739dd6>] el0_svc+0x28/0x80 Because the sfi_counter_data is not freed after it is used. In additional, refer to other functions, unmap DMA, too. Signed-off-by: Meng Li --- drivers/net/ethernet/freescale/enetc/enetc_tsn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c index f087f0b5e340..3bf1669792a0 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c @@ -913,6 +913,8 @@ static int enetc_qci_sfi_counters_get(struct net_device *ndev, u32 index, le32_to_cpu(sfi_counter_data->flow_meter_dropl); memset(cbdr, 0, sizeof(*cbdr)); + dma_unmap_single(>si->pdev->dev, dma, data_size, DMA_FROM_DEVICE); + kfree(sfi_counter_data); return 0; } -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12444): https://lists.yoctoproject.org/g/linux-yocto/message/12444 Mute This Topic: https://lists.yoctoproject.org/mt/98555948/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 3/5] enetc: add suspend/resume function to manage pm in ethernet driver
When running suspend/resume test on nxp ls1028 platform, there is below warning trace Call trace: mdio_bus_phy_resume+0xa8/0x128 dpm_run_callback+0x4c/0x184 device_resume+0x9c/0x1f0 dpm_resume+0x114/0x340 dpm_resume_end+0x24/0x3c suspend_devices_and_enter+0x1e0/0x810 pm_suspend+0x288/0x330 .. el0t_64_sync+0x1a0/0x1a4 ---[ end trace e8da30565a047649 ]--- Because there is a commit 47ac7b2f6a1f("net: phy: Warn about incorrect mdio_bus_phy_resume() state") to check phy state when entering resume phase. This is only a surface phenomenon, the root cause is that enetc driver can not co-operation with common phy code properly. According to commit fba863b81604("net: phy: make PHY PM ops a no-op if MAC driver manages PHY PM "). enetc also can manages PHY PM by itself. So, add suspend/resume function to manage both mac and phy PM. Signed-off-by: Meng Li --- .../net/ethernet/freescale/enetc/enetc_pf.c | 67 +++ 1 file changed, 67 insertions(+) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf.c b/drivers/net/ethernet/freescale/enetc/enetc_pf.c index c4560222318d..538a4dba42d3 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "enetc_ierb.h" #include "enetc_pf.h" @@ -1243,6 +1244,8 @@ static int enetc_pf_probe(struct pci_dev *pdev, struct enetc_si *si; struct enetc_pf *pf; int err; + struct fwnode_handle *phy_fwnode; + struct phy_device *phy_dev; err = enetc_pf_register_with_ierb(pdev); if (err == -EPROBE_DEFER) @@ -1349,6 +1352,11 @@ static int enetc_pf_probe(struct pci_dev *pdev, enetc_tsn_pf_init(ndev, pdev); + phy_fwnode = fwnode_get_phy_node(of_fwnode_handle(priv->dev->of_node)); + phy_dev = fwnode_phy_find_device(phy_fwnode); + if (phy_dev) + phy_dev->mac_managed_pm = 1; + return 0; err_reg_netdev: @@ -1405,6 +1413,62 @@ static void enetc_pf_remove(struct pci_dev *pdev) enetc_pci_remove(pdev); } +static int enetc_pf_resume(struct device *dev) +{ + struct enetc_si *si = dev_get_drvdata(dev); + struct net_device *netdev = si->ndev; + struct enetc_ndev_priv *priv = netdev_priv(netdev); + struct fwnode_handle *phy_fwnode; + struct phy_device *phy_dev; + + if (!netdev) + return 0; + + rtnl_lock(); + + if (!netif_running(netdev)) { + rtnl_unlock(); + return 0; + } + + phy_fwnode = fwnode_get_phy_node(of_fwnode_handle(priv->dev->of_node)); + phy_dev = fwnode_phy_find_device(phy_fwnode); + if (phy_dev) + phy_init_hw(phy_dev); + enetc_start(netdev); + + rtnl_unlock(); + + return 0; +} + +static int enetc_pf_suspend(struct device *dev) +{ + struct enetc_si *si = dev_get_drvdata(dev); + struct net_device *netdev = si->ndev; + + if (!netdev) + return 0; + + rtnl_lock(); + + if (!netif_running(netdev)) { + rtnl_unlock(); + return 0; + } + + enetc_stop(netdev); + + rtnl_unlock(); + + return 0; +} + +static const struct dev_pm_ops enetc_pf_pm_ops = { + .suspend= enetc_pf_suspend, + .resume = enetc_pf_resume, +}; + static const struct pci_device_id enetc_pf_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, ENETC_DEV_ID_PF) }, { 0, } /* End of table. */ @@ -1419,6 +1483,9 @@ static struct pci_driver enetc_pf_driver = { #ifdef CONFIG_PCI_IOV .sriov_configure = enetc_sriov_configure, #endif + .driver = { + .pm = _pf_pm_ops, + }, }; module_pci_driver(enetc_pf_driver); -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12442): https://lists.yoctoproject.org/g/linux-yocto/message/12442 Mute This Topic: https://lists.yoctoproject.org/mt/98555946/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 2/5] tsn: replace GFP_KERNEL with GFP_ATOMIC to avoid sleeping in atomic context
When running qbv test of TSN feature in RT kernel, there is below call trace BUG: sleeping function called from invalid context at include/linux/sched/mm.h:229 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 502, name: tsntool preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 CPU: 0 PID: 502 Comm: tsntool Not tainted 5.15.65-rt48-yocto-preempt-rt #1 Hardware name: LS1028A RDB Board (DT) Call trace: dump_backtrace+0x0/0x1a0 .. __might_resched+0x160/0x1c0 __might_sleep+0x58/0xb0 kmem_cache_alloc+0x260/0x310 __alloc_skb+0x1a8/0x1d0 tsn_event+0x58/0x230 atomic_notifier_call_chain+0x6c/0x9c call_tsn_notifiers+0x30/0x40 enetc_qbv_set+0x2e8/0x5fc cmd_qbv_set.isra.0+0x1d4/0x300 tsn_qbv_set+0x2c/0x44 .. el0t_64_sync+0x1a0/0x1a4 So, replace GFP_KERNEL with GFP_ATOMIC to avoid sleeping in atomic context. Signed-off-by: Meng Li --- net/tsn/genl_tsn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/tsn/genl_tsn.c b/net/tsn/genl_tsn.c index fdb2288394a3..4fca4a998af9 100644 --- a/net/tsn/genl_tsn.c +++ b/net/tsn/genl_tsn.c @@ -3506,7 +3506,7 @@ static int tsn_multicast_to_user(unsigned long event, int res = 0; /* If new attributes are added, please revisit this allocation */ - skb = genlmsg_new(sizeof(*tsn_info), GFP_KERNEL); + skb = genlmsg_new(sizeof(*tsn_info), GFP_ATOMIC); if (!skb) { pr_err("Allocation failure.\n"); return -ENOMEM; @@ -3514,7 +3514,7 @@ static int tsn_multicast_to_user(unsigned long event, switch (event) { case TSN_QBV_CONFIGCHANGETIME_ARRIVE: - nlh = genlmsg_put(skb, 0, 1, _family, 0, TSN_CMD_QBV_SET); + nlh = genlmsg_put(skb, 0, 1, _family, GFP_ATOMIC, TSN_CMD_QBV_SET); qbvdata = _info->ntdata.qbv_notify; res = NLA_PUT_U64(skb, TSN_QBV_ATTR_CTRL_BASETIME, qbvdata->admin.base_time); @@ -3561,7 +3561,7 @@ static int tsn_multicast_to_user(unsigned long event, (void)genlmsg_end(skb, nlh); res = genlmsg_multicast_allns(_family, skb, 0, - TSN_MCGRP_QBV, GFP_KERNEL); + TSN_MCGRP_QBV, GFP_ATOMIC); skb = NULL; if (res && res != -ESRCH) { pr_err("genlmsg_multicast_allns error: %d\n", res); -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12441): https://lists.yoctoproject.org/g/linux-yocto/message/12441 Mute This Topic: https://lists.yoctoproject.org/mt/98555945/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 4/5] enetc: tsn: release resource before exiting enetc_qci_fmi_get() function
When testing FMI feature with below command tsntool qcifmiget --device eth0 --index 2 There is a memory leak occurring as below unreferenced object 0x0047e200 (size 128): comm "tsntool", pid 444, jiffies 4294931230 (age 17.688s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 backtrace: [<a1f46be5>] kmem_cache_alloc_trace+0x3e8/0x680 [<34f0835f>] enetc_qci_fmi_get+0x174/0x294 [<c8de8870>] cmd_qci_fmi_get.isra.0+0xb8/0x390 [<a5923a36>] tsn_qci_fmi_get+0x28/0x40 [<16a765c0>] genl_family_rcv_msg_doit+0xd0/0x15c [<468e65a1>] genl_rcv_msg+0xec/0x1f0 [<a002deef>] netlink_rcv_skb+0x64/0x130 [<63fa81de>] genl_rcv+0x40/0x60 [<71bbebf2>] netlink_unicast+0x230/0x310 [<5fb3fad1>] netlink_sendmsg+0x1bc/0x400 [<8ac52897>] __sys_sendto+0xd4/0x12c [<252525f3>] __arm64_sys_sendto+0x30/0x40 [<0d993fdc>] invoke_syscall+0x5c/0x130 [<92b245b4>] el0_svc_common.constprop.0+0x4c/0x100 [<8829e8f3>] do_el0_svc+0x4c/0xb4 [<6bebec28>] el0_svc+0x28/0x80 Because the fmi_counter_data is not freed after it is used. In additional, refer to other functions, unmap DMA, and clear cbdr to 0 after it is used. Signed-off-by: Meng Li --- drivers/net/ethernet/freescale/enetc/enetc_tsn.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c index 5ff36647be84..f087f0b5e340 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_tsn.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_tsn.c @@ -1533,6 +1533,10 @@ static int enetc_qci_fmi_get(struct net_device *ndev, u32 index, memcpy(counters, fmi_counter_data, sizeof(*counters)); + dma_unmap_single(>si->pdev->dev, dma, data_size, DMA_FROM_DEVICE); + memset(cbdr, 0, sizeof(*cbdr)); + kfree(fmi_counter_data); + return 0; } -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12443): https://lists.yoctoproject.org/g/linux-yocto/message/12443 Mute This Topic: https://lists.yoctoproject.org/mt/98555947/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 1/5] gpu: drm: bridge: improve the function of getting training status
When reading link status, the request size is 13, but this real return size from ls1028 dp firmware is 10, they don't match with each other. So, getting training status operation is failed, and cause the whole display driver initializes failed. This issue is introduced by commit 7ce8d36a326e("MLK-25748: gpu: drm: bridge: Added support for fast link training"). But the root cause is that the dp firmware of ls1028 platform from the latest LSDK2108 does not support the fast link training. Because NXP never upgrade the ls1028 dp firmware since LSDK2004, it still sends 10 bytes to mhdp driver, and then cause parse command failed. This issue also occurs since LSDK2012. In order to work with the current dp firmware of ls1028 platform and not affect imx series platforms, so create a special case to process ls1028 platform. Signed-off-by: Meng Li --- drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c b/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c index 299e533d6b52..46fc27dba884 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c @@ -233,13 +233,21 @@ static int cdns_mhdp_get_training_status(struct cdns_mhdp_device *mhdp) if (ret) goto err_get_training_status; - ret = cdns_mhdp_mailbox_validate_receive(mhdp, MB_MODULE_ID_DP_TX, -DPTX_READ_LINK_STAT, -sizeof(status)); + if (of_machine_is_compatible("fsl,ls1028a-rdb")) + ret = cdns_mhdp_mailbox_validate_receive(mhdp, MB_MODULE_ID_DP_TX, + DPTX_READ_LINK_STAT, + sizeof(status) - 3); + else + ret = cdns_mhdp_mailbox_validate_receive(mhdp, MB_MODULE_ID_DP_TX, + DPTX_READ_LINK_STAT, + sizeof(status)); if (ret) goto err_get_training_status; - ret = cdns_mhdp_mailbox_read_receive(mhdp, status, sizeof(status)); + if (of_machine_is_compatible("fsl,ls1028a-rdb")) + ret = cdns_mhdp_mailbox_read_receive(mhdp, status, sizeof(status) - 3); + else + ret = cdns_mhdp_mailbox_read_receive(mhdp, status, sizeof(status)); if (ret) goto err_get_training_status; -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12440): https://lists.yoctoproject.org/g/linux-yocto/message/12440 Mute This Topic: https://lists.yoctoproject.org/mt/98555944/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel/kernel-rt]: nxp-ls1028: kernel patches used to fix issues
From: Limeng Hi Bruce, The 5 patches are used to fix issues for NXP ls1028 BSP So, could you please help merge these patches into linux-ycoto kernel, both below 2 branchs? v6.1/standard/nxp-sdk-6.1/nxp-soc v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc diffstat info as below: drivers/gpu/drm/bridge/cadence/cdns-mhdp-dp.c| 16 - drivers/net/ethernet/freescale/enetc/enetc_pf.c | 67 +++ drivers/net/ethernet/freescale/enetc/enetc_tsn.c |6 ++ net/tsn/genl_tsn.c |6 +- 4 files changed, 88 insertions(+), 7 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12439): https://lists.yoctoproject.org/g/linux-yocto/message/12439 Mute This Topic: https://lists.yoctoproject.org/mt/98555943/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto]: [kernel v6.1/standard/bcm-2xxx-rpi]: bcm-2xxx-rpi: update patches for raspberrypi 4b platform
ails media: i2c: imx290: Replace macro with explicit ARRAY_SIZE() media: i2c: imx290: Drop imx290_write_buffered_reg() media: i2c: imx290: Drop regmap cache media: i2c: imx290: Specify HMAX values in decimal media: i2c: imx290: Support variable-sized registers media: i2c: imx290: Correct register sizes media: i2c: imx290: Simplify error handling when writing registers media: i2c: imx290: Define more register macros media: i2c: imx290: Add exposure time control media: i2c: imx290: Fix max gain value media: i2c: imx290: Split control initialization to separate function media: i2c: imx290: Implement HBLANK and VBLANK controls media: i2c: imx290: Create controls for fwnode properties media: i2c: imx290: Move registers with fixed value to init array media: i2c: imx290: Factor out format retrieval to separate function media: i2c: imx290: Add crop selection targets support media: i2c: imx290: Replace GAIN control with ANALOGUE_GAIN media: i2c: imx290: Group functions in sections media: i2c: imx290: Factor out subdev init and cleanup to functions media: i2c: imx290: Factor out control update code to a function media: i2c: imx290: Access link_freq_index directly media: i2c: imx290: Pass format and mode to imx290_calc_pixel_rate() media: i2c: imx290: Compute pixel rate and blanking in one place media: i2c: imx290: Factor out black level setting to a function media: i2c: imx290: Factor out DT parsing to separate function media: i2c: imx290: Use dev_err_probe() media: i2c: imx290: Factor out clock initialization to separate function media: i2c: imx290: Use V4L2 subdev active state media: i2c: imx290: Rename, extend and expand usage of imx290_pixfmt media: i2c: imx290: Use runtime PM autosuspend media: i2c: imx290: Initialize runtime PM before subdev media: i2c: imx290: Configure data lanes at start time media: i2c: imx290: Simplify imx290_set_data_lanes() media: i2c: imx290: Handle error from imx290_set_data_lanes() media: dt-bindings: Convert imx290.txt to YAML Lee Jackson (6): dtoverlays: Add VCM option to imx519 dtoverlays: Add IMX519 support to camera mux overlays dtoverlays: Add VCM option to Arducam64MP dtoverlays: Add Arducam64MP support to camera mux overlays media: i2c: Add PDAF support for IMX519 dtoverlays: Reduce the link-frequencies of IMX519 Manivannan Sadhasivam (1): dt-bindings: media: i2c: Add IMX296 CMOS sensor binding Matthias Reichl (2): drm/vc4: Calculate bpc based on max_requested_bpc drm/vc4: drop unnecessary and harmful HDMI RGB format check Meng Li (1): media: i2c: imx219: align with stable kernel code Naushir Patuck (16): media: imx219: Advertise embedded data node on media pad 1 Revert "media: i2c: imx296: Support for the Sony IMX296 sensor" media: i2c: imx296: Get sensor crop working media: i2c: imx296: Disable binning for colour variant media: i2c: imx296: Add helper for hblank control media: i2c: imx296: Set a 1 frame gain delay media: i2c: imx296: Add horizontal/vertical flip support media: i2c: imx296: Adjust cropping limits drivers: media: imx708: Increase usable link frequencies dtoverlays: Add link-frequency parameter for the Sony IMX708 sensor drivers: media: imx708: Remove unused control fields drivers: media: imx708: Tidy-ups to address upstream review comments dt-bindings: media: i2c: Replace IMX708 sensor binding documentation file dtoverlays: Follow the standard devicetree labels for IMX708 drivers: media: imx708: Follow the standard devicetree labels drives: media: imx708: Put HFLIP and VFLIP controls in a cluster Phil Elwell (22): ASoC: bcm: Fix Rpi-PROTO and audioinjector.net Pi overlays: Remove lirc-rpi from media-center overlays: pca953x: Fix a typos in the pcal variants iio: adc: mcp3422: Add correct compatible strings ASoC: adau1977: Add correct compatible strings overlays: Use vendor-qualified compatible strings mfd: arizona-i2c: Declare of MODULE_DEVICE_TABLE gpio: pca953x: Add ti,tca9554 compatible string hwmon: (aht10): Add DT compatible string hwmon: (ds1621) Add DT compatible strings rtc: ds3232: Add DT compatible string for ds3234 hwmon: (sht3x) Add DT compatible string iio: light: tsl4531: Add DT compatible string iio: light: veml6070: Add DT compatible string ARM: dts: Standardise on the upstream LED names ARM: dts: bcm2711-rpi-400: Restore the ACT LED ARM: dts: bcm2711-rpi-400: Add dummy cam1 regulator overlays: vc4-kms/fkms-v3d: Raise CMA to 512MB rpisense-fb: Add explicit fb_deferred_io_mmap hook hwrng: bcm2835 - sleep more intelligently fbdev: Don't cancel
[linux-yocto] [PATCH] bcm-2xxx-rpi: enable Event interface config for USB mouse and keyboard
Signed-off-by: Meng Li --- bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg index 5df913c9..c14a444e 100644 --- a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg +++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg @@ -135,6 +135,7 @@ CONFIG_USB_PCI=y # Input Device # CONFIG_INPUT_TOUCHSCREEN=y +CONFIG_INPUT_EVDEV=y CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m #Media support -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12343): https://lists.yoctoproject.org/g/linux-yocto/message/12343 Mute This Topic: https://lists.yoctoproject.org/mt/98097978/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: bcm-2xxx-rpi: enable Event interface config for USB mouse and keyboard
From: Limeng Hi Bruce, Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info ad below: bcm-2xxx-rpi.cfg |1 + 1 file changed, 1 insertion(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12342): https://lists.yoctoproject.org/g/linux-yocto/message/12342 Mute This Topic: https://lists.yoctoproject.org/mt/98097977/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] bcm-2xxx-rpi: remove the obsoleted config for bcm-2xxx-rpi BSP in kernel-cache
In raspberry sdk lts kernel v6.1, some driver had been removed, so delete the corresponding kernel config from kernel cache. Signed-off-by: Meng Li --- bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg | 4 1 file changed, 4 deletions(-) diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg index 41d30006..5df913c9 100644 --- a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg +++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg @@ -277,10 +277,8 @@ CONFIG_BT_HCIBPA10X=m CONFIG_BT_HCIBFUSB=m CONFIG_BT_HCIVHCI=m CONFIG_HOSTAP=y -CONFIG_WIMAX=m CONFIG_MWIFIEX=m CONFIG_MWIFIEX_SDIO=m -CONFIG_WIMAX_I2400M_USB=m # Regulator configuration CONFIG_REGULATOR=y @@ -323,12 +321,10 @@ CONFIG_BCM_VIDEOCORE=y CONFIG_CRC_ITU_T=y CONFIG_LIBCRC32C=y CONFIG_HW_RANDOM=y -CONFIG_RAW_DRIVER=y CONFIG_HID_LOGITECH=m CONFIG_LOGITECH_FF=y CONFIG_LOGIRUMBLEPAD2_FF=y CONFIG_LOGIG940_FF=y -CONFIG_SENSORS_RPI_POE_FAN=m CONFIG_LEDS_CLASS=y CONFIG_NEW_LEDS=y CONFIG_OF_OVERLAY=y -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12143): https://lists.yoctoproject.org/g/linux-yocto/message/12143 Mute This Topic: https://lists.yoctoproject.org/mt/96780451/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: bcm-2xxx-rpi: remove the obsoleted config for bcm-2xxx-rpi BSP in kernel-cache
From: Limeng Hi Bruce, Could you please help to merge this patch into yocto-kernel-cache, branch is only yocto-6.1? diffstat info ad below: bcm-2xxx-rpi.cfg |4 1 file changed, 4 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12142): https://lists.yoctoproject.org/g/linux-yocto/message/12142 Mute This Topic: https://lists.yoctoproject.org/mt/96780450/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] bcm-2xxx-rpi: enable kernel config ARCH_BCM for raspberry pi platform
According to upstream commit 96796c914b84("arm64: Kconfig.platforms: Re-organized Broadcom menu"), it needs to enable kernel config ARCH_BCM for raspberry pi platform. Signed-off-by: Meng Li --- bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg index 19880118..41d30006 100644 --- a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg +++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg @@ -17,6 +17,7 @@ CONFIG_MMU=y CONFIG_ARM64=y # CPU Core family selection +CONFIG_ARCH_BCM=y CONFIG_ARCH_BCM2835=y CONFIG_MAILBOX=y CONFIG_BCM2835_MBOX=y -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11978): https://lists.yoctoproject.org/g/linux-yocto/message/11978 Mute This Topic: https://lists.yoctoproject.org/mt/95374940/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache]: bcm-2xxx-rpi: bcm-2xxx-rpi: enable kernel config ARCH_BCM for raspberry pi platform
From: Limeng Hi Bruce, Could you please help to merge this patch into yocto-kernel-cache, branch is only master? diffstat info ad below: bcm-2xxx-rpi.cfg |1 + 1 file changed, 1 insertion(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11977): https://lists.yoctoproject.org/g/linux-yocto/message/11977 Mute This Topic: https://lists.yoctoproject.org/mt/95374937/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: gpu: drm: improve the dependency to avoid recursive dependency
According to upstream commit eb7de496451b("drm: fix drm_mipi_dbi build errors") DRM_KMS_HELPER has beed selected by DRM_MIPI_DBI. So, in config DRM_PANEL_ILITEK_ILI9806E and DRM_PANEL_TPO_Y17P, they shonld not depend on DRM_KMS_HELPER again, selecting DRM_MIPI_DBI is enough. In additional, according to the usage description of config DRM_GEM_CMA_HELPER, replace the 'depend on' with 'select'. Signed-off-by: Meng Li --- drivers/gpu/drm/panel/Kconfig | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 595dcbd01b82..fc1f8a1fd381 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -177,8 +177,7 @@ config DRM_PANEL_ILITEK_ILI9341 config DRM_PANEL_ILITEK_ILI9806E tristate "Ilitek ILI9806E-based panels" depends on OF && SPI - depends on DRM_KMS_HELPER - depends on DRM_GEM_CMA_HELPER + select DRM_GEM_CMA_HELPER depends on BACKLIGHT_CLASS_DEVICE select DRM_MIPI_DBI help @@ -672,8 +671,7 @@ config DRM_PANEL_TDO_TL070WSH30 config DRM_PANEL_TPO_Y17P tristate "TDO Y17P-based panels" depends on OF && SPI - depends on DRM_KMS_HELPER - depends on DRM_GEM_CMA_HELPER + select DRM_GEM_CMA_HELPER depends on BACKLIGHT_CLASS_DEVICE select DRM_MIPI_DBI help -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11902): https://lists.yoctoproject.org/g/linux-yocto/message/11902 Mute This Topic: https://lists.yoctoproject.org/mt/95080700/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [linux-yocto-dev v6.0/standard/bcm-2xxx-rpi]: drivers: gpu: drm: improve the dependency to avoid recursive dependency
From: Limeng Hi Bruce, This patch is used to fix building issue. Could you please help to merge this patch into linux-yocto-dev, branch is v6.0/standard/bcm-2xxx-rpi? diffstat info as below: Kconfig |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11901): https://lists.yoctoproject.org/g/linux-yocto/message/11901 Mute This Topic: https://lists.yoctoproject.org/mt/95080699/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] nxp-ls1043: add kernel config to support NXP rtc chip PCF85363
On the NXP ls1043ardb ver1.1 board, the rtc chip is changed into NXP PCF85363, so enable the corresponding kernel config to support it. Signed-off-by: Meng Li --- bsp/nxp-ls1043/nxp-ls1043.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/nxp-ls1043/nxp-ls1043.cfg b/bsp/nxp-ls1043/nxp-ls1043.cfg index 319812e8..285b0c4b 100644 --- a/bsp/nxp-ls1043/nxp-ls1043.cfg +++ b/bsp/nxp-ls1043/nxp-ls1043.cfg @@ -114,6 +114,7 @@ CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_PCF2127=y CONFIG_RTC_DRV_DS3232=y CONFIG_RTC_DRV_DS1307=y +CONFIG_RTC_DRV_PCF85363=y CONFIG_RTC_DRV_FSL_FTM_ALARM=y CONFIG_FSL_RCPM=y -- 2.36.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11818): https://lists.yoctoproject.org/g/linux-yocto/message/11818 Mute This Topic: https://lists.yoctoproject.org/mt/94598055/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-