linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2]: Enable UBIFS support
@ 2023-06-22 12:32 kah.jing.lee
  2023-06-22 12:34 ` [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS kah.jing.lee
  2023-06-22 12:36 ` [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS kah.jing.lee
  0 siblings, 2 replies; 6+ messages in thread
From: kah.jing.lee @ 2023-06-22 12:32 UTC (permalink / raw)
  To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Catalin Marinas, Will Deacon
  Cc: linux-kernel, devicetree, Kah Jing Lee

From: Kah Jing Lee <kah.jing.lee@intel.com>

Hi,
The patchset is to update the qspi mtd partition range for UBIFS on
socfpga platform - Agilex and Stratix10 boards.
The subsequent patch is enable the UBIFS in defconfig.

Alif Zakuan Yuslaimi (2):
  arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS
  arm64: defconfig: Enable UBI and UBIFS

---
v2: Update subject prefix and defconfig config place
---

 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 8 ++++----
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts     | 8 ++++----
 arch/arm64/configs/defconfig                           | 2 ++
 3 files changed, 10 insertions(+), 8 deletions(-)


base-commit: dad9774deaf1cf8e8f7483310dfb2690310193d2
-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS
  2023-06-22 12:32 [PATCH v2 0/2]: Enable UBIFS support kah.jing.lee
@ 2023-06-22 12:34 ` kah.jing.lee
       [not found]   ` <ee1779cc-fe9e-d529-3188-4feef8f27b98@web.de>
  2023-06-22 12:36 ` [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS kah.jing.lee
  1 sibling, 1 reply; 6+ messages in thread
From: kah.jing.lee @ 2023-06-22 12:34 UTC (permalink / raw)
  To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Catalin Marinas, Will Deacon
  Cc: linux-kernel, devicetree, Alif Zakuan Yuslaimi, Kah Jing Lee

From: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>

This patch is to update the QSPI flash layout to support UBIFS in mtd
root partition.

Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>
Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
---
v2: Update subject prefix
---
 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 8 ++++----
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts     | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
index 38ae674f2f02..12b960b9183c 100644
--- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
@@ -202,12 +202,12 @@ partitions {
 
 			qspi_boot: partition@0 {
 				label = "Boot and fpga data";
-				reg = <0x0 0x03FE0000>;
+				reg = <0x0 0x04200000>;
 			};
 
-			qspi_rootfs: partition@3FE0000 {
-				label = "Root Filesystem - JFFS2";
-				reg = <0x03FE0000 0x0C020000>;
+			root: partition@4200000 {
+				label = "Root Filesystem - UBIFS";
+				reg = <0x04200000 0x0BE00000>;
 			};
 		};
 	};
diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts
index 07c3f8876613..608017e6e36a 100644
--- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts
+++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts
@@ -128,12 +128,12 @@ partitions {
 
 			qspi_boot: partition@0 {
 				label = "Boot and fpga data";
-				reg = <0x0 0x03FE0000>;
+				reg = <0x0 0x04200000>;
 			};
 
-			qspi_rootfs: partition@3FE0000 {
-				label = "Root Filesystem - JFFS2";
-				reg = <0x03FE0000 0x0C020000>;
+			root: partition@4200000 {
+				label = "Root Filesystem - UBIFS";
+				reg = <0x04200000 0x0BE00000>;
 			};
 		};
 	};
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS
  2023-06-22 12:32 [PATCH v2 0/2]: Enable UBIFS support kah.jing.lee
  2023-06-22 12:34 ` [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS kah.jing.lee
@ 2023-06-22 12:36 ` kah.jing.lee
  2023-06-22 12:51   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 6+ messages in thread
From: kah.jing.lee @ 2023-06-22 12:36 UTC (permalink / raw)
  To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Catalin Marinas, Will Deacon
  Cc: linux-kernel, Alif Zakuan Yuslaimi, Kah Jing Lee

From: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>

This patch is to enable UBI and UBIFS in Linux defconfig for socfpga
Agilex and Stratix10 platform.

Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>
Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
---
v2: Update subject prefix and align defconfig config place
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index a24609e14d50..8c3c6fd20d77 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -267,6 +267,7 @@ CONFIG_MTD_NAND_BRCMNAND=m
 CONFIG_MTD_NAND_FSL_IFC=y
 CONFIG_MTD_NAND_QCOM=y
 CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_UBI=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_NBD=m
 CONFIG_VIRTIO_BLK=y
@@ -1444,6 +1445,7 @@ CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_HUGETLBFS=y
 CONFIG_CONFIGFS_FS=y
 CONFIG_EFIVAR_FS=y
+CONFIG_UBIFS_FS=y
 CONFIG_SQUASHFS=y
 CONFIG_NFS_FS=y
 CONFIG_NFS_V4=y
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS
  2023-06-22 12:36 ` [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS kah.jing.lee
@ 2023-06-22 12:51   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-22 12:51 UTC (permalink / raw)
  To: kah.jing.lee, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Catalin Marinas, Will Deacon
  Cc: linux-kernel, Alif Zakuan Yuslaimi

On 22/06/2023 14:36, kah.jing.lee@intel.com wrote:
> From: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>
> 
> This patch is to enable UBI and UBIFS in Linux defconfig for socfpga
> Agilex and Stratix10 platform.
> 
> Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>
> Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
> ---
> v2: Update subject prefix and align defconfig config place
> ---
>  arch/arm64/configs/defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index a24609e14d50..8c3c6fd20d77 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -267,6 +267,7 @@ CONFIG_MTD_NAND_BRCMNAND=m
>  CONFIG_MTD_NAND_FSL_IFC=y
>  CONFIG_MTD_NAND_QCOM=y
>  CONFIG_MTD_SPI_NOR=y
> +CONFIG_MTD_UBI=y

=m

(and wait till discussion finished)

>  CONFIG_BLK_DEV_LOOP=y
>  CONFIG_BLK_DEV_NBD=m
>  CONFIG_VIRTIO_BLK=y
> @@ -1444,6 +1445,7 @@ CONFIG_TMPFS_POSIX_ACL=y
>  CONFIG_HUGETLBFS=y
>  CONFIG_CONFIGFS_FS=y
>  CONFIG_EFIVAR_FS=y
> +CONFIG_UBIFS_FS=y

Also =m



Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS
       [not found]   ` <ee1779cc-fe9e-d529-3188-4feef8f27b98@web.de>
@ 2023-06-23  9:42     ` Lee, Kah Jing
       [not found]       ` <c15e650e-6aee-d3e1-3fe1-7e5d34813a04@web.de>
  0 siblings, 1 reply; 6+ messages in thread
From: Lee, Kah Jing @ 2023-06-23  9:42 UTC (permalink / raw)
  To: Markus Elfring, Yuslaimi, Alif Zakuan, devicetree,
	kernel-janitors, Catalin Marinas, Conor Dooley, Dinh Nguyen,
	Rob Herring, Krzysztof Kozlowski, Will Deacon
  Cc: LKML, cocci

> -----Original Message-----
> From: Markus Elfring <Markus.Elfring@web.de>
> Sent: Thursday, 22 June, 2023 9:05 PM
> To: Yuslaimi, Alif Zakuan <alif.zakuan.yuslaimi@intel.com>; Lee, Kah Jing
> <kah.jing.lee@intel.com>; devicetree@vger.kernel.org; kernel-
> janitors@vger.kernel.org; Catalin Marinas <catalin.marinas@arm.com>;
> Conor Dooley <conor+dt@kernel.org>; Dinh Nguyen
> <dinguyen@kernel.org>; Rob Herring <robh+dt@kernel.org>; Krzysztof
> Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Will Deacon
> <will@kernel.org>
> Cc: LKML <linux-kernel@vger.kernel.org>; cocci@inria.fr
> Subject: Re: [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash
> layout for UBIFS
> 
> > This patch is to update the QSPI flash layout to support UBIFS in mtd
> > root partition.
> 
> Please replace this sentence by an imperative change suggestion.
> 
> See also:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Docu
> mentation/process/submitting-patches.rst?h=v6.4-rc7#n94
> 
> Regards,
> Markus

Updated in v3 - Commit message: 
Update the QSPI flash layout to support UBIFS in mtd root partition.
Flash layout is updated in order to store non-UBIFS related boot and fpga data in qspi_boot(mtd0) 
while keep the rootfs with UBIFS in the root partition(mtd1).

Thanks. 

Regards, 
Kah Jing

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS
       [not found]       ` <c15e650e-6aee-d3e1-3fe1-7e5d34813a04@web.de>
@ 2023-06-24  3:31         ` Lee, Kah Jing
  0 siblings, 0 replies; 6+ messages in thread
From: Lee, Kah Jing @ 2023-06-24  3:31 UTC (permalink / raw)
  To: Markus Elfring, Yuslaimi, Alif Zakuan, devicetree,
	kernel-janitors, Catalin Marinas, Conor Dooley, Dinh Nguyen,
	Rob Herring, Krzysztof Kozlowski, Will Deacon
  Cc: LKML, cocci

> -----Original Message-----
> From: Markus Elfring <Markus.Elfring@web.de>
> Sent: Friday, 23 June, 2023 7:04 PM
> To: Lee, Kah Jing <kah.jing.lee@intel.com>; Yuslaimi, Alif Zakuan
> <alif.zakuan.yuslaimi@intel.com>; devicetree@vger.kernel.org; kernel-
> janitors@vger.kernel.org; Catalin Marinas <catalin.marinas@arm.com>;
> Conor Dooley <conor+dt@kernel.org>; Dinh Nguyen <dinguyen@kernel.org>;
> Rob Herring <robh+dt@kernel.org>; Krzysztof Kozlowski
> <krzysztof.kozlowski+dt@linaro.org>; Will Deacon <will@kernel.org>
> Cc: LKML <linux-kernel@vger.kernel.org>; cocci@inria.fr
> Subject: Re: [v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout
> for UBIFS
> 
> > Updated in v3 - Commit message:
> > Update the QSPI flash layout to support UBIFS in mtd root partition.
> > Flash layout is updated in order to store non-UBIFS related boot and
> > fpga data in qspi_boot(mtd0) while keep the rootfs with UBIFS in the root
> partition(mtd1).
> 
> I got the impression that this change description is also improvable a bit.
> How do you think about a wording variant like the following?
> 
> 
> Non-UBIFS related boot and fpga data should be stored in qspi_boot (mtd0)
> while keeping the rootfs with UBIFS in the root partition “mtd1”.
> Thus update the QSPI flash layout to support UBIFS in the mtd root partition.
> 
> 
> Will similar adjustments become helpful for subsequent update steps?
Sounds good to me. Will update the commit message for v3.
Thanks.
> 
> Regards,
> Markus

Regards, 
Lee, Kah Jing



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-24  3:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 12:32 [PATCH v2 0/2]: Enable UBIFS support kah.jing.lee
2023-06-22 12:34 ` [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS kah.jing.lee
     [not found]   ` <ee1779cc-fe9e-d529-3188-4feef8f27b98@web.de>
2023-06-23  9:42     ` Lee, Kah Jing
     [not found]       ` <c15e650e-6aee-d3e1-3fe1-7e5d34813a04@web.de>
2023-06-24  3:31         ` [v2 " Lee, Kah Jing
2023-06-22 12:36 ` [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS kah.jing.lee
2023-06-22 12:51   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).