Re: [PATCH] arm64: defconfig: enable EFI_ARMSTUB_DTB_LOADER

2018-08-29 Thread Ard Biesheuvel
On 29 August 2018 at 20:59, Scott Branden wrote: > Hi Olof, > > > On 18-08-29 11:44 AM, Olof Johansson wrote: >> >> Hi, >> >> On Wed, Aug 29, 2018 at 10:21 AM, Scott Branden >> wrote: >>> >>> Enable EFI_ARMSTUB_DTB_LOADER to add support for the dtb= command line >>> parameter to function with

Re: [PATCH] gpio: Add driver for PC Engines APU2/APU3 GPIOs

2018-08-29 Thread Florian Eckert
On 2018-08-24 12:56, Piotr Król wrote: On 08/03/2018 09:08 PM, Andy Shevchenko wrote: Hi Andy, (...) +#define APU_FCH_ACPI_MMIO_BASE 0xFED8 +#define APU_FCH_GPIO_BASE (APU_FCH_ACPI_MMIO_BASE + 0x1500) Wow! Can we see ACPI tables for these boards? Care to share (via some file share

Re: [PATCH 2/4] tty: Hold tty_ldisc_lock() during tty_reopen()

2018-08-29 Thread Benjamin Herrenschmidt
On Wed, 2018-08-29 at 13:34 +0900, Sergey Senozhatsky wrote: > Hi, > > Cc-ing Benjamin on this. > > On (08/29/18 03:23), Dmitry Safonov wrote: > > BUG: unable to handle kernel paging request at 2260 > > IP: [..] n_tty_receive_buf_common+0x5f/0x86d > > Workqueue: events_unbound

Re: [PATCH v1] arm64: dts: sdm845: enable tsens thermal zones

2018-08-29 Thread Amit Kucheria
On Wed, Aug 29, 2018 at 3:09 PM Daniel Lezcano wrote: > > On 18/07/2018 09:49, Amit Kucheria wrote: > > One thermal zone per cpu is defined > > The thermal zones are very close, especially when the CPUs belong to the > same 'cluster'. Very likely the temperature will propagate from one core > to

[PATCH] ARM: dts: imx6ull: update iomux header

2018-08-29 Thread Anson Huang
Update i.MX6ULL iomux header according to latest reference manual Rev.1, 11/2017. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6ull-pinfunc.h | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6ull-pinfunc.h

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

2018-08-29 Thread Nadav Amit
at 7:26 PM, Masami Hiramatsu wrote: > On Wed, 29 Aug 2018 14:00:06 -0700 > Sean Christopherson wrote: > >> 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

Re: [RFC] perf script: callchain handling is not useful

2018-08-29 Thread Stephane Eranian
On Wed, Aug 29, 2018 at 5:33 PM Namhyung Kim wrote: > > Hi, > > On Wed, Aug 29, 2018 at 08:14:12AM -0700, Stephane Eranian wrote: > > On Wed, Aug 29, 2018 at 6:54 AM Arnaldo Carvalho de Melo > > wrote: > > > > > > Em Tue, Aug 28, 2018 at 07:41:31PM -0700, Stephane Eranian escreveu: > > > > Hi, >

Re: [PATCH tip/core/rcu 0/52] Remove rcu_state pointers for v4.20/v5.0

2018-08-29 Thread Josh Triplett
On Wed, Aug 29, 2018 at 09:10:17PM -0700, Paul E. McKenney wrote: > On Wed, Aug 29, 2018 at 08:22:16PM -0700, Paul E. McKenney wrote: > > On Wed, Aug 29, 2018 at 10:00:26PM -0400, Steven Rostedt wrote: > > > On Wed, 29 Aug 2018 15:38:30 -0700 > > > "Paul E. McKenney" wrote: > > > > > > > Hello!

[PATCH 0/3] ARM: dts: am335x: add support for Moxa UC-2100 series

2018-08-29 Thread 林上智
The UC-2100 series open computing platform is designed for industrial embedded data acquisition and processing applications. In order to fulfill various industrial applications, there're many boards with different peripheral devices and wireless modules in this series. The features of UC-2100

[PATCH 1/3] ARM: dts: am335x: add common file for UC-2100 series

2018-08-29 Thread 林上智
The UC-2100 series consists many boards with different peripheral devices and wireless modules, hence we fetch common items and create a common dtsi file to increase reusability. All boards in UC-2100 series will include this common dtsi file. Signed-off-by: Wes Huang (黃淵河) Signed-off-by: Fero

