[PATCH v3 3/6] coresight: Support panic kdump functionality

2017-12-21 Thread Leo Yan
After kernel panic happens, coresight has many useful info can be used for analysis. For example, the trace info from ETB RAM can be used to check the CPU execution flows before crash. So we can save the tracing data from sink devices, and rely on kdump to save DDR content and uses "crash" tool

[PATCH v3 6/6] coresight: etm4x: Support panic kdump

2017-12-21 Thread Leo Yan
ETMv4 hardware information and configuration needs to be saved as metadata; these metadata should be compatible with tool 'perf' and can be used for tracing data analysis. ETMv4 usually works as tracer per CPU, we cannot wait to gather ETM info after the CPU has been panic and cannot execute dump

[PATCH v3 4/6] coresight: tmc: Hook callback for panic kdump

2017-12-21 Thread Leo Yan
Since the panic kdump functionality has been ready, this patch is to hook panic callback function for ETB/ETF. Since the driver data structure has allocated buffer when the session started, so simply save ETB/ETF trace data into the buffer when panic happens and update related info into dump

[PATCH v3 5/6] coresight: Add and delete sink callback for panic kdump list

2017-12-21 Thread Leo Yan
If the sink device has panic kdump callback, this means the sink device wants to save tracing data for panic happening. This commit adds node into panic kdump list when the sink device is enabled, and delete node when the sink device is disabled. Signed-off-by: Leo Yan ---

[PATCH v3 2/6] doc: Add documentation for Coresight panic kdump

2017-12-21 Thread Leo Yan
Add detailed documentation for Coresight panic kdump, which contains the idea for why need this and introduce the framework implementation and usage. Signed-off-by: Leo Yan --- .../trace/coresight/coresight-panic-kdump.txt | 91 ++ MAINTAINERS

[PATCH v3 1/6] doc: Add Coresight documentation directory

2017-12-21 Thread Leo Yan
For easily management and friendly adding more Coresight related documentations, this commit creates one dedicated directory: Documentation/trace/coresight. It moves Coresight related docs into this new directory and updates MAINTAINERS file to reflect docs movement. Signed-off-by: Leo Yan

[PATCH v3 0/6] Coresight: support panic kdump

2017-12-21 Thread Leo Yan
This patch set is to explore Coresight trace data for postmortem debugging. When kernel panic happens, the Coresight panic kdump can help save on-chip trace data and tracer metadata into DRAM, later relies on kdump and crash/perf for "offline" analysis. The documentation is important to

Re: Distress Call Please don't ignore

2017-12-21 Thread Sandra Younes
Good Day, Forgive my indignation if this message comes to you as a surprise and may offend your personality for contacting you without your prior consent and writing through this channel. I came across your name and contact on the course of my personal searching when i was searching for a

Re: [PATCH v4 16/18] scripts: kernel-doc: improve nested logic to handle multiple identifiers

