[PATCH] Documentation: proc.txt: emphasize that iowait cannot be relied on

2019-07-12 Thread Alan Jenkins
CPU "iowait" time in /proc/stat does not work on my laptop. I saw the documentation mention several problems with "iowait". However each problem appeared to be qualified. It gave me the impression I could probably account for each problem. My impression was wrong. There are a couple of writeup

[PATCH] doc:it_IT: translations in process/

2019-07-12 Thread Federico Vaga
This patch add translations for: - programming-languages - kernel-docs (It is better to not translate this since English is a requirement to get something useful out of it) Signed-off-by: Federico Vaga --- .../translations/it_IT/process/index.rst | 1 + .../it_IT/process/kernel-docs.rst

RE: [PATCH v2 3/5] perf: stm32: ddrperfm driver creation

2019-07-12 Thread Gerald BAEZA
Hi Mark Thanks a lot for your review ! I started to rework the driver, based on your feedback but I have some questions for you: they are in line below... (where I also answer to your questions) Best regards GĂ©rald > -Original Message- > From: Mark Rutland > Sent: mercredi 26 juin

Re: [PATCH v7] Documentation: filesystem: Convert xfs.txt to ReST

2019-07-12 Thread Sheriff Esseson
Convert xfs.txt to ReST and fix broken references. Signed-off-by: Sheriff Esseson --- Changes in v7: - move xfs.rst to admin (Suggested by Matthew Wilcox). - Update admin index. - fix another typo (Caught by Matthew Wilcox). Documentation/admin-guide/index.rst

Re: [PATCH v2 0/3] x86/boot: Introduce the kernel_info et consortes

2019-07-12 Thread Daniel Kiper
On Thu, Jul 04, 2019 at 06:36:09PM +0200, Daniel Kiper wrote: > Hi, > > Due to very limited space in the setup_header this patch series introduces new > kernel_info struct which will be used to convey information from the kernel to > the bootloader. This way the boot protocol can be extended regard

Re: [PATCH] tpm: Document UEFI event log quirks

2019-07-12 Thread Jarkko Sakkinen
On Mon, Jul 08, 2019 at 01:43:14PM -0700, Matthew Garrett wrote: > On Wed, Jul 3, 2019 at 9:11 AM Jarkko Sakkinen > wrote: > > +Before calling ExitBootServices() Linux EFI stub copies the event log to > > +a custom configuration table defined by the stub itself. Unfortanely, > > +the events genera

[PATCH v2] tpm: Document UEFI event log quirks

2019-07-12 Thread Jarkko Sakkinen
There are some weird quirks when it comes to UEFI event log. Provide a brief introduction to TPM event log mechanism and describe the quirks and how they can be sorted out. Signed-off-by: Jarkko Sakkinen --- v2: Fixed one type, adjusted the last paragraph and added the file to index.rst Docu

[PATCH v3] tpm: Document UEFI event log quirks

2019-07-12 Thread Jarkko Sakkinen
There are some weird quirks when it comes to UEFI event log. Provide a brief introduction to TPM event log mechanism and describe the quirks and how they can be sorted out. Signed-off-by: Jarkko Sakkinen --- v3: Add a section and use bullet list for references. Remove (invalid) author info. v

Re: [PATCH v3] tpm: Document UEFI event log quirks

2019-07-12 Thread Randy Dunlap
On 7/12/19 5:49 AM, Jarkko Sakkinen wrote: > There are some weird quirks when it comes to UEFI event log. Provide a > brief introduction to TPM event log mechanism and describe the quirks > and how they can be sorted out. > > Signed-off-by: Jarkko Sakkinen > --- > v3: Add a section and use bullet

Re: [PATCH] treewide: Rename rcu_dereference_raw_notrace to _check

2019-07-12 Thread Paul E. McKenney
On Thu, Jul 11, 2019 at 04:45:41PM -0400, Joel Fernandes (Google) wrote: > The rcu_dereference_raw_notrace() API name is confusing. > It is equivalent to rcu_dereference_raw() except that it also does > sparse pointer checking. > > There are only a few users of rcu_dereference_raw_notrace(). This

Re: [PATCH] treewide: Rename rcu_dereference_raw_notrace to _check

