[PATCH v2] replace timeconst bc script with an sh script

2019-06-20 Thread Ethan Sommer
removes the bc build dependency introduced when timeconst.pl was replaced by timeconst.bc: 70730bca1331 ("kernel: Replace timeconst.pl with a bc script") Signed-off-by: Ethan Sommer --- Documentation/process/changes.rst | 6 -- Kbuild| 4 +- kernel/time/timeconst.

Re: [PATCH v2] replace timeconst bc script with an sh script

2019-06-20 Thread Borislav Petkov
On Thu, Jun 20, 2019 at 04:11:32AM -0400, Ethan Sommer wrote: > removes the bc build dependency introduced when timeconst.pl was > replaced by timeconst.bc: > 70730bca1331 ("kernel: Replace timeconst.pl with a bc script") I don't see you answering Kieran's questions anywhere... -- Regards/Gruss,

Re: [PATCH v2 02/29] docs: lcd-panel-cgram.txt: convert docs to ReST and rename to *.rst

2019-06-20 Thread Miguel Ojeda
On Wed, Jun 19, 2019 at 1:15 AM Mauro Carvalho Chehab wrote: > > Yeah, the plan is to move all text files inside Documentation/ to .rst[1]. > > [1] There are some exceptions: for ABI and features, the current plan > is to have a script that parses their strict formats and produce > a ReST output.

Re: [PATCH v2] replace timeconst bc script with an sh script

