[PATCH] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-09-06 Thread Daniel Lezcano
There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and leading to a SoC reset. The behavior is reproducible on a hikey6220 with bad heat dissipati

Re: [Intel-wired-lan] [PATCH net-next v3] e1000e: Be drop monitor friendly

2017-09-06 Thread Neftin, Sasha
On 8/26/2017 04:14, Florian Fainelli wrote: e1000e_put_txbuf() can be called from normal reclamation path as well as when a DMA mapping failure, so we need to differentiate these two cases when freeing SKBs to be drop monitor friendly. e1000e_tx_hwtstamp_work() and e1000_remove() are processing T

Re: [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-06 Thread Peter Zijlstra
Guys, please trim email. On Tue, Sep 05, 2017 at 10:31:46AM -0400, Waiman Long wrote: > For clarification, I was actually asking if you consider just adding one > more jump label to skip it for Xen/KVM instead of making > virt_spin_lock() a pv-op. I don't understand. What performance are you wor

4.13 on thinkpad x220: oops when writing to SD card

2017-09-06 Thread Seraphime Kirkovski
To: Adrian Hunter Cc: Shawn Lin , Pavel Machek , linux-...@vger.kernel.org, kernel list Bcc: Subject: Re: 4.13 on thinkpad x220: oops when writing to SD card Reply-To: In-Reply-To: <6689241f-a4d8-7a3e-9f0b-482b034e5...@intel.com> Hi, > > Seems 4.13-rc4 was already broken for t

Re: [PATCH] blk-mq: Start to fix memory ordering...

2017-09-06 Thread Andrea Parri
On Mon, Sep 04, 2017 at 11:09:32AM +0200, Peter Zijlstra wrote: > > Attempt to untangle the ordering in blk-mq. The patch introducing the > single smp_mb__before_atomic() is obviously broken in that it doesn't > clearly specify a pairing barrier and an obtained guarantee. > > The comment is furth

RE: [PATCH] RM64: dts: ls208xa: Add iommu-map property for pci

2017-09-06 Thread Bharat Bhushan
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday, September 01, 2017 4:29 PM > To: Bharat Bhushan ; Marc Zyngier > ; robh...@kernel.org; Mark Rutland > ; will.dea...@arm.com; o...@buserror.net; Gang > Liu ; devicet...@vger.kernel.org; linux-a

Re: [PATCH] blk-mq: Start to fix memory ordering...

2017-09-06 Thread Peter Zijlstra
On Tue, Sep 05, 2017 at 02:51:25PM +, Bart Van Assche wrote: > "deaedline" is a spelling error. Has this patch been tested? Bah.. So I ran with a previous version for a while, but then redid the whole patch (as its mostly comments anyway) and clearly made a giant mess of it. I'll respin.

Re: [PATCH 1/9] ext4: remove duplicate extended attributes defs

2017-09-06 Thread Jan Kara
On Tue 05-09-17 16:35:33, Ross Zwisler wrote: > The following commit: > > commit 9b7365fc1c82 ("ext4: add FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR > interface support") > > added several defines related to extended attributes to ext4.h. They were > added within an #ifndef FS_IOC_FSGETXATTR block with

Re: [PATCH] MIPS: mt7620: Rename uartlite to serial

2017-09-06 Thread John Crispin
Hi, comments inline On 01/09/17 16:53, Harvey Hunt wrote: Previously, mt7620.c defined the clocks for uarts with the names uartlite, uart1 and uart2. Rename them to serial{0,1,2} and update the devicetree node names. Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-m...@l

Re: [PATCH] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2017-09-06 Thread Vlastimil Babka
+CC linux-api On 09/06/2017 06:35 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > Freepage on ZONE_HIGHMEM doesn't work for kernel memory so it's not that > important to reserve. When ZONE_MOVABLE is used, this problem would > theorectically cause to decrease usable memory for GFP_HIGHUSER_M

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
On Tue, 05 Sep 2017, Takashi Iwai wrote: > On Tue, 05 Sep 2017 10:53:41 +0200, > Lee Jones wrote: > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > On Tue, 05 Sep 2017 10:10:49 +0200, > > > Lee Jones wrote: > > > > > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > > > > > On

Re: printk: what is going on with additional newlines?

2017-09-06 Thread Petr Mladek
On Tue 2017-09-05 22:42:28, Sergey Senozhatsky wrote: > On (09/05/17 14:21), Petr Mladek wrote: > [..] > > > that's why I want buffered printk to re-use the printk-safe buffer > > > on that particular CPU [ if buffered printk will ever land ]. > > > printk-safe buffer is not allocated on stack, or

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
On Tue, 05 Sep 2017, Rafael J. Wysocki wrote: > On Tue, Sep 5, 2017 at 11:38 AM, Takashi Iwai wrote: > > On Tue, 05 Sep 2017 10:53:41 +0200, > > Lee Jones wrote: > >> > >> On Tue, 05 Sep 2017, Takashi Iwai wrote: > >> > >> > On Tue, 05 Sep 2017 10:10:49 +0200, > >> > Lee Jones wrote: > >> > > > >

[PATCH -v2] blk-mq: Start to fix memory ordering...

2017-09-06 Thread Peter Zijlstra
Attempt to untangle the ordering in blk-mq. The patch introducing the single smp_mb__before_atomic() is obviously broken in that it doesn't clearly specify a pairing barrier and an obtained guarantee. The comment is further misleading in that it hints that the deadline store and the COMPLETE stor

Re: [PATCH v8 06/13] x86/apic: Mark the apic_intr_mode extern for sanity check cleanup

2017-09-06 Thread Baoquan He
On 09/06/17 at 01:41pm, Dou Liyang wrote: > Hi Baoquan, > > At 09/06/2017 01:26 PM, Baoquan He wrote: > [...] > diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c > index 4f63afc..9f8479c 100644 > --- a/arch/x86/kernel/smpboot.c > +++ b/arch/x86/kernel/smpboot.c > @@ -1260,8 +1260,

Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU

2017-09-06 Thread Thomas Gleixner
On Wed, 6 Sep 2017, Yu Chen wrote: > On Wed, Sep 06, 2017 at 12:57:41AM +0200, Thomas Gleixner wrote: > > I have a hard time to figure out how the 133 vectors on CPU31 are now > > magically fitting in the empty space on CPU0, which is 204 - 133 = 71. In > > my limited understanding of math 133 is g

Re: [PATCH 1/2] mm/slub: wake up kswapd for initial high order allocation

2017-09-06 Thread Vlastimil Babka
On 09/06/2017 06:37 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > slub uses higher order allocation than it actually needs. In this case, > we don't want to do direct reclaim to make such a high order page since > it causes a big latency to the user. Instead, we would like to fallback > low

[PATCH v4 0/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-06 Thread Brendan Higgins
Addressed comments from: - Joel: https://www.spinics.net/lists/arm-kernel/msg605137.html Changes since previous update: - Added SMP and SMP_ON_UP - Changed dts to use phandle

Re: UBSAN: Undefined error in time.h signed integer overflow

2017-09-06 Thread Thomas Gleixner
On Tue, 5 Sep 2017, John Stultz wrote: > On Tue, Sep 5, 2017 at 9:30 PM, Shankara Pailoor wrote: > > Hi, > > > > I encountered this bug while fuzzing linux kernel 4.13-rc7 with syzkaller. > > > > > > UBSAN: Undefined

[PATCH v4 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2017-09-06 Thread Brendan Higgins
Add maintainers and reviewers for the Nuvoton NPCM architecture. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 44cb004c765d..67064bf11904 10064

[PATCH v4 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-09-06 Thread Brendan Higgins
Add a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Tested-by: Tomer Maimon Tested-by: Avi Fishman --- .../arm/cpu-enable-method/nuvo

[PATCH v4 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-06 Thread Brendan Higgins
Adds basic support for the Nuvoton NPCM750 BMC. Signed-off-by: Brendan Higgins --- arch/arm/Kconfig | 2 + arch/arm/Makefile| 1 + arch/arm/mach-npcm/Kconfig | 50 + arch/arm/mach-npcm/Makefile | 3 ++ arch/arm/mach-npcm/headsmp.S | 17 ++

Re: [PATCH 2/2] mm/slub: don't use reserved memory for optimistic try

2017-09-06 Thread Vlastimil Babka
On 09/06/2017 06:37 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > High-order atomic allocation is difficult to succeed since we cannot > reclaim anything in this context. So, we reserves the pageblock for > this kind of request. > > In slub, we try to allocate higher-order page more than i

Re: Donation

2017-09-06 Thread Mavis Wanczyk Foundation
Greetings To You, My Name is Mavis wanczyk , the winner of the Power ball jackpot of $ $758.7 million in the AUGUST 24, 2017, My jackpot was a gift from God to me hence my Entire family/foundation has AGREED to do this. My foundation is donating $500,000.00USD to you. please contac maviswanczy

Re: [PATCH v6] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-06 Thread Anup Patel
On Tue, Sep 5, 2017 at 9:27 PM, Alex Williamson wrote: > On Mon, 4 Sep 2017 15:20:11 +0530 > Anup Patel wrote: > >> Sorry for delayed response... >> >> On Tue, Aug 29, 2017 at 7:39 PM, Konrad Rzeszutek Wilk >> wrote: >> > On Tue, Aug 29, 2017 at 09:34:46AM +0530, Anup Patel wrote: >> >> This pat

Re: [2/2] genirq: Warn when IRQ_NOAUTOEN is used with shared interrupts

2017-09-06 Thread Thomas Gleixner
On Tue, 5 Sep 2017, Paul Burton wrote: > I'm currently attempting to clean up a hack that we have in the MIPS GIC > irqchip driver - we have some interrupts which are really per-CPU, but are > currently used with the regular non-per-CPU IRQ APIs. Please search for usage > of gic_all_vpes_local_i

[PATCH v7] FlexRM support in VFIO platform

2017-09-06 Thread Anup Patel
This patchset primarily adds Broadcom FlexRM reset module for VFIO platform driver. The patches are based on Linux-4.13-rc3 and can also be found at flexrm-vfio-v7 branch of https://github.com/Broadcom/arm64-linux.git Changes since v6: - Update the FlexRM ring flush sequence as suggested by H

[PATCH v7] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-06 Thread Anup Patel
This patch adds Broadcom FlexRM low-level reset for VFIO platform. It will do the following: 1. Disable/Deactivate each FlexRM ring 2. Flush each FlexRM ring The cleanup sequence for FlexRM rings is adapted from Broadcom FlexRM mailbox driver. Signed-off-by: Anup Patel Reviewed-by: Oza Oza Rev

Re: [PATCH] arm64: KVM: VHE: save and restore some PSTATE bits

2017-09-06 Thread Marc Zyngier
On 05/09/17 19:58, gengdongjiu wrote: > when exit from guest, some host PSTATE bits may be lost, such as > PSTATE.PAN or PSTATE.UAO. It is because host and hypervisor all run > in the EL2, host PSTATE value cannot be saved and restored via > SPSR_EL2. So if guest has changed the PSTATE, host contin

Re: [tip:locking/core] locking/refcount: Create unchecked atomic_t implementation

2017-09-06 Thread Peter Zijlstra
On Tue, Sep 05, 2017 at 09:15:36PM +0300, Alexey Dobriyan wrote: > It is not a policy, just a "grassroot" movement to give people good > example and wait until someone is annoyed enough to mass convert > everything. -) Well, its a mess and I cleaned up the outliers. > Worked for fs/proc/Makefile

Re: [PATCH] mm, sparse: fix typo in online_mem_sections

2017-09-06 Thread Vlastimil Babka
On 09/04/2017 01:22 PM, Michal Hocko wrote: > From: Michal Hocko > > online_mem_sections accidentally marks online only the first section in > the given range. This is a typo which hasn't been noticed because I > haven't tested large 2GB blocks previously. All users of > pfn_to_online_page would

Re: [PATCH v3 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-09-06 Thread Brendan Higgins
On Tue, Sep 5, 2017 at 10:23 PM, Joel Stanley wrote: > On Wed, Sep 6, 2017 at 10:00 AM, Brendan Higgins > wrote: >> +++ b/Documentation/devicetree/bindings/arm/npcm/npcm.txt >> @@ -0,0 +1,6 @@ >> +NPCM Platforms Device Tree Bindings >> +--- >> +NPCM750 SoC >> +Requ

4.13 on thinkpad x220: oops when writing to SD card

2017-09-06 Thread Seraphime Kirkovski
Hi, > > Seems 4.13-rc4 was already broken for that but unfortuantely > > I didn't > > reproduce that. So maybe Seraphime can do git-bisect as he said "I > > get > > it everytime" for which I assume it could be easy for him to find > > out > > the problematic commit? I can reliably reproduce it,

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Takashi Iwai
On Wed, 06 Sep 2017 09:54:44 +0200, Lee Jones wrote: > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > On Tue, 05 Sep 2017 10:53:41 +0200, > > Lee Jones wrote: > > > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > > > On Tue, 05 Sep 2017 10:10:49 +0200, > > > > Lee Jones wrote: > > >

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Peter Zijlstra
On Tue, Sep 05, 2017 at 10:13:39PM -0700, Andy Lutomirski wrote: > I'm running e7d0c41ecc2e372a81741a30894f556afec24315 from Linus' tree > today, and I'm seeing abysmal scheduler performance. Running make -j4 > ends up with all the tasks on CPU 3 most of the time (on my > 4-logical-thread laptop).

[PATCH 1/2] kokr/doc: Update memory-barriers.txt for read-to-write dependencies

2017-09-06 Thread SeongJae Park
This commit applies upstream change, commit 66ce3a4dcb9f ("doc: Update memory-barriers.txt for read-to-write dependencies") to Korean translation. Signed-off-by: SeongJae Park --- .../translations/ko_KR/memory-barriers.txt | 38 +- 1 file changed, 22 insertions(+), 16

[PATCH 2/2] kokr/memory-barriers.txt: Apply atomic_t.txt change

2017-09-06 Thread SeongJae Park
This commit applies memory-barriers.txt part of upstream change, commit 706eeb3e9c6f ("Documentation/locking/atomic: Add documents for new atomic_t APIs") to Korean translation. Signed-off-by: SeongJae Park --- .../translations/ko_KR/memory-barriers.txt | 94 ++ 1 fil

[RFC tip/locking v2 00/13] lockdep: Support deadlock detection for recursive read locks

2017-09-06 Thread Boqun Feng
Hi Ingo and Peter, This is V2 for recursive read lock support in lockdep. I fix several bugs in V1 and also add irq inversion detection support for recursive read locks. V1: https://marc.info/?l=linux-kernel&m=150393341825453 As Peter pointed out: https://marc.info/?l=linux-kernel&m=15

[RFC tip/locking v2 01/13] lockdep: Demagic the return value of BFS

2017-09-06 Thread Boqun Feng
__bfs() could return four magic numbers: 1: search succeeds, but none match. 0: search succeeds, find one match. -1: search fails because of the cq is full. -2: search fails because a invalid node is found. This patch cleans things up by making a enum type for the

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

2017-09-06 Thread Michal Hocko
On Tue 05-09-17 17:53:44, Johannes Weiner wrote: > On Tue, Sep 05, 2017 at 03:44:12PM +0200, Michal Hocko wrote: > > Why is this an opt out rather than opt-in? IMHO the original oom logic > > should be preserved by default and specific workloads should opt in for > > the cgroup aware logic. Changin

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Thomas Gleixner
On Tue, 5 Sep 2017, Randy Dunlap wrote: > On 09/05/17 15:53, Andrew Morton wrote: > > On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan > > wrote: > > > >> Implement system call for bulk retrieveing of pids in binary form. > >> > >> Using /proc is slower than necessary: 3 syscalls + another 3 fo

[RFC tip/locking v2 02/13] lockdep: Make __bfs() visit every dependency rather than every class until a match

2017-09-06 Thread Boqun Feng
Currently, __bfs() will do a breadth-first search in the dependency graph and visit each lock class in the graph exactly once, so for example, in the following graph: A -> B |^ || +--> C a __bfs() call starts at A, will visit

[RFC tip/locking v2 07/13] lockdep: Support deadlock detection for recursive read in check_noncircular()

2017-09-06 Thread Boqun Feng
Currently, lockdep only has limit support for deadlock detection for recursive read locks. The basic idea of the detection is: Since we make __bfs() able to traverse only the strong dependency paths, so we report a circular deadlock if we could find a circle of a strong dependency path. Signed-o

[RFC tip/locking v2 04/13] lockdep: Introduce lock_list::dep

2017-09-06 Thread Boqun Feng
To add recursive read locks into the dependency graph, we need to store the types of dependencies for the BFS later. There are four kinds of dependencies: * Non-recursive -> Non-recursive dependencies(NN) e.g. write_lock(prev) -> write_lock(next) * Recursive -> Non-recursive d

[RFC tip/locking v2 06/13] lockdep: Adjust check_redundant() for recursive read change

2017-09-06 Thread Boqun Feng
As we have four kinds of dependencies now, check_redundant() should only report redundant if we have a dependency path which is equal or _stronger_ than the current dependency. For example if check_prev_add() we have: prev->read == 2 && next->read != 2 , we should only report redundant if

[RFC tip/locking v2 03/13] lockdep: Change the meanings of LOCK_{USED_IN, ENABLED}_*_{READ}

2017-09-06 Thread Boqun Feng
We have three types of lock acquisitions: write, non-recursive read and recursive read, and write and non-recursive read have no difference from a viewpoint for deadlock detections, because a write acquisition of the corresponding lock on an independent CPU or task makes a non-recursive lock a writ

Re: [v7 2/5] mm, oom: cgroup-aware OOM killer

2017-09-06 Thread Michal Hocko
On Tue 05-09-17 21:23:57, Roman Gushchin wrote: > On Tue, Sep 05, 2017 at 04:57:00PM +0200, Michal Hocko wrote: [...] > > Hmm. The changelog says "By default, it will look for the biggest leaf > > cgroup, and kill the largest task inside." But you are accumulating > > oom_score up the hierarchy and

[RFC tip/locking v2 05/13] lockdep: Extend __bfs() to work with multiple kinds of dependencies

2017-09-06 Thread Boqun Feng
Now we have four kinds of dependencies in the dependency graph, and not all the pathes carry strong dependencies, for example: Given lock A, B, C, if we have: CPU1CPU2 = == write_lock(A); read_lock(B);

[RFC tip/locking v2 10/13] lockdep/selftest: Add a R-L/L-W test case specific to chain cache behavior

2017-09-06 Thread Boqun Feng
As our chain cache doesn't differ read/write locks, so even we can detect a read-lock/lock-write deadlock in check_noncircular(), we can still be fooled if a read-lock/lock-read case(which is not a deadlock) comes first. So introduce this test case to test specific to the chain cache behavior on d

[RFC tip/locking v2 08/13] lockdep: Fix recursive read lock related safe->unsafe detection

2017-09-06 Thread Boqun Feng
There are four cases for recursive read lock realted deadlocks: (--(X..Y)--> means a strong dependency path starts with a --(X*)--> dependency and ends with a --(*Y)-- dependency.) 1. An irq-safe lock L1 has a dependency --(*..*)--> to an irq-unsafe lock L2. 2. An irq-read-safe

[RFC tip/locking v2 13/13] lockdep/selftest: Add more recursive read related test cases

2017-09-06 Thread Boqun Feng
Add those four test cases: 1. CPU1CPU2CPU3 = = = write_lock(X); write_lock(Y); write_lock(Z); read_lock(Y); read_l

[RFC tip/locking v2 11/13] lockdep: Take read/write status in consideration when generate chainkey

2017-09-06 Thread Boqun Feng
Currently, the chainkey of a lock chain is a hash sum of the class_idx of all the held locks, the read/write status are not taken in to consideration while generating the chainkey. This could result into a problem, if we have: P1() { read_lock(B); lo

[RFC tip/locking v2 12/13] lockdep/selftest: Unleash irq_read_recursion2 and add more

2017-09-06 Thread Boqun Feng
Now since we can handle recursive read related irq inversion deadlocks correctly, uncomment the irq_read_recursion2 and add more testcases. Signed-off-by: Boqun Feng --- lib/locking-selftest.c | 59 -- 1 file changed, 47 insertions(+), 12 deletions

Re: [v7 2/5] mm, oom: cgroup-aware OOM killer

2017-09-06 Thread Michal Hocko
On Tue 05-09-17 21:23:57, Roman Gushchin wrote: > On Tue, Sep 05, 2017 at 04:57:00PM +0200, Michal Hocko wrote: [...] > > > @@ -810,6 +810,9 @@ static void __oom_kill_process(struct task_struct > > > *victim) > > > struct mm_struct *mm; > > > bool can_oom_reap = true; > > > > > > + if (is_gl

[RFC tip/locking v2 09/13] lockdep: Add recursive read locks into dependency graph

2017-09-06 Thread Boqun Feng
Since we have all the fundamental to handle recursive read locks, we now add them into the dependency graph. Signed-off-by: Boqun Feng --- kernel/locking/lockdep.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lock

Re: a competition when some threads acquire futex

2017-09-06 Thread Thomas Gleixner
On Wed, 6 Sep 2017, chengjian (D) wrote: > > > diff --git a/kernel/futex.c b/kernel/futex.c > > > index 3d38eaf..0b2d17a 100644 > > > --- a/kernel/futex.c > > > +++ b/kernel/futex.c > > > @@ -1545,6 +1545,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 > > > uval, > > > struct futex_pi_state

Re: [PATCH 2/2] tracing: Add support for critical section events

2017-09-06 Thread Peter Zijlstra
On Tue, Sep 05, 2017 at 09:35:11AM -0700, Joel Fernandes wrote: > On Mon, Sep 4, 2017 at 11:52 PM, Peter Zijlstra wrote: > > On Mon, Sep 04, 2017 at 08:26:13PM -0700, Joel Fernandes wrote: > > > >> Apologies, I meant (without the "off"): > >> > >> subsystem: atomic_section > >> events: > >> irqs

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

2017-09-06 Thread Michal Hocko
On Tue 05-09-17 20:16:09, Roman Gushchin wrote: > On Tue, Sep 05, 2017 at 05:12:51PM +0200, Michal Hocko wrote: [...] > > > Then we should probably hide corresponding > > > cgroup interface (oom_group and oom_priority knobs) by default, > > > and it feels as unnecessary complication and is overall

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-06 Thread Łukasz Majewski
Hi Fabio, On Tue, Sep 5, 2017 at 6:13 PM, Łukasz Majewski wrote: &i2c1 { clock-frequency = <40>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; codec: tfa9879@6C { #sound-dai-cells = <0>;

Re: [RFC tip/locking v2 00/13] lockdep: Support deadlock detection for recursive read locks

2017-09-06 Thread Boqun Feng
On Wed, Sep 06, 2017 at 04:28:11PM +0800, Boqun Feng wrote: > Hi Ingo and Peter, > > This is V2 for recursive read lock support in lockdep. I fix several > bugs in V1 and also add irq inversion detection support for recursive > read locks. > > V1: https://marc.info/?l=linux-kernel&m=1503933418254

Re: [PATCH] blk-mq: Start to fix memory ordering...

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 09:13:04AM +0200, Andrea Parri wrote: > > + smp_mb__before_atomic(); > > I am wondering whether we should be using smp_wmb() instead: this would > provide the above guarantee and save a full barrier on powerpc/arm64. Right, did that. > > + set_bit(REQ_ATOM_STARTED, &r

Re: [PATCH] genirq: Provide IRQCHIP_ONESHOT_EDGE_SAFE

2017-09-06 Thread Thomas Gleixner
On Tue, 1 Aug 2017, Benjamin Herrenschmidt wrote: > On Mon, 2017-07-31 at 21:33 +0200, Thomas Gleixner wrote: > > If an interrupt chip is marked IRQCHIP_ONESHOT_SAFE it signals that the > > interrupt chip does not require the ONESHOT mode for threaded > > interrupts. Unfortunately this is applied

Re: [PATCH] genirq/msi: fix populating multiple interrupts

2017-09-06 Thread Marc Zyngier
Hi John, On 05/09/17 18:12, John Keeping wrote: > Use the correct variable to set up each interrupt in turn rather than > configuring the first interrupt "nvec" times. Thanks for addressing this. I think this bug deserves a slightly better write-up. How about something like: On allocating the i

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Alexey Dobriyan
On 9/6/17, Andrew Morton wrote: > On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan > wrote: > >> Implement system call for bulk retrieveing of pids in binary form. >> >> Using /proc is slower than necessary: 3 syscalls + another 3 for each >> thread + >> converting with atoi(). >> >> /proc may b

Re: a competition when some threads acquire futex

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 10:36:29AM +0200, Thomas Gleixner wrote: > On Wed, 6 Sep 2017, chengjian (D) wrote: > > > > > diff --git a/kernel/futex.c b/kernel/futex.c > > > > index 3d38eaf..0b2d17a 100644 > > > > --- a/kernel/futex.c > > > > +++ b/kernel/futex.c > > > > @@ -1545,6 +1545,7 @@ static in

[PATCH] libata: zpodd: make arrays cdb static, reduces object code size

2017-09-06 Thread Colin King
From: Colin Ian King Don't populate the arrays cdb on the stack, instead make them static. Makes the object code smaller by 230 bytes: Before: textdata bss dec hex filename 3797 240 04037 fc5 drivers/ata/libata-zpodd.o After: textdata bss d

Re: [PATCH 3/6] hid: make device_attribute const

2017-09-06 Thread Jiri Kosina
On Mon, 21 Aug 2017, Bhumika Goyal wrote: > Make this const as it is only passed as an argument to the > function device_create_file and device_remove_file and the corresponding > arguments are of type const. > Done using Coccinelle > > Signed-off-by: Bhumika Goyal > --- > drivers/hid/hid-core.

Re: [PATCH] HID: hid-lg: make array cbuf static const to shink object code size

2017-09-06 Thread Jiri Kosina
On Fri, 25 Aug 2017, Colin King wrote: > From: Colin Ian King > > Don't populate array cbuf on the stack, instead make it static. > Makes the object code smaller by over 110 bytes: > > Before: >text data bss dec hex filename > 15096 3504 128 1872849

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Andy Lutomirski
> On Sep 6, 2017, at 1:25 AM, Peter Zijlstra wrote: > >> On Tue, Sep 05, 2017 at 10:13:39PM -0700, Andy Lutomirski wrote: >> I'm running e7d0c41ecc2e372a81741a30894f556afec24315 from Linus' tree >> today, and I'm seeing abysmal scheduler performance. Running make -j4 >> ends up with all the ta

Re: [PATCH] powerpc/powernv: Clear LPCR[PECE1] via stop-api only for deep state offline

2017-09-06 Thread pavrampu
On 2017-08-31 17:17, Gautham R. Shenoy wrote: From: "Gautham R. Shenoy" commit 24be85a23d1f ("powerpc/powernv: Clear PECE1 in LPCR via stop-api only on Hotplug") clears the PECE1 bit of the LPCR via stop-api during CPU-Hotplug to prevent wakeup due to a decrementer on an offlined CPU which is i

RE: [PATCH V2 0/3] Use mm_struct and switch_mm() instead of manually

2017-09-06 Thread Prakhya, Sai Praneeth
> -Original Message- > From: Sai Praneeth Prakhya [mailto:sai.praneeth.prak...@intel.com] > Sent: Tuesday, September 5, 2017 7:43 PM > To: Bhupesh Sharma > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Matt Fleming > ; Ard Biesheuvel ; > j...@suse.com; Borislav Petkov ; Lu

Re: [PATCH] HID: multitouch: support buttons and trackpoint on Lenovo X1 Tab Gen2

2017-09-06 Thread Jiri Kosina
On Fri, 25 Aug 2017, Pavel Tatashin wrote: > On the 2nd generation Lenovo Tablet only clickpad is working; the > trackpoint and three mouse buttons do not work. > > hid_multitouch must export all inputs in order to get trackpoint and > buttons to function. > > Signed-off-by: Pavel Tatashin App

Re: [RFC v2 6/6] platform/x86: intel_pmc_ipc: Use generic Intel IPC device calls

2017-09-06 Thread Andy Shevchenko
On Wed, Sep 6, 2017 at 8:27 AM, Kuppuswamy, Sathyanarayanan wrote: > On 9/5/2017 12:38 AM, Lee Jones wrote: >> On Sat, 02 Sep 2017, sathyanarayanan.kuppusw...@linux.intel.com wrote: >> I'm a bit concerned by the API. > > This is not a new change. Even before refactoring this driver, we have been

Re: [PATCH v3] Input: goodix: Add support for capacitive home button

2017-09-06 Thread Bastien Nocera
Hey, On Tue, 2017-06-20 at 18:08 +0200, Bastien Nocera wrote: > From: "Sergei A. Trusov" > > On some x86 tablets with a Goodix touchscreen, the Windows logo on > the > front is a capacitive home button. Touching this button results in a > touch > with bit 4 of the first byte set, while only the

Re: [PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-09-06 Thread Baoquan He
On 09/06/17 at 12:18pm, Dou Liyang wrote: > > > +static int __init apic_intr_mode_select(void) > > > +{ > > > + /* Check kernel option */ > > > + if (disable_apic) { > > > + pr_info("APIC disabled via kernel command line\n"); > > > + return APIC_PIC; > > > + } > > > + > > > + /* Che

Re: [PATCH v3] Input: goodix: Add support for capacitive home button

2017-09-06 Thread Jiri Kosina
On Wed, 6 Sep 2017, Bastien Nocera wrote: > Hey, > > On Tue, 2017-06-20 at 18:08 +0200, Bastien Nocera wrote: > > From: "Sergei A. Trusov" > > > > On some x86 tablets with a Goodix touchscreen, the Windows logo on > > the > > front is a capacitive home button. Touching this button results in a

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 01:59:14AM -0700, Andy Lutomirski wrote: > > Any specifics on your setup? > > On further fiddling, I only see this after a suspend and resume cycle. Ah, ok. That's not something I otherwise test. Lets see if I can force this brick of mine through a suspend-resume cycle :-)

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Alexey Dobriyan
On 9/6/17, Randy Dunlap wrote: > On 09/05/17 15:53, Andrew Morton wrote: >> On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan >> wrote: >> >>> Implement system call for bulk retrieveing of pids in binary form. >>> >>> Using /proc is slower than necessary: 3 syscalls + another 3 for each >>> threa

Re: [PATCH] HID: asus: Add support for Fn keys on Asus ROG G752

2017-09-06 Thread Jiri Kosina
On Sun, 20 Aug 2017, Maxime Bellengé wrote: > This patch adds support for Fn keys on Asus ROG G752 laptop. > The report descriptor is broken so I fixed it. > > Tested on an Asus G752VT. > > Signed-off-by: Maxime Bellengé Looks good to me, but the patch is whitespace damaged (it adds only spac

[GIT PULL] MMC for v.4.14

2017-09-06 Thread Ulf Hansson
Hi Linus, Here's the PR for MMC for v4.14. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 99c14fc360dbbb583a03ab985551b12b5c5ca4f1: mmc: sdhci-xenon: add set_power callback (2017-08-30 14:11

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
On Wed, 06 Sep 2017, Takashi Iwai wrote: > On Wed, 06 Sep 2017 09:54:44 +0200, > Lee Jones wrote: > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > On Tue, 05 Sep 2017 10:53:41 +0200, > > > Lee Jones wrote: > > > > > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > > > > > On

Re: [PATCH] HID: multitouch: Support ALPS PTP stick with pid 0x120A

2017-09-06 Thread Jiri Kosina
On Thu, 10 Aug 2017, Shrirang Bagul wrote: > This patch adds ALPS PTP sticks with pid/device id 0x120A to the list of > devices supported by hid-multitouch. > > Signed-off-by: Shrirang Bagul Applied to for-4.14/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs

Re: a competition when some threads acquire futex

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 10:56:08AM +0200, Peter Zijlstra wrote: > Right, but even if it was a coherent patch, I'm not sure it makes sense. > > futex_wait() / futex_wake() don't make ordering guarantees and in > general you don't get to have wakeup preemption if you don't run a > PREEMPT kernel. >

Re: [PATCH v3 51/59] KVM: arm/arm64: GICv4: Add doorbell interrupt handling

2017-09-06 Thread Shannon Zhao
On 2017/8/1 1:26, Marc Zyngier wrote: > When a vPE is not running, a VLPI being made pending results in a > doorbell interrupt being delivered. Let's handle this interrupt > and update the pending_last flag that indicates that VLPIs are > pending. The corresponding vcpu is also kicked into action

Re: [PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-06 Thread Thomas Meyer
On Tue, Sep 05, 2017 at 02:22:05PM -0700, David Miller wrote: > From: Joe Perches > Date: Tue, 05 Sep 2017 13:01:18 -0700 > > > On Tue, 2017-09-05 at 21:45 +0200, Thomas Meyer wrote: > >> On Tue, Sep 05, 2017 at 11:50:44AM -0700, David Miller wrote: > >> > From: Thomas Meyer > >> > Date: Sun, 03

[PATCH v13 0/5] Replace PCI pool by DMA pool API

2017-09-06 Thread Romain Perier
by the dma pool API and remove the defines. Changes in v13: - Rebased series onto next-20170906 - Added a new commit for the hinic ethernet driver - Remove previously merged patches Changes in v12: - Rebased series onto next-20170822 Changes in v11: - Rebased series onto next-20170809 - Removed

[PATCH v13 5/5] PCI: Remove PCI pool macro functions

2017-09-06 Thread Romain Perier
Now that all the drivers use dma pool API, we can remove the macro functions for PCI pool. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- include/linux/pci.h | 9 - 1 file changed, 9 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index f68c58a93

[PATCH v13 2/5] dmaengine: pch_dma: Replace PCI pool old API

2017-09-06 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/dma/pch_dma.c | 12 ++-- 1 file changed, 6 insertions(+),

[PATCH v13 4/5] hinic: Replace PCI pool old API

2017-09-06 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier --- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 10 +- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h | 2 +- 2 files chan

[PATCH v13 3/5] net: e100: Replace PCI pool old API

2017-09-06 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Acked-by: Jeff Kirsher Tested-by: Peter Senna Tschudin --- drivers/net/ethernet/intel/e100.c | 12 ++

Re: a competition when some threads acquire futex

2017-09-06 Thread chengjian (D)
On 2017/9/6 16:36, Thomas Gleixner write: Ok. Still that patch has issues. 1) It's white space damaged. Please use TAB not spaces for indentation. checkpatch.pl would have told you. 2) Why are you using _cond_resched() instead of plain cond_resched(). cond_resched() is what you want to

[PATCH v13 1/5] block: DAC960: Replace PCI pool old API

2017-09-06 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/block/DAC960.c | 38 ++ drive

[PATCH v4 05/11] libsas: Use dynamic alloced work to avoid sas event lost

2017-09-06 Thread Jason Yan
Now libsas hotplug work is static, every sas event type has its own static work, LLDD driver queues the hotplug work into shost->work_q. If LLDD driver burst posts lots hotplug events to libsas, the hotplug events may pending in the workqueue like shost->work_q new work[PORTE_BYTES_DMAED] --> |[PH

[PATCH v4 04/11] libsas: rename notify_port_event() for consistency

2017-09-06 Thread Jason Yan
Rename function notify_port_event() to sas_notify_port_event(), which will be consistent with sas_notify_phy_event(). Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl CC: Dan Williams --- drivers/scsi/libsas/sas_event.c | 4

[PATCH v4 08/11] libsas: Use new workqueue to run sas event and disco event

2017-09-06 Thread Jason Yan
Now all libsas works are queued to scsi host workqueue, include sas event work post by LLDD and sas discovery work, and a sas hotplug flow may be divided into several works, e.g libsas receive a PORTE_BYTES_DMAED event, currently we process it as following steps: sas_form_port --- run in work in s

[PATCH v4 03/11] libsas: remove unused port_gone_completion and DISCE_PORT_GONE

2017-09-06 Thread Jason Yan
No one uses the port_gone_completion in struct asd_sas_port and DISCE_PORT_GONE in enum disover_event, clean them out. Signed-off-by: Jason Yan CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl CC: Dan Williams --- include/scsi/libsas.h | 3 --- 1 file changed, 3 d

[PATCH v4 11/11] libsas: add event to defer list tail instead of head when draining

2017-09-06 Thread Jason Yan
From: chenxiang Events will be added to defer_q list when setting ha->status to SAS_HA_DRAINING. Events will be called after drain workqueue. Those events are added to the head of list, but they are scanned one by one from the head to the tail, which will cause those events be called in the reve

[PATCH v4 10/11] libsas: direct call probe and destruct

2017-09-06 Thread Jason Yan
In commit 87c8331f ([SCSI] libsas: prevent domain rediscovery competing with ata error handling) introduced disco mutex to prevent rediscovery competing with ata error handling and put the whole revalidation in the mutex. But the rphy add/remove needs to wait for the error handling which also grabs

[PATCH v4 06/11] libsas: shut down the PHY if events reached the threshold

2017-09-06 Thread Jason Yan
If the PHY burst too many events, we will alloc a lot of events for the worker. This may leads to memory exhaustion. Dan Williams suggested to shut down the PHY if the events reached the threshold, because in this case the PHY may have gone into some erroneous state. Users can re-enable the PHY by

[PATCH v4 00/11] Enhance libsas hotplug feature

2017-09-06 Thread Jason Yan
Hello all, Yijing Wang handed over this topic to me. We are working on it the last two months. We have tested the patchset for a long time. Here is the new version. Now the libsas hotplug has some issues, Dan Williams report a similar bug here before https://www.mail-archive.com/linux-scsi@vger.ke

  1   2   3   4   5   6   7   8   9   >