2019-07-12 Thread Joel Fernandes
On Fri, Jul 12, 2019 at 08:01:07AM -0700, Paul E. McKenney wrote: > On Thu, Jul 11, 2019 at 04:45:41PM -0400, Joel Fernandes (Google) wrote: > > The rcu_dereference_raw_notrace() API name is confusing. > > It is equivalent to rcu_dereference_raw() except that it also does > > sparse pointer checkin

Re: [PATCH v3] tpm: Document UEFI event log quirks

2019-07-12 Thread Jarkko Sakkinen
On Fri, 2019-07-12 at 07:55 -0700, Randy Dunlap wrote: > +Before calling ExitBootServices() Linux EFI stub copies the event log to > > +a custom configuration table defined by the stub itself. Unfortanely, > > [again:]Unfortunately, Ugh, I'm sor

[PATCH v4] tpm: Document UEFI event log quirks

2019-07-12 Thread Jarkko Sakkinen
There are some weird quirks when it comes to UEFI event log. Provide a brief introduction to TPM event log mechanism and describe the quirks and how they can be sorted out. Signed-off-by: Jarkko Sakkinen --- v4: - Unfortanely -> Unfortunately v3: - Add a section for refs and use a bullet list to

Re: [PATCH v2 2/3] x86/boot: Introduce the setup_indirect

2019-07-12 Thread hpa
On July 4, 2019 9:36:11 AM PDT, Daniel Kiper wrote: >The setup_data is a bit awkward to use for extremely large data >objects, >both because the setup_data header has to be adjacent to the data >object >and because it has a 32-bit length field. However, it is important that >intermediate stages of

Re: [PATCH v2 3/3] x86/boot: Introduce the kernel_info.setup_type_max

2019-07-12 Thread hpa
On July 4, 2019 9:36:12 AM PDT, Daniel Kiper wrote: >This field contains maximal allowed type for setup_data and >setup_indirect structs. > >And finally bump setup_header version in arch/x86/boot/header.S. > >Suggested-by: H. Peter Anvin >Signed-off-by: Daniel Kiper >Reviewed-by: Ross Philipson

Re: [PATCH v2 1/3] x86/boot: Introduce the kernel_info

2019-07-12 Thread hpa
On July 4, 2019 9:36:10 AM PDT, Daniel Kiper wrote: >The relationships between the headers are analogous to the various data >sections: > > setup_header = .data > boot_params/setup_data = .bss > >What is missing from the above list? That's right: > > kernel_info = .rodata > >We have been (ab)us

[PATCH v2 0/9] Harden list_for_each_entry_rcu() and family