2017-12-21 Thread kbuild test robot
Hi Mauro, I love your patch! Perhaps something to improve: [auto build test WARNING on lwn/docs-next] [also build test WARNING on v4.15-rc4 next-20171221] [cannot apply to linus/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2017-12-21 Thread Boris Brezillon
On Wed, 20 Dec 2017 12:06:45 -0600 Rob Herring wrote: > On Sat, Dec 16, 2017 at 07:35:37PM +0100, Boris Brezillon wrote: > > On Sat, 16 Dec 2017 11:20:40 -0600 > > Rob Herring wrote: > > > > > On Thu, Dec 14, 2017 at 04:16:08PM +0100, Boris Brezillon wrote:

Re: [PATCH v2 0/2] mux: add overview and add to driver-api docs

2017-12-21 Thread Jonathan Corbet
On Tue, 12 Dec 2017 09:46:31 +0100 Peter Rosin wrote: > Changes since v1: > - added a short introductory paragraph to mux.rst > - added an entry in MAINTAINERS. > > I forgot to mention that this applies on top of linux-next, I suspect > there will be a trivial conflict with an

Re: [PATCH v4 0/3] doc: update printk documentation

2017-12-21 Thread Tobin C. Harding
On Thu, Dec 21, 2017 at 12:21:41PM -0700, Jonathan Corbet wrote: > On Wed, 20 Dec 2017 08:17:14 +1100 > "Tobin C. Harding" wrote: > > > This set converts printk-formats.txt -> core-api/printk-formats.rst > > > > We also update the documentation around printing kernel addresses. >

Re: [PATCH v4 0/3] doc: update printk documentation

2017-12-21 Thread Tobin C. Harding
On Thu, Dec 21, 2017 at 11:26:22AM -0800, Randy Dunlap wrote: > On 12/21/2017 11:21 AM, Jonathan Corbet wrote: > > On Wed, 20 Dec 2017 08:17:14 +1100 > > "Tobin C. Harding" wrote: > > > >> This set converts printk-formats.txt -> core-api/printk-formats.rst > >> > >> We also update

Re: [PATCH v4 00/18] kernel-doc: add supported to document nested structs

2017-12-21 Thread Mauro Carvalho Chehab
Em Thu, 21 Dec 2017 14:08:43 -0700 Jonathan Corbet escreveu: > On Mon, 18 Dec 2017 10:30:01 -0200 > Mauro Carvalho Chehab wrote: > > > This is a rebased version of my patch series that add support for > > nested structs on kernel-doc. With this

Re: [PATCH v2 0/2] mux: add overview and add to driver-api docs

2017-12-21 Thread Peter Rosin
On 2017-12-21 22:35, Jonathan Corbet wrote: > On Tue, 12 Dec 2017 09:46:31 +0100 > Peter Rosin wrote: > >> Changes since v1: >> - added a short introductory paragraph to mux.rst >> - added an entry in MAINTAINERS. >> >> I forgot to mention that this applies on top of linux-next,

Re: [RFC PATCH] mm: memcontrol: memory+swap accounting for cgroup-v2

2017-12-21 Thread Tejun Heo
Hello, Shakeel. On Wed, Dec 20, 2017 at 05:15:41PM -0800, Shakeel Butt wrote: > Let's say we have a job that allocates 100 MiB memory and suppose 80 > MiB is anon and 20 MiB is non-anon (file & kmem). > > [With memsw] Scheduler sets the memsw limit of the job to 100 MiB and > memory to max. Now

Re: [PATCH v2] i2c: update i2c-dev.h warning in documentation

2017-12-21 Thread Jonathan Corbet
On Thu, 21 Dec 2017 23:49:16 +0300 Cengiz Can wrote: > I've ditched claws-mail and will use git send-mail instead. FWIW, I use claws for patch mailing and more. It can be made to work, you just need to tweak the options a bit. The trick is to send patches to yourself and

Re: [PATCH v4 00/18] kernel-doc: add supported to document nested structs

2017-12-21 Thread Jonathan Corbet
On Mon, 18 Dec 2017 10:30:01 -0200 Mauro Carvalho Chehab wrote: > This is a rebased version of my patch series that add support for > nested structs on kernel-doc. With this version, it won't produce anymore > hundreds of identical warnings, as patch 17 removes the

Re: [RFC PATCH] mm: memcontrol: memory+swap accounting for cgroup-v2

2017-12-21 Thread Shakeel Butt
On Thu, Dec 21, 2017 at 5:37 AM, Tejun Heo wrote: > Hello, Shakeel. > > On Wed, Dec 20, 2017 at 05:15:41PM -0800, Shakeel Butt wrote: >> Let's say we have a job that allocates 100 MiB memory and suppose 80 >> MiB is anon and 20 MiB is non-anon (file & kmem). >> >> [With memsw]

[PATCH 09/11] media: dvb-core: get rid of mmap reserved field

2017-12-21 Thread Mauro Carvalho Chehab
The "reserved" field was a way, used at V4L2 API, to add new data to existing structs without breaking userspace. However, there are now clever ways of doing that, without needing to add an uneeded overhead. So, get rid of them. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 07/11] media: dvb uAPI docs: document demux mmap/munmap syscalls

2017-12-21 Thread Mauro Carvalho Chehab
With the new dmx mmap interface, those two syscalls are now handled by the subsystem. Document them. This patch is based on the V4L2 text for those ioctls. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/dmx-mmap.rst | 116

[PATCH 02/11] media: videobuf2: Add new uAPI for DVB streaming I/O