2019-06-20 Thread Ethan Sommer
(resend because I didn't know gmail would make it html) Ah sorry about that, I accidentally replied to Kieran only instead of to all, my response was "I will upload a patch with those issues fixed shortly, in terms of the dependency as far as I know commands only required for running tests don't co

Re: [PATCH v2] replace timeconst bc script with an sh script

2019-06-20 Thread Borislav Petkov
On Thu, Jun 20, 2019 at 04:29:19AM -0400, Ethan Sommer wrote: > Ah sorry about that, I accidentally replied to Kieran only instead of to > all, my response was "I will upload a patch with those issues fixed > shortly, in terms of the dependency as far as I know commands only required > for running

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Johan Hovold
On Wed, Jun 19, 2019 at 05:02:07PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 19, 2019 at 10:56:33AM -0300, Mauro Carvalho Chehab wrote: > > Hi Johan, > > > > Em Wed, 19 Jun 2019 14:51:35 +0200 > > Johan Hovold escreveu: > > > > > On Thu, Jun 13, 2019 at 11:04:10PM -0300, Mauro Carvalho Cheh

[PATCH] scripts/sphinx-pre-install: fix out-of-tree build

2019-06-20 Thread Mike Rapoport
Build of htmldocs fails for out-of-tree builds: $ make V=1 O=~/build/kernel/ htmldocs make -C /home/rppt/build/kernel -f /home/rppt/git/linux-docs/Makefile htmldocs make[1]: Entering directory '/home/rppt/build/kernel' make -f /home/rppt/git/linux-docs/scripts/Makefile.build obj=scripts/basic rm -

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Greg Kroah-Hartman
On Thu, Jun 20, 2019 at 02:01:50PM +0200, Johan Hovold wrote: > > I don't know when "Description" and "RST-Description" would be used. > > Why not just parse "Description" like rst text and if things are "messy" > > we fix them up as found, like you did with the ":" here? It doesn't > > have to be

Re: [Linux-kernel-mentees] [PATCH] Documentation: platform: convert x86-laptop-drivers.txt to reST

2019-06-20 Thread Shuah Khan
On 6/20/19 12:19 AM, Andy Shevchenko wrote: On Tue, Jun 18, 2019 at 6:06 PM Shuah Khan wrote: On 6/18/19 7:39 AM, Greg KH wrote: On Tue, Jun 18, 2019 at 07:17:17AM -0600, Jonathan Corbet wrote: On Tue, 18 Jun 2019 07:41:58 +0200 Greg KH wrote: On Tue, Jun 18, 2019 at 11:02:27AM +0530, Puran

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Mauro Carvalho Chehab
Em Thu, 20 Jun 2019 14:54:13 +0200 Greg Kroah-Hartman escreveu: > On Thu, Jun 20, 2019 at 02:01:50PM +0200, Johan Hovold wrote: > > > I don't know when "Description" and "RST-Description" would be used. > > > Why not just parse "Description" like rst text and if things are "messy" > > > we fix th

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Mauro Carvalho Chehab
Em Wed, 19 Jun 2019 13:14:08 -0300 Mauro Carvalho Chehab escreveu: > Em Wed, 19 Jun 2019 17:02:07 +0200 > Greg Kroah-Hartman escreveu: > > > On Wed, Jun 19, 2019 at 10:56:33AM -0300, Mauro Carvalho Chehab wrote: > > > Hi Johan, > > > > > > Em Wed, 19 Jun 2019 14:51:35 +0200 > > > Johan Hovol

[PATCH next] softirq: enable MAX_SOFTIRQ_TIME tuning with sysctl max_softirq_time_usecs

2019-06-20 Thread Zhiqiang Liu
From: Zhiqiang liu In __do_softirq func, MAX_SOFTIRQ_TIME was set to 2ms via experimentation by commit c10d73671 ("softirq: reduce latencies") in 2013, which was designed to reduce latencies for various network workloads. The key reason is that the maximum number of microseconds in one NAPI polli

Re: [PATCH] scripts/sphinx-pre-install: fix out-of-tree build

2019-06-20 Thread Mauro Carvalho Chehab
Em Thu, 20 Jun 2019 15:43:57 +0300 Mike Rapoport escreveu: > Build of htmldocs fails for out-of-tree builds: > > $ make V=1 O=~/build/kernel/ htmldocs > make -C /home/rppt/build/kernel -f /home/rppt/git/linux-docs/Makefile htmldocs > make[1]: Entering directory '/home/rppt/build/kernel' > make -

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Greg Kroah-Hartman
On Thu, Jun 20, 2019 at 11:20:34AM -0300, Mauro Carvalho Chehab wrote: > Em Thu, 20 Jun 2019 14:54:13 +0200 > Greg Kroah-Hartman escreveu: > > > On Thu, Jun 20, 2019 at 02:01:50PM +0200, Johan Hovold wrote: > > > > I don't know when "Description" and "RST-Description" would be used. > > > > Why n

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Mauro Carvalho Chehab
Em Thu, 20 Jun 2019 18:29:45 +0200 Greg Kroah-Hartman escreveu: > On Thu, Jun 20, 2019 at 11:20:34AM -0300, Mauro Carvalho Chehab wrote: > > Em Thu, 20 Jun 2019 14:54:13 +0200 > > Greg Kroah-Hartman escreveu: > > > > > On Thu, Jun 20, 2019 at 02:01:50PM +0200, Johan Hovold wrote: > > > > >

[PATCH v2 17/22] docs: kernel_abi.py: Update copyrights

2019-06-20 Thread Mauro Carvalho Chehab
As Markus doesn't want to maintain ths file, update it to put me as its maintainer. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_

[PATCH v2 08/22] scripts/get_abi.pl: represent what in tables

2019-06-20 Thread Mauro Carvalho Chehab
Several entries at the ABI have multiple What: with the same description. Instead of showing those symbols as sections, let's show them as tables. That makes easier to read on the final output, and avoid too much recursion at Sphinx parsing. We need to put file references at the end, as we don't

[PATCH v2 00/22] Add ABI and features docs to the Kernel documentation

2019-06-20 Thread Mauro Carvalho Chehab
This is a rebased version of the scripts with parse Documentation/ABI and Documentation/feature files and produce a ReST output. Those scripts are added to the Kernel building system, in order to output their contents inside the Kernel documentation. Please notice that, as discussed, I added suppo

[PATCH v2 19/22] scripts: add a script to handle Documentation/features

2019-06-20 Thread Mauro Carvalho Chehab
The Documentation/features contains a set of parseable files. It is not worth converting them to ReST format, as they're useful the way it is. It is, however, interesting to parse them and produce output on different formats: 1) Output the contents of a feature in ReST format; 2) Output what feat

[PATCH v2 04/22] scripts/get_abi.pl: parse files with text at beginning

2019-06-20 Thread Mauro Carvalho Chehab
It sounds usefult o parse files with has some text at the beginning. Add support for it. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 59 ++ 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/ge

[PATCH v2 18/22] doc: ABI scripts: add a SPDX header file

2019-06-20 Thread Mauro Carvalho Chehab
Both are released under GPL v2. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 1 + scripts/get_abi.pl | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py index ef91b1e1ff4b.

[PATCH v2 16/22] docs: Kconfig/Makefile: add a check for broken ABI files

2019-06-20 Thread Mauro Carvalho Chehab
The files under Documentation/ABI should follow the syntax as defined at Documentation/ABI/README. Allow checking if they're following the syntax by running the ABI parser script on COMPILE_TEST. With that, when there's a problem with a file under Documentation/ABI, it would produce a warning lik

[PATCH v2 20/22] docs: admin-guide, x86: add a features list

2019-06-20 Thread Mauro Carvalho Chehab
Add a feature list matrix at the admin-guide and a x86-specific feature list to the respective Kernel books. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/features.rst | 3 + Documentation/admin-guide/index.rst| 1 + Documentation/conf.py | 2 +- D

[PATCH v2 10/22] scripts/get_abi.pl: avoid creating duplicate names

2019-06-20 Thread Mauro Carvalho Chehab
The file the Documentation/ABI/testing/sysfs-class-power has voltage_min, voltage_max and voltage_now symbols duplicated. They are defined first for "General Properties" and then for "USB Properties". This cause those warnings: get_abi.pl rest --dir $srctree/Documentation/ABI/testing:269

[PATCH v2 21/22] scripts/get_feat.pl: handle ".." special case

2019-06-20 Thread Mauro Carvalho Chehab
The status ".." Means that the feature can't be implemented on a given architecture. The problem is that this doesn't show anything at the output, so replace it by "---", with is a markup for a long hyphen. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_feat.pl | 2 ++ 1 file changed, 2 i

[PATCH v2 02/22] ABI: Fix KernelVersion tags

2019-06-20 Thread Mauro Carvalho Chehab
It is "KernelVersion:" and not "Kernel Version:". Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/pstore | 2 +- .../sysfs-bus-event_source-devices-format | 2 +- .../ABI/testing/sysfs-bus-i2c-devices-hm6352 | 6 ++--- .../testing/sysfs-bus-pci-devices-aer

[PATCH v2 13/22] doc-rst: add ABI documentation to the admin-guide book

2019-06-20 Thread Mauro Carvalho Chehab
As we don't want a generic Sphinx extension to execute commands, change the one proposed to Markus to call the abi_book.pl script. Use a script to parse the Documentation/ABI directory and output it at the admin-guide. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi-obsol

[PATCH v2 22/22] scripts/get_abi.pl: change script to allow parsing in ReST mode

2019-06-20 Thread Mauro Carvalho Chehab
Right now, several ABI files won't parse as ReST, as they contain severe violations to the spec, with makes the script to crash. So, the code has a sanity logic with escapes bad code and cleans tags that can cause Sphinx to crash. Add support for disabling this mode. Right now, as enabling rst-m

[PATCH v2 01/22] ABI: sysfs-bus-pci-devices-aer_stats uses an invalid tag

2019-06-20 Thread Mauro Carvalho Chehab
According with Documentation/ABI/, the right tag to describe an ABI symbol is "What:", and not "Where:". Signed-off-by: Mauro Carvalho Chehab --- .../ABI/testing/sysfs-bus-pci-devices-aer_stats | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/AB

[PATCH v2 05/22] scripts/get_abi.pl: avoid use literal blocks when not needed

2019-06-20 Thread Mauro Carvalho Chehab
The usage of literal blocks make the document very complex, causing the browser to take a long time to load. On most ABI descriptions, they're a plain text, and don't require a literal block. So, add a logic there with identifies when a literal block is needed. As, on literal blocks, we need to

[PATCH v2 12/22] scripts/get_abi.pl: add a validate command

2019-06-20 Thread Mauro Carvalho Chehab
Sometimes, we just want the parser to retrieve all symbols from ABI, in order to check for parsing errors. So, add a new "validate" command. While here, update the man/help pages. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 16 +--- 1 file changed, 9 insertions(+),

[PATCH v2 06/22] scripts/get_abi.pl: split label naming from xref logic

2019-06-20 Thread Mauro Carvalho Chehab
Instead of using a ReST compilant label while parsing, move the label to ReST output. That makes the parsing logic more generic, allowing it to provide other types of output. As a side effect, now all files used to generate the output will be output. We can later add command line arguments to filt

[PATCH v2 07/22] scripts/get_abi.pl: add support for searching for ABI symbols

2019-06-20 Thread Mauro Carvalho Chehab
Change its syntax to allow switching between ReST output mode and a new search mode, with allows to seek for ABI symbols using regex. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 112 + 1 file changed, 103 insertions(+), 9 deletions(-)

[PATCH v2 03/22] scripts: add an script to parse the ABI files

2019-06-20 Thread Mauro Carvalho Chehab
Add a script to parse the Documentation/ABI files and produce an output with all entries inside an ABI (sub)directory. Right now, it outputs its contents on ReST format. It shouldn't be hard to make it produce other kind of outputs, since the ABI file parser is implemented in separate than the out

[PATCH v2 15/22] sphinx/kernel_abi.py: make it compatible with Sphinx 1.7+

2019-06-20 Thread Mauro Carvalho Chehab
The same way kerneldoc.py needed changes to work with newer Sphinx, this script needs the same changes. While here, reorganize the include order to match kerneldoc.py. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 39 +- 1 file changed

[PATCH v2 09/22] scripts/get_abi.pl: fix parse issues with some files

2019-06-20 Thread Mauro Carvalho Chehab
A few files are failing to parse: Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats Documentation/ABI/testing/sysfs-class-pktcdvd Documentation/ABI/testing/sysfs-bus-nfit On all three files, the problem is that there is a ":" character at the initial file descripti

[PATCH v2 11/22] scripts/get_abi.pl: add a handler for invalid "where" tag

2019-06-20 Thread Mauro Carvalho Chehab
The ABI README file doesn't provide any meaning for a Where: tag. Yet, a few ABI symbols use it. So, make the parser handle it, emitting a warning. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/get_abi.pl b/scripts/g

[PATCH v2 14/22] docs: sphinx/kernel_abi.py: fix UTF-8 support

2019-06-20 Thread Mauro Carvalho Chehab
The parser breaks with UTF-8 characters with Sphinx 1.4. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-20 Thread Greg Kroah-Hartman
On Thu, Jun 20, 2019 at 02:16:28PM -0300, Mauro Carvalho Chehab wrote: > Em Thu, 20 Jun 2019 18:29:45 +0200 > Greg Kroah-Hartman escreveu: > > > On Thu, Jun 20, 2019 at 11:20:34AM -0300, Mauro Carvalho Chehab wrote: > > > Em Thu, 20 Jun 2019 14:54:13 +0200 > > > Greg Kroah-Hartman escreveu: > >

Re: [PATCH v2 01/22] ABI: sysfs-bus-pci-devices-aer_stats uses an invalid tag

2019-06-20 Thread Bjorn Helgaas
On Thu, Jun 20, 2019 at 12:23 PM Mauro Carvalho Chehab wrote: > > According with Documentation/ABI/, the right tag to describe > an ABI symbol is "What:", and not "Where:". > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Bjorn Helgaas I assume somebody else will merge this series as a whole

Re: [PATCH v2 02/22] ABI: Fix KernelVersion tags

2019-06-20 Thread Kees Cook
On Thu, Jun 20, 2019 at 02:22:54PM -0300, Mauro Carvalho Chehab wrote: > It is "KernelVersion:" and not "Kernel Version:". > > Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Kees Cook -Kees > --- > Documentation/ABI/testing/pstore | 2 +- > .../sysfs-bus-event_source-devices

[PATCH v2] Documentation: platform: Delete x86-laptop-drivers.txt

2019-06-20 Thread Puranjay Mohan
The list of laptops supported by drivers in PDx86 subsystem is quite big and growing. x86-laptop-drivers.txt contains details of very few laptop models. Remove it because it does not serve any purpose. Signed-off-by: Puranjay Mohan --- Documentation/platform/x86-laptop-drivers.txt | 18

Re: [PATCH v2] Documentation: platform: Delete x86-laptop-drivers.txt

2019-06-20 Thread Andy Shevchenko
On Thu, Jun 20, 2019 at 9:38 PM Puranjay Mohan wrote: > > The list of laptops supported by drivers in PDx86 subsystem is quite > big and growing. x86-laptop-drivers.txt contains details of very few > laptop models. Remove it because it does not serve any purpose. > Acked-by: Andy Shevchenko >

Re: [PATCH] docs: fb: Add TER16x32 to the available font names

2019-06-20 Thread Jonathan Corbet
On Wed, 19 Jun 2019 07:39:43 +0200 Takashi Iwai wrote: > The new font is available since recently. > > Signed-off-by: Takashi Iwai > --- > Documentation/fb/fbcon.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/fb/fbcon.rst b/Documentation/fb/fbcon.rs

Re: [PATCH 4/6] time: hrtimer: use a bullet for the returns bullet list

2019-06-20 Thread Jonathan Corbet
On Tue, 18 Jun 2019 15:51:20 -0300 Mauro Carvalho Chehab wrote: > That gets rid of this warning: > > ./kernel/time/hrtimer.c:1119: WARNING: Block quote ends without a blank > line; unexpected unindent. > > and displays nicely both at the source code and at the produced > documentation. >

Re: [PATCH 1/6] docs: trace: fix a broken label

2019-06-20 Thread Jonathan Corbet
On Tue, 18 Jun 2019 15:51:17 -0300 Mauro Carvalho Chehab wrote: > Sphinx warnings about his: > > Documentation/trace/kprobetrace.rst:68: WARNING: undefined label: > user_mem_access (if the link has no caption the label must precede a section > header) > > The problem is quite simple: Sp

Re: [PATCH 2/6] docs: trace: add a missing blank line

2019-06-20 Thread Jonathan Corbet
On Tue, 18 Jun 2019 15:51:18 -0300 Mauro Carvalho Chehab wrote: > Sphinx expects a blank line after a literal block markup. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/trace/kprobetrace.rst | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/trace/kprobet

Re: [PATCH 3/6] lib: list_sort.c: add a blank line to avoid kernel-doc warnings

2019-06-20 Thread Jonathan Corbet
On Tue, 18 Jun 2019 15:51:19 -0300 Mauro Carvalho Chehab wrote: > In order for a list to be recognized as such, blank lines > are required. > > Solve those Sphinx warnings: > > ./lib/list_sort.c:162: WARNING: Unexpected indentation. > ./lib/list_sort.c:163: WARNING: Block quote ends without a b

Re: [PATCH] docs: stop suggesting strlcpy

2019-06-20 Thread Jonathan Corbet
On Thu, 13 Jun 2019 18:25:48 +0200 Stephen Kitt wrote: > Since strlcpy is deprecated, the documentation shouldn't suggest using > it. This patch fixes the examples to use strscpy instead. It also uses > sizeof instead of underlying constants as far as possible, to simplify > future changes to the

Re: [PATCH 4/6] time: hrtimer: use a bullet for the returns bullet list

2019-06-20 Thread Mauro Carvalho Chehab
Em Thu, 20 Jun 2019 14:02:33 -0600 Jonathan Corbet escreveu: > On Tue, 18 Jun 2019 15:51:20 -0300 > Mauro Carvalho Chehab wrote: > > > That gets rid of this warning: > > > > ./kernel/time/hrtimer.c:1119: WARNING: Block quote ends without a blank > > line; unexpected unindent. > > > > and

Re: [PATCH 0/4] Documentation: x86: resctrl_ui.txt fixes and clarification

2019-06-20 Thread Jonathan Corbet
On Fri, 7 Jun 2019 16:14:05 +0100 James Morse wrote: > While updating resctrl_ui.rst for arm64 support these things stuck > out as being unclear or no longer true. > > (I've shortened the CC list to just RDT+Documentation) > > > Thanks, > > James Morse (4): > Documentation: x86: Contiguous

Re: [PATCH] doc-rst: Add missing newline at end of file

2019-06-20 Thread Jonathan Corbet
On Mon, 17 Jun 2019 16:34:00 +0200 Geert Uytterhoeven wrote: > "git diff" says: > > \ No newline at end of file > > after modifying the file. > > Signed-off-by: Geert Uytterhoeven Applied, thanks. jon