[linux-yocto]: [kernel for intel-socfpga]: intel-socfpga: improve dts files for FPGA design
From: Limeng Hi Bruce, There are below 2 pathces to improve dts files for FPGA design Could you please help to merge them into linux-ycoto kernel repo, both standard and rt branches v5.10/standard/intel-sdk-5.10/intel-socfpga v5.10/standard/preempt-rt/intel-sdk-5.10/intel-socfpga diffstat info as below: socfpga_stratix10_socdk.dts |2 ++ socfpga_stratix10_socdk_ghrd.dts |1 + socfpga_stratix10_socdk_pcie.dts |1 + socfpga_stratix10_socdk_sgmii.dts |3 +++ 4 files changed, 7 insertions(+) thanks, Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10830): https://lists.yoctoproject.org/g/linux-yocto/message/10830 Mute This Topic: https://lists.yoctoproject.org/mt/88505013/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] aarch: arm64: dts: add #clock-cells property in gmac node
When kernel boots up, there is below log info: OF: /soc/bridge@8000/phy@0x10040: could not get #clock-cells for /soc/ethernet@ff802000 Because of lacking the #clock-cells property in gmac node, add it refer to patch in below link: https://releases.rocketboards.org/release/2021.11/dts-source/stratix10/gsrd/ Signed-off-by: Meng Li --- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts index 902262ed3ac2..76395decd44d 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts @@ -74,12 +74,14 @@ &gmac1 { altr,gmii-to-sgmii-converter = <&sgmii_1_gmii2sgmii>; + #clock-cells = <1>; phy-mode = "sgmii"; status = "okay"; }; &gmac2 { altr,gmii-to-sgmii-converter = <&sgmii_2_gmii2sgmii>; + #clock-cells = <1>; phy-mode = "sgmii"; status = "okay"; }; -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10831): https://lists.yoctoproject.org/g/linux-yocto/message/10831 Mute This Topic: https://lists.yoctoproject.org/mt/88505015/21656 Mute #clock-cells:https://lists.yoctoproject.org/g/linux-yocto/mutehashtag/clock-cells 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] aarch: arm64: dts: add condition to include qse dtsi file
This issue is introduced by sdk commit 2345bf39fa33("HSD#1509827762: arm64: dts: stratix10: add Intel FPGA Quad Speed Ethernet for Stratix10"). The qse feature is included latest Intel standard PFGA design by default, so above commit add qse related dts node, and is included in dts files. But for other FPGA designs(PCIe, GPIO and SGMII), the recorresponding dts files don't need the qse feature, so add a condition to control whether include the qse dtsi file or not. Signed-off-by: Meng Li --- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 2 ++ arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_ghrd.dts | 1 + arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_pcie.dts | 1 + arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts | 1 + 4 files changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index c3624e455d21..6af2ebafbc35 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -4,7 +4,9 @@ */ #include "socfpga_stratix10.dtsi" +#ifndef DISABLE_QSE #include "socfpga_stratix10_qse.dtsi" +#endif / { model = "SoCFPGA Stratix 10 SoCDK"; diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_ghrd.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_ghrd.dts index a05fd640b2e5..ccacd54e536c 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_ghrd.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_ghrd.dts @@ -3,6 +3,7 @@ * Copyright Altera Corporation (C) 2021. All rights reserved. */ +#define DISABLE_QSE #include "socfpga_stratix10_socdk.dts" /{ diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_pcie.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_pcie.dts index 9b9f9d730142..37a5c6c1c74b 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_pcie.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_pcie.dts @@ -3,6 +3,7 @@ * Copyright Altera Corporation (C) 2019. All rights reserved. */ +#define DISABLE_QSE #include "socfpga_stratix10_socdk.dts" / { diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts index 76395decd44d..725bfceb3535 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_sgmii.dts @@ -3,6 +3,7 @@ * Copyright Altera Corporation (C) 2021. All rights reserved. */ +#define DISABLE_QSE #include "socfpga_stratix10_socdk.dts" /{ -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10832): https://lists.yoctoproject.org/g/linux-yocto/message/10832 Mute This Topic: https://lists.yoctoproject.org/mt/88505019/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 v5.10/standard/nxp-sdk-5.10/nxp-soc & v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-soc][PATCH 1/2] clk: imx: Fix a build error too many arguments 'imx_register_uart_clocks' in
Since commit 247a98a4a2dcb("clk: imx: enable the earlycon uart clocks by parsing from dt") imx_register_uart_clocks no longer requires parameters, so delete the incoming parameters Signed-off-by: Xiaolei Wang --- drivers/clk/imx/clk-imx6q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 34c2efc69073..f906b46338f3 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -1058,6 +1058,6 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) hws[IMX6QDL_CLK_PLL3_USB_OTG]->clk); } - imx_register_uart_clocks(2); + imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10833): https://lists.yoctoproject.org/g/linux-yocto/message/10833 Mute This Topic: https://lists.yoctoproject.org/mt/88505199/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 v5.10/standard/nxp-sdk-5.10/nxp-soc & v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-soc][PATCH 2/2] drm/imx: Fix a build error No rule to make target 'ipuv3-crtc.o'
ipuv3 has been moved to a new directory, so delete it from Makefile Fixes: 927cbb68a3ab2 ("drm/imx: ipuv3-kms: Move to a new ipuv3 folder") Signed-off-by: Xiaolei Wang --- drivers/gpu/drm/imx/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/imx/Makefile b/drivers/gpu/drm/imx/Makefile index 28f9fe6697a7..4764058d9adf 100644 --- a/drivers/gpu/drm/imx/Makefile +++ b/drivers/gpu/drm/imx/Makefile @@ -13,7 +13,6 @@ obj-$(CONFIG_DRM_IMX8QXP_LDB) += imx8qxp-ldb.o obj-$(CONFIG_DRM_IMX8MP_LDB) += imx8mp-ldb.o imx-ipuv3-crtc-objs := ipuv3-crtc.o ipuv3-plane.o ipuv3-kms.o -obj-$(CONFIG_DRM_IMX_IPUV3)+= imx-ipuv3-crtc.o obj-$(CONFIG_DRM_IMX_DPU) += dpu/ obj-$(CONFIG_DRM_IMX_IPUV3) += ipuv3/ obj-$(CONFIG_DRM_IMX_HDMI) += dw_hdmi-imx.o -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10834): https://lists.yoctoproject.org/g/linux-yocto/message/10834 Mute This Topic: https://lists.yoctoproject.org/mt/88505280/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] Install apt-get in yocto hardknott 25.0.4
Iam trying to install apt-get in yocto. 1)In the local.conf I added: PACKAGE_CLASSES ?= "package_rpm package_deb" EXTRA_IMAGE_FEATURES ?= " package-management " PACKAGE_FEED_URIS = "http://local IP:" IMAGE_INSTALL_append +=" apt"enter code here * Then I generate the image with : bitbake core-image-minimal * Then I execute the image with qemu and I obtained this message: Reading package lists... Error! E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or dire) E: Could not open file - open (2: No such file or directory) E: Problem opening E: The package lists or status file could not be parsed or opened. How can I fix this problem? Thanks! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10835): https://lists.yoctoproject.org/g/linux-yocto/message/10835 Mute This Topic: https://lists.yoctoproject.org/mt/88513197/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] Install apt-get in yocto hardknott 25.0.4
You need to put package_deb first, as the otherwise rpm is used to make an image and put a package database in it. Alex On Tue, 18 Jan 2022 at 17:43, wrote: > Iam trying to install apt-get in yocto. > 1)In the local.conf I added: PACKAGE_CLASSES ?= "package_rpm package_deb" > EXTRA_IMAGE_FEATURES ?= " package-management " PACKAGE_FEED_URIS = " > http://local IP:" IMAGE_INSTALL_append +=" apt"enter code here > >1. > >Then I generate the image with : bitbake core-image-minimal >2. > >Then I execute the image with qemu and I obtained this message: > >Reading package lists... Error! E: flAbsPath on /var/lib/dpkg/status >failed - realpath (2: No such file or dire) E: Could not open file - open >(2: No such file or directory) E: Problem opening E: The package lists or >status file could not be parsed or opened. > > How can I fix this problem? > Thanks! > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10836): https://lists.yoctoproject.org/g/linux-yocto/message/10836 Mute This Topic: https://lists.yoctoproject.org/mt/88513197/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 yocto-5.10][PATCH 1/2] Fix a build error undefined reference to `mbox_send_message'
refer to commit a86473962139a("arm: arch: enable rpmsg for imx amp soc") imx6sx soc has seleted HAVE_IMX_RPMSG, so enable MAILBOX config Signed-off-by: Xiaolei Wang --- bsp/nxp-imx6/nxp-imx6.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg index 3b7ae059..dd92c39a 100644 --- a/bsp/nxp-imx6/nxp-imx6.cfg +++ b/bsp/nxp-imx6/nxp-imx6.cfg @@ -207,3 +207,5 @@ CONFIG_CMA_AREAS=7 CONFIG_GPIO_74X164=y CONFIG_GPIO_MXC=y CONFIG_GPIO_PCA953X=y + +CONFIG_MAILBOX=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10837): https://lists.yoctoproject.org/g/linux-yocto/message/10837 Mute This Topic: https://lists.yoctoproject.org/mt/88524735/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 yocto-5.10][PATCH 2/2] nxp-imx6: Fix a build error undefined reference to `dw_pcie_read_dbi'
refer to commit 4e9a723c0902("pci: imx: add the imx8qxp ep support") modify PCI_IMX6 to PCI_IMX6_HOST Signed-off-by: Xiaolei Wang --- bsp/nxp-imx6/nxp-imx6.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg index dd92c39a..e19395ff 100644 --- a/bsp/nxp-imx6/nxp-imx6.cfg +++ b/bsp/nxp-imx6/nxp-imx6.cfg @@ -150,7 +150,7 @@ CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_PCI=y -CONFIG_PCI_IMX6=y +CONFIG_PCI_IMX6_HOST=y CONFIG_PCI_MSI=y CONFIG_PCIEPORTBUS=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10838): https://lists.yoctoproject.org/g/linux-yocto/message/10838 Mute This Topic: https://lists.yoctoproject.org/mt/88524819/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 preempt-rt kernel]: nxp-s32g2xx: update linux-yocto to NXP bsp32 rc1
In message: [linux-yocto] [linux-yocto preempt-rt kernel]: nxp-s32g2xx: update linux-yocto to NXP bsp32 rc1 on 17/01/2022 Zhantao Tang wrote: > Hi Bruce, > > There are 17 patches from bsp32 rc2 for updating the following branch > > v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-s32g2xx > > ould you please help to merge these patches? thanks for the fixup! This is now merged. Bruce > > > The patch infos as following: > > The following changes since commit a43e21eb1feeeaae22d8ad048fae9957cb94a2b2: > > Merge branch 'v5.10/standard/preempt-rt/base' into > v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-s32g2xx (2022-01-16 22:53:43 -0500) > > are available in the Git repository at: > > https://github.com/zhantaotang/linux-yocto-std > v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-s32g2xx > > for you to fetch changes up to 9a5f71ca20d408aac00daecde6ed17c99fb2997f: > > devicetree: bindings: Add mc_me and mc_rgm syscons (2022-01-17 12:55:26 > +0800) > > > Thanks, > Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10839): https://lists.yoctoproject.org/g/linux-yocto/message/10839 Mute This Topic: https://lists.yoctoproject.org/mt/88478979/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]: intel-socfpga: improve dts files for FPGA design
In message: [linux-yocto]: [kernel for intel-socfpga]: intel-socfpga: improve dts files for FPGA design on 18/01/2022 Meng Li wrote: > From: Limeng > > Hi Bruce, > > There are below 2 pathces to improve dts files for FPGA design > > Could you please help to merge them into linux-ycoto kernel repo, both > standard and rt branches > v5.10/standard/intel-sdk-5.10/intel-socfpga > v5.10/standard/preempt-rt/intel-sdk-5.10/intel-socfpga merged. Bruce > > diffstat info as below: > > socfpga_stratix10_socdk.dts |2 ++ > socfpga_stratix10_socdk_ghrd.dts |1 + > socfpga_stratix10_socdk_pcie.dts |1 + > socfpga_stratix10_socdk_sgmii.dts |3 +++ > 4 files changed, 7 insertions(+) > > > thanks, > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10840): https://lists.yoctoproject.org/g/linux-yocto/message/10840 Mute This Topic: https://lists.yoctoproject.org/mt/88505013/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 v5.10/standard/nxp-sdk-5.10/nxp-soc & v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-soc][PATCH 2/2] drm/imx: Fix a build error No rule to make target 'ipuv3-crtc.o'
merged. Bruce In message: [linux-yocto][linux-yocto v5.10/standard/nxp-sdk-5.10/nxp-soc & v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-soc][PATCH 2/2] drm/imx: Fix a build error No rule to make target 'ipuv3-crtc.o' on 18/01/2022 Xiaolei Wang wrote: > ipuv3 has been moved to a new directory, so delete it from Makefile > > Fixes: 927cbb68a3ab2 ("drm/imx: ipuv3-kms: Move to a new ipuv3 folder") > Signed-off-by: Xiaolei Wang > --- > drivers/gpu/drm/imx/Makefile | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/imx/Makefile b/drivers/gpu/drm/imx/Makefile > index 28f9fe6697a7..4764058d9adf 100644 > --- a/drivers/gpu/drm/imx/Makefile > +++ b/drivers/gpu/drm/imx/Makefile > @@ -13,7 +13,6 @@ obj-$(CONFIG_DRM_IMX8QXP_LDB) += imx8qxp-ldb.o > obj-$(CONFIG_DRM_IMX8MP_LDB) += imx8mp-ldb.o > > imx-ipuv3-crtc-objs := ipuv3-crtc.o ipuv3-plane.o ipuv3-kms.o > -obj-$(CONFIG_DRM_IMX_IPUV3) += imx-ipuv3-crtc.o > obj-$(CONFIG_DRM_IMX_DPU) += dpu/ > obj-$(CONFIG_DRM_IMX_IPUV3) += ipuv3/ > obj-$(CONFIG_DRM_IMX_HDMI) += dw_hdmi-imx.o > -- > 2.25.1 > In message: [linux-yocto][linux-yocto v5.10/standard/nxp-sdk-5.10/nxp-soc & v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-soc][PATCH 1/2] clk: imx: Fix a build error too many arguments 'imx_register_uart_clocks' in imx6q_clocks_init() on 18/01/2022 Xiaolei Wang wrote: > Since commit 247a98a4a2dcb("clk: imx: enable the earlycon > uart clocks by parsing from dt") imx_register_uart_clocks > no longer requires parameters, so delete the incoming parameters > > Signed-off-by: Xiaolei Wang > --- > drivers/clk/imx/clk-imx6q.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c > index 34c2efc69073..f906b46338f3 100644 > --- a/drivers/clk/imx/clk-imx6q.c > +++ b/drivers/clk/imx/clk-imx6q.c > @@ -1058,6 +1058,6 @@ static void __init imx6q_clocks_init(struct device_node > *ccm_node) > hws[IMX6QDL_CLK_PLL3_USB_OTG]->clk); > } > > - imx_register_uart_clocks(2); > + imx_register_uart_clocks(); > } > CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init); > -- > 2.25.1 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10841): https://lists.yoctoproject.org/g/linux-yocto/message/10841 Mute This Topic: https://lists.yoctoproject.org/mt/88527910/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto][yocto-kernel-cache yocto-5.10][PATCH 1/2] Fix a build error undefined reference to `mbox_send_message'
merged. Bruce In message: [linux-yocto][yocto-kernel-cache yocto-5.10][PATCH 1/2] Fix a build error undefined reference to `mbox_send_message' on 19/01/2022 Xiaolei Wang wrote: > refer to commit a86473962139a("arm: arch: enable rpmsg for imx amp soc") > imx6sx soc has seleted HAVE_IMX_RPMSG, so enable MAILBOX config > > Signed-off-by: Xiaolei Wang > --- > bsp/nxp-imx6/nxp-imx6.cfg | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg > index 3b7ae059..dd92c39a 100644 > --- a/bsp/nxp-imx6/nxp-imx6.cfg > +++ b/bsp/nxp-imx6/nxp-imx6.cfg > @@ -207,3 +207,5 @@ CONFIG_CMA_AREAS=7 > CONFIG_GPIO_74X164=y > CONFIG_GPIO_MXC=y > CONFIG_GPIO_PCA953X=y > + > +CONFIG_MAILBOX=y > -- > 2.25.1 > In message: [linux-yocto][yocto-kernel-cache yocto-5.10][PATCH 2/2] nxp-imx6: Fix a build error undefined reference to `dw_pcie_read_dbi' on 19/01/2022 Xiaolei Wang wrote: > refer to commit 4e9a723c0902("pci: imx: add the imx8qxp ep support") > modify PCI_IMX6 to PCI_IMX6_HOST > > Signed-off-by: Xiaolei Wang > --- > bsp/nxp-imx6/nxp-imx6.cfg | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg > index dd92c39a..e19395ff 100644 > --- a/bsp/nxp-imx6/nxp-imx6.cfg > +++ b/bsp/nxp-imx6/nxp-imx6.cfg > @@ -150,7 +150,7 @@ CONFIG_NEW_LEDS=y > CONFIG_LEDS_CLASS=y > > CONFIG_PCI=y > -CONFIG_PCI_IMX6=y > +CONFIG_PCI_IMX6_HOST=y > CONFIG_PCI_MSI=y > CONFIG_PCIEPORTBUS=y > > -- > 2.25.1 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10842): https://lists.yoctoproject.org/g/linux-yocto/message/10842 Mute This Topic: https://lists.yoctoproject.org/mt/88524735/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] octeontx2: nic: Replace get_cpu()/put_cpu() with get_cpu_ptr()/put_cpu_ptr()
From: Ruiqiang Hao After commit 2baa2d5b94e5(octeontx2-pf: disable preemption while using per_cpu pointer) applied, the kmalloc function is called in the atomic context, which leads to the following call trace. It can be solved by using get_cpu_ptr()/put_cpu_ptr() in function __cn10k_aura_freeptr(). BUG: sleeping function called from invalid context at mm/slab.h:513 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 2 locks held by swapper/0/1: #0: 800012629730 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x28/0x34 #1: 000110d956c8 (&mbox->lock){+.+.}-{3:3}, at: otx2_init_hw_resources+0xa0/0x350 device: '179:24': device_add Preemption disabled at: [] otx2_sq_aura_pool_init+0x14c/0x310 CPU: 13 PID: 1 Comm: swapper/0 Not tainted 5.10.89-yocto-standard #1 device: 'mmcblk2boot1': device_add Hardware name: Marvell OcteonTX CN96XX board (DT) Call trace: dump_backtrace+0x0/0x1e0 show_stack+0x24/0x30 dump_stack+0xec/0x154 ___might_sleep+0x1a0/0x250 __might_sleep+0x5c/0x94 __kmalloc+0x2f4/0x450 otx2_sq_aura_pool_init+0x1ac/0x310 otx2_init_hw_resources+0x108/0x350 otx2_open+0xf0/0x5f0 __dev_open+0x134/0x200 __dev_change_flags+0x1d8/0x260 dev_change_flags+0x30/0x70 ic_open_devs+0x128/0x320 ip_auto_config+0x184/0x430 do_one_initcall+0x54/0x190 kernel_init_freeable+0x1f0/0x26c kernel_init+0x20/0x12c ret_from_fork+0x10/0x18 Signed-off-by: Ruiqiang Hao --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 6 -- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c index 669516739481..58ddd0c54a79 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c @@ -1006,7 +1006,6 @@ static void otx2_pool_refill_task(struct work_struct *work) rbpool = cq->rbpool; free_ptrs = cq->pool_ptrs; - get_cpu(); while (cq->pool_ptrs) { if (otx2_alloc_rbuf(pfvf, rbpool, &bufptr)) { /* Schedule a WQ if we fails to free atleast half of the @@ -1026,7 +1025,6 @@ static void otx2_pool_refill_task(struct work_struct *work) pfvf->hw_ops->aura_freeptr(pfvf, qidx, bufptr + OTX2_HEAD_ROOM); cq->pool_ptrs--; } - put_cpu(); cq->refill_task_sched = false; } @@ -1365,7 +1363,6 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf) if (err) goto fail; - get_cpu(); /* Allocate pointers and free them to aura/pool */ for (qidx = 0; qidx < hw->tot_tx_queues; qidx++) { pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); @@ -1389,7 +1386,6 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf) } err_mem: - put_cpu(); return err ? -ENOMEM : 0; fail: @@ -1430,7 +1426,6 @@ int otx2_rq_aura_pool_init(struct otx2_nic *pfvf) if (err) goto fail; - get_cpu(); /* Allocate pointers and free them to aura/pool */ for (pool_id = 0; pool_id < hw->rqpool_cnt; pool_id++) { pool = &pfvf->qset.pool[pool_id]; @@ -1443,7 +1438,6 @@ int otx2_rq_aura_pool_init(struct otx2_nic *pfvf) } } err_mem: - put_cpu(); return err ? -ENOMEM : 0; fail: otx2_mbox_reset(&pfvf->mbox.mbox, 0); diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h index 897968477d35..51522518c46a 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h @@ -650,7 +650,7 @@ static inline void __cn10k_aura_freeptr(struct otx2_nic *pfvf, u64 aura, u64 size = 0, count_eot = 0; u64 tar_addr, val = 0; - lmt_info = per_cpu_ptr(pfvf->hw.lmt_info, smp_processor_id()); + lmt_info = get_cpu_ptr(pfvf->hw.lmt_info); tar_addr = (__force u64)otx2_get_regaddr(pfvf, NPA_LF_AURA_BATCH_FREE0); /* LMTID is same as AURA Id */ val = (lmt_info->lmt_id & 0x7FF) | BIT_ULL(63); @@ -671,6 +671,7 @@ static inline void __cn10k_aura_freeptr(struct otx2_nic *pfvf, u64 aura, } dma_wmb(); memcpy((u64 *)lmt_info->lmt_addr, ptrs, sizeof(u64) * num_ptrs); + put_cpu_ptr(pfvf->hw.lmt_info); /* Perform LMTST flush */ cn10k_lmt_flush(val, tar_addr); } -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10844): https://lists.yoctoproject.org/g/linux-yocto/message/10844 Mute This Topic: https://lists.yoctoproject.org/mt/88528358/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 v5.10] kernel code for marvell octeon
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.10/standard/cn-sdkv5.4/octeon v5.10/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10843): https://lists.yoctoproject.org/g/linux-yocto/message/10843 Mute This Topic: https://lists.yoctoproject.org/mt/88528357/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 v5.10/standard/nxp-sdk-5.10/nxp-soc & v5.10/standard/preempt-rt/nxp-sdk-5.10/nxp-soc][PATCH 1/1] dmaengine: imx-sdma: Fix a build warning in sdma_runtime_resume function
Delete redundant variables 'i' and change disable_clk_ahb to disable_clk_ipg to void following warning: warning: unused variable 'i' [-Wunused-variable] warning: label 'disable_clk_ipg' defined but not used Fix commit 2da31cfd59da("dmaengine: imx-sdma: Fix a hang when run dma test in imx8mq board") Signed-off-by: Xiaolei Wang --- 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 e61dd499c3dc..c754f2ba3d90 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1639,7 +1639,7 @@ static int sdma_runtime_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct sdma_engine *sdma = platform_get_drvdata(pdev); - int i, ret = 0; + int ret = 0; /* Do nothing at HW level if audiomix which shared with audio driver * not off indeed. @@ -1723,7 +1723,7 @@ static int sdma_alloc_chan_resources(struct dma_chan *chan) return ret; ret = clk_enable(sdmac->sdma->clk_ahb); if (ret) - goto disable_clk_ahb; + goto disable_clk_ipg; } ret = sdma_set_channel_priority(sdmac, prio); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10845): https://lists.yoctoproject.org/g/linux-yocto/message/10845 Mute This Topic: https://lists.yoctoproject.org/mt/88529094/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-