2019-07-12 Thread Joel Fernandes (Google)
Hi, This series aims to provide lockdep checking to RCU list macros for additional kernel hardening. RCU has a number of primitives for "consumption" of an RCU protected pointer. Most of the time, these consumers make sure that such accesses are under a RCU reader-section (such as rcu_dereference{

[PATCH v2 1/9] rcu/update: Remove useless check for debug_locks

2019-07-12 Thread Joel Fernandes (Google)
In rcu_read_lock_sched_held(), debug_locks can never be true at the point we check it because we already check debug_locks in debug_lockdep_rcu_enabled() in the beginning. Remove the check. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/update.c | 6 +- 1 file changed, 1 insertion(+),

[PATCH v2 2/9] rcu: Add support for consolidated-RCU reader checking

2019-07-12 Thread Joel Fernandes (Google)
This patch adds support for checking RCU reader sections in list traversal macros. Optionally, if the list macro is called under SRCU or other lock/mutex protection, then appropriate lockdep expressions can be passed to make the checks pass. Existing list_for_each_entry_rcu() invocations don't nee

[PATCH v2 4/9] ipv4: add lockdep condition to fix for_each_entry

2019-07-12 Thread Joel Fernandes (Google)
Signed-off-by: Joel Fernandes (Google) --- net/ipv4/fib_frontend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index b298255f6fdb..ef7c9f8e8682 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -127,7

[PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-12 Thread Joel Fernandes (Google)
The rcu/sync code was doing its own check whether we are in a reader section. With RCU consolidating flavors and the generic helper added in this series, this is no longer need. We can just use the generic helper and it results in a nice cleanup. Cc: Oleg Nesterov Signed-off-by: Joel Fernandes (G

[PATCH v2 6/9] workqueue: Convert for_each_wq to use built-in list check

2019-07-12 Thread Joel Fernandes (Google)
list_for_each_entry_rcu now has support to check for RCU reader sections as well as lock. Just use the support in it, instead of explictly checking in the caller. Signed-off-by: Joel Fernandes (Google) --- kernel/workqueue.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff

[PATCH v2 5/9] driver/core: Convert to use built-in RCU list checking

2019-07-12 Thread Joel Fernandes (Google)
list_for_each_entry_rcu has built-in RCU and lock checking. Make use of it in driver core. Acked-by: Greg Kroah-Hartman Signed-off-by: Joel Fernandes (Google) --- drivers/base/base.h | 1 + drivers/base/core.c | 10 ++ drivers/base/power/runtime.c | 15 ++-

[PATCH v2 8/9] acpi: Use built-in RCU list checking for acpi_ioremaps list

2019-07-12 Thread Joel Fernandes (Google)
list_for_each_entry_rcu has built-in RCU and lock checking. Make use of it for acpi_ioremaps list traversal. Signed-off-by: Joel Fernandes (Google) --- drivers/acpi/osl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index f29e4

[PATCH v2 7/9] x86/pci: Pass lockdep condition to pcm_mmcfg_list iterator

2019-07-12 Thread Joel Fernandes (Google)
The pcm_mmcfg_list is traversed with list_for_each_entry_rcu without a reader-lock held, because the pci_mmcfg_lock is already held. Make this known to the list macro so that it fixes new lockdep warnings that trigger due to lockdep checks added to list_for_each_entry_rcu(). Signed-off-by: Joel Fe

[PATCH v2 9/9] doc: Update documentation about list_for_each_entry_rcu

2019-07-12 Thread Joel Fernandes (Google)
This patch updates the documentation with information about usage of lockdep with list_for_each_entry_rcu(). Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/lockdep.txt | 15 +++ Documentation/RCU/whatisRCU.txt | 9 - 2 files changed, 19 insertions(+), 5 delet

Re: [PATCH 01/12] Documentation: move architectures together

2019-07-12 Thread Jonathan Corbet
On Fri, 12 Jul 2019 10:20:07 +0800 Alex Shi wrote: > There are many different archs in Documentation/ dir, it's better to > move them together in 'Documentation/arch' which follows from kernel source. So this seems certain to collide badly with Mauro's RST-conversion monster patch set. More to

Re: [PATCH v5 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-07-12 Thread bsegall
Dave Chiluk writes: > So I spent some more time testing this new patch as is *(interrupts > disabled). I know I probably should have fixed the patch, but it's hard to > get time on big test hardware sometimes, and I was already well along my way > with testing. > > In regards to the quota usa

Re: [PATCH 5/5] docs: conf.py: add CJK package needed by translations

2019-07-12 Thread Jonathan Corbet
On Tue, 9 Jul 2019 15:33:23 -0300 Mauro Carvalho Chehab wrote: > In order to be able to output Asian symbols with XeLaTeX, we > need the xeCJK package, and a default font for CJK symbols. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/conf.py | 4 > 1 file changed, 4 inse

Re: [PATCH 0/5] PDF output fixes

2019-07-12 Thread Jonathan Corbet
On Tue, 9 Jul 2019 15:33:18 -0300 Mauro Carvalho Chehab wrote: > In order to be able to build all PDF books, besides the two patches I > already sent: > > docs: pdf: add all Documentation/*/index.rst to PDF output > docs: automarkup.py: ignore exceptions when seeking for xrefs > > A fe

Re: [PATCH 5/5] docs: conf.py: add CJK package needed by translations

2019-07-12 Thread Mauro Carvalho Chehab
Em Fri, 12 Jul 2019 14:12:40 -0600 Jonathan Corbet escreveu: > On Tue, 9 Jul 2019 15:33:23 -0300 > Mauro Carvalho Chehab wrote: > > > In order to be able to output Asian symbols with XeLaTeX, we > > need the xeCJK package, and a default font for CJK symbols. > > > > Signed-off-by: Mauro Carva

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-12 Thread Joel Fernandes
On Fri, Jul 12, 2019 at 01:00:18PM -0400, Joel Fernandes (Google) wrote: > The rcu/sync code was doing its own check whether we are in a reader > section. With RCU consolidating flavors and the generic helper added in > this series, this is no longer need. We can just use the generic helper > and i

Re: [PATCH v5 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-07-12 Thread bsegall
Dave Chiluk writes: > So I spent some more time testing this new patch as is *(interrupts > disabled). I know I probably should have fixed the patch, but it's hard to > get time on big test hardware sometimes, and I was already well along my way > with testing. > > In regards to the quota usa

Re: [PATCH 0/5] PDF output fixes

2019-07-12 Thread Mauro Carvalho Chehab
Em Fri, 12 Jul 2019 14:19:21 -0600 Jonathan Corbet escreveu: > On Tue, 9 Jul 2019 15:33:18 -0300 > Mauro Carvalho Chehab wrote: > > > In order to be able to build all PDF books, besides the two patches I > > already sent: > > > > docs: pdf: add all Documentation/*/index.rst to PDF output

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-12 Thread Paul E. McKenney
On Fri, Jul 12, 2019 at 05:35:59PM -0400, Joel Fernandes wrote: > On Fri, Jul 12, 2019 at 01:00:18PM -0400, Joel Fernandes (Google) wrote: > > The rcu/sync code was doing its own check whether we are in a reader > > section. With RCU consolidating flavors and the generic helper added in > > this se

[PATCH v5 02/11] of/platform: Add functional dependency link from DT bindings

2019-07-12 Thread Saravana Kannan
Add device-links after the devices are created (but before they are probed) by looking at common DT bindings like clocks and interconnects. Automatically adding device-links for functional dependencies at the framework level provides the following benefits: - Optimizes device probe order and avoi

[PATCH v3] kbuild: get rid of misleading $(AS) from documents

2019-07-12 Thread Masahiro Yamada
The assembler files in the kernel are *.S instead of *.s, so they must be preprocessed. Since 'as' of GNU binutils is not able to preprocess, we always use $(CC) as an assembler driver. $(AS) is almost unused in Kbuild. As of v5.2, there is just one place that directly invokes $(AS). $ git grep

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-12 Thread Joel Fernandes
On Fri, Jul 12, 2019 at 04:32:06PM -0700, Paul E. McKenney wrote: > On Fri, Jul 12, 2019 at 05:35:59PM -0400, Joel Fernandes wrote: > > On Fri, Jul 12, 2019 at 01:00:18PM -0400, Joel Fernandes (Google) wrote: > > > The rcu/sync code was doing its own check whether we are in a reader > > > section.

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-12 Thread Joel Fernandes
On Fri, Jul 12, 2019 at 11:01:50PM -0400, Joel Fernandes wrote: > On Fri, Jul 12, 2019 at 04:32:06PM -0700, Paul E. McKenney wrote: > > On Fri, Jul 12, 2019 at 05:35:59PM -0400, Joel Fernandes wrote: > > > On Fri, Jul 12, 2019 at 01:00:18PM -0400, Joel Fernandes (Google) wrote: > > > > The rcu/sync

Re: [PATCH 0/5] PDF output fixes

2019-07-12 Thread Mauro Carvalho Chehab
Em Fri, 12 Jul 2019 19:27:05 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 12 Jul 2019 14:19:21 -0600 > Jonathan Corbet escreveu: > > > On Tue, 9 Jul 2019 15:33:18 -0300 > > Mauro Carvalho Chehab wrote: > > > > > In order to be able to build all PDF books, besides the two patches I > > >

Re: [PATCH v3] kbuild: get rid of misleading $(AS) from documents

2019-07-12 Thread Masahiro Yamada
On Sat, Jul 13, 2019 at 11:46 AM Masahiro Yamada wrote: > > The assembler files in the kernel are *.S instead of *.s, so they must > be preprocessed. Since 'as' of GNU binutils is not able to preprocess, > we always use $(CC) as an assembler driver. > > $(AS) is almost unused in Kbuild. As of v5.2