[PATCH v3] mtd: spinand: read return badly if the last page has bitflips

2019-06-27 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: Weixiong Liao Reviewed-by: Boris Brez

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-27 Thread liaoweixiong
Hi Miquel, On 2019/6/28 AM2:17, Miquel Raynal wrote: > Hi Miquel, > > Miquel Raynal wrote on Thu, 27 Jun 2019 > 19:06:44 +0200: > >> Hello, >> >> Schrempf Frieder wrote on Tue, 25 Jun >> 2019 07:04:06 +: >> >>> Hi liaoweixiong, >&g

[RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: liaoweixiong Reviewed-by: Bo

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread liaoweixiong
Oh, i am sorry that i had misunderstanded your letter. Thank you for your document and guidance. On 2019/6/25 PM 3:04, Schrempf Frieder wrote: > Hi liaoweixiong, > > On 25.06.19 05:08, Greg KH wrote: >> On Tue, Jun 25, 2019 at 09:02:29AM +0800, liaoweixiong wrote: >>>

[RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-24 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: liaoweixiong Reviewed-by: Bo

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-24 Thread liaoweixiong
Um.. I am sorry. It is the first time for me to resend patch. I will send this patch again with correct tags. On 2019/6/24 PM10:47, Schrempf Frieder wrote: > On 24.06.19 14:15, liaoweixiong wrote: >> In case of the last page containing bitflips (ret > 0), >> spinand_mtd_read(

[RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-24 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: liaoweixiong Acked-by: Bo

Re: [PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-24 Thread liaoweixiong
OK, thanks for your reviewing. I will resend right now. On 2019/6/24 PM3:37, Schrempf Frieder wrote: > On 20.06.19 03:00, liaoweixiong wrote: >> In case of the last page containing bitflips (ret > 0), >> spinand_mtd_read() will return that number of bitflips for the last >

[PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-19 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: liaoweixiong --- drivers/mtd/n

Re: [PATCH] mtd: spinand: fix error read return value

2019-06-19 Thread liaoweixiong
hi Boris Brezillon, Sure, i will adjust the commit message and send again right now. On 2019/6/20 AM12:18, Boris Brezillon wrote: > On Wed, 19 Jun 2019 14:02:14 + > Schrempf Frieder wrote: > >> On 19.06.19 15:46, Boris Brezillon wrote: >>> Hi liaoweixiong, >>&

[PATCH] mtd: spinand: fix error read return value

2019-06-19 Thread liaoweixiong
In function spinand_mtd_read, if the last page to read occurs bitflip, this function will return error value because veriable ret not equal to 0. Signed-off-by: liaoweixiong --- drivers/mtd/nand/spi/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/spi

[PATCH v13 1/4] pstore/blk: new support logger for block devices

2019-03-06 Thread liaoweixiong
similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig |8 + fs/pstore/Makefile |3 + fs/pstore/blkzone.c

[PATCH v13 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-03-06 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS

[PATCH v13 0/4] pstore/block: new support logger for block devices

2019-03-06 Thread liaoweixiong
' haven't be exproted yet, so we use 'kernel_read' and 'kernel_write' instead. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well

[PATCH v13 2/4] pstore/blk: add blkoops for pstore_blk

2019-03-06 Thread liaoweixiong
e parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS| 2 +- fs/pstore/Kconfig | 102 +++ fs/pstore/Makefile | 2 + fs/pstore/bl

[PATCH v13 3/4] pstore/blk: support pmsg for pstore block

2019-03-06 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 18 fs/pstore/blkoops.c| 10 ++ fs/pstore/blkzone.c| 256 + include/linux/pstore_blk.h | 1

Re: [PATCH v12 3/4] pstore/blk: support pmsg for pstore block

2019-03-06 Thread liaoweixiong
Hi, On 2019-03-06 09:16, Randy Dunlap wrote: > Hi, > > On 2/27/19 11:12 PM, liaoweixiong wrote: >> diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig >> index 7dfe00b..b417bf5 100644 >> --- a/fs/pstore/Kconfig >> +++ b/fs/pstore/Kconfig >> @@ -210,6 +210

Re: [PATCH v12 2/4] pstore/blk: add blkoops for pstore_blk

2019-03-06 Thread liaoweixiong
Hi, I will fix all on next version. Thank you very much. On 2019-03-06 09:14, Randy Dunlap wrote: > Hi, > > On 2/27/19 11:12 PM, liaoweixiong wrote: >> diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig >> index defcb75..7dfe00b 100644 >> --- a/fs/pstore/Kconfig

Re: [PATCH v12 1/4] pstore/blk: new support logger for block devices

2019-03-05 Thread liaoweixiong
hi Dan Carpenter, On 2019/03/05 15:12, Dan Carpenter wrote: > Hi liaoweixiong, > > url: > https://github.com/0day-ci/linux/commits/liaoweixiong/pstore-block-new-support-logger-for-block-devices/20190303-142003 > base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/l

[PATCH v12 3/4] pstore/blk: support pmsg for pstore block

2019-02-27 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 10 ++ fs/pstore/blkzone.c| 253 + include/linux/pstore_blk.h | 1

[PATCH v12 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-02-27 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS

[PATCH v12 2/4] pstore/blk: add blkoops for pstore_blk

2019-02-27 Thread liaoweixiong
e parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS| 2 +- fs/pstore/Kconfig | 114 ++ fs/pstore/Makefile | 2 + fs/pstore/bl

[PATCH v12 1/4] pstore/blk: new support logger for block devices

2019-02-27 Thread liaoweixiong
similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig |8 + fs/pstore/Makefile |3 + fs/pstore/blkzone.c

[PATCH v12 0/4] pstore/block: new support logger for block devices

2019-02-27 Thread liaoweixiong
vfs_write' haven't be exproted yet, so we use 'kernel_read' and 'kernel_write' instead. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well o

Re: [RFC v9 5/5] Documentation: pstore/blk: create document for pstore_blk

2019-02-27 Thread liaoweixiong
Thank you for your correction. I will update the patch in the 12th version. On 2019/02/28 13:15, Randy Dunlap wrote: > On 2/19/19 3:52 AM, liaoweixiong wrote: >> The document, at Documentation/admin-guide/pstore-block.rst, >> tells user how to use pstore_blk and the attentions abou

[PATCH v11 2/4] pstore/blk: add blkoops for pstore_blk

2019-02-26 Thread liaoweixiong
e parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS| 2 +- fs/pstore/Kconfig | 114 ++ fs/pstore/Makefile | 2 + fs/pstore/bl

[PATCH v11 1/4] pstore/blk: new support logger for block devices

2019-02-26 Thread liaoweixiong
similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig |8 + fs/pstore/Makefile |3 + fs/pstore/blkzone.c

[PATCH v11 3/4] pstore/blk: support pmsg for pstore block

2019-02-26 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 10 ++ fs/pstore/blkzone.c| 253 + include/linux/pstore_blk.h | 1

[PATCH v11 0/4] pstore/block: new support logger for block devices

2019-02-26 Thread liaoweixiong
; instead. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_rom, using general ram rathe

[PATCH v11 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-02-26 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS

Re: [RFC v10 0/4] pstore/block: new support logger for block devices

2019-02-26 Thread liaoweixiong
On 2019-02-26 19:20, Greg Kroah-Hartman wrote: > On Tue, Feb 26, 2019 at 02:33:41PM +0800, liaoweixiong wrote: >> Why should we need pstore_block? >> 1. Most embedded intelligent equipment have no persistent ram, which >> increases costs. We perfer to cheaper solutions, like

[RFC v10 2/4] pstore/blk: add blkoops for pstore_blk

2019-02-25 Thread liaoweixiong
e parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS| 2 +- fs/pstore/Kconfig | 114 ++ fs/pstore/Makefile | 2 + fs/pstore/bl

[RFC v10 0/4] pstore/block: new support logger for block devices

2019-02-25 Thread liaoweixiong
module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_rom, using general ram rather than block device. liaoweixiong (4): pstore/blk: ne

[RFC v10 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-02-25 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS

[RFC v10 3/4] pstore/blk: support pmsg for pstore block

2019-02-25 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 10 ++ fs/pstore/blkzone.c| 253 + include/linux/pstore_blk.h | 1

[RFC v10 1/4] pstore/blk: new support logger for block devices

2019-02-25 Thread liaoweixiong
similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig |8 + fs/pstore/Makefile |3 + fs/pstore/blkzone.c

Re: [RFC v9 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-25 Thread liaoweixiong
On 2019-02-22 23:36, Rob Herring wrote: > +boot-architecture list > > On Tue, Feb 19, 2019 at 07:52:47PM +0800, liaoweixiong wrote: >> Create DT binding document for blkoops. >> >> Signed-off-by: liaoweixiong >> --- >> .../devicetree/b

[RFC v9 1/5] pstore/blk: new support logger for block devices

2019-02-19 Thread liaoweixiong
similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig |8 + fs/pstore/Makefile |3 + fs/pstore/blkzone.c

[RFC v9 5/5] Documentation: pstore/blk: create document for pstore_blk

2019-02-19 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS

[RFC v9 4/5] pstore/blk: support pmsg for pstore block

2019-02-19 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 11 ++ fs/pstore/blkzone.c| 254 + include/linux/pstore_blk.h | 1

[RFC v9 3/5] pstore/blk: add blkoops for pstore_blk

2019-02-19 Thread liaoweixiong
t; on dts or "blkdev" on module parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS| 2 +- fs/pstore/Kconfig | 114 fs/pstore/Makefile

[RFC v9 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-19 Thread liaoweixiong
Create DT binding document for blkoops. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore/blkoops.txt | 53 ++ MAINTAINERS| 1 + 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree

[RFC v9 0/5] pstore/block: new support logger for block devices

2019-02-19 Thread liaoweixiong
nd 'vfs_write' Both of 'vfs_read' and 'vfs_write' haven't be exproted yet, so we use 'kernel_read' and 'kernel_write' instead. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_regis

Re: [RFC v7 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-14 Thread liaoweixiong
On 2019-02-14 04:30, Rob Herring wrote: > On Wed, Feb 13, 2019 at 7:51 AM liaoweixiong > wrote: >> >> >> On 2019-01-31 00:07, Rob Herring wrote:> On Wed, Jan 23, 2019 at >> 08:05:13PM +0800, liaoweixiong wrote: >>>> Create DT binding document for b

[RFC v8 1/5] pstore/blk: new support logger for block devices

2019-02-13 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC v8 4/5] pstore/blk: support pmsg for pstore block

2019-02-13 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/blkoops.c| 11 ++ fs/pstore/blkzone.c| 254 + include/linux/pstore_blk.h | 1 + 3 files changed, 244 insertions(+), 22

[RFC v8 5/5] Documentation: pstore/blk: create document for pstore_blk

2019-02-13 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 227 + MAINTAINERS

[RFC v8 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-13 Thread liaoweixiong
Create DT binding document for blkoops. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore/blkoops.txt | 29 ++ MAINTAINERS| 1 + 2 files changed, 30 insertions(+) create mode 100644 Documentation/devicetree

[RFC v8 3/5] pstore/blk: add blkoops for pstore_blk

2019-02-13 Thread liaoweixiong
path" on dts or "part_path" on module parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS | 2 +- fs/pstore/Kconfig | 117 + fs/pstore/Makefile |

[RFC v8 0/5] pstore/block: new support logger for block devices

2019-02-13 Thread liaoweixiong
[PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_rom, using general ram rather than block d

Re: [RFC v7 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-13 Thread liaoweixiong
On 2019-01-31 00:07, Rob Herring wrote:> On Wed, Jan 23, 2019 at 08:05:13PM +0800, liaoweixiong wrote: >> Create DT binding document for blkoops. >> >> Signed-off-by: liaoweixiong >> --- >> .../devicetree/bindings/pstore-block/blkoops.txt | 32 >> +

Re: [RFC v7 0/5] pstore/block: new support logger for block devices

2019-02-12 Thread liaoweixiong
On 2019-02-13 04:54, Kees Cook wrote: > On Wed, Jan 23, 2019 at 4:06 AM liaoweixiong > wrote: >> >> Why should we need pstore_block? >> 1. Most embedded intelligent equipment have no persistent ram, which >> increases costs. We perfer to cheaper solutions, like block

Re: [RFC v5 1/4] pstore/blk: new support logger for block devices

2019-01-24 Thread liaoweixiong
On 2019-01-24 02:19, Aaro Koskinen wrote: > Hi, > > On Sat, Jan 19, 2019 at 04:53:48PM +0800, liaoweixiong wrote: >> On 2019-01-18 08:12, Kees Cook wrote: >>>> MTD (drivers/mtd/mtdoops.c). >>> >>> Would mtdoops get dropped in favor of pstore/blk, or

Re: [RFC v7 0/5] pstore/block: new support logger for block devices

2019-01-24 Thread liaoweixiong
On 2019-01-24 02:26, Aaro Koskinen wrote: > Hi, > > On Wed, Jan 23, 2019 at 08:05:11PM +0800, liaoweixiong wrote: >> Why should we need pstore_block? >> 1. Most embedded intelligent equipment have no persistent ram, which >> increases costs. We perfer to cheaper so

[RFC v7 4/5] pstore/blk: support pmsg for pstore block

2019-01-23 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/blkoops.c| 11 ++ fs/pstore/blkzone.c| 254 + include/linux/pstore_blk.h | 1 + 3 files changed, 244 insertions(+), 22

[RFC v7 0/5] pstore/block: new support logger for block devices

2019-01-23 Thread liaoweixiong
register' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_rom, using general ram rather than block device. liaoweixiong (5): pstore/blk: new support logger for block devices dt-

[RFC v7 2/5] dt-bindings: pstore-block: new support for blkoops

2019-01-23 Thread liaoweixiong
Create DT binding document for blkoops. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore-block/blkoops.txt | 32 ++ MAINTAINERS| 1 + 2 files changed, 33 insertions(+) create mode 100644 Documentation/devicetree

[RFC v7 5/5] Documentation: pstore/blk: create document for pstore_blk

2019-01-23 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 227 + MAINTAINERS

[RFC v7 3/5] pstore/blk: add blkoops for pstore_blk

2019-01-23 Thread liaoweixiong
path" on dts or "part_path" on module parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- MAINTAINERS | 2 +- fs/pstore/Kconfig | 117 + fs/pstore/Makefile |

[RFC v7 1/5] pstore/blk: new support logger for block devices

2019-01-23 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

Re: [RFC v5 3/4] pstore/blk: support pmsg for pstore block

2019-01-23 Thread liaoweixiong
Resend this mail. On 2019-01-18 08:17, Kees Cook wrote: > On Mon, Jan 7, 2019 at 4:01 AM liaoweixiong > wrote: >> >> To enable pmsg, just set pmsg_size when block device register blkzone. > > At first pass, this looks like a reasonable extension of blkzone. Is >

[RFC v6 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-01-23 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 227 + MAINTAINERS

[RFC v6 2/4] pstore/blk: add blkoops for pstore_blk

2019-01-23 Thread liaoweixiong
path" on dts or "part_path" on module parameter is valid. Otherwise, it can only record data to ram buffer, which will be dropped when reboot. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore-block/blkoops.txt | 32 +++ MAINTAINERS

[RFC v6 0/4] pstore/block: new support logger for block devices

2019-01-23 Thread liaoweixiong
haven't be exproted yet, so we use 'kernel_read' and 'kernel_write' instead. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works w

[RFC v6 1/4] pstore/blk: new support logger for block devices

2019-01-23 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC v6 3/4] pstore/blk: support pmsg for pstore block

2019-01-23 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/blkoops.c| 11 ++ fs/pstore/blkzone.c| 254 + include/linux/pstore_blk.h | 1 + 3 files changed, 244 insertions(+), 22

Re: [RFC v5 2/4] pstore/blk: add sample for pstore_blk

2019-01-19 Thread liaoweixiong
resend this email. On 2019-01-18 08:21, Kees Cook wrote: > On Thu, Jan 17, 2019 at 4:15 PM Kees Cook wrote: >> >> On Mon, Jan 7, 2019 at 4:01 AM liaoweixiong >> wrote: >>> >>> It is a sample for pstore_blk, using general ram rather than block device. >

Re: [RFC v5 2/4] pstore/blk: add sample for pstore_blk

2019-01-19 Thread liaoweixiong
On 2019-01-18 08:15, Kees Cook wrote: > On Mon, Jan 7, 2019 at 4:01 AM liaoweixiong > wrote: >> >> It is a sample for pstore_blk, using general ram rather than block device. >> According to pstore_blk, the data will be saved to ram buffer if not >> register device p

Re: [RFC v5 1/4] pstore/blk: new support logger for block devices

2019-01-19 Thread liaoweixiong
On 2019-01-18 08:12, Kees Cook wrote: > On Mon, Jan 7, 2019 at 4:01 AM liaoweixiong > wrote: >> >> pstore_blk is similar to pstore_ram, but dump log to block devices >> rather than persistent ram. >> >> Why should we need pstore_blk? >> 1. Most embedde

[RFC v5 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-01-07 Thread liaoweixiong
The documemt, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 226 + MAINTAINERS

[RFC v5 2/4] pstore/blk: add sample for pstore_blk

2019-01-07 Thread liaoweixiong
It is a sample for pstore_blk, using general ram rather than block device. According to pstore_blk, the data will be saved to ram buffer if not register device path and apis for panic. So, it can only used to dump Oops and some things will not reboot. Signed-off-by: liaoweixiong --- fs/pstore

[RFC v5 1/4] pstore/blk: new support logger for block devices

2019-01-07 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_blk after block device is ready. pstore_blk works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC v5 3/4] pstore/blk: support pmsg for pstore block

2019-01-07 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/blkzone.c| 254 + include/linux/pstore_blk.h | 1 + 2 files changed, 233 insertions(+), 22 deletions(-) diff --git a/fs/pstore

[RFC v5 0/4] pstore/block: new support logger for block devices

2019-01-07 Thread liaoweixiong
#x27; and 'kernel_write' instead. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' [PATCH v1] On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_ro

[RFC v4 0/3] pstore/rom: new support logger for block devices

2019-01-02 Thread liaoweixiong
#x27; [PATCH v1] On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_rom, using general ram rather than block device. liaoweixiong (3): pstore/rom: new support logger for block devices pstore/rom: add sample for pstore_rom

[RFC v4 3/3] pstore/rom: support pmsg for pstore_rom

2019-01-02 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register romzone. The pmsg have a single-boot lifetime, which means that zone of pmsg gets wiped after its contents get copied out after boot. Signed-off-by: liaoweixiong --- fs/pstore/romzone.c| 194

[RFC v4 2/3] pstore/rom: add sample for pstore_rom

2019-01-02 Thread liaoweixiong
It is a sample for pstore_rom, using general ram rather than block device. According to pstore_rom, the data will be saved to ram buffer if not register device path and apis for panic. So, it can only used to dump Oops and some things will not reboot. Signed-off-by: liaoweixiong --- fs/pstore

[RFC v4 1/3] pstore/rom: new support logger for block devices

2019-01-02 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_rom after block device is ready. pstore_rom works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC v3 2/2] pstore/rom: add sample for pstore_rom

2019-01-01 Thread liaoweixiong
It is a sample for pstore_rom, using general ram rather than block device. According to pstore_rom, the data will be saved to ram buffer if not register device path and apis for panic. So, it can only used to dump Oops and some things will not reboot. Signed-off-by: liaoweixiong --- fs/pstore

[RFC v3 1/2] pstore/rom: new support logger for block devices

2019-01-01 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_rom after block device is ready. pstore_rom works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC v3 0/2] pstore/rom: new support logger for block devices

2019-01-01 Thread liaoweixiong
x27;t be exproted yet, so we use 'kernel_read' and 'kernel_write' instead. liaoweixiong (2): pstore/rom: new support logger for block devices pstore/rom: add sample for pstore_rom fs/pstore/Kconfig | 16 + fs/pstore/Makefile

[RFC v2 2/2] pstore/rom: add sample for pstore_rom

2019-01-01 Thread liaoweixiong
It is a sample for pstore_rom, using general ram rather than block device. According to pstore_rom, the data will be saved to ram buffer if not register device path and apis for panic. So, it can only used to dump Oops and some things will not reboot. Signed-off-by: liaoweixiong --- fs/pstore

[RFC v2 0/2] pstore/rom: new support logger for block devices

2019-01-01 Thread liaoweixiong
. [PATCH v2] On patch 1: Fix build as module error for redefinition of 'romz_unregister' and 'romz_register' liaoweixiong (2): pstore/rom: new support logger for block devices pstore/rom: add sample for pstore_rom fs/pstore/Kconfig | 16 + fs/pstore/Makefile

[RFC v2 1/2] pstore/rom: new support logger for block devices

2019-01-01 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_rom after block device is ready. pstore_rom works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC 1/2] pstore/rom: new support logger for block devices

2019-01-01 Thread liaoweixiong
manage the partition as zones, which is similar to pstore_ram. Recommend that, block driver register pstore_rom after block device is ready. pstore_rom works well on allwinner(sunxi) platform. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 7 + fs/pstore/Makefile | 3 +

[RFC 0/2] pstore/rom: new support logger for block devices

2019-01-01 Thread liaoweixiong
. On patch 2: A sample for pstore_rom, using general ram rather than block device. liaoweixiong (2): pstore/rom: new support logger for block devices pstore/rom: add sample for pstore_rom fs/pstore/Kconfig | 16 + fs/pstore/Makefile | 5 + fs/pstore/rombuf.c | 46

[RFC 2/2] pstore/rom: add sample for pstore_rom

2019-01-01 Thread liaoweixiong
It is a sample for pstore_rom, using general ram rather than block device. According to pstore_rom, the data will be saved to ram buffer if not register device path and apis for panic. So, it can only used to dump Oops and some things will not reboot. Signed-off-by: liaoweixiong --- fs/pstore

[PATCH v2] pstore: turn compression options back to 'bool'

2018-12-14 Thread liaoweixiong
when set to 'M'. So, this patch is going to turn them back to 'bool'. Fixes: 58eb5b670747 ("pstore: fix crypto dependencies") Acked-by: Kees Cook Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH] pstore: fix crypto dependencies of 842/zstd compression

2018-12-12 Thread liaoweixiong
Reference to commit 58eb5b670747 ("pstore: fix crypto dependencies"), which fixed crypto dependencies of deflate, lzo, lz4 and lz4hc compression, but omitted 842 and newer compression zstd from commit 1021bcf44d0e ("pstore: add zstd compression support") Signed-off-by: l