[linux-yocto] [yocto-kernel-cache][yocto-6.1][PATCH] flash_fs: disable 4K sector when ubifs is enabled

2023-10-08 Thread quanyang.wang via lists.yoctoproject.org
From: Quanyang Wang 

When CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is enabled, mounting ubifs will
trigger the following error log:

UBIFS error (ubi0:0 pid 588): init_constants_early: too small LEBs (3968 
bytes), min. is 15360 bytes

This is because that c->leb_size is required to be larger than 15*1024.
And c->leb_size is calculated by the formula:
c->leb_size = ubi->mtd->erasesize - ubi->leb_start - data_pad
So if erasesize is set to be 4K, ubifs will fail to work. Let's disable
this kernel option explicitly while UBIFS is enabled.

Signed-off-by: Quanyang Wang 
---
Hi Bruce,
Would you please help merge this patch to the branch:
yocto-6.1
Thanks,
Quanyang
---
 cfg/fs/flash_fs.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cfg/fs/flash_fs.cfg b/cfg/fs/flash_fs.cfg
index f9aef96ebb..291f40135f 100644
--- a/cfg/fs/flash_fs.cfg
+++ b/cfg/fs/flash_fs.cfg
@@ -19,3 +19,4 @@ CONFIG_YAFFS_AUTO_YAFFS2=y
 
 CONFIG_MTD_UBI=y
 CONFIG_UBIFS_FS=y
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=n
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13150): 
https://lists.yoctoproject.org/g/linux-yocto/message/13150
Mute This Topic: https://lists.yoctoproject.org/mt/101829936/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-6.1][PATCH] xilinx-zynq: add flash_fs.cfg

2023-10-08 Thread quanyang.wang via lists.yoctoproject.org
From: Quanyang Wang 

Add flash_fs.cfg since there are flash chips at zynq boards.

Signed-off-by: Quanyang Wang 
---
Hi Bruce,
Would you please help merge this patch to the branch:
yocto-6.1
Thanks,
Quanyang
---
 bsp/xilinx-zynq/xilinx-zynq.scc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/xilinx-zynq/xilinx-zynq.scc b/bsp/xilinx-zynq/xilinx-zynq.scc
index 621f6954dc..3e395f691f 100644
--- a/bsp/xilinx-zynq/xilinx-zynq.scc
+++ b/bsp/xilinx-zynq/xilinx-zynq.scc
@@ -4,5 +4,6 @@ include features/spi/spi.scc
 include features/spi/spidev.scc
 include features/usb/ehci-hcd.scc
 include features/debug/debug-kernel.scc
+include cfg/fs/flash_fs.cfg
 
 kconf hardware xilinx-zynq.cfg
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13151): 
https://lists.yoctoproject.org/g/linux-yocto/message/13151
Mute This Topic: https://lists.yoctoproject.org/mt/101829943/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] nxp-s32g: enable CONFIG_NXP_GLOBAL_TIME_STM and CONFIG_NVMEM_S32CC_OCOTP

2023-10-08 Thread Bruce Ashfield
merged.

Bruce

In message: [linux-yocto] [PATCH] nxp-s32g: enable CONFIG_NXP_GLOBAL_TIME_STM 
and CONFIG_NVMEM_S32CC_OCOTP
on 02/10/2023 Radu Daia (OSS) wrote:

> From: "Radu Daia (NXP OSS)" 
> 
> In some custom build configurations, these NXP and
> s32cc-specific missing flags appear as build-time
> warnings in the do_kernel_configcheck task.
> 
> Signed-off-by: Radu Daia (NXP OSS) 
> ---
>  bsp/nxp-s32g/nxp-s32g.cfg | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg
> index dd270cbb..714fe362 100644
> --- a/bsp/nxp-s32g/nxp-s32g.cfg
> +++ b/bsp/nxp-s32g/nxp-s32g.cfg
> @@ -18,6 +18,8 @@ CONFIG_SOC_S32CC=y
>  CONFIG_SCHED_MC=y
>  CONFIG_ARM_SMMU=y
>  
> +CONFIG_NXP_GLOBAL_TIME_STM=y
> +
>  CONFIG_PINCTRL_S32CC=y
>  CONFIG_PINCTRL_SCMI=y
>  
> @@ -159,6 +161,7 @@ CONFIG_S32CC_WDT=y
>  CONFIG_BLK_DEV_NVME=y
>  CONFIG_NVME_TARGET=y
>  CONFIG_NVMEM_S32CC_SIUL2=y
> +CONFIG_NVMEM_S32CC_OCOTP=y
>  # CONFIG_NVMEM_SCMI is not set
>  
>  #LLCE
> -- 
> 2.34.1
> 

> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13152): 
https://lists.yoctoproject.org/g/linux-yocto/message/13152
Mute This Topic: https://lists.yoctoproject.org/mt/101707099/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto] [yocto-kernel-cache][yocto-6.1][PATCH] flash_fs: disable 4K sector when ubifs is enabled

2023-10-08 Thread Bruce Ashfield
merged.

Bruce

In message: [yocto-kernel-cache][yocto-6.1][PATCH] flash_fs: disable 4K sector 
when ubifs is enabled
on 08/10/2023 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> When CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is enabled, mounting ubifs will
> trigger the following error log:
> 
> UBIFS error (ubi0:0 pid 588): init_constants_early: too small LEBs (3968 
> bytes), min. is 15360 bytes
> 
> This is because that c->leb_size is required to be larger than 15*1024.
> And c->leb_size is calculated by the formula:
> c->leb_size = ubi->mtd->erasesize - ubi->leb_start - data_pad
> So if erasesize is set to be 4K, ubifs will fail to work. Let's disable
> this kernel option explicitly while UBIFS is enabled.
> 
> Signed-off-by: Quanyang Wang 
> ---
> Hi Bruce,
> Would you please help merge this patch to the branch:
>   yocto-6.1
> Thanks,
> Quanyang
> ---
>  cfg/fs/flash_fs.cfg | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cfg/fs/flash_fs.cfg b/cfg/fs/flash_fs.cfg
> index f9aef96ebb..291f40135f 100644
> --- a/cfg/fs/flash_fs.cfg
> +++ b/cfg/fs/flash_fs.cfg
> @@ -19,3 +19,4 @@ CONFIG_YAFFS_AUTO_YAFFS2=y
>  
>  CONFIG_MTD_UBI=y
>  CONFIG_UBIFS_FS=y
> +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=n
> -- 
> 2.36.1
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13153): 
https://lists.yoctoproject.org/g/linux-yocto/message/13153
Mute This Topic: https://lists.yoctoproject.org/mt/101829936/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto] [yocto-kernel-cache][yocto-6.1][PATCH] xilinx-zynq: add flash_fs.cfg

2023-10-08 Thread Bruce Ashfield
merged.

Bruce

In message: [yocto-kernel-cache][yocto-6.1][PATCH] xilinx-zynq: add flash_fs.cfg
on 08/10/2023 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> Add flash_fs.cfg since there are flash chips at zynq boards.
> 
> Signed-off-by: Quanyang Wang 
> ---
> Hi Bruce,
> Would you please help merge this patch to the branch:
>   yocto-6.1
> Thanks,
> Quanyang
> ---
>  bsp/xilinx-zynq/xilinx-zynq.scc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/bsp/xilinx-zynq/xilinx-zynq.scc b/bsp/xilinx-zynq/xilinx-zynq.scc
> index 621f6954dc..3e395f691f 100644
> --- a/bsp/xilinx-zynq/xilinx-zynq.scc
> +++ b/bsp/xilinx-zynq/xilinx-zynq.scc
> @@ -4,5 +4,6 @@ include features/spi/spi.scc
>  include features/spi/spidev.scc
>  include features/usb/ehci-hcd.scc
>  include features/debug/debug-kernel.scc
> +include cfg/fs/flash_fs.cfg
>  
>  kconf hardware xilinx-zynq.cfg
> -- 
> 2.36.1
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13154): 
https://lists.yoctoproject.org/g/linux-yocto/message/13154
Mute This Topic: https://lists.yoctoproject.org/mt/101829943/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto] [yocto-kernel-cache][yocto-5.15][PATCH] aptiv-s32g: change S32CC_THERMAL to QORIQ_THERMAL

2023-10-08 Thread Bruce Ashfield
In message: Re: [yocto-kernel-cache][yocto-5.15][PATCH] aptiv-s32g: change 
S32CC_THERMAL to QORIQ_THERMAL
on 07/10/2023 Quanyang Wang wrote:

> Hi Bruce,
> 
> On 10/2/23 11:19, Bruce Ashfield wrote:
> > In message: [yocto-kernel-cache][yocto-5.15][PATCH] aptiv-s32g: change 
> > S32CC_THERMAL to QORIQ_THERMAL
> > on 28/09/2023 quanyang.w...@windriver.com wrote:
> > 
> > > From: Quanyang Wang 
> > > 
> > > The latest SDK BSP38 RC9 drops the S32CC_THERMAL config and changes to
> > > use QORIQ_THERMAL instead, so update kernel cache to compatible with it.
> > > 
> > > Signed-off-by: Quanyang Wang 
> > > ---
> > > Hi Bruce,
> > > Would you please help merge this patch to the branch:
> > >   yocto-5.15
> > merged.
> 
> I can't find this patch. Would you please help to check it again?

