[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

[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

[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

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

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

[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

[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

[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

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

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:

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

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

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

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

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

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

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

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

[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

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

[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

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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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.

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

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

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

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: > >

[RFC PATCH-tip v4 08/10] locking/rwsem: Enable spinning readers

2016-08-19 Thread Waiman Long
This patch enables readers to optimistically spin when the rspin_threshold is non-zero. That threshold value should only be set when the lock owners of the rwsem are unlikely to go to sleep. Otherwise enabling reader spinning may make the performance worse in some cases. On a 4-socket Haswell

[RFC PATCH-tip v4 10/10] locking/rwsem: Add a boot parameter to reader spinning threshold

2016-08-19 Thread Waiman Long
The default reader spining threshold is current set to 4096. However, the right reader spinning threshold may vary from one system to another and among the different architectures. This patch adds a new kernel boot parameter to modify the threshold value. This enables better tailoring to the needs

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

2016-08-19 Thread Sonny Rao
On Thu, Aug 18, 2016 at 7:26 PM, 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

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

2016-08-19 Thread Sonny Rao
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 handling -- we'd

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

2016-08-19 Thread Sonny Rao
On Thu, Aug 18, 2016 at 2:05 PM, Robert Foss wrote: > > > On 2016-08-18 02:01 PM, 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,