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

2018-07-16 Thread Mukesh Ojha
On 7/13/2018 10:50 PM, John Stultz wrote: On Fri, Jul 13, 2018 at 12:13 AM, Mukesh Ojha wrote: Hi John, Thanks for your response Please find my comments inline. On 7/11/2018 1:43 AM, John Stultz wrote: On Fri, Jul 6, 2018 at 6:17 AM, Mukesh Ojha wrote: Currently, there exists a corner

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 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. No. Semtnaitcally killing init is

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

2018-07-16 Thread David Lechner
On 07/16/2018 06:10 AM, Baolin Wang wrote: From: Bjorn Andersson Some LED controllers have support for autonomously controlling brightness over time, according to some preprogrammed pattern or function. This adds a new optional operator that LED class drivers can implement if they support

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 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 > + >

[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

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,

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. > >

[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

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 > --- >

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: [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

[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

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

2018-07-16 Thread John Stultz
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 this upside-down logic is too subtle to be easily reasoned about, and will just lead to

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% reliable, and

Re: [PATCH] mm: don't do zero_resv_unavail if memmap is not allocated

2018-07-16 Thread Pavel Tatashin
On 07/16/2018 12:09 PM, Michal Hocko wrote: > On Mon 16-07-18 11:16:30, Pavel Tatashin wrote: >> Moving zero_resv_unavail before memmap_init_zone(), caused a regression on >> x86-32. >> >> The cause is that we access struct pages before they are allocated when >> CONFIG_FLAT_NODE_MEM_MAP is

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 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. However, possibly not. The thing is,

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,

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 > > --- > >

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

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

cpu_no_speculation omissions?

2018-07-16 Thread Rich Felker
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 a patch adding it and possibly other omissions be welcome? Rich

Re: [PATCH 4.14 00/54] 4.14.56-stable review

2018-07-16 Thread Guenter Roeck
On Mon, Jul 16, 2018 at 09:34:57AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.56 release. > There are 54 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

Re: [PATCH] [RESEND] perf/x86/intel/uncore: Fix the index of PCU.3 Broadwell CPUs

2018-07-16 Thread Liang, Kan
On 7/16/2018 11:07 AM, Masayoshi Mizuma wrote: On 07/16/2018 10:29 AM, Liang, Kan wrote: On 7/15/2018 6:34 PM, Ingo Molnar wrote: * Masayoshi Mizuma wrote: From: Masayoshi Mizuma commit 15a3e845b01c ("perf/x86/intel/uncore: Fix SBOX support for Broadwell CPUs") introduced PCU.3

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:25:38AM -0700, Guenter Roeck wrote: > On Mon, Jul 16, 2018 at 09:36:08AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.113 release. > > There are 32 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH] arm64: cpuinfo: Include cleartext implementer and part strings

2018-07-16 Thread Mark Rutland
Hi Olof, On Mon, Jul 16, 2018 at 07:34:05AM -0700, Olof Johansson wrote: > On Mon, Jul 16, 2018 at 2:17 AM, Marc Zyngier wrote: > > On 15/07/18 04:53, Olof Johansson wrote: > >> There's some use in printing out what the implementer and part numbers > >> decode to for cases where they're known. >

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

[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

[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

[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

[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 +++---

[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

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

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. > > > > +*

[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 +-

[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 +-

[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 +-

[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 +-

[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 +-

[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

[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

[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

[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 ++--

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

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 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

Re: [PATCH 4.4 00/43] 4.4.141-stable review

2018-07-16 Thread Guenter Roeck
On Mon, Jul 16, 2018 at 09:36:05AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.141 release. > There are 43 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

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

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 09:33:38AM -0700, Guenter Roeck wrote: > On Mon, Jul 16, 2018 at 09:34:29AM +0200, 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.

[PATCH V2 2/2] firmware: ti_sci: Provide host-id as an optional dt parameter

2018-07-16 Thread Nishanth Menon
Texas Instrument's System Control Interface (TISCI) permits the ability for Operating Systems to running in virtual machines to be able to independently communicate with the firmware without the need going through an hypervisor. The "host-id" in effect is the hardware representation of the host

[PATCH V2 0/2] firmware: ti_sci: Add host-id as an optional parameter

2018-07-16 Thread Nishanth Menon
Please find attached series to enable host-id as an optional dt property. This is a minor update to V1 -> Mostly to pick up Greet's feedback and Rob's Ack. V1: https://patchwork.ozlabs.org/cover/931822/ The series is based on v4.18-rc1 and is available here:

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

2018-07-16 Thread John Stultz
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 this upside-down logic is too

[PATCH V2 1/2] Documentation: dt: keystone: ti-sci: Add optional host-id parameter

2018-07-16 Thread Nishanth Menon
Texas Instrument's System Control Interface (TISCI) permits the ability for OSs running in virtual machines to be able to independently communicate with the firmware without the need going through an hypervisor. The "host-id" in effect is the hardware representation of the host (example: VMs

[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

[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

[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

[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

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

[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 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

[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

[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

[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

[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)

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

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

[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

[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 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.

[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 ---

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. >

[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

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.

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

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

2018-07-16 Thread Jan Dakinevich
On Mon, 9 Jul 2018 16:51:03 +0300 Jan Dakinevich wrote: > This table by default takes 32KiB which is 3rd memory order. > Meanwhile, this memory is not aimed for DMA operation and could be > safely allocated by vmalloc. > > Signed-off-by: Jan Dakinevich > --- >

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

2018-07-16 Thread Guenter Roeck
On Mon, Jul 16, 2018 at 09:34:29AM +0200, 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

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,

[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

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

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,

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. >

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

2018-07-16 Thread Guenter Roeck
On Mon, Jul 16, 2018 at 09:36:08AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.113 release. > There are 32 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

compliation error with aio_abi.h

2018-07-16 Thread Laura Abbott
Hi, Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1601529 with 4.18-rc4: Steps to Reproduce: 1.echo 'int f;' | gcc -include linux/aio_abi.h -xc -c - -o /dev/null Actual results: /usr/include/asm/signal.h:127:2: error: unknown type name ‘size_t’ size_t ss_size; ^~

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

2018-07-16 Thread Nathan Chancellor
On Mon, Jul 16, 2018 at 09:33:38AM -0700, Guenter Roeck wrote: > On Mon, Jul 16, 2018 at 09:34:29AM +0200, 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.

Re: [PATCH] x86/power/64: Remove VLA usage

2018-07-16 Thread Eric Biggers
On Sun, Jul 15, 2018 at 08:56:57PM -0700, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > removes the discouraged use of AHASH_REQUEST_ON_STACK by switching to > shash directly and allocating the descriptor in heap memory (which should > be fine: the tfm

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

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

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 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Guenter Roeck
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 of the stable review cycle for the 4.9.113 release. > > > There are

Re: [PATCH] x86/ioapic: Do not unmask io_apic when interrupt is in progress

2018-07-16 Thread Thomas Gleixner
On Fri, 2 Mar 2018, Sebastian Andrzej Siewior wrote: > From: Ingo Molnar > Date: Fri, 3 Jul 2009 08:29:27 -0500 > > With threaded interrupts we might see an interrupt in progress on > migration. Do not unmask it when this is the case. It took me quite a while to wrap my head around this one.

Re: cpu_no_speculation omissions?

2018-07-16 Thread Thomas Gleixner
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 a patch > adding it and possibly other omissions

  1   2   3   4   5   6   7   8   9   10   >