Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1208962 > unrolled thread

[PATCH v3 0/3] qcom: Add SMEM MTD parser

Started byMathieu Olivari <mathieu@codeaurora.org>
First post2015-08-18 01:50 +0200
Last post2015-08-18 19:10 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v3 0/3] qcom: Add SMEM MTD parser Mathieu Olivari <mathieu@codeaurora.org> - 2015-08-18 01:50 +0200
    Re: [PATCH v3 0/3] qcom: Add SMEM MTD parser Jonas Gorski <jogo@openwrt.org> - 2015-08-18 14:40 +0200
      Re: [PATCH v3 0/3] qcom: Add SMEM MTD parser Mathieu Olivari <mathieu@codeaurora.org> - 2015-08-18 19:10 +0200

#1208962 — [PATCH v3 0/3] qcom: Add SMEM MTD parser

FromMathieu Olivari <mathieu@codeaurora.org>
Date2015-08-18 01:50 +0200
Subject[PATCH v3 0/3] qcom: Add SMEM MTD parser
Message-ID<pYCk9-5wZ-9@gated-at.bofh.it>
QCOM platforms such as IPQ806x are using SMEM to store their flash
layout. This patch set adds the DT nodes required to instanciate SMEM
on IPQ806x and add an MTD parser using it.

This change is based on the SMEM driver posted here:
*https://lkml.org/lkml/2015/7/27/1125

v2:
*Release the SPI device reference after looking it up (put_device())
*Represent SMEM data as __le32 rather than u32
*Move new DT nodes in their proper respective location
*Address readability concerns in MTD parser

v3:
*Address Bjorn's comments

Mathieu Olivari (3):
  ARM: qcom: add SFPB nodes to IPQ806x dts
  ARM: qcom: add SMEM device node to IPQ806x dts
  mtd: add SMEM parser for QCOM platforms

 arch/arm/boot/dts/qcom-ipq8064.dtsi |  23 +++-
 drivers/mtd/Kconfig                 |   7 ++
 drivers/mtd/Makefile                |   1 +
 drivers/mtd/qcom_smem_part.c        | 224 ++++++++++++++++++++++++++++++++++++
 4 files changed, 254 insertions(+), 1 deletion(-)
 create mode 100644 drivers/mtd/qcom_smem_part.c

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1209236

FromJonas Gorski <jogo@openwrt.org>
Date2015-08-18 14:40 +0200
Message-ID<pYOlk-6g9-23@gated-at.bofh.it>
In reply to#1208962
Hi,

On Tue, Aug 18, 2015 at 1:47 AM, Mathieu Olivari <mathieu@codeaurora.org> wrote:
> QCOM platforms such as IPQ806x are using SMEM to store their flash
> layout. This patch set adds the DT nodes required to instanciate SMEM
> on IPQ806x and add an MTD parser using it.
>
> This change is based on the SMEM driver posted here:
> *https://lkml.org/lkml/2015/7/27/1125

Nice work. After testing it on AP148 I see this:

[    2.481507] 12 qcom-smem partitions found on MTD device qcom-nandc
[    2.481540] Creating 12 MTD partitions on "qcom-nandc":
[    2.486690] 0x000000000000-0x000000040000 : "0:SBL1"
[    2.492842] 0x000000040000-0x000000180000 : "0:MIBIB"
[    2.497857] 0x000000180000-0x0000002c0000 : "0:SBL2"
[    2.502895] 0x0000002c0000-0x000000540000 : "0:SBL3"
[    2.507828] 0x000000540000-0x000000660000 : "0:DDRCONFIG"
[    2.512857] 0x000000660000-0x000000780000 : "0:SSD"
[    2.518074] 0x000000780000-0x000000a00000 : "0:TZ"
[    2.522834] 0x000000a00000-0x000000c80000 : "0:RPM"
[    2.527607] 0x000000c80000-0x000001180000 : "0:APPSBL"
[    2.532472] 0x000001180000-0x000001200000 : "0:APPSBLENV"
[    2.537586] 0x000001200000-0x000001340000 : "0:ART"
[    2.543140] 0x000001340000-0x000005340000 : "rootfs"

Are all these partition names supposed to be prefixed with "0:"? This
is using the OpenWrt applied version.


Jonas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1209387

FromMathieu Olivari <mathieu@codeaurora.org>
Date2015-08-18 19:10 +0200
Message-ID<pYSyC-48R-35@gated-at.bofh.it>
In reply to#1209236
On Tue, Aug 18, 2015 at 02:30:14PM +0200, Jonas Gorski wrote:
> Hi,
> 
> On Tue, Aug 18, 2015 at 1:47 AM, Mathieu Olivari <mathieu@codeaurora.org> wrote:
> > QCOM platforms such as IPQ806x are using SMEM to store their flash
> > layout. This patch set adds the DT nodes required to instanciate SMEM
> > on IPQ806x and add an MTD parser using it.
> >
> > This change is based on the SMEM driver posted here:
> > *https://lkml.org/lkml/2015/7/27/1125
> 
> Nice work. After testing it on AP148 I see this:
> 
> [    2.481507] 12 qcom-smem partitions found on MTD device qcom-nandc
> [    2.481540] Creating 12 MTD partitions on "qcom-nandc":
> [    2.486690] 0x000000000000-0x000000040000 : "0:SBL1"
> [    2.492842] 0x000000040000-0x000000180000 : "0:MIBIB"
> [    2.497857] 0x000000180000-0x0000002c0000 : "0:SBL2"
> [    2.502895] 0x0000002c0000-0x000000540000 : "0:SBL3"
> [    2.507828] 0x000000540000-0x000000660000 : "0:DDRCONFIG"
> [    2.512857] 0x000000660000-0x000000780000 : "0:SSD"
> [    2.518074] 0x000000780000-0x000000a00000 : "0:TZ"
> [    2.522834] 0x000000a00000-0x000000c80000 : "0:RPM"
> [    2.527607] 0x000000c80000-0x000001180000 : "0:APPSBL"
> [    2.532472] 0x000001180000-0x000001200000 : "0:APPSBLENV"
> [    2.537586] 0x000001200000-0x000001340000 : "0:ART"
> [    2.543140] 0x000001340000-0x000005340000 : "rootfs"
> 
> Are all these partition names supposed to be prefixed with "0:"? This
> is using the OpenWrt applied version.

Yes. These are the names as they are listed in SMEM. If you run the
"smem" command from the U-boot prompt, you will see the same information.
I'm not sure what the 0: prefix means, and where it comes from to be
honest.

> 
> 
> Jonas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web