Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-19 Thread Michal Hocko
On Thu 18-08-16 23:43:39, Sonny Rao wrote: > On Thu, Aug 18, 2016 at 11:01 AM, Michal Hocko wrote: > > On Thu 18-08-16 10:47:57, Sonny Rao wrote: > >> On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: > >> > On Wed 17-08-16 11:57:56, Sonny Rao wrote: > > [...] > >> >> 2) User space OOM handli

Re: livepatch/x86: apply alternatives and paravirt patches after relocations

2016-08-19 Thread Petr Mladek
On Thu 2016-08-18 14:03:13, Jessica Yu wrote: > +++ Petr Mladek [18/08/16 11:51 +0200]: > >On Wed 2016-08-17 20:58:29, Jessica Yu wrote: > >>Implement arch_klp_init_object_loaded() for x86, which applies > >>alternatives/paravirt patches. This fixes the order in which relocations > >>and alternativ

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-19 Thread Michal Hocko
On Fri 19-08-16 11:26:34, Minchan Kim wrote: > Hi Michal, > > On Thu, Aug 18, 2016 at 08:01:04PM +0200, Michal Hocko wrote: > > On Thu 18-08-16 10:47:57, Sonny Rao wrote: > > > On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: > > > > On Wed 17-08-16 11:57:56, Sonny Rao wrote: > > [...] > > >

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-19 Thread Markus Heiser
Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : > On Sat, 13 Aug 2016 16:12:42 +0200 > Markus Heiser wrote: > >> Add a generic way to build only a reST sub-folder with or >> without a individual *build-theme*. >> >> * control *sub-folders* by environment SPHINXDIRS >> * control *build-theme*

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-19 Thread Jani Nikula
On Fri, 19 Aug 2016, Markus Heiser wrote: > Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : > * the pdf goes to the "latex" folder .. since this is WIP > and there are different solutions conceivable ... I left > it open for the first. Mea culpa. As I said, I intended my patches as RFC only.

[PATCH] docs-rst: conf.py: adjust the size of .. note:: tag

2016-08-19 Thread Mauro Carvalho Chehab
While the current implementation works well when using as a paragraph, it doesn't work properly if inside a table. As we have quite a few such cases, fix the logic to take the column size into account. PS.: I took the logic there from the latest version of Sphinx.sty Signed-off-by: Mauro Carvalho

Re: [RFC PATCH 0/3] Documentation: switch to pdflatex and fix pdf build

2016-08-19 Thread Jani Nikula
On Tue, 16 Aug 2016, Mauro Carvalho Chehab wrote: > 5) At media docs, some tables will only print ok in landscape. > > After making the media books build, I think that the best way is to > use xelatex instead of pdfdocs. Visually, xelatex output is, IMHO, > nice - and it has colors :-) > > It seem

[PATCH 07/15] [media] vidioc-g-tuner.rst: Fix tables to fit at LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
Several tables are missing column definitions and/or are too big to fit into the page. Adjust them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-g-tuner.rst | 32 ++--- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/Documentatio

[PATCH 15/15] [media] gen-errors.rst fix error table column limits

2016-08-19 Thread Mauro Carvalho Chehab
Fix the generic errors table to avoid column overflows on LaTeX output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/gen-errors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/media/uapi/gen-errors.rst b/Documentation/media/uapi/gen-err

[PATCH 14/15] [media] uapi/cec: adjust tables on LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
Fix tables to avoid text to overflow the cell limits. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/cec/cec-ioc-adap-g-caps.rst | 4 ++-- .../media/uapi/cec/cec-ioc-adap-g-log-addrs.rst| 6 -- Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 23 +--

[PATCH 01/15] [media] vidioc-dqevent.rst: adjust two table columns for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
There are two tables with mangled columns. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-dqevent.rst | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/media/uapi/v4l/vidioc-dqevent.rst b/Documentation/media/uapi/v4l/vi

[PATCH 09/15] [media] fe_property_parameters.rst: Adjust column sizes

2016-08-19 Thread Mauro Carvalho Chehab
Add position hints for some tables, in order for them to be shown properly on LaTeX output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/fe_property_parameters.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/media/uapi/dvb/fe_property_parameters.

[PATCH 11/15] [media] media-types.rst: adjust tables to fit on LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
A few tables at the media uAPI documentation have columns not well dimentioned. Adjust them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/mediactl/media-types.rst | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/media/uapi/med

[PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Mauro Carvalho Chehab
There are some things there that aren't ok for ReST format. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/kapi/cec-core.rst | 145 ++ 1 file changed, 93 insertions(+), 52 deletions(-) diff --git a/Documentation/media/kapi/cec-core.rst b

[PATCH 04/15] [media] vidioc-g-sliced-vbi-cap.rst: make tables fit on LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
The tables don't fit at the page on this file. As noticed before, Sphinx (or LaTeX?) does a crap job on tables with cell span, and some work has to be done to make it fit. Move the see also reference to a footnote, break one paragraph into two and adjust the table columns to make it visible. Sign

[PATCH 03/15] [media] vidioc-enumstd.rst: adjust video standards table

2016-08-19 Thread Mauro Carvalho Chehab
This table is too big for LaTeX output, and lacks columns specs for LaTeX format. Also, it has a hidden column, as there are some cell spans with the wrong values. Fix it, so it can be displayed properly on LaTeX/PDF. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc

[PATCH 06/15] [media] vidioc-g-tuner.rst: improve documentation for tuner type

2016-08-19 Thread Mauro Carvalho Chehab
The tuner type table misses descriptions for each type. While most of stuff are obvious, the two SDR definitions aren't. So, add descriptions to all of them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-g-tuner.rst | 12 ++-- 1 file changed, 6 insertions(

[PATCH 02/15] [media] vidioc-dv-timings-cap.rst: Adjust LaTeX columns

2016-08-19 Thread Mauro Carvalho Chehab
Some tables are not properly displayed on LaTeX. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst b/

[PATCH 05/15] [media] adjust some vidioc-*rst tables with wrong columns

2016-08-19 Thread Mauro Carvalho Chehab
Adjust simple cases where the columns on some vidioc files are overriding their neighbours. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-dqevent.rst | 2 ++ Documentation/media/uapi/v4l/vidioc-enum-fmt.rst| 4 +++- Documentation/media/uapi/v4l/vi

[PATCH 12/15] [media] docs-rst: move cec kAPI documentation to the media book

2016-08-19 Thread Mauro Carvalho Chehab
The CEC kAPI documentation should also be part of the media book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/{cec.txt => media/kapi/cec-core.rst} | 0 Documentation/media/media_kapi.rst | 1 + 2 files changed, 1 insertion(+) rename Documentation/{cec.txt => media/kap

[PATCH 00/15] Fix (most of) the remaining issues with uAPI book and LaTeX

2016-08-19 Thread Mauro Carvalho Chehab
This patch series addresses (almost all) remaining issues of texts going out of the page width. There are just two places that need fixes: - Two big tables at Documentation/media/uapi/v4l/subdev-formats.rst; - some texts at Documentation/media/uapi/v4l/extended-controls.rst

[PATCH 10/15] [media] adjust remaining tables at DVB uAPI documentation

2016-08-19 Thread Mauro Carvalho Chehab
There are a few broken tables on LaTeX output at the DVB uAPI documentation. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/audio-fopen.rst| 2 ++ Documentation/media/uapi/dvb/ca-fopen.rst | 2 ++ Documentation/media/uapi/dvb/dmx-fread.rst

[PATCH 08/15] [media] fix v4l2-selection-*.rst tables for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
Adjust the tables there to fit inside the page margins. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/v4l2-selection-flags.rst | 1 + Documentation/media/uapi/v4l/v4l2-selection-targets.rst | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/media/uapi/

Re: [RFC PATCH 0/3] Documentation: switch to pdflatex and fix pdf build

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 15:54:37 +0300 Jani Nikula escreveu: > On Tue, 16 Aug 2016, Mauro Carvalho Chehab wrote: > > 5) At media docs, some tables will only print ok in landscape. > > > > After making the media books build, I think that the best way is to > > use xelatex instead of pdfdocs. Visually

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-19 Thread Mauro Carvalho Chehab
Em Thu, 18 Aug 2016 16:35:14 -0600 Jonathan Corbet escreveu: > On Sat, 13 Aug 2016 16:12:42 +0200 > Markus Heiser wrote: > > > Add a generic way to build only a reST sub-folder with or > > without a individual *build-theme*. > > > > * control *sub-folders* by environment SPHINXDIRS > > * contr

Re: [PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Hans Verkuil
On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote: There are some things there that aren't ok for ReST format. Fix them. Signed-off-by: Mauro Carvalho Chehab OK, so I posted a similar patch for this: https://patchwork.linuxtv.org/patch/36376/ It's part of one of my pull requests, but I g

Re: [PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 15:24:16 +0200 Hans Verkuil escreveu: > On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote: > > There are some things there that aren't ok for ReST format. > > > > Fix them. > > > > Signed-off-by: Mauro Carvalho Chehab > > OK, so I posted a similar patch for this: > > ht

Re: [PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 10:37:50 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 19 Aug 2016 15:24:16 +0200 > Hans Verkuil escreveu: > > > On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote: > > > There are some things there that aren't ok for ReST format. > > > > > > Fix them. > > > > > > Signe

[PATCH 2/2] [media] Fix a few additional tables at uAPI for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
There are still a few tables with wrong columns at the uAPI docs. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/fe-get-info.rst| 2 +- Documentation/media/uapi/dvb/fe_property_parameters.rst | 5 ++--- Documentation/media/uapi/v4l/buffer.rst

[PATCH 1/2] [media] docs-rst: fix warnings introduced by LaTeX patchset

2016-08-19 Thread Mauro Carvalho Chehab
Sphinx is really pedantic with respect to the order where table tags and references are created. Putting things at the wrong order causes troubles. The order that seems to work is: .. raw:: latex .. tabularcolumns:: .. _foo_name: .. cssclass: longtable

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-19 Thread Markus Heiser
Am 19.08.2016 um 14:49 schrieb Jani Nikula : > On Fri, 19 Aug 2016, Markus Heiser wrote: >> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : >> * the pdf goes to the "latex" folder .. since this is WIP >> and there are different solutions conceivable ... I left >> it open for the first. > > M

Re: [PATCH v9 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-19 Thread Jonathan Corbet
On Fri, 19 Aug 2016 08:33:21 +0800 "Zhou, Wenjian/周文剑" wrote: > I was also confused by maxcpus and nr_cpus before writing this patch. > I think it is a good choice to describe it in kernel-parameters.txt. > > Then, only two things need to be done I think. > One is move the above description to m

Re: [RFC PATCH-tip v4 07/10] locking/rwsem: Change RWSEM_WAITING_BIAS for better disambiguation

2016-08-19 Thread Waiman Long
On 08/19/2016 01:57 AM, Wanpeng Li wrote: 2016-08-19 5:11 GMT+08:00 Waiman Long: When the count value is in between 0 and RWSEM_WAITING_BIAS, there are 2 possibilities. Either a writer is present and there is no waiter count = 0x0001 or there are waiters and readers. There is no easy way

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-19 Thread Sonny Rao
On Fri, Aug 19, 2016 at 12:59 AM, Michal Hocko wrote: > On Thu 18-08-16 23:43:39, Sonny Rao wrote: >> On Thu, Aug 18, 2016 at 11:01 AM, Michal Hocko wrote: >> > On Thu 18-08-16 10:47:57, Sonny Rao wrote: >> >> On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: >> >> > On Wed 17-08-16 11:57:56

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-19 Thread Sonny Rao
On Fri, Aug 19, 2016 at 1:05 AM, Michal Hocko wrote: > On Fri 19-08-16 11:26:34, Minchan Kim wrote: >> Hi Michal, >> >> On Thu, Aug 18, 2016 at 08:01:04PM +0200, Michal Hocko wrote: >> > On Thu 18-08-16 10:47:57, Sonny Rao wrote: >> > > On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: >> > >

Re: [PATCH] kconfig-language: improve menuconfig usage description

2016-08-19 Thread Eugeniu Rosca
On Thu, Aug 18, 2016 at 03:25:24PM -0600, Jonathan Corbet wrote: > Hopefully you sent patches to fix up the broken menus? :) Hi Jonathan, Thanks for the merge. At least two related fixes have been recently mainlined: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=998c

[PATCH 5/6] [media] docs-rst: Convert LIRC uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation to make them to look more like the rest of the document. Signed-off-by: Mauro Carvalho Ch

[PATCH 3/6] [media] docs-rst: Convert DVB uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation, marking the deprecated ioctls, and making the non-deprecated ones more like the rest of t

[PATCH 0/6] Convert media uAPI to c domain

2016-08-19 Thread Mauro Carvalho Chehab
Those patches make usage of the new c-domain override extension written by Markus. They allow stopping abusing of the cpp domain to allow "overriding" the ioctl function, and converts all syscall documentation at the media uAPI book to c domain. Mauro Carvalho Chehab (6): [media] docs-next: stop

[PATCH 2/6] [media] docs-rst: Convert V4L2 uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/func-close.rst | 2 +- Documentation/media/

[PATCH 6/6] [media] docs-rst: Convert MC uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation to make them to look more like the rest of the document. Signed-off-by: Mauro Carvalho Ch

[PATCH 4/6] [media] docs-rst: Convert CEC uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation to make them to look more like the rest of the document. Signed-off-by: Mauro Carvalho Ch

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 17:52:07 +0200 Markus Heiser escreveu: > Am 19.08.2016 um 14:49 schrieb Jani Nikula : > > > On Fri, 19 Aug 2016, Markus Heiser wrote: > >> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : > >> * the pdf goes to the "latex" folder .. since this is WIP > >> and there are di

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 17:40:38 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 19 Aug 2016 17:52:07 +0200 > Markus Heiser escreveu: > > > After said this, what is your suggestion? For me its all equal, these > > are only my 2cent to this discussion :-) Forgot to mention, but I noticed that, so

[PATCH 2/3] [media] subdev-formats.rst: adjust tables size for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
There are two big tables here that are very hard to adjust its size. The first one would fit into one page, but the latex.py logic at Sphinx auto-switches to longtable when there are more than 30 rows. There's no way to override without coding. The second one is really big, and won't fit on a sin

[PATCH 3/3] cec-ioc-receive.rst: one table here should be longtable.

2016-08-19 Thread Mauro Carvalho Chehab
The table is too big to fit into a single page on LaTeX format. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/cec/cec-ioc-receive.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/media/uapi/cec/cec-ioc-receive.rst b/Documentation/media/uapi/cec/cec-ioc

[PATCH 1/3] [media] extended-controls.rst: avoid going past page with LaTeX

2016-08-19 Thread Mauro Carvalho Chehab
It is painful to put code/verbatim code in bold. It seems that the only way is to arrange it like: ``foo`` bar At least on LaTeX output, when this happens, the "foo" string is not hidentable/breakable. The entire string should fit into a single line. Add a workaround for this