Re: [PATCH tip/core/rcu 0/52] Remove rcu_state pointers for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
On Wed, Aug 29, 2018 at 08:22:16PM -0700, Paul E. McKenney wrote: > On Wed, Aug 29, 2018 at 10:00:26PM -0400, Steven Rostedt wrote: > > On Wed, 29 Aug 2018 15:38:30 -0700 > > "Paul E. McKenney" wrote: > > > > > Hello! > > > > > > This commit does RCU-consolidation cleanups that get rid of

[PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-08-29 Thread 林上智
Add support for Moxa UC-2101 open platform The UC-2101 computing platform is designed for industrial embedded data acquisition and processing applications. The features of UC-2101 are: * eMMC * SPI flash * 1x LAN * 1x RS-232/422/485 ports, software-selectable * EEPROM * TPM 2.0 * Watchdog * RTC

[PATCH 3/3] ARM: dts: am335x: add support for Moxa UC-2102 open platform

2018-08-29 Thread 林上智
Add support for Moxa UC-2102 open platform The UC-2102 computing platform is designed for industrial embedded data acquisition and processing applications. The features of UC-2102 are: * eMMC * SPI flash * 2x LAN * EEPROM * TPM 2.0 * Watchdog * RTC * User gpio-keys * User LEDs * User button

Re: WARNING in apparmor_secid_to_secctx

2018-08-29 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:817e60a7a2bb Merge branch 'nfp-add-NFP5000-support' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=16662cb640 kernel config:

Re: [PATCH v5 1/2] leds: core: Introduce LED pattern trigger

2018-08-29 Thread Baolin Wang
Hi Jacek, On 30 August 2018 at 03:15, Jacek Anaszewski wrote: > Hi Baolin, > > On 08/29/2018 11:48 AM, Baolin Wang wrote: >> Hi Jacek, >> >> On 29 August 2018 at 04:25, Jacek Anaszewski >> wrote: >>> On 08/25/2018 09:51 AM, Baolin Wang wrote: On 25 August 2018 at 04:44, Jacek Anaszewski

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

2018-08-29 Thread Paul E. McKenney
On Wed, Aug 29, 2018 at 10:46:09PM -0400, Steven Rostedt wrote: > On Wed, 29 Aug 2018 19:07:01 -0700 > "Paul E. McKenney" wrote: > > > On Wed, Aug 29, 2018 at 09:56:16PM -0400, Steven Rostedt wrote: > > > On Wed, 29 Aug 2018 14:23:13 -0700 > > > "Paul E. McKenney" wrote: > > > > > > >

Re: [PATCH tip/core/rcu 0/52] Remove rcu_state pointers for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
On Wed, Aug 29, 2018 at 10:00:26PM -0400, Steven Rostedt wrote: > On Wed, 29 Aug 2018 15:38:30 -0700 > "Paul E. McKenney" wrote: > > > Hello! > > > > This commit does RCU-consolidation cleanups that get rid of pointers to > > the sole remaining rcu_state structure: > > > > 1-40: Remove

Re: [PATCH v3 0/9] Add Reset Controller support for Actions Semi Owl SoCs

2018-08-29 Thread Manivannan Sadhasivam
On Fri, Aug 10, 2018 at 03:21:04PM +0530, Manivannan Sadhasivam wrote: > This patchset adds Reset Controller (RMU) support for Actions Semi > Owl SoCs, S900 and S700. For the Owl SoCs, RMU has been integrated into > the clock subsystem in hardware. Hence, in software we integrate RMU > support

Re: [PATCH 0/4] Add HiSilicon Hi3670 SoC and HiKey970 board

2018-08-29 Thread Manivannan Sadhasivam
On Fri, Aug 10, 2018 at 11:23:35PM +0530, Manivannan Sadhasivam wrote: > This patchset adds support for Hi3670 SoC and HiKey970 board. Hi3670 SoC > is very similar to the Hi3660 SoC with additional NPU support. For now, > only UART6 has been enabled which is configured by the bootloader for >

Re: [PATCH 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-08-29 Thread Baolin Wang
Hi Krzysztof, On 29 August 2018 at 22:36, Krzysztof Kozlowski wrote: > I'll try one more time... but without HTML from Gmail. Previous mail > bounced from lists. > > On Tue, 28 Aug 2018 at 11:04, Baolin Wang wrote: >> >> This patch adds the SC2731 PMIC switch charger support. >> >>

Re: [PATCH 1/2] dt-bindings: power: Add Spreadtrum SC2731 charger documentation

2018-08-29 Thread Baolin Wang
Hi Krzysztof, On 29 August 2018 at 22:08, Krzysztof Kozlowski wrote: > On Tue, 28 Aug 2018 at 11:04, Baolin Wang wrote: >> >> This patch adds the binding documentation for Spreadtrum SC2731 charger >> device. >> >> Signed-off-by: Baolin Wang >> --- >>

ASSIST ME TO GET THIS MONEY PLEASE

2018-08-29 Thread Dr Bartholomew Caleb
Good day my dear friend, Let me start by introducing myself. I am Bartholomew Caleb, an accounts officer with Bank of Africa here in Burkina Faso West Africa. I am writing you this letter based on the latest development at my bank whichI will like to bring to your personal edification.

linux-next: Tree for Aug 30

2018-08-29 Thread Stephen Rothwell
Hi all, Changes since 20180829: New trees: soundwire and soundwire-fixes Dropped trees: xarray, ida (temporarily) The spi tree lost its build failure. Non-merge commits (relative to Linus' tree): 1087 1284 files changed, 44936 insertions(+), 12978 deletions

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

2018-08-29 Thread Steven Rostedt
On Wed, 29 Aug 2018 19:07:01 -0700 "Paul E. McKenney" wrote: > On Wed, Aug 29, 2018 at 09:56:16PM -0400, Steven Rostedt wrote: > > On Wed, 29 Aug 2018 14:23:13 -0700 > > "Paul E. McKenney" wrote: > > > > > Allocating a list_head structure that is almost never used, and, when > > > used, is

[BUG] [Resend] Possible sleep-in-atomic-context bugs involving regmap_lock_mutex()

2018-08-29 Thread Jia-Ju Bai
Hello, My static tool DSAC reports many sleep-in-atomic-context bugs involving regmap_lock_mutex(), so I wonder whether this function is possible to be executed in atomic context. Here are some example bugs and their call paths in Linux-4.16 (from bottom to top, and [FUNC_PTR] means that

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

2018-08-29 Thread Masami Hiramatsu
On Wed, 29 Aug 2018 14:00:06 -0700 Sean Christopherson wrote: > 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

Re: WARNING in apparmor_secid_to_secctx

2018-08-29 Thread Dmitry Vyukov
On Wed, Aug 29, 2018 at 7:17 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:817e60a7a2bb Merge branch 'nfp-add-NFP5000-support' > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1536d29640 > kernel config:

[PATCH] perf event-parse: Use fixed size string for comms

2018-08-29 Thread cphlipot0
From: Chris Phlipot Some implementations of libc do not support the 'm' width modifier as part of the scanf string format specifier. This can cause the parsing to fail. Since the parser never checks if the scanf parsing was successesful, this can result in a crash. Change the comm string to be

[PATCH] thermal: qoriq: add i.mx8mq support

2018-08-29 Thread Anson Huang
Add i.mx8mq specific compatible string. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/thermal/qoriq-thermal.txt | 6 +++--- drivers/thermal/qoriq_thermal.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

WARNING in apparmor_secid_to_secctx

2018-08-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:817e60a7a2bb Merge branch 'nfp-add-NFP5000-support' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1536d29640 kernel config: https://syzkaller.appspot.com/x/.config?x=531a917630d2a492 dashboard

Re: [PATCH] KVM: LAPIC: Fix pv ipis out-of-bounds access

2018-08-29 Thread Wanpeng Li
On Wed, 29 Aug 2018 at 23:42, Radim Krcmar wrote: > > 2018-08-29 13:29+0300, Dan Carpenter: > > On Wed, Aug 29, 2018 at 06:23:08PM +0800, Wanpeng Li wrote: > > > On Wed, 29 Aug 2018 at 18:18, Dan Carpenter > > > wrote: > > > > > > > > On Wed, Aug 29, 2018 at 01:12:05PM +0300, Dan Carpenter

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

2018-08-29 Thread Paul E. McKenney
On Wed, Aug 29, 2018 at 09:56:16PM -0400, Steven Rostedt wrote: > On Wed, 29 Aug 2018 14:23:13 -0700 > "Paul E. McKenney" wrote: > > > 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.

[PATCH v2] KVM: LAPIC: Fix pv ipis out-of-bounds access

2018-08-29 Thread Wanpeng Li
From: Wanpeng Li Dan Carpenter reported that the untrusted data returns from kvm_register_read() results in the following static checker warning: arch/x86/kvm/lapic.c:576 kvm_pv_send_ipi() error: buffer underflow 'map->phys_map' 's32min-s32max' KVM guest can easily trigger this by executing

Re: [PATCH tip/core/rcu 0/52] Remove rcu_state pointers for v4.20/v5.0

2018-08-29 Thread Steven Rostedt
On Wed, 29 Aug 2018 15:38:30 -0700 "Paul E. McKenney" wrote: > Hello! > > This commit does RCU-consolidation cleanups that get rid of pointers to > the sole remaining rcu_state structure: > > 1-40: Remove the "rsp" parameter from numerous functions, given that > the corresponding

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

2018-08-29 Thread Andy Lutomirski
> On Aug 29, 2018, at 6:38 PM, Masami Hiramatsu wrote: > > On Wed, 29 Aug 2018 08:41:00 -0700 > 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

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

2018-08-29 Thread Steven Rostedt
On Wed, 29 Aug 2018 16:28:50 -0500 Grygorii Strashko wrote: > 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] []

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

2018-08-29 Thread Steven Rostedt
On Wed, 29 Aug 2018 14:23:13 -0700 "Paul E. McKenney" wrote: > 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

Re: [PATCH] mm/page_alloc: Clean up check_for_memory

2018-08-29 Thread Pasha Tatashin
On 8/28/18 5:01 PM, Oscar Salvador wrote: > From: Oscar Salvador > > check_for_memory looks a bit confusing. > First of all, we have this: > > if (N_MEMORY == N_NORMAL_MEMORY) > return; > > Checking the ENUM declaration, looks like N_MEMORY canot be equal to > N_NORMAL_MEMORY. > I

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

2018-08-29 Thread Huang, Kai
> > > > > Some kind of counter is required to keep track of the power cycle. > > > > > When going to sleep the sgx_pm_cnt is increased. sgx_einit() > > > > > compares the current value of the global count to the value in > > > > > the cache entry to see whether we are in a new power cycle. > > > >

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

2018-08-29 Thread Masami Hiramatsu
On Wed, 29 Aug 2018 08:41:00 -0700 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 page-table entries (PTEs) in one of >

Re: mmotm 2018-08-23-17-26 uploaded

2018-08-29 Thread Jia He
On 8/30/2018 7:22 AM, Andrew Morton Wrote: > On Tue, 28 Aug 2018 12:20:46 +0800 Jia He wrote: > >> Hi Andrew >> FYI,I watched a lockdep warning based on your mmotm master branch[1] > > Thanks. We'll need help from ARM peeps on this please. > >> [6.692731] [ cut here

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

2018-08-29 Thread Mike Kravetz
On 08/29/2018 02:11 PM, Jerome Glisse wrote: > 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

Re: [RFC] perf script: callchain handling is not useful

2018-08-29 Thread Namhyung Kim
Hi, On Wed, Aug 29, 2018 at 08:14:12AM -0700, Stephane Eranian wrote: > On Wed, Aug 29, 2018 at 6:54 AM Arnaldo Carvalho de Melo > wrote: > > > > Em Tue, Aug 28, 2018 at 07:41:31PM -0700, Stephane Eranian escreveu: > > > Hi, > > > > > > I am doing the following simple collection with callchain

[GIT PULL] RISC-V Fixes and Cleanups for 4.19-rc2

2018-08-29 Thread Palmer Dabbelt
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux.git tags/riscv-for-linus-4.19-rc2 for you to fetch changes up to

Re: [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-29 Thread Rob Herring
On Wed, Aug 29, 2018 at 6:19 AM wrote: > > On 2018-08-29 05:55, Rob Herring wrote: > > On Fri, Aug 24, 2018 at 04:12:15PM +0530, Dilip Kota wrote: > >> From: Girish Mahadevan > >> > >> This driver supports GENI based SPI Controller in the Qualcomm SOCs. > >> The > >> Qualcomm Generic Interface

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-29 Thread Vineet Gupta
On 08/27/2018 04:00 AM, Peter Zijlstra wrote: > > The one obvious thing SH and ARM want is a sensible default for > tlb_start_vma(). (also: https://lkml.org/lkml/2004/1/15/6 ) > > The below make tlb_start_vma() default to flush_cache_range(), which > should be right and sufficient. The only

Re: [PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread kbuild test robot
Hi Codrin, Thank you for the patch! Yet something to improve: [auto build test ERROR on at91/at91-next] [also build test ERROR on v4.19-rc1 next-20180829] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH 11/13] proc: readdir /proc/*/task

2018-08-29 Thread Andrew Morton
On Tue, 28 Aug 2018 22:35:02 +0300 Alexey Dobriyan wrote: > > Are we really in a super hot path to justify all that? > > /proc is very slow, try profiling just about anything involving /proc. So how much does this patchset help? Some timing measurements would really help things along, if they

Re: mmotm 2018-08-23-17-26 uploaded

2018-08-29 Thread Andrew Morton
On Tue, 28 Aug 2018 12:20:46 +0800 Jia He wrote: > Hi Andrew > FYI,I watched a lockdep warning based on your mmotm master branch[1] Thanks. We'll need help from ARM peeps on this please. > [6.692731] [ cut here ] > [6.696391]

[PATCH 2/3] firmware: qcom: scm: Refactor clock handling

2018-08-29 Thread Bjorn Andersson
At one point in time all "future" platforms required three clocks, so the binding and driver was written to treat this as the default case. But new platforms has no clock requirements, which currently makes them all a special case, causing the need for a patch in the binding and driver for each

[PATCH 1/3] dt-bindings: firmware: scm: Refactor compatibles and clocks

2018-08-29 Thread Bjorn Andersson
When the binding was written all "future" platforms required three clocks, so the default compatible (qcom,scm) was defined to require this. But as history shows all "future" platforms actually lack required clocks. Given how the binding is written these compatibles have to be added as an

[PATCH 3/3] dt-bindings: firmware: scm: Add MSM8998 and SDM845

2018-08-29 Thread Bjorn Andersson
Now that the compatible/clock handling is reworked add compatibles for MSM8998 and SDM845 to the SCM binding. Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 0/3] firmware: qcom: scm: Improve clock handling

2018-08-29 Thread Bjorn Andersson
We're currently facing the issue that every new platform requires the addition of a compatible to the DT binding as well as the driver. The DT binding patch to allow us to use qcom,scm for all these new platforms that doesn't require any clocks and the driver is reworked to make the qcom,scm

Re: [RFC v2 2/2] mm/memory_hotplug: Shrink spanned pages when offlining memory

2018-08-29 Thread Pasha Tatashin
On 8/17/18 11:41 AM, Oscar Salvador wrote: > From: Oscar Salvador > > Currently, we decrement zone/node spanned_pages when we > remove memory and not when we offline it. > > This, besides of not being consistent with the current code, > implies that we can access steal pages if we never get to

[PATCH tip/core/rcu 04/10] rcu: Switch last accelerate/advance to rcu_data structure

2018-08-29 Thread Paul E. McKenney
This commit removes ->last_accelerate and ->last_advance_all from the rcu_dynticks structure and updates the code to access them from the rcu_data structure. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.h| 4 kernel/rcu/tree_plugin.h | 17 - 2 files changed,

[PATCH tip/core/rcu 01/10] rcu: Remove unused rcu_dynticks_snap() from Tiny RCU

2018-08-29 Thread Paul E. McKenney
The rcu_dynticks_snap() function is defined in include/linux/rcutiny.h, but is no longer used by Tiny RCU. This commit therefore removes it. Signed-off-by: Paul E. McKenney --- include/linux/rcutiny.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/linux/rcutiny.h

[PATCH tip/core/rcu 02/10] rcu: Merge rcu_dynticks structure into rcu_data structure

2018-08-29 Thread Paul E. McKenney
Now that there is only ever one rcu_data structure per CPU, there is no need for a separate rcu_dynticks structure. This commit therefore adds the rcu_dynticks fields into the rcu_data structure in preparation for removing the rcu_dynticks structure entirely. Note that the ->dynticks field will

[PATCH tip/core/rcu 10/10] rcu: Convert rcu_state.ofl_lock to raw_spinlock_t

2018-08-29 Thread Paul E. McKenney
From: Mike Galbraith 1e64b15a4b10 ("rcu: Fix grace-period hangs due to race with CPU offline") added spinlock_t ofl_lock to the rcu_state structure, then takes it with preemption disabled during CPU offline, which gives the -rt patchset's sleeping spinlock heartburn. This commit therefore

[PATCH tip/core/rcu 05/10] rcu: Switch lazy counts to rcu_data structure

2018-08-29 Thread Paul E. McKenney
This commit removes ->all_lazy, ->nonlazy_posted and ->nonlazy_posted_snap from the rcu_dynticks structure and updates the code to access them from the rcu_data structure. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.h| 7 --- kernel/rcu/tree_plugin.h | 23

[PATCH tip/core/rcu 07/10] rcu: Switch dyntick nesting counters to rcu_data structure

2018-08-29 Thread Paul E. McKenney
This commit removes ->dynticks_nesting and ->dynticks_nmi_nesting from the rcu_dynticks structure and updates the code to access them from the rcu_data structure. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c| 79 +--- kernel/rcu/tree.h

[PATCH tip/core/rcu 06/10] rcu: Switch urgent quiescent-state requests to rcu_data structure

2018-08-29 Thread Paul E. McKenney
This commit removes ->rcu_need_heavy_qs and ->rcu_urgent_qs from the rcu_dynticks structure and updates the code to access them from the rcu_data structure. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c| 12 ++-- kernel/rcu/tree.h| 2 -- kernel/rcu/tree_exp.h

[PATCH tip/core/rcu 08/10] rcu: Switch ->dynticks to rcu_data structure, remove rcu_dynticks

2018-08-29 Thread Paul E. McKenney
This commit move ->dynticks from the rcu_dynticks structure to the rcu_data structure, replacing the field of the same name. It also updates the code to access ->dynticks from the rcu_data structure and to use the rcu_data structure rather than following to now-gone ->dynticks field to the

[PATCH tip/core/rcu 09/10] rcu: Remove obsolete ->dynticks_fqs and ->cond_resched_completed

2018-08-29 Thread Paul E. McKenney
The rcu_data structure's ->dynticks_fqs is incremented but never accesses. Its ->cond_resched_completed field isn't used at all. This commit therefore removes both fields. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 1 - kernel/rcu/tree.h | 12 +++- 2 files changed, 3

[PATCH tip/core/rcu 03/10] rcu: Switch ->tick_nohz_enabled_snap to rcu_data structure

2018-08-29 Thread Paul E. McKenney
This commit removes ->tick_nohz_enabled_snap from the rcu_dynticks structure and updates the code to access it from the rcu_data structure. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.h| 1 - kernel/rcu/tree_plugin.h | 10 +- 2 files changed, 5 insertions(+), 6

Re: [GIT PULL] hwmon fixes for v4.19-rc2

2018-08-29 Thread Linus Torvalds
On Wed, Aug 29, 2018 at 1:32 PM Guenter Roeck wrote: > > Please pull hwmon fixes for Linux v4.19-rc2 from signed tag: That actually isn't a signed tag at all, it's just a bare tag (ie just directly points to the commit). I guess I don't care *that* much, since it's from kernel.org, but you

[PATCH tip/core/rcu 0/10] Dyntick changes for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! Now that there is only one rcu_data structure per CPU, there isn't a whole lot of point in maintaining a separate per-CPU rcu_dynticks structure. This series therefore merges the rcu_dynticks structure into the rcu_data structure. 1. Remove unused rcu_dynticks_snap() from Tiny RCU.

[PATCH tip/core/rcu 0/10] Forward-progress changes for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! This series includes changes that improve RCU's forward-progress guarantees for normal grace periods, with a few stray RCU-consolidation cleanups thrown in for good measure. 1. Make need_resched() respond to urgent RCU-QS needs. 2. Provide improved interrupt-from-idle check in

[PATCH v4 2/3] x86/modules: Increase randomization for modules

2018-08-29 Thread Rick Edgecombe
This changes the behavior of the KASLR logic for allocating memory for the text sections of loadable modules. It randomizes the location of each module text section with about 17 bits of entropy in typical use. This is enabled on X86_64 only. For 32 bit, the behavior is unchanged. It refactors

Re: [PATCH] PM / devfreq: Add new name attribute for sysfs

2018-08-29 Thread Chanwoo Choi
Hi Bartlomiej, On 2018년 08월 29일 21:50, Bartlomiej Zolnierkiewicz wrote: > > Hi Chanwoo, > > On Wednesday, August 29, 2018 04:34:06 PM Chanwoo Choi wrote: >> commit 4585fbcb5331 ("PM / devfreq: Modify the device name as devfreq(X) for >> sysfs") changed the node name to devfreq(x). After this

[PATCH v4 3/3] vmalloc: Add debugfs modfraginfo

2018-08-29 Thread Rick Edgecombe
Add debugfs file "modfraginfo" for providing info on module space fragmentation. This can be used for determining if loadable module randomization is causing any problems for extreme module loading situations, like huge numbers of modules or extremely large modules. Sample output when KASLR is

[PATCH v4 1/3] vmalloc: Add __vmalloc_node_try_addr function

2018-08-29 Thread Rick Edgecombe
Create __vmalloc_node_try_addr function that tries to allocate at a specific address and supports caller specified behavior for whether any lazy purging happens if there is a collision. This new function draws from the __vmalloc_node_range implementation. Attempts to merge the two into a single

[PATCH v4 0/3] KASLR feature to randomize each loadable module

2018-08-29 Thread Rick Edgecombe
Hi, This is v4 of the "KASLR feature to randomize each loadable module" patchset. The purpose is to increase the randomization and also to make the modules randomized in relation to each other instead of just the base, so that if one module leaks the location of the others can't be inferred. It

[PATCH tip/core/rcu 22/24] rcu: Remove !PREEMPT code from rcu_note_voluntary_context_switch()

2018-08-29 Thread Paul E. McKenney
Because RCU-tasks exists only in PREEMPT kernels and because RCU-sched no longer exists in PREEMPT kernels, it is no longer necessary for the rcu_note_voluntary_context_switch() macro to do anything for !PREEMPT kernels. This commit therefore removes !PREEMPT-related code from this macro, namely,

Re: [PATCH resend] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name

2018-08-29 Thread Andrew Morton
On Tue, 28 Aug 2018 19:42:24 -0700 Greg KH wrote: > > --- lnx-416.orig/include/uapi/linux/keyctl.h > > +++ lnx-416/include/uapi/linux/keyctl.h > > @@ -65,7 +65,7 @@ > > > > /* keyctl structures */ > > struct keyctl_dh_params { > > - __s32 private; > > + __s32 dh_private; > > Ick ick

[PATCH tip/core/rcu 13/24] rcu: Clean up flavor-related definitions and comments in Kconfig

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/Kconfig | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index a0b7f0103ca9..939a2056c87a 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -196,7 +196,7 @@

[PATCH tip/core/rcu 14/24] rcu: Clean up flavor-related definitions and comments in rcu.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/rcu.h | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h index aa3dc08af4b3..5dec94509a7e 100644 --- a/kernel/rcu/rcu.h +++ b/kernel/rcu/rcu.h @@ -176,8 +176,9 @@ static inline

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

2018-08-29 Thread Nadav Amit
at 2:00 PM, Sean Christopherson wrote: > 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

[PATCH tip/core/rcu 19/24] rcu: Clean up flavor-related definitions and comments in tree_exp.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_exp.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h index 060bdb45cd95..78553a8fa3c6 100644 --- a/kernel/rcu/tree_exp.h +++ b/kernel/rcu/tree_exp.h @@

[PATCH tip/core/rcu 15/24] rcu: Clean up flavor-related definitions and comments in rcutorture.c

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/rcutorture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index a228ad762fba..294b3f6b7eb6 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -1221,7

[PATCH tip/core/rcu 05/24] rcutorture: Add RCU-bh and RCU-sched support for extended readers

2018-08-29 Thread Paul E. McKenney
Since there is now a single consolidated RCU flavor, rcutorture needs to test extending of RCU readers via rcu_read_lock_bh() and rcu_read_lock_sched(). This commit adds this support, with added checks (just like for local_bh_enable()) to ensure that rcu_read_unlock_bh() will not be invoked while

[PATCH tip/core/rcu 12/24] rcu: Clean up flavor-related definitions and comments in rcupdate_wait.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- include/linux/rcupdate_wait.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/rcupdate_wait.h b/include/linux/rcupdate_wait.h index bc104699560e..8a16c3eb3dd0 100644 --- a/include/linux/rcupdate_wait.h +++

[PATCH tip/core/rcu 03/24] rcu: Consolidate RCU-bh update-side function definitions

2018-08-29 Thread Paul E. McKenney
This commit saves a few lines by consolidating the RCU-bh function definitions at the end of include/linux/rcupdate.h. This consolidation also makes it easier to remove them all when the time comes. Signed-off-by: Paul E. McKenney --- include/linux/rcupdate.h | 27 ++-

[PATCH tip/core/rcu 08/24] rcuperf: Remove the "rcu_bh" and "sched" torture types

2018-08-29 Thread Paul E. McKenney
Now that the RCU-bh and RCU-sched update-side functions are simple wrappers around their RCU counterparts, there isn't a whole lot of point in testing them. This commit therefore removes the "rcu_bh" and "sched" torture types from rcuperf. Signed-off-by: Paul E. McKenney ---

[PATCH tip/core/rcu 16/24] rcu: Clean up flavor-related definitions and comments in srcutree.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/srcutree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c index 2042080cd38b..7f266b0f9832 100644 --- a/kernel/rcu/srcutree.c +++ b/kernel/rcu/srcutree.c @@ -980,7 +980,7 @@

[PATCH tip/core/rcu 24/24] rcu: Inline _rcu_barrier() into its sole remaining caller

2018-08-29 Thread Paul E. McKenney
Because rcu_barrier() is a one-line wrapper function for _rcu_barrier() and because nothing else calls _rcu_barrier(), this commit inlines _rcu_barrier() into rcu_barrier(). Signed-off-by: Paul E. McKenney --- include/trace/events/rcu.h | 20 ++--- kernel/rcu/tree.c | 58

[PATCH tip/core/rcu 17/24] rcu: Clean up flavor-related definitions and comments in tiny.c

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/tiny.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index 30826fb6e438..a77853b73bfe 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c @@ -117,9 +117,9 @@ static

[PATCH tip/core/rcu 18/24] rcu: Clean up flavor-related definitions and comments in tree.c

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 74 --- 1 file changed, 32 insertions(+), 42 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index fb888085d304..e8fbb7ee76cc 100644 --- a/kernel/rcu/tree.c +++

[PATCH tip/core/rcu 06/24] rcu: Stop testing RCU-bh and RCU-sched

2018-08-29 Thread Paul E. McKenney
Now that the RCU-bh and RCU-sched update-side functions are simple wrappers around their RCU counterparts, there isn't a whole lot of point in testing them. This commit therefore removes the self-test capability and removes the corresponding kernel-boot parameters. It also updates the various

[PATCH tip/core/rcu 10/24] rcu: Clean up flavor-related definitions and comments in rcupdate.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- include/linux/rcupdate.h | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 12103e1bbe67..d6d543b60a9f 100644 --- a/include/linux/rcupdate.h +++

[PATCH tip/core/rcu 07/24] rcutorture: Remove the "rcu_bh" and "sched" torture types

2018-08-29 Thread Paul E. McKenney
Now that the RCU-bh and RCU-sched update-side functions are simple wrappers around their RCU counterparts, there isn't a whole lot of point in testing them. This commit therefore removes the "rcu_bh" and "sched" torture types from rcutorture. Signed-off-by: Paul E. McKenney ---

[PATCH tip/core/rcu 04/24] rcu: Consolidate RCU-sched update-side function definitions

2018-08-29 Thread Paul E. McKenney
This commit saves a few lines by consolidating the RCU-sched function definitions at the end of include/linux/rcupdate.h. This consolidation also makes it easier to remove them all when the time comes. Signed-off-by: Paul E. McKenney --- include/linux/rcupdate.h | 38 +-

[PATCH tip/core/rcu 02/24] rcu: Pull rcu_gp_kthread() FQS loop into separate function

2018-08-29 Thread Paul E. McKenney
The rcu_gp_kthread() function is long and deeply indented, so this commit pulls the loop that repeatedly invokes rcu_gp_fqs() into a new rcu_gp_fqs_loop() function. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 125 -- 1 file changed, 66

[PATCH tip/core/rcu 11/24] rcu: Clean up flavor-related definitions and comments in rculist.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- include/linux/rculist.h | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/include/linux/rculist.h b/include/linux/rculist.h index 4786c2235b98..e91ec9ddcd30 100644 --- a/include/linux/rculist.h +++

[PATCH tip/core/rcu 01/24] rcu: Inline increment_cpu_stall_ticks() into its sole caller

2018-08-29 Thread Paul E. McKenney
Consolidation of the RCU flavors into one makes increment_cpu_stall_ticks() a trivial one-line function with only one caller. This commit therefore inlines it. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c| 2 +- kernel/rcu/tree.h| 1 - kernel/rcu/tree_plugin.h | 6

[PATCH tip/core/rcu 20/24] rcu: Clean up flavor-related definitions and comments in tree_plugin.h

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_plugin.h | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index cd276c46bc14..cd4c1b979446 100644 --- a/kernel/rcu/tree_plugin.h +++

[PATCH tip/core/rcu 09/24] rcu: Remove now-unused rcutorture APIs

2018-08-29 Thread Paul E. McKenney
This commit removes rcu_sched_get_gp_seq(), rcu_bh_get_gp_seq(), rcu_exp_batches_completed_sched(), rcu_sched_force_quiescent_state(), and rcu_bh_force_quiescent_state(), which are no longer used because rcutorture no longer does "rcu_bh" and "rcu_sched" torture types. Signed-off-by: Paul E.

[PATCH tip/core/rcu 23/24] rcu: Define rcu_all_qs() only in !PREEMPT builds

2018-08-29 Thread Paul E. McKenney
Now that rcu_all_qs() is used only in !PREEMPT builds, move it to tree_plugin.h so that it is defined only in those builds. This in turn means that rcu_momentary_dyntick_idle() is only used in !PREEMPT builds, but it is simply marked __maybe_unused in order to keep it near the rest of the

[PATCH tip/core/rcu 21/24] rcu: Clean up flavor-related definitions and comments in update.c

2018-08-29 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- kernel/rcu/update.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index ee366faecea6..fa089ead4bd6 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -332,7

[PATCH tip/core/rcu 0/24] Additional RCU-consolidation cleanups for v4.20/v5.0

2018-08-29 Thread Paul E. McKenney
Hello! This series contains yet more cleanups for RCU flavor consolidation: 1. Inline the now-trivial increment_cpu_stall_ticks() into its sole caller. 2. Pull the rcu_gp_kthread() function's force-quiescent-state loop into a separate function 3. Consolidate

Re: [PATCH] PM / devfreq: Add new name attribute for sysfs

2018-08-29 Thread Chanwoo Choi
Dear Greg, On 2018년 08월 29일 19:57, Greg KH wrote: > On Wed, Aug 29, 2018 at 04:34:06PM +0900, Chanwoo Choi wrote: >> commit 4585fbcb5331 ("PM / devfreq: Modify the device name as devfreq(X) for >> sysfs") changed the node name to devfreq(x). After this commit, it is not >> possible to get the

  1   2   3   4   5   6   7   8   >