2017-12-21 Thread Mauro Carvalho Chehab
From: Satendra Singh Thakur Adds a new uAPI for DVB to use streaming I/O which is implemented based on videobuf2, using those new ioctls: - DMX_REQBUFS: Request kernel to allocate buffers which count and size are dedicated by user. - DMX_QUERYBUF: Get

[PATCH 06/11] media: move videobuf2 to drivers/media/common

2017-12-21 Thread Mauro Carvalho Chehab
Now that VB2 is used by both V4L2 and DVB core, move it to the common part of the subsystem. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/common/Kconfig | 1 + drivers/media/common/Makefile | 2 +-

[PATCH 08/11] media: dvb uAPI docs: document mmap-related ioctls

2017-12-21 Thread Mauro Carvalho Chehab
5 new ioctls were added to the DVB demux API, in order to handle memory maped I/O. Add documentation for them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/dmx-expbuf.rst | 90 +++

[PATCH 11/11] media: dvb_vb2: add SPDX headers

2017-12-21 Thread Mauro Carvalho Chehab
This code is released under GPL. Add the corresponding SPDX headers. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-core/dvb_vb2.c | 1 + drivers/media/dvb-core/dvb_vb2.h | 2 ++ 2 files changed, 3 insertions(+) diff --git

[PATCH 03/11] media: vb2-core: add pr_fmt() macro

2017-12-21 Thread Mauro Carvalho Chehab
Simplify the pr_foo() macros by adding a pr_fmt() macro. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/v4l2-core/videobuf2-core.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git

[PATCH 10/11] fs: compat_ioctl: add new DVB demux ioctls

2017-12-21 Thread Mauro Carvalho Chehab
Use trivial handling for the new DVB demux ioctls, as none of them passes a pointer inside their structures. Signed-off-by: Mauro Carvalho Chehab --- fs/compat_ioctl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index

[PATCH 05/11] media: dvb_vb2: fix a warning about streamoff logic

2017-12-21 Thread Mauro Carvalho Chehab
The streamoff logic is causing those warnings: WARNING: CPU: 3 PID: 3382 at drivers/media/v4l2-core/videobuf2-core.c:1652 __vb2_queue_cancel+0x177/0x250 [videobuf2_core] Modules linked in: bnep fuse xt_CHECKSUM iptable_mangle tun ebtable_filter ebtables ip6table_filter ip6_tables xt_physdev

[PATCH 04/11] media: vb2-core: add a new warning about pending buffers

2017-12-21 Thread Mauro Carvalho Chehab
There's a logic at the VB2 core that produces a WARN_ON if there are still buffers waiting to be filled. However, it doesn't indicate what buffers are still opened, with makes harder to identify issues inside caller drivers. So, add a new pr_warn() pointing to such buffers. That, together with

[PATCH 01/11] media: vb2-core: Fix a bug about unnecessary calls to queue cancel and free

2017-12-21 Thread Mauro Carvalho Chehab
From: Satendra Singh Thakur When the func vb2_core_reqbufs is called first time after vb2_core_queue_init(), the condition q->memory != memory always gets satisfied, since q->memory was set to 0 at vb2_core_queue_init(). After the condition is true, unnecessary calls to

Re: [RFC PATCH] mm: memcontrol: memory+swap accounting for cgroup-v2

2017-12-21 Thread Tejun Heo
Hello, Shakeel. On Thu, Dec 21, 2017 at 07:22:20AM -0800, Shakeel Butt wrote: > I am claiming memory allocations under global pressure will be > affected by the performance of the underlying swap device. However > memory allocations under memcg memory pressure, with memsw, will not > be affected

Re: [PATCH v10 11/13] slimbus: qcom: Add Qualcomm Slimbus controller driver