Can you see it now ?

https://git.yoctoproject.org/yocto-kernel-cache/commit/?h=yocto-5.15&id=fd045a9376ffd9dbdd1c7c305ef3a63dedc308aa

Bruce

> 
> Thanks,
> 
> Quanyang
> 
> > 
> > Bruce
> > 
> > > Thanks,
> > > Quanyang
> > > ---
> > >   bsp/aptiv-s32g/aptiv-cvc.cfg | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/bsp/aptiv-s32g/aptiv-cvc.cfg b/bsp/aptiv-s32g/aptiv-cvc.cfg
> > > index 14ad889b97..5f266fede3 100644
> > > --- a/bsp/aptiv-s32g/aptiv-cvc.cfg
> > > +++ b/bsp/aptiv-s32g/aptiv-cvc.cfg
> > > @@ -119,7 +119,7 @@ CONFIG_INPUT_UINPUT=y
> > >   # Thermal
> > >   CONFIG_THERMAL=y
> > > -CONFIG_S32CC_THERMAL=y
> > > +CONFIG_QORIQ_THERMAL=y
> > >   # ADC
> > >   CONFIG_IIO=y
> > > -- 
> > > 2.36.1
> > > 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13155): 
https://lists.yoctoproject.org/g/linux-yocto/message/13155
Mute This Topic: https://lists.yoctoproject.org/mt/101634503/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [PATCH] nxp-imx7: enable CONFIG_I2C kernel config explicitly

2023-10-08 Thread Meng Li via lists.yoctoproject.org
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

2023-10-08 Thread Meng Li via lists.yoctoproject.org
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]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1] fix patch for marvell cn96xx

2023-10-08 Thread Ruiqiang Hao via lists.yoctoproject.org
Hi Bruce,

Please help to merge this patch into our linux-yocto repo.

repo:
linux-yocto
branch:
v6.1/standard/cn-sdkv5.15/octeon
v6.1/standard/preempt-rt/cn-sdkv5.15/octeon

Thanks,
Ruiqiang

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13158): 
https://lists.yoctoproject.org/g/linux-yocto/message/13158
Mute This Topic: https://lists.yoctoproject.org/mt/101845880/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-pf: remove redundant invoking of otx2_sync_mbox_msg()

2023-10-08 Thread Ruiqiang Hao via lists.yoctoproject.org
From: Ruiqiang Hao 

commit bbf258fecfff ("Merge branch 'v6.1/standard/base' into v6.1/
standard/cn-sdkv5.15/octeon") introduced redundant mbox sync operation,
which will cause error when processing message NIX_TXSCH_ALLOC. Remove
this invoking to solve the error below.

rvu_af 0002:01:00.0: Error -406 when processing message NIX_TXSCH_ALLOC 
(0x8004) from PF2
rvu_nicpf 0002:03:00.0: Mbox msg response has err -406, ID 0x8004
rvu_nicpf 0002:03:00.0: Failed to allocate TXSCH

Signed-off-by: Ruiqiang Hao 
---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 3 ---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 1 -
 2 files changed, 4 deletions(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c 
b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
index 3565f2be31c2..8fddd37bd33f 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
@@ -797,9 +797,6 @@ int otx2_txsch_alloc(struct otx2_nic *pfvf)
/* Request one schq per level */
for (lvl = 0; lvl < NIX_TXSCH_LVL_CNT; lvl++)
req->schq[lvl] = 1;
-   rc = otx2_sync_mbox_msg(&pfvf->mbox);
-   if (rc)
-   return rc;
 
if (is_otx2_sdpvf(pfvf->pdev) && chan_cnt > 1) {
/* For SDP, backpressure is asserted at TL4,
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h 
b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
index a09aaedb77f7..c946717c5610 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
@@ -1010,7 +1010,6 @@ int otx2_config_nix_queues(struct otx2_nic *pfvf);
 int otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool pfc_en);
 int otx2_txsch_alloc(struct otx2_nic *pfvf);
 int otx2_txschq_stop(struct otx2_nic *pfvf);
-void otx2_txschq_free_one(struct otx2_nic *pfvf, u16 lvl, u16 schq);
 void otx2_sqb_flush(struct otx2_nic *pfvf);
 int __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool,
  dma_addr_t *dma);
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13159): 
https://lists.yoctoproject.org/g/linux-yocto/message/13159
Mute This Topic: https://lists.yoctoproject.org/mt/101845884/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-