Re: [PATCH v6 3/3] x86: paravirt: make native_save_fl extern inline

2018-07-16 Thread Nick Desaulniers
On Fri, Jul 13, 2018 at 3:15 AM David Laight wrote: > > From: Nick Desaulniers > > Sent: 21 June 2018 17:23 > > > > native_save_fl() is marked static inline, but by using it as > > a function pointer in arch/x86/kernel/paravirt.c, it MUST be outlined. > > > > paravirt's use of native_save_fl() als

Re: cpu_no_speculation omissions?

2018-07-16 Thread Dave Hansen
On 07/16/2018 09:56 AM, Thomas Gleixner wrote: > On Mon, 16 Jul 2018, Rich Felker wrote: >> At least the Centerton (late-generation Bonnell uarch) Atom family is >> omitted from the cpu_no_speculation table added by commit fec9434a12f3 >> to arch/x86/kernel/cpu/common.c. Is this intentional? Would

Re: [v9] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-07-16 Thread Stephen Boyd
Quoting Taniya Das (2018-05-08 22:56:07) > Add the RPMh clock driver to control the RPMh managed clock resources on > some of the Qualcomm Technologies, Inc. SoCs. > > Signed-off-by: Taniya Das > --- Applied to clk-next

Re: [PATCH 1/2] mm: Fix vma_is_anonymous() false-positives

2018-07-16 Thread Michal Hocko
On Mon 16-07-18 17:47:39, Kirill A. Shutemov wrote: > On Mon, Jul 16, 2018 at 04:22:45PM +0200, Michal Hocko wrote: > > On Mon 16-07-18 17:04:41, Kirill A. Shutemov wrote: > > > On Mon, Jul 16, 2018 at 01:30:28PM +, Michal Hocko wrote: > > > > On Tue 10-07-18 13:48:58, Andrew Morton wrote: > >

Re: [tip:sched/core] sched/cputime: Ensure accurate utime and stime ratio in cputime_adjust()

2018-07-16 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Sun, Jul 15, 2018 at 04:36:17PM -0700, tip-bot for Xunlei Pang wrote: > > Commit-ID: 8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 > > Gitweb: > > https://git.kernel.org/tip/8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 > > Author: Xunlei Pang > > AuthorDate: Mon,

