[PATCH 11/21] staging:rtl8192u: Rename DssCCk - Style

2018-08-29 Thread John Whitmore
Rename the bitfield member 'DssCCk' to 'dss_cck', this clears the checkpatch issue with CamelCase naming. This is a coding style change which should not impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 2 +- drivers/staging

[PATCH 13/21] staging:rtl8192u: Rename Rsvd1 - Style

2018-08-29 Thread John Whitmore
Rename the bitfield member 'Rsvd1', since its name causes a checkpatch issue due to the use of CamelCase naming. The name has been changed to 'not_used_rsvd1' since the variable is not actually used in code. This is a coding style change which should have no impact on runtime code execution. Sign

[PATCH 21/21] staging:rtl8192u: Rename ASCap - Style

2018-08-29 Thread John Whitmore
Rename the member variable ASCap, as it causes a checkpatch issue with CamelCase naming. The member has been renamed to 'not_used_as_cap', since it is not actually used in code, apart from initialisation, which has been removed. This is a coding style change which should have no impact on runtime

[PATCH 18/21] staging:rtl8192u: Rename MCS - Style

2018-08-29 Thread John Whitmore
Rename the member 'MCS' to 'cap_mcs', since the uppercase name conflicts with the coding standard. The 'cap' has been prepended to make the variable easier to find in the code. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore ---

[PATCH 15/21] staging:rtl8192u: Rename MaxRxAMPDUFactor - Style

2018-08-29 Thread John Whitmore
Rename the bitfield member 'MaxRxAMPDUFactor' to 'max_rx_ampdu_factor', this clears the checkpatch issue with CamelCase naming. The change is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h |

[PATCH 02/21] staging:rtl8192u: Rename ChlWidth - Style

2018-08-29 Thread John Whitmore
Rename 'ChlWidth', member variable of the structure ht_capability_ele. This change is to clear the checkpatch issue with CamelCase naming. The bitfield's name has been changed to 'chl_width'. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John

[PATCH 07/21] staging:rtl8192u: Rename TxSTBC - Style

2018-08-29 Thread John Whitmore
Rename the bitfield member TxSTBC. As it stands the name causes a checkpatch issue due to its use of CamelCase naming style. Because the member is not actually used in the code the name has been changed to 'not_used_tx_stbc'. The two lines of code, one for initialisation and one for debug logging h

[PATCH 06/21] staging:rtl8192u: Rename ShortGI40Mhz - Style

2018-08-29 Thread John Whitmore
Rename the bitfield member 'ShortGI40Mhz' to 'short_gi40_mhz', this clears the checkpatch issue with CamelCase naming. This change is a simple coding style change, which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee8021

Re: [RFC PATCH 1/6] x86/alternative: assert text_mutex is taken

2018-08-29 Thread Nadav Amit
at 1:13 PM, Sean Christopherson wrote: > On Wed, Aug 29, 2018 at 07:36:22PM +, Nadav Amit wrote: >> at 10:11 AM, Nadav Amit wrote: >> >>> at 1:59 AM, Masami Hiramatsu wrote: >>> On Wed, 29 Aug 2018 01:11:42 -0700 Nadav Amit wrote: > Use lockdep to ensure that text_mut

Re: [PATCH v4 0/4] Refactoring for remove_memory_section/unregister_mem_sect_under_nodes

2018-08-29 Thread Oscar Salvador
On Tue, Aug 21, 2018 at 01:43:18PM -0700, Andrew Morton wrote: > On Tue, 21 Aug 2018 18:21:22 +0200 Oscar Salvador > wrote: > > > On Fri, Aug 17, 2018 at 11:00:13AM +0200, Oscar Salvador wrote: > > > From: Oscar Salvador > > > > > > v3 -> v4: > > > - Make nodemask_t a stack variable >

RE: [PATCH v13 10/13] x86/sgx: Add sgx_einit() for initializing enclaves

2018-08-29 Thread Huang, Kai
> -Original Message- > From: Christopherson, Sean J > Sent: Thursday, August 30, 2018 8:34 AM > To: Huang, Kai > Cc: Jarkko Sakkinen ; platform-driver- > x...@vger.kernel.org; x...@kernel.org; nhor...@redhat.com; linux- > ker...@vger.kernel.org; t...@linutronix.de; suresh.b.sid...@intel.co

Re: [RFC PATCH 1/6] x86/alternative: assert text_mutex is taken

2018-08-29 Thread Sean Christopherson
On Wed, Aug 29, 2018 at 08:44:47PM +, Nadav Amit wrote: > at 1:13 PM, Sean Christopherson wrote: > > > On Wed, Aug 29, 2018 at 07:36:22PM +, Nadav Amit wrote: > >> at 10:11 AM, Nadav Amit wrote: > >> > >>> at 1:59 AM, Masami Hiramatsu wrote: > >>> > On Wed, 29 Aug 2018 01:11:42 -

Re: [PATCH v13 10/13] x86/sgx: Add sgx_einit() for initializing enclaves

