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

2019-01-23 Thread liaoweixiong
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 devices. In fast, there is already a sample for block device logger in driver MTD (drivers/mtd/mtdoops.c). 2. Do not any equipment have b

[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 d

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

2019-01-23 Thread liaoweixiong
blkoops is a sample for pstore/blk. It can only record oops, excluding panics as no read/write apis for panic registered. It support settings on Kconfg/device tree/module parameters. It can record oops log even power failure if "PSTORE_BLKOOPS_PART_PATH" on Kconfig or "partition-path" on dts or "pa

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

2019-01-23 Thread liaoweixiong
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 embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fact, there is already a sample

[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| 1

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

2019-01-23 Thread 廖威雄
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 > it possible to add console, ftrace, etc, too? > I

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 > it possible to add console, ftrac

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

2019-01-23 Thread liaoweixiong
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 embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fact, there is already a sample

[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/bindin

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

2019-01-23 Thread liaoweixiong
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 devices. In fast, there is already a sample for block device logger in driver MTD (drivers/mtd/mtdoops.c). 2. Do not any equipment have b

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

2019-01-23 Thread liaoweixiong
blkoops is a sample for pstore/blk. It can only record oops, excluding panics as no read/write apis for panic registered. It support settings on Kconfg/device tree/module parameters. It can record oops log even power failure if "PSTORE_BLKOOPS_PART_PATH" on Kconfig or "partition-path" on dts or "pa

[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| 1

[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 d

Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2019-01-23 Thread Mathieu Malaterre
On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil wrote: > > From: Maarten ter Huurne > > OST is the OS Timer, a 64-bit timer/counter with buffered reading. > > SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and > JZ4780 have a 64-bit OST. > > This driver will register both a clocksour

Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2019-01-23 Thread Guenter Roeck
On 1/23/19 4:58 AM, Mathieu Malaterre wrote: On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil wrote: From: Maarten ter Huurne OST is the OS Timer, a 64-bit timer/counter with buffered reading. SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and JZ4780 have a 64-bit OST. This dri

Re: [PATCH v4] kbuild: Add support for DT binding schema checks

2019-01-23 Thread Geert Uytterhoeven
Hi Rob, On Tue, Dec 11, 2018 at 9:24 PM Rob Herring wrote: > This adds the build infrastructure for checking DT binding schema > documents and validating dts files using the binding schema. > > Check DT binding schema documents: > make dt_binding_check > > Build dts files and check using DT bindi

Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2019-01-23 Thread Paul Cercueil
Hi, Le mer. 23 janv. 2019 à 11:31, Guenter Roeck a écrit : On 1/23/19 4:58 AM, Mathieu Malaterre wrote: On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil wrote: From: Maarten ter Huurne OST is the OS Timer, a 64-bit timer/counter with buffered reading. SoCs before the JZ4770 had (if any) a

Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2019-01-23 Thread Paul Cercueil
(re-send, in plain text this time, sorry for those who got it twice) Le mer. 23 janv. 2019 à 9:58, Mathieu Malaterre a écrit : On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil wrote: From: Maarten ter Huurne OST is the OS Timer, a 64-bit timer/counter with buffered reading. SoCs before

Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2019-01-23 Thread Guenter Roeck
On Wed, Jan 23, 2019 at 02:25:53PM -0300, Paul Cercueil wrote: > Hi, > > Le mer. 23 janv. 2019 à 11:31, Guenter Roeck a écrit : > >On 1/23/19 4:58 AM, Mathieu Malaterre wrote: > >>On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil > >>wrote: > >>> > >>>From: Maarten ter Huurne > >>> > >>>OST is the

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

2019-01-23 Thread Aaro Koskinen
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 solutions, like block devices. > In fast, there is already a sample for block device l

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

2019-01-23 Thread Aaro Koskinen
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 do they not share > > features? > > We can show them what pstore/blk do. I think they will be i

[PATCH] doc:it_IT: update coding-style - expectations around bool

2019-01-23 Thread Federico Vaga
This patch translates in Italian the content of the following patch 7967656ffbfa coding-style: Clarify the expectations around bool Signed-off-by: Federico Vaga --- .../it_IT/process/coding-style.rst| 43 --- 1 file changed, 38 insertions(+), 5 deletions(-) diff --g

Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

2019-01-23 Thread Karim Yaghmour
On 1/22/19 2:39 PM, Joel Fernandes wrote: [snip] On Sun, Jan 20, 2019 at 06:49:56PM -0800, h...@zytor.com wrote: [snip] My point is that if we're going to actually solve a problem, we need to make it so that the distro won't just disable it anyway, and it ought to be something scalable; oth

Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

2019-01-23 Thread Daniel Colascione
On Wed, Jan 23, 2019 at 1:29 PM Karim Yaghmour wrote: > > By the way, we can easily write a script to just extract the .ko directly - > > if the whole "load it as a module" thing bothers you. The kheaders.ko can > > just be thought of as a tarball. There's already a script to extract > > /proc/con

Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

2019-01-23 Thread Joel Fernandes
On Wed, Jan 23, 2019 at 02:37:47PM -0800, Daniel Colascione wrote: > On Wed, Jan 23, 2019 at 1:29 PM Karim Yaghmour > wrote: [...] > > Personally I advocated a more aggressive approach with Joel in private: > > just put the darn headers straight into the kernel image, it's the > > *only* artifact

Re: [PATCH v3 1/2] kbuild: remove top-level built-in.a

2019-01-23 Thread Masahiro Yamada
On Thu, Jan 17, 2019 at 10:23 AM Masahiro Yamada wrote: > > The symbol table in the final archive is unneeded; the linker does not > require the symbol table after the --whole-archive option. Every object > file in the archive is included in the link anyway. > > Pass thin archives from subdirector