Re: [PATCH 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 09:41:23AM -0700, Guenter Roeck wrote: > On Mon, Jul 16, 2018 at 06:31:36PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Jul 16, 2018 at 09:25:38AM -0700, Guenter Roeck wrote: > > > On Mon, Jul 16, 2018 at 09:36:08AM +0200, Greg Kroah-Hartman wrote: > > > > This is the start

[PATCH v6 0/5] sparse_init rewrite

2018-07-16 Thread Pavel Tatashin
Changelog: v6 - v5 - Removed one more obsolete function, as Oscar noticed - Replaced BUG_ON with WARN_ON, ALIGN with PTR_ALIGN. - Added review-by, and test-by. v5 - v4 - Fixed the issue that was reported on ppc64 when CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHE

[PATCH v6 4/5] mm/sparse: add new sparse_init_nid() and sparse_init()

2018-07-16 Thread Pavel Tatashin
sparse_init() requires to temporary allocate two large buffers: usemap_map and map_map. Baoquan He has identified that these buffers are so large that Linux is not bootable on small memory machines, such as a kdump boot. The buffers are especially large when CONFIG_X86_5LEVEL is set, as they are s

[PATCH v6 5/5] mm/sparse: delete old sparse_init and enable new one

2018-07-16 Thread Pavel Tatashin
Rename new_sparse_init() to sparse_init() which enables it. Delete old sparse_init() and all the code that became obsolete with. Signed-off-by: Pavel Tatashin Tested-by: Michael Ellerman (powerpc) --- include/linux/mm.h | 6 -- mm/Kconfig | 4 - mm/sparse-vmemmap.c | 21 mm

[PATCH v6 1/5] mm/sparse: abstract sparse buffer allocations

2018-07-16 Thread Pavel Tatashin
When struct pages are allocated for sparse-vmemmap VA layout, we first try to allocate one large buffer, and than if that fails allocate struct pages for each section as we go. The code that allocates buffer is uses global variables and is spread across several call sites. Cleanup the code by int

[PATCH v6 2/5] mm/sparse: use the new sparse buffer functions in non-vmemmap

2018-07-16 Thread Pavel Tatashin
non-vmemmap sparse also allocated large contiguous chunk of memory, and if fails falls back to smaller allocations. Use the same functions to allocate buffer as the vmemmap-sparse Signed-off-by: Pavel Tatashin --- mm/sparse.c | 41 ++--- 1 file changed, 14 in

[PATCH v6 3/5] mm/sparse: move buffer init/fini to the common place

2018-07-16 Thread Pavel Tatashin
Now, that both variants of sparse memory use the same buffers to populate memory map, we can move sparse_buffer_init()/sparse_buffer_fini() to the common place. Signed-off-by: Pavel Tatashin --- include/linux/mm.h | 3 --- mm/sparse-vmemmap.c | 2 -- mm/sparse.c | 14 +++--- 3

Re: [PATCH v2 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-07-16 Thread Rob Herring
On Fri, Jul 13, 2018 at 12:42:02AM +0300, Tomer Maimon wrote: > Added device tree binding documentation for Nuvoton BMC > NPCM750/730/715/705 pinmux and GPIO controller. > > Signed-off-by: Tomer Maimon > --- > .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 > + > 1

[GIT PULL rcu/next] RCU commits for 4.19

2018-07-16 Thread Paul E. McKenney
Hello, Ingo! This pull request contains the following changes: 1. An optimization and a fix for RCU expedited grace periods, with the fix being from Boqun Feng. http://lkml.kernel.org/r/20180625224308.ga10...@linux.vnet.ibm.com 2. Miscellaneous fixes, including a lockd

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-07-16 Thread Matthias Kaehlcke
On Thu, Jul 12, 2018 at 05:44:33PM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 07월 07일 02:53, Matthias Kaehlcke wrote: > > Hi Chanwoo, > > > > On Wed, Jul 04, 2018 at 03:41:46PM +0900, Chanwoo Choi wrote: > > > >> Firstly, > >> I'm not sure why devfreq needs the devfreq_verify_within_

Re: [PATCH v2 1/3] dt-bindings: pfuze100: add optional disable switch-regulators binding

2018-07-16 Thread Rob Herring
On Fri, Jul 13, 2018 at 02:50:01PM +0200, Marco Felsch wrote: > This binding is used to keep the backward compatibility with the current > dtb's [1]. The binding informs the driver that the unused switch regulators > can be disabled. > If it is not specified, the driver doesn't disable the switch r

Re: [PATCH 4.17 00/67] 4.17.7-stable review

2018-07-16 Thread Naresh Kamboju
On 16 July 2018 at 13:04, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.7 release. > There are 67 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

RE: [PATCH] ACPICA: Clear status of all events when entering S5

2018-07-16 Thread Schmauss, Erik
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Sunday, July 8, 2018 2:10 AM > To: Linux ACPI > Cc: Thomas Hänig ; Takashi Iwai ; > Schmauss, Erik ; Linux PM p...@vger.kernel.org>; Linux Kernel Mailing List > > Subject: [PATCH] ACPICA: Clear status o

Re: [PATCH v2 3/3] dt-bindings: mfd: max8998: Add charger subnode binding

2018-07-16 Thread Rob Herring
On Sat, Jul 14, 2018 at 02:26:53PM +0200, Paweł Chmiel wrote: > This patch adds devicetree bindings documentation for > battery charging controller as the subnode of MAX8998 PMIC. > > Signed-off-by: Paweł Chmiel > --- > Changes from v1: > - Removed unneeded Fixes tag > - Correct description o

Re: [PATCH 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Guenter Roeck
On Mon, Jul 16, 2018 at 07:43:32PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 16, 2018 at 09:41:23AM -0700, Guenter Roeck wrote: > > On Mon, Jul 16, 2018 at 06:31:36PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Jul 16, 2018 at 09:25:38AM -0700, Guenter Roeck wrote: > > > > On Mon, Jul 16, 2

Re: [RFC][PATCH 07/11] signal: Deliver group signals via PIDTYPE_TGID not PIDTYPE_PID

2018-07-16 Thread Eric W. Biederman
Linus Torvalds writes: > On Mon, Jul 16, 2018 at 7:50 AM Eric W. Biederman > wrote: >> >> In practice since glibc does not make thread id's available I don't >> expect anyone relies on this behavior. Since no one relies on it we >> can change it without creating a regression. > > Maybe. > > Ho

Re: [PATCH v2 1/2] documentation: pinctrl: Add compatibles for Amlogic Meson G12A pin controllers

2018-07-16 Thread Rob Herring
On Sat, Jul 14, 2018 at 11:27:53PM +, Yixun Lan wrote: > Add new compatible name for Amlogic's Meson-G12A pin controllers, > add a dt-binding header file which document the detail pin names. > > Acked-by: Martin Blumenstingl > Signed-off-by: Xingyu Chen > Signed-off-by: Yixun Lan > --- > .

[PATCH memory-model 0/14] Updates to the formal memory model

2018-07-16 Thread Paul E. McKenney
Hello! This series contains updates to the Linux kernel's formal memory model in tools/memory-model, along with corresponding changes in documentation and Linux-kernel code. These patches are ready for inclusion into -tip. 1. Add a litmus test for full multi-copy atomicity. 2. Fix the

[PATCH memory-model 02/14] tools/memory-model: Fix ISA2+pooncelock+pooncelock+pombonce name

2018-07-16 Thread Paul E. McKenney
The names on the first line of the litmus tests are arbitrary, but the convention is that they be the filename without the trailing ".litmus". This commit therefore removes the stray trailing ".litmus" from ISA2+pooncelock+pooncelock+pombonce.litmus's name. Reported-by: Andrea Parri Signed-off-b

[PATCH memory-model 12/14] doc: Update wake_up() & co. memory-barrier guarantees

2018-07-16 Thread Paul E. McKenney
From: Andrea Parri Both the implementation and the users' expectation [1] for the various wakeup primitives have evolved over time, but the documentation has not kept up with these changes: brings it into 2018. [1] http://lkml.kernel.org/r/20180424091510.gb4...@hirez.programming.kicks-ass.net

[PATCH memory-model 04/14] locking/memory-barriers.txt/kokr: Update Korean translation to fix broken DMA vs. MMIO ordering example

2018-07-16 Thread Paul E. McKenney
From: SeongJae Park Translate this commit to Korean: 5846581e3563 ("locking/memory-barriers.txt: Fix broken DMA vs. MMIO ordering example") Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney [ paulmck: Updated based on feedback from Byungchul Park. ] Acked-by: Byungchul Park ---

[PATCH memory-model 13/14] memory-model/Documentation: Fix typo, smb->smp

2018-07-16 Thread Paul E. McKenney
From: Yauheni Kaliuta The tools/memory-model/Documentation/explanation.txt file says "For each other CPU C', smb_wmb() forces all po-earlier stores" This commit therefore replaces the "smb_wmb()" with "smp_wmb()". Signed-off-by: Yauheni Kaliuta Signed-off-by: Paul E. McKenney Acked-by: Alan St

[PATCH memory-model 05/14] tools/memory-model: Remove ACCESS_ONCE() from recipes

2018-07-16 Thread Paul E. McKenney
From: Mark Rutland Since commit: b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") ... there has been no definition of ACCESS_ONCE() in the kernel tree, and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. Let's update the exmaples in recipes.txt likewise for consistency

[PATCH memory-model 03/14] MAINTAINERS: Add Daniel Lustig as an LKMM reviewer

2018-07-16 Thread Paul E. McKenney
From: Palmer Dabbelt Dan runs the RISC-V memory model working group. I've been forwarding him LKMM emails that end up in my inbox, but I'm far from an expert in this stuff. He requested to be added as a reviewer, which seems sane to me as it'll take a human out of the loop. CC: Daniel Lustig

[PATCH memory-model 07/14] tools/memory-model: Make scripts executable

2018-07-16 Thread Paul E. McKenney
This commit makes the scripts executable to avoid the need for everyone to do so manually in their archive. Signed-off-by: Paul E. McKenney Acked-by: Akira Yokosawa --- tools/memory-model/scripts/checkalllitmus.sh | 2 +- tools/memory-model/scripts/checklitmus.sh| 2 +- 2 files changed, 2 i

[PATCH memory-model 06/14] tools/memory-model: Remove ACCESS_ONCE() from model

2018-07-16 Thread Paul E. McKenney
From: Mark Rutland Since commit: b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") ... there has been no definition of ACCESS_ONCE() in the kernel tree, and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. Correspondingly, let's remove ACCESS_ONCE() from the kernel memor

Re: [PATCH v6] pidns: introduce syscall translate_pid

2018-07-16 Thread Nagarathnam Muthusamy
On 06/01/2018 12:18 PM, Konstantin Khlebnikov wrote: Each process have different pids, one for each pid namespace it belongs. When interaction happens within single pid-ns translation isn't required. More complicated scenarios needs special handling. For example: - reading pid-files or logs w

[PATCH memory-model 14/14] tools/memory-model: Rename litmus tests to comply to norm7

2018-07-16 Thread Paul E. McKenney
From: Andrea Parri norm7 produces the 'normalized' name of a litmus test, when the test can be generated from a single cycle that passes through each process exactly once. The commit renames such tests in order to comply to the naming scheme implemented by this tool. Signed-off-by: Andrea Parri

[PATCH memory-model 09/14] tools/memory-model: Add informal LKMM documentation to MAINTAINERS

2018-07-16 Thread Paul E. McKenney
The Linux-kernel memory model has been informal, with a number of text files documenting it. It would be good to make sure that these informal descriptions are kept up to date and/or pruned appropriately. This commit therefore brings more of those text files into the LKMM MAINTAINERS file entry.

[PATCH memory-model 08/14] docs: atomic_ops: Describe atomic_set as a write operation

2018-07-16 Thread Paul E. McKenney
From: Jonathan Neuschäfer The atomic_set() and ATOMIC_INIT() operations are writes, so this commit changes their description from "reads" to "writes". Signed-off-by: Jonathan Neuschäfer Signed-off-by: Paul E. McKenney Reviewed-by: Andrea Parri --- Documentation/core-api/atomic_ops.rst | 2 +-

[PATCH memory-model 11/14] locking: Clarify requirements for smp_mb__after_spinlock()

2018-07-16 Thread Paul E. McKenney
From: Andrea Parri There are 11 interpretations of the requirements described in the header comment for smp_mb__after_spinlock(): one for each LKMM maintainer, and one currently encoded in the Cat file. Stick to the latter (until a more satisfactory solution is available). This also reworks some

[PATCH memory-model 01/14] tools/memory-model: Add litmus test for full multicopy atomicity

2018-07-16 Thread Paul E. McKenney
This commit adds a litmus test suggested by Alan Stern that is forbidden on fully multicopy atomic systems, but allowed on other-multicopy and on non-multicopy atomic systems. For reference, s390 is fully multicopy atomic, x86 and ARMv8 are other-multicopy atomic, and ARMv7 and powerpc are non-mul

[PATCH memory-model 10/14] sched: Use smp_mb() in wake_woken_function()

2018-07-16 Thread Paul E. McKenney
From: Andrea Parri wake_woken_function() synchronizes with wait_woken() as follows: [wait_woken] [wake_woken_function] entry->flags &= ~wq_flag_woken;condition = true; smp_mb(); smp_wmb(); if (condition) wq_entry->fl

[PATCH V2 2/6] mailbox: ti-msgmgr: Allocate Rx channel resources only on request

2018-07-16 Thread Nishanth Menon
In a much bigger system SoCs, the number of Rx channels can be many and mostly unused based on the system of choice, and not all Rx channels need IRQs and allocating all memory at probe will be inefficient. Some SoCs could have total threads in the 100s and usage would be just 1 Rx thread. Thus, r

[PATCH V2 3/6] mailbox: ti-msgmgr: Change message count mask to be descriptor based

2018-07-16 Thread Nishanth Menon
Change mask used to extract the message count to be descriptor based. This is to support changes for count location for various SoC solutions. Signed-off-by: Nishanth Menon --- Changes since V1: None V1: https://patchwork.kernel.org/patch/10475341/ RFC: https://patchwork.kernel.org/patch/104476

[PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-16 Thread Nishanth Menon
The V2 of the series updates a minor comment in binding and picks up Rob's Reviewed-by Since I have'nt seen additional comments, I am assuming things are fine for v4.19. The following series enables support for Secure Proxy in newest addition in TI's SoC portfolio - AM654 SoC (posted previousl

[PATCH V2 6/6] mailbox: ti-msgmgr: Add support for Secure Proxy

2018-07-16 Thread Nishanth Menon
Secure Proxy is another communication scheme in Texas Instrument's devices intended to provide an unique communication path from various processors in the System on Chip(SoC) to a central System Controller. Secure proxy is, in effect, an evolution of current generation Message Manager hardware blo

[PATCH V2 1/6] mailbox: ti-msgmgr: Get rid of unused structure members

2018-07-16 Thread Nishanth Menon
Though q_proxies and q_slices do describe the hardware configuration, they are not necessary for operation given that the values are always default. Hence drop the same. Signed-off-by: Nishanth Menon --- Changes since V1: None V1: https://patchwork.kernel.org/patch/10475339/ RFC: https://patchwo

[PATCH V2 5/6] dt-bindings: mailbox: Add support for secure proxy threads

2018-07-16 Thread Nishanth Menon
Secure Proxy is another communication scheme in Texas Instrument's devices intended to provide an unique communication path from various processors in the System on Chip(SoC) to a central System Controller. Secure proxy is, in effect, an evolution of current generation Message Manager hardware blo

[PATCH V2 4/6] mailbox: ti-msgmgr: Move the memory region name to descriptor

2018-07-16 Thread Nishanth Menon
For newer generation of the hardware, the naming of the region is decided at integration level and there could be additional regions as well. Hence move the region naming to be described from compatible descriptor. Signed-off-by: Nishanth Menon --- Changes since V1: None V1: https://patchwork.ker

Re: [patch v3 -mm 3/6] mm, memcg: add hierarchical usage oom policy

2018-07-16 Thread Roman Gushchin
On Fri, Jul 13, 2018 at 04:07:29PM -0700, David Rientjes wrote: > One of the three significant concerns brought up about the cgroup aware > oom killer is that its decisionmaking is completely evaded by creating > subcontainers and attaching processes such that the ancestor's usage does > not exceed

Re: [PATCH] IPoIB: use kvzalloc to allocate an array of bucket pointers

2018-07-16 Thread Håkon Bugge
> On 16 Jul 2018, at 18:19, Jan Dakinevich wrote: > > On Mon, 9 Jul 2018 16:51:03 +0300 > Jan Dakinevich wrote: > >> This table by default takes 32KiB which is 3rd memory order. Only if PAGE_SIZE is 4KiB... >> Meanwhile, this memory is not aimed for DMA operation and could be >> safely al

Re: [PATCH] checkpatch: Require commit text and warn on long commit text lines

2018-07-16 Thread pheragu
On 2018-07-13 17:08, Joe Perches wrote: On Fri, 2018-07-13 at 16:28 -0700, pher...@codeaurora.org wrote: On 2018-07-13 14:46, Joe Perches wrote: > On Fri, 2018-07-13 at 14:40 -0700, Prakruthi Deepak Heragu wrote: > > Commit text is almost always necessary to explain why a change is > > needed. >

Re: [PATCH v3] time: Fix incorrect sleeptime injection when suspend fails

2018-07-16 Thread Mukesh Ojha
On 7/16/2018 10:44 PM, John Stultz wrote: On Mon, Jul 16, 2018 at 9:30 AM, John Stultz wrote: On Mon, Jul 16, 2018 at 9:17 AM, Mukesh Ojha wrote: On 7/13/2018 10:50 PM, John Stultz wrote: On Fri, Jul 13, 2018 at 12:13 AM, Mukesh Ojha On 7/11/2018 1:43 AM, John Stultz wrote: I worry thi

Re: [PATCH 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 11:02:19AM -0700, Guenter Roeck wrote: > On Mon, Jul 16, 2018 at 07:43:32PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Jul 16, 2018 at 09:41:23AM -0700, Guenter Roeck wrote: > > > On Mon, Jul 16, 2018 at 06:31:36PM +0200, Greg Kroah-Hartman wrote: > > > > On Mon, Jul 16, 2

Re: [PATCH 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 08:31:20PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 16, 2018 at 11:02:19AM -0700, Guenter Roeck wrote: > > On Mon, Jul 16, 2018 at 07:43:32PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Jul 16, 2018 at 09:41:23AM -0700, Guenter Roeck wrote: > > > > On Mon, Jul 16, 2

Re: [PATCH 4.9 03/32] MIPS: Use async IPIs forarch_trigger_cpumask_backtrace()

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 12:46:21PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 16, 2018 at 05:46:12PM +0800, 陈华才 wrote: > > Just change "call_single_data_t" to "struct call_single_data" and > > everything is OK. > > Ok, I've done that now, thanks. And I messed it up. So I've just dropped it

Re: [PATCH 7/7] x86,switch_mm: skip atomic operations for init_mm

2018-07-16 Thread Rik van Riel
On Mon, 2018-07-16 at 03:04 +0200, Ingo Molnar wrote: > * Rik van Riel wrote: > > > On Mon, 2018-07-16 at 01:04 +0200, Ingo Molnar wrote: > > > * Rik van Riel wrote: > > > > > > > + /* > > > > +* Stop remote flushes for the previous mm. > > > > +* S

Re: [RFC][PATCH 07/11] signal: Deliver group signals via PIDTYPE_TGID not PIDTYPE_PID

2018-07-16 Thread Linus Torvalds
On Mon, Jul 16, 2018 at 11:02 AM Eric W. Biederman wrote: > > There are two questions. > a) Can we use the pid of a thread to find the thread group? Yes. Just find the thread, and then use p->tgid. However, that's not what the code used to do. It used to just find the thread, and then do "do_sen

Re: [PATCH v3] time: Fix incorrect sleeptime injection when suspend fails

2018-07-16 Thread John Stultz
On Mon, Jul 16, 2018 at 11:30 AM, Mukesh Ojha wrote: > > > On 7/16/2018 10:44 PM, John Stultz wrote: >> >> On Mon, Jul 16, 2018 at 9:30 AM, John Stultz >> wrote: >>> >>> On Mon, Jul 16, 2018 at 9:17 AM, Mukesh Ojha >>> wrote: On 7/13/2018 10:50 PM, John Stultz wrote: > > On Fri

Re: cpu_no_speculation omissions?

2018-07-16 Thread Alan Cox
On Mon, 2018-07-16 at 10:28 -0700, Dave Hansen wrote: > On 07/16/2018 09:56 AM, Thomas Gleixner wrote: > > On Mon, 16 Jul 2018, Rich Felker wrote: > > > At least the Centerton (late-generation Bonnell uarch) Atom > > > family is > > > omitted from the cpu_no_speculation table added by commit > > >

Re: [PATCH v2 3/3] dt-bindings: mfd: max8998: Add charger subnode binding

2018-07-16 Thread Paweł Chmiel
On Monday, July 16, 2018 12:00:03 PM CEST Rob Herring wrote: > On Sat, Jul 14, 2018 at 02:26:53PM +0200, Paweł Chmiel wrote: > > This patch adds devicetree bindings documentation for > > battery charging controller as the subnode of MAX8998 PMIC. > > > > Signed-off-by: Paweł Chmiel > > --- > > Ch

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-16 Thread Meelis Roos
> > Everything below here is is 'bad', which can be an indication that you > > misclassified one of > > the commits above as 'good' when it should have been 'bad'. The most likely > > explanations are that you either typed the 'git bisect good' by accident, or > > that the failure is not 100% relia

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-16 Thread Peter Zijlstra
On Tue, Jul 17, 2018 at 12:40:19AM +1000, Michael Ellerman wrote: > > I guess arguably it's not a very macro benchmark, but we have a > context_switch benchmark in the tree[1] which we often use to tune > things, and it degrades badly. It just spins up two threads and has them > ping-pong using yi

[PATCH v6 0/7] x86,tlb,mm: make lazy TLB mode even lazier

2018-07-16 Thread Rik van Riel
Song noticed switch_mm_irqs_off taking a lot of CPU time in recent kernels, using 1.9% of a 48 CPU system during a netperf run. Digging into the profile, the atomic operations in cpumask_clear_cpu and cpumask_set_cpu are responsible for about half of that CPU use. However, the CPUs running netperf

[PATCH 1/7] mm: allocate mm_cpumask dynamically based on nr_cpu_ids

2018-07-16 Thread Rik van Riel
The mm_struct always contains a cpumask bitmap, regardless of CONFIG_CPUMASK_OFFSTACK. That means the first step can be to simplify things, and simply have one bitmask at the end of the mm_struct for the mm_cpumask. This does necessitate moving everything else in mm_struct into an anonymous sub-st

[PATCH 2/7] x86,tlb: leave lazy TLB mode at page table free time

2018-07-16 Thread Rik van Riel
Andy discovered that speculative memory accesses while in lazy TLB mode can crash a system, when a CPU tries to dereference a speculative access using memory contents that used to be valid page table memory, but have since been reused for something else and point into la-la land. The latter proble

[PATCH 7/7] x86,switch_mm: skip atomic operations for init_mm

2018-07-16 Thread Rik van Riel
Song noticed switch_mm_irqs_off taking a lot of CPU time in recent kernels,using 1.8% of a 48 CPU system during a netperf to localhost run. Digging into the profile, we noticed that cpumask_clear_cpu and cpumask_set_cpu together take about half of the CPU time taken by switch_mm_irqs_off. However,

[PATCH 6/7] x86,mm: always use lazy TLB mode

2018-07-16 Thread Rik van Riel
Now that CPUs in lazy TLB mode no longer receive TLB shootdown IPIs, except at page table freeing time, and idle CPUs will no longer get shootdown IPIs for things like mprotect and madvise, we can always use lazy TLB mode. Signed-off-by: Rik van Riel Acked-by: Dave Hansen Tested-by: Song Liu --

[PATCH 3/7] x86,mm: restructure switch_mm_irqs_off

2018-07-16 Thread Rik van Riel
Move some code that will be needed for the lazy -> !lazy state transition when a lazy TLB CPU has gotten out of date. No functional changes, since the if (real_prev == next) branch always returns. Signed-off-by: Rik van Riel Acked-by: Dave Hansen Suggested-by: Andy Lutomirski --- arch/x86/mm/

[PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-16 Thread Rik van Riel
Lazy TLB mode can result in an idle CPU being woken up by a TLB flush, when all it really needs to do is reload %CR3 at the next context switch, assuming no page table pages got freed. Memory ordering is used to prevent race conditions between switch_mm_irqs_off, which checks whether .tlb_gen chan

[PATCH 5/7] x86,tlb: only send page table free TLB flush to lazy TLB CPUs

2018-07-16 Thread Rik van Riel
CPUs in !is_lazy have either received TLB flush IPIs earlier on during the munmap (when the user memory was unmapped), or have context switched and reloaded during that stage of the munmap. Page table free TLB flushes only need to be sent to CPUs in lazy TLB mode, which TLB contents might not yet

[PATCH v2 08/10] staging:rtl8192u: Rename TClass > t_class - Style

2018-07-16 Thread John Whitmore
Rename the struct TS_COMMON_INFO member variable from TClass to t_class. This change clears the checkpatch issue with CamelCase Variable names. There should be no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/sta

[PATCH v2 05/10] staging:rtl8192u: Rename InactTimer > inact_timer - Style

2018-07-16 Thread John Whitmore
Rename the struct TS_COMMON_INFO member InactTimer to inact_timer. This change clears the checkpatch issue with CamelCase naming. The change should not have any impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/stag

[PATCH v2 02/10] staging:rtl8192u: remove typedef of struct TS_COMMON_INFO - Style

2018-07-16 Thread John Whitmore
To clear a checkpatch issue removed the typedef of the structure TS_COMMON_INFO. This change removes the previous declaration, which defined two types, both TS_COMMON_INFO and a pointer type PTS_COMMON_INFO: typedef struct _TS_COMMON_INFO { ... } TS_COMMON_INFO, *PTS_COMMON_INFO; The poi

[PATCH v2 01/10] staging:rtl8192u: remove typedef of enumeration TR_SELECT - Style

2018-07-16 Thread John Whitmore
To clear a checkpatch issue removed the typedef of the enumeration TR_SELECT this should not impact runtime code as it's only a coding style change. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 4 ++-- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c

[PATCH v2 09/10] staging:trl8192u: Rename TClasProc > t_clas_proc - Style

2018-07-16 Thread John Whitmore
Rename the struct TS_COMMON_INFO member variable TClasProc to t_clas_proc. This change clears the checkpatch issue with CamelCase variable names. There should be no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/s

[PATCH v2 06/10] staging:rtl8192u: Rename Addr > addr - Style

2018-07-16 Thread John Whitmore
Rename the TX_COMMON_INFO structure's member Addr to addr. This change clears the checkpatch issue with CamelCase naming. This is a coding style change only and should not impact runtime execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_BAProc.c| 10 +

[PATCH v2 10/10] staging:rtl8192u: Rename TClasNum > t_clas_num - Style

2018-07-16 Thread John Whitmore
Rename the struct TS_COMMON_INFO member variable TClasNum to t_clas_num. This change clears the checkpatch issue with CamelCase naming. There should be no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/staging/rtl

[PATCH v2 00/10] staging:rtl8192u: Coding style changes.

2018-07-16 Thread John Whitmore
Simple coding style changes to avoid CamelCase. John Whitmore (10): staging:rtl8192u: remove typedef of enumeration TR_SELECT - Style staging:rtl8192u: remove typedef of struct TS_COMMON_INFO - Style staging:rtl8192u: Rename List > list - Coding style staging:rtl8192u: rename SetupTimer >

[PATCH v2 07/10] staging:rtl8192u: Rename TSpec > t_spec - Style

2018-07-16 Thread John Whitmore
Rename the TS_COMMON_INFO structure's member TSpec to t_spec. This change clears the checkpatch issue with CamelCase naming of variables. There should be no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 +- drivers/staging/r

[PATCH v2 04/10] staging:rtl8192u: rename SetupTimer > setup_timer - Style

2018-07-16 Thread John Whitmore
Rename the struct TS_COMMON_INFO member SetupTimer to setup_timer. This clears the checkpatch issue with CamelCase variable names. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 8 2 file

[PATCH v2 03/10] staging:rtl8192u: Rename List > list - Coding style

2018-07-16 Thread John Whitmore
In struct TS_COMMON_INFO rename the member List to list. This clears the checkpatch issue concerning CamelCase naming of variables. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- .../rtl8192u/ieee80211/rtl819x_TSProc.c | 64 +-- 2 fi

Re: [RFC][PATCH 09/11] tty_io: Use do_send_sig_info in __do_SACK to forcibly kill tasks

2018-07-16 Thread Eric W. Biederman
Linus Torvalds writes: > On Mon, Jul 16, 2018 at 8:08 AM Eric W. Biederman > wrote: >> >> The change for global init is it will now die if init is a member of the >> session or init is using this tty as it's controlling tty. >> >> Semantically killing init with SAK is completely appropriate. >

Re: [PATCH v3] time: Fix incorrect sleeptime injection when suspend fails

2018-07-16 Thread Thomas Gleixner
On Tue, 17 Jul 2018, Mukesh Ojha wrote: > On 7/16/2018 10:44 PM, John Stultz wrote: > > > So, I think with the logic bug above it will work out properly, but > > > let me know if I'm still missing something. > > Please give it thought to a case where very first suspend fails with your > logic. > I

Re: cpu_no_speculation omissions?

2018-07-16 Thread Thomas Gleixner
On Mon, 16 Jul 2018, Alan Cox wrote: > On Mon, 2018-07-16 at 10:28 -0700, Dave Hansen wrote: > > On 07/16/2018 09:56 AM, Thomas Gleixner wrote: > > > On Mon, 16 Jul 2018, Rich Felker wrote: > > > > At least the Centerton (late-generation Bonnell uarch) Atom > > > > family is > > > > omitted from th

Re: [PATCHv4 02/12] atomics/x86: reduce arch_cmpxchg64*() instrumentation

2018-07-16 Thread Thomas Gleixner
On Mon, 16 Jul 2018, Mark Rutland wrote: > Currently x86's arch_cmpxchg64() and arch_cmpxchg64_local() are > instrumented twice, as they call into instrumented atomics rather than > their arch_ equivalents. > > A call to cmpxchg64() results in: > > cmpxchg64() > kasan_check_write() > ar

linux-next: Signed-off-by missing for commits in the h8300 tree

2018-07-16 Thread Stephen Rothwell
Hi Yoshinori, Commit 39f077046d46 ("h8300: switch to NO_BOOTMEM") is missing a Signed-off-by from its committer. Commits d6bde68ad18e ("h8300: Add missing output register.") 5aa2f1573e0c ("h8300: gcc-8.1 fix") are missing a Signed-off-by from their author and committer. -- Cheers, Ste

Due Process Unit-July 16 2018

2018-07-16 Thread Fund Benefits
Our Ref:FGN-GOV/IMF/2018 Attention:Beneficiary Instruction was given by the Office of Presidency and United Nations(UN) and also (IMF)to transfer Sum of $10m through ATM Debit Card to you which you can use it in near cash point,shopping mall or banking. You can withdrawal money from your ATM

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-16 Thread Linus Torvalds
On Mon, Jul 16, 2018 at 7:40 AM Michael Ellerman wrote: > > If the numbers can be trusted it is actually slower to put the sync in > lock, at least on one of the machines: > > Time > lwsync_sync 84,932,987,977 > sync_lwsync 93,185,930,333 Very funky. > I guess arguably it's not

[RFC] kvm: Adding skelaton for Memory ROE

2018-07-16 Thread Ahmed Abd El Mawgood
This is my first patch, an attempt to implement Memory ROE discussed by me earlier as a way to prevent Rootkits. I have already explained in details in this thread: https://www.mail-archive.com/kernelnewbies@kernelnewbies.org/msg18826.html So I think there is no need for saying the exact same thing

Re: [RFC][PATCH 09/11] tty_io: Use do_send_sig_info in __do_SACK to forcibly kill tasks

2018-07-16 Thread Linus Torvalds
On Mon, Jul 16, 2018 at 12:17 PM Eric W. Biederman wrote: > > I should have said it doesn't matter because init does not open ttys and > become a member of session groups. Or at least it never has in my > experience. The only way I know to get that behavior is to boot with > init=/bin/bash. Tha

Re: [PATCH 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Guenter Roeck
On Mon, Jul 16, 2018 at 08:33:37PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 16, 2018 at 08:31:20PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Jul 16, 2018 at 11:02:19AM -0700, Guenter Roeck wrote: > > > On Mon, Jul 16, 2018 at 07:43:32PM +0200, Greg Kroah-Hartman wrote: > > > > On Mon, Jul

[RFC V2] kvm: Adding skelaton for Memory ROE

2018-07-16 Thread Ahmed Abd El Mawgood
This is an attempt to implement Memory ROE discussed by me earlier as a way to prevent Rootkits. I have already explained in details in this thread: https://www.mail-archive.com/kernelnewbies@kernelnewbies.org/msg18826.html So I think there is no need for saying the exact same thing again. The prob

Re: [PATCH v5 07/12] PM / devfreq: export devfreq_class

2018-07-16 Thread Matthias Kaehlcke
Hi Chanwoo, On Thu, Jul 12, 2018 at 06:08:36PM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 07월 07일 03:09, Matthias Kaehlcke wrote: > > Hi, > > > > On Wed, Jul 04, 2018 at 02:30:32PM +0900, Chanwoo Choi wrote: > > > >> I didn't see any framework which exporting the class instance. > >

Re: [PATCH] mmc: tegra: Add and use tegra_sdhci_get_max_clock()

2018-07-16 Thread Jon Hunter
On 13/07/18 16:39, Aapo Vienamo wrote: ... >>> that it returns the current clock rate of the host instead of the >>> maximum one, which can lead to unnecessarily small clock rates. >>> >>> This differs from the previous implementation of >>> tegra_sdhci_get_max_clock() in that it doesn't divide

Re: [PATCH v1 00/10] mm: online/offline 4MB chunks controlled by device driver

2018-07-16 Thread David Hildenbrand
On 11.06.2018 14:33, David Hildenbrand wrote: > On 11.06.2018 13:56, Michal Hocko wrote: >> On Mon 11-06-18 13:53:49, David Hildenbrand wrote: >>> On 24.05.2018 23:07, David Hildenbrand wrote: On 24.05.2018 16:22, Michal Hocko wrote: > I will go over the rest of the email later I just want

Re: cpu_no_speculation omissions?

2018-07-16 Thread Rich Felker
On Mon, Jul 16, 2018 at 09:20:58PM +0200, Thomas Gleixner wrote: > On Mon, 16 Jul 2018, Alan Cox wrote: > > On Mon, 2018-07-16 at 10:28 -0700, Dave Hansen wrote: > > > On 07/16/2018 09:56 AM, Thomas Gleixner wrote: > > > > On Mon, 16 Jul 2018, Rich Felker wrote: > > > > > At least the Centerton (la

Re: [PATCH] mmc: tegra: Force correct divider calculation on DDR50/52

2018-07-16 Thread Jon Hunter
On 16/07/18 15:34, Aapo Vienamo wrote: > Tegra SDHCI controllers require the SDHCI clock divider to be configured > to divide the clock by two in DDR50/52 modes. Incorrectly configured > clock divider results in corrupted data. > > Prevent the possibility of incorrectly calculating the divider v

Re: [PATCH v1 00/10] mm: online/offline 4MB chunks controlled by device driver

2018-07-16 Thread Michal Hocko
On Mon 16-07-18 21:48:59, David Hildenbrand wrote: > On 11.06.2018 14:33, David Hildenbrand wrote: > > On 11.06.2018 13:56, Michal Hocko wrote: > >> On Mon 11-06-18 13:53:49, David Hildenbrand wrote: > >>> On 24.05.2018 23:07, David Hildenbrand wrote: > On 24.05.2018 16:22, Michal Hocko wrote:

Re: [PATCH] staging: android: ashmem: Shrink directly through shmem_fallocate

2018-07-16 Thread Joel Fernandes
On Mon, Jul 16, 2018 at 11:48:51AM +0200, Greg Kroah-Hartman wrote: > On Fri, Jul 06, 2018 at 02:44:16PM -0700, Joel Fernandes wrote: > > From: Tobias Lindskog > > > > When ashmem_shrink is called from direct reclaim on a user thread, a > > call to do_fallocate will check for permissions against

Reminder about previous patches

2018-07-16 Thread pheragu
A reminder to review a few patches I had sent last week. Below are the links for the patches. https://lkml.org/lkml/2018/7/5/798 http://lists-archives.com/linux-kernel/29168320-checkpatch-check-for-invalid-return-codes.html - Prakruthi Deepak Heragu

images

2018-07-16 Thread Simon Dike
We can process 400+ images per day. If you need any image editing, please let us know. Photos cut out; Photos clipping path; Photos masking; Photo shadow creation; Photos retouching; Beauty Model retouching on skin, face, body; Glamour retouching; Products retouching. We can give you testing for

Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface

2018-07-16 Thread Jacek Anaszewski
Hi David, On 07/16/2018 03:00 AM, David Lechner wrote: On 07/15/2018 07:22 AM, Jacek Anaszewski wrote: On 07/15/2018 12:39 AM, Pavel Machek wrote: On Sun 2018-07-15 00:29:25, Pavel Machek wrote: On Sun 2018-07-15 00:02:57, Jacek Anaszewski wrote: Hi Pavel, On 07/14/2018 11:20 PM, Pavel Mach

[PATCH] lib/crc10dif: Update crct10dif_fallback static key to modern api

2018-07-16 Thread Davidlohr Bueso
No changes in semantics -- key init is false; replace static_key_slow_inc with static_branch_inc static_key_false with static_branch_unlikely Added a '_key' suffix to crc10dif_fallback for better self documentation. Signed-off-by: Davidlohr Bueso --- lib/crc-t10dif.c | 6 +++

<    2   3   4   5   6   7   8   9   10   >