2018-08-29 Thread Sean Christopherson
On Wed, Aug 29, 2018 at 01:58:09PM -0700, Huang, Kai wrote: > > -Original Message- > > From: Christopherson, Sean J > > Sent: Thursday, August 30, 2018 8:34 AM > > To: Huang, Kai > > Cc: Jarkko Sakkinen ; platform-driver- > > x...@vger.kernel.org; x...@kernel.org; nhor...@redhat.com; linux

[PATCH RFC memory-model 0/7] Memory-model changes

2018-08-29 Thread Paul E. McKenney
Hello! This series contains memory-model updates, not yet ready for inclusion: 1. Add extra ordering for locks and remove it for ordinary release/acquire, courtesy of Alan Stern. There is some remaining disagreement as to whether or not locks and ordinary release/acq

[PATCH RFC LKMM 5/7] EXP tools/memory-model: Add scripts to check github litmus tests

2018-08-29 Thread Paul E. McKenney
The https://github.com/paulmckrcu/litmus repository contains a large number of C-language litmus tests that include "Result:" comments predicting the verification result. This commit adds a number of scripts that run tests on these litmus tests: checkghlitmus.sh: Runs all litmus tests in

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-08-29 Thread Jerome Glisse
On Wed, Aug 29, 2018 at 08:39:06PM +0200, Michal Hocko wrote: > On Wed 29-08-18 14:14:25, Jerome Glisse wrote: > > On Wed, Aug 29, 2018 at 10:24:44AM -0700, Mike Kravetz wrote: > [...] > > > What would be the best mmu notifier interface to use where there are no > > > start/end calls? > > > Or, is

[PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-08-29 Thread Paul E. McKenney
From: Alan Stern More than one kernel developer has expressed the opinion that the LKMM should enforce ordering of writes by locking. In other words, given the following code: WRITE_ONCE(x, 1); spin_unlock(&s): spin_lock(&s); WRITE_ONCE(y, 1); the stores to x an

[PATCH RFC LKMM 3/7] EXP tools/memory-model: Add more LKMM limitations

2018-08-29 Thread Paul E. McKenney
This commit adds more detail about compiler optimizations and not-yet-modeled Linux-kernel APIs. Signed-off-by: Paul E. McKenney --- tools/memory-model/README | 39 +++ 1 file changed, 39 insertions(+) diff --git a/tools/memory-model/README b/tools/memory-mod

[PATCH RFC LKMM 6/7] EXP tools/memory-model: Make scripts take "-j" abbreviation for "--jobs"

2018-08-29 Thread Paul E. McKenney
The "--jobs" argument to the litmus-test scripts is similar to the "-jN" argument to "make", so this commit allows the "-jN" form as well. While in the area, it also prohibits the various forms of "-j0". Suggested-by: Alan Stern Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/pa

[PATCH RFC LKMM 2/7] doc: Replace smp_cond_acquire() with smp_cond_load_acquire()

2018-08-29 Thread Paul E. McKenney
From: Andrea Parri Amend commit 1f03e8d2919270 ("locking/barriers: Replace smp_cond_acquire() with smp_cond_load_acquire()") by updating the documentation accordingly. Also remove some obsolete information related to the implementation. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deaco

[PATCH RFC LKMM 4/7] tools/memory-model: Fix a README typo

2018-08-29 Thread Paul E. McKenney
From: SeongJae Park This commit fixes a duplicate-"the" typo in README. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney Acked-by: Alan Stern --- tools/memory-model/Documentation/recipes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memory-model/Do

[PATCH RFC LKMM 7/7] EXP tools/memory-model: Add .cfg and .cat files for s390

2018-08-29 Thread Paul E. McKenney
This commit adds s390.cat and s390.cfg files to allow users to check litmus tests for s390-specific code. Note that this change only enables herd7 checking of C-language litmus tests. Larger changes are required to enable the litmus7 and klitmus7 tools to check litmus tests on real hardare. Sugg

Re: efi boot failures due to PTI with 32 bit builds and Intel CPUs

2018-08-29 Thread Guenter Roeck
On Wed, Aug 29, 2018 at 01:28:16PM -0700, Dave Hansen wrote: > On 08/29/2018 01:16 PM, Guenter Roeck wrote: > > > > I see boot failures on mainline when trying to boot x86 images with an efi > > bios on Intel CPUs in qemu. Behavior is quite unusual: qemu dies silently > > after the kernel displays

Re: [PATCH 01/21] staging:rtl8192u: Rename AdvCoding - Style

2018-08-29 Thread Joe Perches
On Wed, 2018-08-29 at 21:35 +0100, John Whitmore wrote: > Rename the bit field element AdvCoding, as it causes a checkpatch issue > with CamelCase naming. As the element is not actually used in code it > has been renamed to 'not_used_adv_coding'. > > The single line of code which initialises the b

[PATCH tip/core/rcu 0/6] Documentation updates for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! This series contains documentation updates. Some of these describe changes that are carried out in another branch, but are kept separate to allow reviewers to easily find the intent of those changes. 1. Add design documentation on interruption of NMI handlers. 2. Fix broken RCU

[PATCH tip/core/rcu 1/6] doc: Add design documentation on interruption of NMI handlers

2018-08-29 Thread Paul E. McKenney
Make Requirements.html talk about how NMI handlers can take what appear to RCU to be normal interrupts. Signed-off-by: Paul E. McKenney --- .../RCU/Design/Requirements/Requirements.html | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/RCU/Design/Requirements

[PATCH tip/core/rcu 6/6] doc: Update documentation for removal of RCU-sched update machinery

2018-08-29 Thread Paul E. McKenney
Although RCU-sched persists in !PREEMPT kernels, in the PREEMPT case its update API is now defined in terms of that of RCU-preempt, so this commit updates the documentation accordingly. While in the area, this commit removes the documentation for the now-obsolete synchronize_rcu_mult() and clarifi

[PATCH tip/core/rcu 5/6] doc: Fix broken HTML directive

2018-08-29 Thread Paul E. McKenney
This commit adds the needed "<". Signed-off-by: Paul E. McKenney --- .../Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html b/Documentation

[PATCH tip/core/rcu 3/6] doc: Improve rcu_dynticks::dynticks documentation

2018-08-29 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" The very useful RCU Data-Structures describes that the dynticks counter of the rcu_dynticks data structure is incremented when we transitions to or from dynticks-idle mode. However it doesn't mention that it is also incremented due to transitions to and from user m

[PATCH tip/core/rcu 2/6] doc: Fix broken RCU-requirements link to LKML archive

2018-08-29 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" Two of the Requirements.html LKML links are broken. This patch changes them to use the archive from lore.kernel.org, which works fine. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney --- Documentation/RCU/Design/Requirements/Requirements.

[PATCH tip/core/rcu 4/6] doc: Update documentation for removal of RCU-bh update machinery

2018-08-29 Thread Paul E. McKenney
The RCU-bh update API is now defined in terms of that of RCU-bh and RCU-sched, so this commit updates the documentation accordingly. Signed-off-by: Paul E. McKenney --- .../Expedited-Grace-Periods.html | 7 +++ .../RCU/Design/Requirements/Requirements.html| 16 ++

[PATCH tip/core/rcu 0/3] SRCU updates for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! This series allows call_srcu() to be used during very early boot: 1. Make call_srcu() available during very early boot. 2. Test early boot call_srcu(). 3. Make early-boot call_srcu() reuse workqueue lists. Thanx, Pau

[rfc] leds: add TI LMU backlight driver

2018-08-29 Thread Pavel Machek
Here's preview of driver for TI LMU. It controls LEDs on Droid 4 smartphone, including keyboard and screen backlights. This adds backlight support for the following TI LMU chips: LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697. Signed-off-by: Milo Kim [add LED subsystem support for keyboard b

Re: [PATCH v5 1/5] seccomp: add a return code to trap to userspace

2018-08-29 Thread Tycho Andersen
On Wed, Aug 29, 2018 at 08:59:18PM +0200, Christian Brauner wrote: > On Tue, Aug 28, 2018 at 08:35:59AM -0600, Tycho Andersen wrote: > > +Users can ``read()`` or ``poll()`` on a seccomp notification fd to receive > > a > > You have changed this from read() to ioctl(), right? Derp, yes. I'll re-w

Re: [PATCH 01/21] staging:rtl8192u: Rename AdvCoding - Style

2018-08-29 Thread Larry Finger
On 08/29/2018 04:14 PM, Joe Perches wrote: On Wed, 2018-08-29 at 21:35 +0100, John Whitmore wrote: Rename the bit field element AdvCoding, as it causes a checkpatch issue with CamelCase naming. As the element is not actually used in code it has been renamed to 'not_used_adv_coding'. The single

[PATCH tip/core/rcu 1/3] srcu: Make call_srcu() available during very early boot

2018-08-29 Thread Paul E. McKenney
Event tracing is moving to SRCU in order to take advantage of the fact that SRCU may be safely used from idle and even offline CPUs. However, event tracing can invoke call_srcu() very early in the boot process, even before workqueue_init_early() is invoked (let alone rcu_init()). Therefore, call_s

Re: [PATCH 3/7] media: imx274: don't hard-code the subdev name to DRIVER_NAME

2018-08-29 Thread Laurent Pinchart
Hello, On Wednesday, 29 August 2018 14:38:43 EEST Sakari Ailus wrote: > On Wed, Aug 29, 2018 at 01:29:36PM +0200, Philippe De Muyter wrote: > > On Wed, Aug 29, 2018 at 02:07:21PM +0300, Sakari Ailus wrote: > >> On Tue, Aug 28, 2018 at 06:02:55PM +0200, Philippe De Muyter wrote: [snip] > >>> Then

[PATCH tip/core/rcu 3/3] srcu: Make early-boot call_srcu() reuse workqueue lists

2018-08-29 Thread Paul E. McKenney
Allocating a list_head structure that is almost never used, and, when used, is used only during early boot (rcu_init() and earlier), is a bit wasteful. This commit therefore eliminates that list_head in favor of the one in the work_struct structure. This is safe because the work_struct structure

[PATCH tip/core/rcu 2/3] rcutorture: Test early boot call_srcu()

2018-08-29 Thread Paul E. McKenney
Now that SRCU permits call_srcu() to be invoked at early boot, this commit ensures that the rcutorture scripting tests early boot call_srcu(). Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/SRCU

Re: [PATCH v2 1/3] mm: rework memcg kernel stack accounting

2018-08-29 Thread Roman Gushchin
On Tue, Aug 21, 2018 at 03:10:52PM -0700, Shakeel Butt wrote: > On Tue, Aug 21, 2018 at 2:36 PM Roman Gushchin wrote: > > > > If CONFIG_VMAP_STACK is set, kernel stacks are allocated > > using __vmalloc_node_range() with __GFP_ACCOUNT. So kernel > > stack pages are charged against corresponding me

Re: [4.14.66-rt40] [report][cpuhotplug] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:974

2018-08-29 Thread Grygorii Strashko
On 08/29/2018 09:08 AM, Sebastian Andrzej Siewior wrote: > On 2018-08-28 18:28:42 [-0500], Grygorii Strashko wrote: [...] >> [0.912275] [] alloc_pages_current+0xcc/0xe0 >> [0.912287] [] its_allocate_pending_table+0x60/0xa0 >> [0.912295] [] its_cpu_init+0x2a0/0x380 >> [0.912303]

Re: [PATCH v2 1/3] mm: rework memcg kernel stack accounting

2018-08-29 Thread Shakeel Butt
On Wed, Aug 29, 2018 at 2:24 PM Roman Gushchin wrote: > > On Tue, Aug 21, 2018 at 03:10:52PM -0700, Shakeel Butt wrote: > > On Tue, Aug 21, 2018 at 2:36 PM Roman Gushchin wrote: > > > > > > If CONFIG_VMAP_STACK is set, kernel stacks are allocated > > > using __vmalloc_node_range() with __GFP_ACCO

[PATCH v5 18/18] MIPS: JZ4740: DTS: Add DMA nodes

2018-08-29 Thread Paul Cercueil
Add the devicetree nodes for the DMA core of the JZ4740 SoC, disabled by default, as currently there are no clients for the DMA driver (until the MMC driver and/or others get a devicetree node). Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Acked-by: Paul Burton --- Notes: v2:

[PATCH v5 15/18] dmaengine: dma-jz4780: Use dma_set_residue()

2018-08-29 Thread Paul Cercueil
From: Daniel Silsby This is the standard method provided by dmaengine header. Signed-off-by: Daniel Silsby Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre --- Notes: v2: No change v3: No change v4: Add my Signed-off-by v5: No change drivers/dma/

[PATCH v5 02/18] dmaengine: dma-jz4780: Return error if not probed from DT

2018-08-29 Thread Paul Cercueil
The driver calls clk_get() with the clock name set to NULL, which means that the driver could only work when probed from devicetree. From now on, we explicitly require the driver to be probed from devicetree. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre --- Notes: v2: New patc

[PATCH v5 12/18] dmaengine: dma-jz4780: Simplify jz4780_dma_desc_residue()

2018-08-29 Thread Paul Cercueil
From: Daniel Silsby Simple cleanup, no changes to actual logic here. Signed-off-by: Daniel Silsby Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre --- Notes: v2: No change v3: No change v4: Add my Signed-off-by v5: Use GENMASK macro drivers/dma/d

[PATCH v5 11/18] dmaengine: dma-jz4780: Add missing residue DTC mask

2018-08-29 Thread Paul Cercueil
From: Daniel Silsby The 'dtc' word in jz DMA descriptors contains two fields: The lowest 24 bits are the transfer count, and upper 8 bits are the DOA offset to next descriptor. The upper 8 bits are now correctly masked off when computing residue in jz4780_dma_desc_residue(). Note that reads of th

[PATCH v5 17/18] MIPS: JZ4770: DTS: Add DMA nodes

2018-08-29 Thread Paul Cercueil
Add the two devicetree nodes for the two DMA cores of the JZ4770 SoC, disabled by default, as currently there are no clients for the DMA driver (until the MMC driver and/or others get a devicetree node). Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Acked-by: Paul Burton --- Notes:

[PATCH v5 03/18] dmaengine: dma-jz4780: Avoid hardcoding number of channels

2018-08-29 Thread Paul Cercueil
As part of the work to support various other Ingenic JZ47xx SoC versions, which don't feature the same number of DMA channels per core, we now deduce the number of DMA channels available from the devicetree compatible string. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre --- Notes:

[PATCH v5 16/18] MIPS: JZ4780: DTS: Update DMA node to match driver changes

2018-08-29 Thread Paul Cercueil
The driver now accepts two memory resources, the first one for the channel-specific registers, the second one for the controller-specific registers. Note that older devicetrees, without this commit, will still work with the jz4780-dma driver. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malat

[PATCH v5 14/18] dmaengine: dma-jz4780: Further residue status fix

2018-08-29 Thread Paul Cercueil
From: Daniel Silsby Func jz4780_dma_desc_residue() expects the index to the next hw descriptor as its last parameter. Caller func jz4780_dma_tx_status(), however, applied modulus before passing it. When the current hw descriptor was last in the list, the index passed became zero. The resulting e

[PATCH v5 10/18] dmaengine: dma-jz4780: Enable Fast DMA to the AIC

2018-08-29 Thread Paul Cercueil
With the fast DMA bit set, the DMA will transfer twice as much data per clock period to the AIC, so there is little point not to set it. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Reviewed-by: PrasannaKumar Muralidharan --- Notes: v2: No change v3: No change

[PATCH v5 13/18] dmaengine: dma-jz4780: Set DTCn register explicitly

2018-08-29 Thread Paul Cercueil
From: Daniel Silsby Normally, we wouldn't set the channel transfer count register directly when using descriptor-driven transfers. However, there is no harm in doing so, and it allows jz4780_dma_desc_residue() to report the correct residue of an ongoing transfer, no matter when it is called. Sig

[PATCH v5 09/18] dmaengine: dma-jz4780: Add support for the JZ4725B SoC

2018-08-29 Thread Paul Cercueil
The JZ4725B has one DMA core starring six DMA channels. As for the JZ4770, each DMA channel's clock can be enabled with a register write, the difference here being that once started, it is not possible to turn it off. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Reviewed-by: Prasann

[PATCH v5 06/18] dmaengine: dma-jz4780: Don't depend on MACH_JZ4780

2018-08-29 Thread Paul Cercueil
If we make this driver depend on MACH_JZ4780, that means it can be enabled only if we're building a kernel specially crafted for a JZ4780-based board, while most GNU/Linux distributions will want one generic MIPS kernel that works on multiple boards. Signed-off-by: Paul Cercueil --- Notes: v

[PATCH v5 05/18] dmaengine: dma-jz4780: Use 4-word descriptors

2018-08-29 Thread Paul Cercueil
The only information we use in the 8-word version of the hardware DMA descriptor that is not present in the 4-word version is the transfer type, aka. the ID of the source or recipient device. Since the transfer type will never change for a DMA channel in use, we can just set it once for all in the

[PATCH v5 08/18] dmaengine: dma-jz4780: Add support for the JZ4740 SoC

2018-08-29 Thread Paul Cercueil
The JZ4740 SoC has a single DMA core starring six DMA channels. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Reviewed-by: PrasannaKumar Muralidharan --- Notes: v2: The documentation update is now in patch 01/17 v3: The Kconfig update was dropped thanks to patch 06/1

[PATCH v5 07/18] dmaengine: dma-jz4780: Add support for the JZ4770 SoC

2018-08-29 Thread Paul Cercueil
The JZ4770 SoC has two DMA cores, each one featuring six DMA channels. The major change is that each channel's clock can be enabled or disabled through register writes. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre --- Notes: v2: - Move transfer_ord_max variable to the new jz47

Re: [PATCH v3 3/3] mm: don't miss the last page because of round-off error

2018-08-29 Thread Roman Gushchin
On Mon, Aug 27, 2018 at 02:04:32PM -0700, Andrew Morton wrote: > On Mon, 27 Aug 2018 09:26:21 -0700 Roman Gushchin wrote: > > > I've noticed, that dying memory cgroups are often pinned > > in memory by a single pagecache page. Even under moderate > > memory pressure they sometimes stayed in such

[PATCH v5 04/18] dmaengine: dma-jz4780: Separate chan/ctrl registers

2018-08-29 Thread Paul Cercueil
The register area of the JZ4780 DMA core can be split into different sections for different purposes: * one set of registers is used to perform actions at the DMA core level, that will generally affect all channels; * one set of registers per DMA channel, to perform actions at the DMA channel lev

[PATCH v5 01/18] dt-bindings: jz4780-dma: Update bindings to reflect driver changes

2018-08-29 Thread Paul Cercueil
The driver now expects the devicetree to supply a second memory resource. This resource is mandatory on the newly supported SoCs. For the JZ4780, new devicetree code must also provide it, although the driver is still compatible with older devicetree binaries. Signed-off-by: Paul Cercueil Tested-b

[PATCH v5 00/18] JZ4780 DMA patchset v5

2018-08-29 Thread Paul Cercueil
Hi Vinod, This is the V5 of my Ingenic JZ4780 DMA patchset. - Patch [01/18] dropped the "doc:" in the patch title; - Patches [11/18] and [12/18] now use the GENMASK() macro. - The rest is untouched. Thanks, -Paul Cercueil

Re: [PATCH v5 07/27] arm64: xen: Use existing helper to check interrupt status

2018-08-29 Thread Stefano Stabellini
On Tue, 28 Aug 2018, Julien Thierry wrote: > The status of interrupts might depend on more than just pstate. Use > interrupts_disabled() instead of raw_irqs_disabled_flags() to take the full > context into account. > > Signed-off-by: Julien Thierry > Cc: Stefano Stabellini > Cc: Catalin Marinas

Re: [RFC PATCH 2/6] x86/mm: temporary mm struct

2018-08-29 Thread Andy Lutomirski
On Wed, Aug 29, 2018 at 9:54 AM, Nadav Amit wrote: > at 8:41 AM, Andy Lutomirski wrote: > >> On Wed, Aug 29, 2018 at 2:49 AM, Masami Hiramatsu >> wrote: >>> On Wed, 29 Aug 2018 01:11:43 -0700 >>> Nadav Amit wrote: >>> From: Andy Lutomirski Sometimes we want to set a temporary p

[PATCH tip/core/rcu 0/17] Torture-test changes for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! This series contains torture-test changes that can be reasonably separated from the RCU flavor consolidation and cleanup: 1. Stop overwriting Make.out file with obsolete version. 2. Force occasional reader waits to increase the probability of quiescent states interacting

[PATCH tip/core/rcu 06/17] rcutorture: Add forward-progress tests for RCU grace periods

2018-08-29 Thread Paul E. McKenney
This commit adds a kthread that loops going into and out of RCU read-side critical sections, but also including a cond_resched(), optionally guarded by a check of need_resched(), in that same loop. This commit relies solely on rcu_torture_writer() progress to judge the forward progress of grace per

Re: Simplifying our RCU models

2018-08-29 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 03:28:35PM -0700, Paul E. McKenney wrote: > On Fri, Jun 08, 2018 at 09:51:34AM -0700, Paul E. McKenney wrote: > > On Tue, Apr 10, 2018 at 04:44:25PM -0700, Paul E. McKenney wrote: > > > On Thu, Mar 08, 2018 at 12:45:24PM -0800, Paul E. McKenney wrote: > > > > On Wed, Mar 07,

[PATCH tip/core/rcu 16/17] rcutorture: Check GP completion at stutter end

2018-08-29 Thread Paul E. McKenney
The rcu_torture_writer() function invokes stutter_wait() at the end of each writer pass, which occasionally blocks for an extended time period in order to ensure that RCU can handle intermittent loads. But part of handling a busy period is invoking all the callbacks before the end of the idle peri

[PATCH tip/core/rcu 17/17] rcutorture: Maintain self-propagating CB only during forward-progress test

2018-08-29 Thread Paul E. McKenney
The current forward-progress testing maintains a self-propagating callback during the full test. This could result in false negatives for stutter-end checking, where it might appear that RCU was clearing out old callbacks only because it was being continually motivated by the self-propagating call

[PATCH tip/core/rcu 08/17] rcutorture: Avoid no-test complaint if too few forward-progress tries

2018-08-29 Thread Paul E. McKenney
In a too-short test, random delays can cause each attempt to do forward-progress testing to fail to complete, thus resulting in spurious splats. This commit therefore requires at least five tries before complaining about rcutorture runs that failed to produce at least one valid forward-progress te

[PATCH tip/core/rcu 05/17] rcutorture: Remove TREE06 and TREE08 from the default test list

2018-08-29 Thread Paul E. McKenney
Now that there is only one RCU flavor to rule them all, the TREE06 and TREE08 test scenarios are redundant. This commit therefore removes them. Later changes will rebalance and renumber the tests. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/configs/rcu/CFLIST | 2 --

[PATCH tip/core/rcu 10/17] rcutorture: Add self-propagating callback to forward-progress testing

2018-08-29 Thread Paul E. McKenney
If rcutorture is run on a quiet system with the rcutorture.stutter module parameter set high, then there can legitimately be an extended period during which no RCU forward progress takes place. This can result in false-positive no-forward-progress splats. This commit therefore makes rcu_torture_f

[PATCH tip/core/rcu 04/17] rcuperf: Warn on bad perf type for built-in tests

2018-08-29 Thread Paul E. McKenney
When running a built-in rcuperf test, specifying an invalid perf type results in what looks like a hard hang, with the error messages hidden by other boot-time output. This commit therefore executes a WARN_ON() in this case so that the splat appears just following the error messages. Signed-off-b

[PATCH tip/core/rcu 12/17] rcutorture: Limit reader duration if irq or bh disabled

2018-08-29 Thread Paul E. McKenney
There are debug checks in some environments that will complain if the duration of a bh-disabled region of code exceeds about 50 milliseconds. Because rcu_read_delay() can produce a 50-millisecond delay and because there could be up to eight reader segments with such delays, this commit limits the m

[PATCH tip/core/rcu 07/17] rcutorture: Also use GP sequence to judge forward progress

2018-08-29 Thread Paul E. McKenney
Currently, rcutorture relies solely on the progress of rcu_torture_writer() to judge grace-period forward progress. In theory, this is the gold standard of forward progress, but in practice rcutorture separately detects and reports rcu_torture_writer() stalls. This commit therefore adds the grace

[PATCH tip/core/rcu 13/17] rcutorture: Reduce priority of forward-progress testing

2018-08-29 Thread Paul E. McKenney
On !SMP tests, the forward-progress kthread might prevent RCU's grace-period kthread from running, which would defeat RCU's forward-progress measures. On PREEMPT tests without RCU priority boosting, the forward-progress kthread might preempt a reader for an extended time period, which would also d

[PATCH tip/core/rcu 02/17] rcutorture: Force occasional reader waits

2018-08-29 Thread Paul E. McKenney
Deferred quiescent states can interact with the scheduler, but rcu_torture_reader() does not force such interaction all that frequently. This commit therefore blocks for one jiffy after ten jiffies of read-side runtime. This has the beneficial effect of being most likely to block just after long-r

[PATCH tip/core/rcu 15/17] rcutorture: Print forward-progress test interval on error

2018-08-29 Thread Paul E. McKenney
This commit prints the duration of the forward-progress test interval in the case that no forward progress was observed as an aid to debugging. When forward progress does happen, it prints out the number of rcu_torture_writer() versions and grace periods that elapsed during the forward-progress tes

[PATCH tip/core/rcu 09/17] rcutorture: Vary forward-progress test interval

2018-08-29 Thread Paul E. McKenney
Some of the Linux kernel's RCU implementations provide several mechanisms to promote forward progress that operate over different timeframes. This commit therefore causes rcu_torture_fwd_prog() to vary the duration of its forward-progress testing in order to test each such mechanism. Signed-off-by

[PATCH tip/core/rcu 01/17] torture: Stop overwriting Make.out file with obsolete version

2018-08-29 Thread Paul E. McKenney
The old approach placed all the build products into the b* directories, which meant that some of these build products needed to be copied to the proper directory in the res hierarchy. The new approach leaves things like .config and the .o files in the b1 directory, but directs build output and dia

[PATCH tip/core/rcu 11/17] rcutorture: Increase rcu_read_delay() longdelay_ms

2018-08-29 Thread Paul E. McKenney
RCU now takes certain actions 100 and 200 milliseconds into a grace period by default, but rcutorture only runs RCU read-side critical sections with durations up to 50 milliseconds. This commit therefore increases test coverage by increasing the maximum critical-section duration to 300 millisecond

[PATCH tip/core/rcu 03/17] rcutorture: Warn on bad torture type for built-in tests

2018-08-29 Thread Paul E. McKenney
When running a built-in rcutorture test, specifying an invalid torture type results in what looks like a hard hang, with the error messages hidden by other boot-time output. This commit therefore executes a WARN_ON() in this case so that the splat appears just following the error messages. Signed

[PATCH tip/core/rcu 14/17] rcutorture: Adjust number of reader kthreads per CPU-hotplug operations

2018-08-29 Thread Paul E. McKenney
Currently, rcutorture provisions rcu_torture_reader() kthreads based on the initial number of CPUs. This can be problematic when CPU hotplug is enabled, as a system with a very large number of CPUs will provision a very large number of rcu_torture_reader() kthreads. All of these kthreads will con

Re: Add SoundWire tree to linux-next

2018-08-29 Thread Stephen Rothwell
Hi Vinod, On Wed, 29 Aug 2018 22:41:33 +0530 Vinod wrote: > > I maintain the SoundWire subsystem which get merged to Linus thru Greg's > char-misc tree. I would now like this to be added to Linux-next and after > the Greg's char-misc tree. > > Please include next and fixes branches of the soundw

Re: [PATCH 01/21] staging:rtl8192u: Rename AdvCoding - Style

2018-08-29 Thread John Whitmore
On Wed, Aug 29, 2018 at 04:21:54PM -0500, Larry Finger wrote: > On 08/29/2018 04:14 PM, Joe Perches wrote: > > On Wed, 2018-08-29 at 21:35 +0100, John Whitmore wrote: > > > Rename the bit field element AdvCoding, as it causes a checkpatch issue > > > with CamelCase naming. As the element is not act

Re: [PATCH] MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3

2018-08-29 Thread Paul Burton
Hi Tuomas, On Sun, Aug 19, 2018 at 10:20:23PM +0300, Tuomas Tynkkynen wrote: > Setting GPIO 21 high seems to be required to enable power to USB ports > on the WNDR3400v3. As there is already similar code for WNR3500L, > make the existing USB power GPIO code generic and use that. > > Signed-off-by

[PATCH tip/core/rcu 0/19] RCU flavor-consolidation changes for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! This series contains the RCU flavor consolidation, along with some initial cleanup work enabled by that consolidation (and some that became apparent while cleaning up): 1. Refactor rcu_{nmi,irq}_{enter,exit}(), saving a branch on the idle entry/exit hotpaths, courtesy of Byung

[PATCH tip/core/rcu 13/19] rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds

2018-08-29 Thread Paul E. McKenney
Now that RCU-preempt knows about preemption disabling, its implementation of synchronize_rcu() works for synchronize_sched(), and likewise for the other RCU-sched update-side API members. This commit therefore confines the RCU-sched update-side code to CONFIG_PREEMPT=n builds, and defines RCU-sche

[PATCH tip/core/rcu 02/19] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-08-29 Thread Paul E. McKenney
This commit defers reporting of RCU-preempt quiescent states at rcu_read_unlock_special() time when any of interrupts, softirq, or preemption are disabled. These deferred quiescent states are reported at a later RCU_SOFTIRQ, context switch, idle entry, or CPU-hotplug offline operation. Of course,

[PATCH tip/core/rcu 17/19] rcu: Remove rcu_state structure's ->rda field

2018-08-29 Thread Paul E. McKenney
The rcu_state structure's ->rda field was used to find the per-CPU rcu_data structures corresponding to that rcu_state structure. But now there is only one rcu_state structure (creatively named "rcu_state") and one set of per-CPU rcu_data structures (creatively named "rcu_data"). Therefore, uses o

[PATCH tip/core/rcu 19/19] rcu: Remove rcu_data_p pointer to default rcu_data structure

2018-08-29 Thread Paul E. McKenney
The rcu_data_p pointer references the default set of per-CPU rcu_data structures, that is, those that call_rcu() uses, as opposed to call_rcu_bh() and sometimes call_rcu_sched(). But there is now only one set of per-CPU rcu_data structures, so that one set is by definition the default, which means

[PATCH tip/core/rcu 09/19] rcu: Define RCU-bh update API in terms of RCU

2018-08-29 Thread Paul E. McKenney
Now that the main RCU API knows about softirq disabling and softirq's quiescent states, the RCU-bh update code can be dispensed with. This commit therefore removes the RCU-bh update-side implementation and defines RCU-bh's update-side API in terms of that of either RCU-preempt or RCU-sched, dependi

[PATCH tip/core/rcu 10/19] rcu: Update comments and help text for no more RCU-bh updaters

2018-08-29 Thread Paul E. McKenney
This commit updates comments and help text to account for the fact that RCU-bh update-side functions are now simple wrappers for their RCU or RCU-sched counterparts. Signed-off-by: Paul E. McKenney --- include/linux/rcupdate.h | 12 include/linux/rcupdate_wait.h | 6 +++--- in

[PATCH tip/core/rcu 14/19] rcu: Express Tiny RCU updates in terms of RCU rather than RCU-sched

2018-08-29 Thread Paul E. McKenney
This commit renames Tiny RCU functions so that the lowest level of functionality is RCU (e.g., synchronize_rcu()) rather than RCU-sched (e.g., synchronize_sched()). This provides greater naming compatibility with Tree RCU, which will in turn permit more LoC removal once the RCU-sched and RCU-bh up

[PATCH tip/core/rcu 06/19] rcu: Add warning to detect half-interrupts

2018-08-29 Thread Paul E. McKenney
RCU's dyntick-idle code is written to tolerate half-interrupts, that it, either an interrupt that invokes rcu_irq_enter() but never invokes the corresponding rcu_irq_exit() on the one hand, or an interrupt that never invokes rcu_irq_enter() but does invoke the "corresponding" rcu_irq_exit() on the

[PATCH tip/core/rcu 11/19] rcu: Drop "wake" parameter from rcu_report_exp_rdp()

2018-08-29 Thread Paul E. McKenney
The rcu_report_exp_rdp() function is always invoked with its "wake" argument set to "true", so this commit drops this parameter. The only potential call site that would use "false" is in the code driving the expedited grace period, and that code uses rcu_report_exp_cpu_mult() instead, which theref

[PATCH tip/core/rcu 18/19] rcu: Remove rcu_state_p pointer to default rcu_state structure

2018-08-29 Thread Paul E. McKenney
The rcu_state_p pointer references the default rcu_state structure, that is, the one that call_rcu() uses, as opposed to call_rcu_bh() and sometimes call_rcu_sched(). But there is now only one rcu_state structure, so that one structure is by definition the default, which means that the rcu_state_p

[PATCH tip/core/rcu 08/19] rcu: Report expedited grace periods at context-switch time

2018-08-29 Thread Paul E. McKenney
This commit reduces the latency of expedited RCU grace periods by reporting a quiescent state for the CPU at context-switch time. In CONFIG_PREEMPT=y kernels, if the outgoing task is still within an RCU read-side critical section (and thus still blocking some grace period, perhaps including this ex

[PATCH tip/core/rcu 16/19] rcu: Eliminate rcu_state structure's ->call field

2018-08-29 Thread Paul E. McKenney
The rcu_state structure's ->call field references the corresponding RCU flavor's call_rcu() function. However, now that there is only ever one rcu_state structure in a given build of the Linux kernel, and that flavor uses plain old call_rcu(), there is not a lot of point in continuing to have the

[PATCH tip/core/rcu 12/19] rcu: Fix typo in rcu_get_gp_kthreads_prio() header comment

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index bb40d3598a0d..5cc035dc61cb 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -181,7 +181,7 @@ module_param(gp_init_delay, i

<    1   2   3   4   5   6   7   8   9   >