2017-12-21 Thread Arnd Bergmann
> + > + ctrl->tx.base = dmam_alloc_coherent(>dev, > + (ctrl->tx.sl_sz * ctrl->tx.n), > + >tx.phy, GFP_KERNEL); > + if (!ctrl->tx.base) { > + ret = -ENOMEM; > + goto err; > +

Re: [PATCH v2] i2c: update i2c-dev.h warning in documentation

2017-12-21 Thread Cengiz Can
> Applied to the docs tree, thanks. Note that the patch was wrapped by your > mailer and I had to fix it up; that would be nice to avoid in the future. Thank you! I've ditched claws-mail and will use git send-mail instead. -- Cengiz Can -- To unsubscribe from this list: send the line

Re: [PATCH] Documentation/filesystems/vfat.txt: fix a remark that implies UCS2

2017-12-21 Thread Jonathan Corbet
On Mon, 18 Dec 2017 20:47:27 +0100 Adam Borowski wrote: > All non-historic operating systems support the full range of Unicode here, > thus you can make filenames for example in Gothic (̴̼͉ͅ), the other Gothic > (퓂ℯℴ퓌) or the third Gothic (헆햾허헐), or declare something as . >

Re: [PATCH 0/3] Documentation: more names to the enforcement statement

2017-12-21 Thread Jonathan Corbet
On Wed, 13 Dec 2017 13:52:52 +0100 Greg Kroah-Hartman wrote: > Here are 3 patches for the kernel-enforcement-statement file that came > in after the file was originally added to the kernel tree. Applied all three, thanks. jon -- To unsubscribe from this list: send

Re: [PATCH v4 0/3] doc: update printk documentation

2017-12-21 Thread Joe Perches
On Thu, 2017-12-21 at 12:21 -0700, Jonathan Corbet wrote: > On Wed, 20 Dec 2017 08:17:14 +1100 > "Tobin C. Harding" wrote: > > > This set converts printk-formats.txt -> core-api/printk-formats.rst > > > > We also update the documentation around printing kernel addresses. [] > >

Re: [PATCH] docs: fix process/submit-checklist.rst Sphinx warning

2017-12-21 Thread Jonathan Corbet
On Tue, 12 Dec 2017 11:46:51 +0100 Markus Heiser wrote: > add missing indent whitespace to list item, fixes the warning: > > - process/submit-checklist.rst:41: WARNING: Enumerated list ends without a > blank > line; unexpected unindent. > > Signed-off-by: Markus

Re: [PATCH v4 0/3] doc: update printk documentation

2017-12-21 Thread Jonathan Corbet
On Wed, 20 Dec 2017 08:17:14 +1100 "Tobin C. Harding" wrote: > This set converts printk-formats.txt -> core-api/printk-formats.rst > > We also update the documentation around printing kernel addresses. > > This is my first documentation conversion. Please do be hard on this >

Re: [PATCH v4 0/3] doc: update printk documentation

2017-12-21 Thread Randy Dunlap
On 12/21/2017 11:21 AM, Jonathan Corbet wrote: > On Wed, 20 Dec 2017 08:17:14 +1100 > "Tobin C. Harding" wrote: > >> This set converts printk-formats.txt -> core-api/printk-formats.rst >> >> We also update the documentation around printing kernel addresses. >> >> This is my first

Re: [PATCH 1/1] usb: doc: Update document for USB3 debug port usage

2017-12-21 Thread Jonathan Corbet
On Wed, 13 Dec 2017 13:07:44 +0800 Lu Baolu wrote: > Update Documentation/driver-api/usb/usb3-debug-port.rst. This update > includes the guide for using xHCI debug capability based TTY serial > link. > > Cc: Mathias Nyman > Cc: Greg

Re: [PATCH v4 0/3] doc: update printk documentation

2017-12-21 Thread Jonathan Corbet
On Thu, 21 Dec 2017 11:30:57 -0800 Joe Perches wrote: > > > - There's a dangling reference to printk-formats.txt in lib/vsprintf.c > >that we'll want to fix up. > > patch 1/3 updates that reference. It updates one of them - there were two, one of which remains. I'll

Re: [PATCH v2] i2c: update i2c-dev.h warning in documentation

2017-12-21 Thread Jonathan Corbet
On Tue, 12 Dec 2017 19:43:09 +0300 "Cengiz C." wrote: > `Documentation/i2c/dev-interface` gives examples for accessing i2c from > userspace. > > There's a note that warns developers about the two `i2c-dev.h` header > files which were shipped with the kernel and i2c-tools

Re: [PATCH] docs: ftrace-uses.rst fix varios code-block directives

2017-12-21 Thread Jonathan Corbet
On Tue, 12 Dec 2017 11:22:25 +0100 Markus Heiser wrote: > ftrace-uses.rst is not yet included into any toctree, but since it is > a .rst file, it is parsed by the Sphinx build. Thats, why we see some > WARNINGS: > > - trace/ftrace-uses.rst:53: WARNING: Definition list