[v11 5/6] mm, oom: add cgroup v2 mount option for cgroup-aware OOM killer

2017-10-05 Thread Roman Gushchin
Add a "groupoom" cgroup v2 mount option to enable the cgroup-aware OOM killer. If not set, the OOM selection is performed in a "traditional" per-process way. The behavior can be changed dynamically by remounting the cgroupfs. Signed-off-by: Roman Gushchin Cc: Michal Hocko Cc: Vladimir Davydov

Re: [ANNOUNCE] Git v2.15.0-rc0

2017-10-05 Thread Johannes Schindelin
Hi Junio, On Thu, 5 Oct 2017, Junio C Hamano wrote: > New contributors whose contributions weren't in v2.14.0 are as follows. > Welcome to the Git development community! > > Ann T Ropea, Daniel Watkins, Dimitrios Christidis, Eric Rannaud, > Evan Zacks, Hielke Christian Braun, Ian Campbell, I

Re: [v10 5/6] mm, oom: add cgroup v2 mount option for cgroup-aware OOM killer

2017-10-05 Thread Michal Hocko
On Wed 04-10-17 16:04:53, Johannes Weiner wrote: [...] > That will silently ignore what the user writes to the memory.oom_group > control files across the system's cgroup tree. > > We'll have a knob that lets the workload declare itself an indivisible > memory consumer, that it would like to get k

Re: Draft manpage explaining kernel lockdown

2017-10-05 Thread David Howells
Johannes Berg wrote: > > Only validly signed wifi databases may be use. > > We don't even have this yet, and when we do, we want this to be the > case for typical configurations regardless of lockdown. Okay. David

Re: [PATCH tip/core/rcu 1/9] rcu: Provide GP ordering in face of migrations and delays

2017-10-05 Thread Steven Rostedt
On Wed, 4 Oct 2017 14:29:27 -0700 "Paul E. McKenney" wrote: > Consider the following admittedly improbable sequence of events: > > o RCU is initially idle. > > o Task A on CPU 0 executes rcu_read_lock(). A starts rcu_read_lock() critical section. > > o Task B on CPU 1 executes s

[tip:timers/core] timer: Convert schedule_timeout() to use from_timer()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 58e1177b4cd10b0d358faf7d7ebb3779f98bc3ea Gitweb: https://git.kernel.org/tip/58e1177b4cd10b0d358faf7d7ebb3779f98bc3ea Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:26:55 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:16 +0200 timer: Convert schedule_tim

[tip:timers/core] timer: Remove init_timer_on_stack() in favor of timer_setup_on_stack()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 9c6c273aa4248c60569de6ef7e7e9c7bed3cd32e Gitweb: https://git.kernel.org/tip/9c6c273aa4248c60569de6ef7e7e9c7bed3cd32e Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:26:57 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:17 +0200 timer: Remove init_timer_on

Re: [PATCH v3 02/22] dt-bindings: arm: add support for ARM System Control and Management Interface(SCMI) protocol

2017-10-05 Thread Jassi Brar
On Wed, Oct 4, 2017 at 5:35 AM, Arnd Bergmann wrote: > On Wed, Oct 4, 2017 at 1:07 PM, Sudeep Holla wrote: >> On 04/10/17 11:50, Arnd Bergmann wrote: >>> On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: > +- shmem : List of phandle pointing to the shared memory(SHM) area as per +

Re: Draft manpage explaining kernel lockdown

2017-10-05 Thread David Howells
Florian Weimer wrote: > > Lockdown is typically enabled during boot and may be terminated, if > > configured, by typing a special key combination on a directly attached > > physical keyboard. > > Does this include a Bluetooth keyboard (which might not actually exist and > might in reality be ano

[tip:timers/core] timer: Remove unused static initializer macros

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: fca7ce5b7c6d3eda8c2e011cff98d22e0fbd5097 Gitweb: https://git.kernel.org/tip/fca7ce5b7c6d3eda8c2e011cff98d22e0fbd5097 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:02 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:19 +0200 timer: Remove unused static

[tip:timers/core] timer: Remove users of expire and data arguments to DEFINE_TIMER

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 1ff97897454b9a59edc7cf2cf2d95586b1e7a2cf Gitweb: https://git.kernel.org/tip/1ff97897454b9a59edc7cf2cf2d95586b1e7a2cf Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:03 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:20 +0200 timer: Remove users of expi

[tip:timers/core] timer: Remove init_timer_deferrable() in favor of timer_setup()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: df7e828c1b699792b2ff26ebcf0a6d1025b2b790 Gitweb: https://git.kernel.org/tip/df7e828c1b699792b2ff26ebcf0a6d1025b2b790 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:26:59 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:18 +0200 timer: Remove init_timer_de

[tip:timers/core] timer: Remove last user of TIMER_INITIALIZER

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 51487d9ed1e386f9f0863bbf385e5da8a586bff8 Gitweb: https://git.kernel.org/tip/51487d9ed1e386f9f0863bbf385e5da8a586bff8 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:01 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:18 +0200 timer: Remove last user of

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-10-05 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: > An issue is found during using perf annotate. > > perf record -e cycles,branches ... > perf annotate main --stdio > > The result only shows cycles. It should show both cycles and > branches on the left side. It works with "--group", bu

[PATCH] drm/i915: Preallocate mmu notifier to unbreak cpu hotplug deadlock

2017-10-05 Thread Daniel Vetter
4.14-rc1 gained the fancy new cross-release support in lockdep, which seems to have uncovered a few more rules about what is allowed and isn't. This one here seems to indicate that allocating a work-queue while holding mmap_sem is a no-go, so let's try to preallocate it. Of course another way to

[tip:timers/core] timer: Remove init_timer_pinned() in favor of timer_setup()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 185981d54a60ae90942c6ba9006b250f3348cef2 Gitweb: https://git.kernel.org/tip/185981d54a60ae90942c6ba9006b250f3348cef2 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:26:58 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:17 +0200 timer: Remove init_timer_pi

[tip:timers/core] timer: Remove init_timer_pinned_deferrable() in favor of timer_setup()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 1d1fe902afb380571105d05d0be3de61b81bc9a8 Gitweb: https://git.kernel.org/tip/1d1fe902afb380571105d05d0be3de61b81bc9a8 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:26:56 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:16 +0200 timer: Remove init_timer_pi

[tip:timers/core] timer: Remove users of TIMER_DEFERRED_INITIALIZER

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 5cd79d6abd2c142352dead0e3df04e86ee32f5d3 Gitweb: https://git.kernel.org/tip/5cd79d6abd2c142352dead0e3df04e86ee32f5d3 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:00 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:18 +0200 timer: Remove users of TIME

[tip:timers/core] workqueue: Convert callback to use from_timer()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 8c20feb60604d91a29cd7fef8ac758bd92d9fd2c Gitweb: https://git.kernel.org/tip/8c20feb60604d91a29cd7fef8ac758bd92d9fd2c Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:07 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:22 +0200 workqueue: Convert callback

[tip:timers/core] timer: Remove expires and data arguments from DEFINE_TIMER

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 1d27e3e2252ba9d949ca82fbdb73cde102cb2067 Gitweb: https://git.kernel.org/tip/1d27e3e2252ba9d949ca82fbdb73cde102cb2067 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:04 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:20 +0200 timer: Remove expires and d

Highest power output, overheating solution solar heat pipe collectors

2017-10-05 Thread Mr.David
Hi, Our company, Suntask Solar is professional in producing the solar hot water heaters from 1999. We focus on the high quality and innovative technology. Now, It is my pleasure to introduce the new products to you: 1.Temperature limited heat pipes which stop working at 80-100 degree C. 2.Highes

Re: [PATCH v7 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-10-05 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Andi Kleen wrote: Cc: +Borislav > v2: Add EXPORT_SYMBOL for clear_cpu_id for lguest clear_cpu_id? You probably mean clear_cpu_cap, but that's moot now that lguest is gone.. --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h ... > #define set

Re: [Intel-gfx] [PATCH] drm/i915/selftests: fix check for intel IOMMU

2017-10-05 Thread Daniel Vetter
On Thu, Oct 05, 2017 at 01:17:11PM +0100, Chris Wilson wrote: > Quoting Arnd Bergmann (2017-10-05 13:07:22) > > An earlier bugfix tried to work around this build failure: > > > > drivers/gpu/drm/i915/selftests/mock_gem_device.c: In function > > 'mock_gem_device': > > drivers/gpu/drm/i915/selftest

Re: [PATCH v7 3/5] x86/cpuid: Make clearcpuid an early param

2017-10-05 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Andi Kleen wrote: > From: Andi Kleen > > Make clearcpuid= an early param, to make sure it is parsed > before the XSAVE initialization. This allows to modify > XSAVE state by clearing specific CPUID bits. > > Signed-off-by: Andi Kleen Reviewed-by: Thomas Gleixner

Re: [PATCH v3] ARC: [plat-hsdk]: Add reset controller node to manage ethernet reset

2017-10-05 Thread Eugeniy Paltsev
On Thu, 2017-10-05 at 06:04 -0700, Vineet Gupta wrote: > Hi Eugeniy, > > On 09/22/2017 09:49 AM, Eugeniy Paltsev wrote: > > DW ethernet controller on HSDK hangs sometimes after SW reset, so > > add reset node to make possible to reset DW ethernet controller HW. > > > > Signed-off-by: Eugeniy Palt

[tip:timers/core] kthread: Convert callback to use from_timer()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: fe5c3b69b540e3387223a696f327c1bb8880d1ac Gitweb: https://git.kernel.org/tip/fe5c3b69b540e3387223a696f327c1bb8880d1ac Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:06 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:22 +0200 kthread: Convert callback t

Re: [PATCH v7 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling

2017-10-05 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Andi Kleen wrote: > + /* > + * Clear XSAVE features that are disabled in the normal CPUID. > + */ > + for (i = 0; i < ARRAY_SIZE(xsave_cpuid_features); i++) > + if (!boot_cpu_has(xsave_cpuid_features[i])) > + xfeatures_mask &= ~B

[tip:timers/core] timer: Remove expires argument from __TIMER_INITIALIZER()

2017-10-05 Thread tip-bot for Kees Cook
Commit-ID: 8ede369b2cccfa585e2969bbed18edc0e2a18c50 Gitweb: https://git.kernel.org/tip/8ede369b2cccfa585e2969bbed18edc0e2a18c50 Author: Kees Cook AuthorDate: Wed, 4 Oct 2017 16:27:05 -0700 Committer: Thomas Gleixner CommitDate: Thu, 5 Oct 2017 15:01:21 +0200 timer: Remove expires argum

Re: [PATCH] drm/i915: avoid potential uninitialized variable use

2017-10-05 Thread Daniel Vetter
On Thu, Oct 05, 2017 at 02:08:26PM +0200, Arnd Bergmann wrote: > One of the recent changes introduced a warning about > undefined behavior in the sanity checking: > > drivers/gpu/drm/i915/intel_ddi.c: In function 'intel_ddi_hdmi_level': > drivers/gpu/drm/i915/intel_ddi.c:654:6: error: 'n_hdmi_entr

Re: [PATCH] RDMA/nes: Convert timers to use timer_setup()

2017-10-05 Thread Doug Ledford
On 10/4/2017 8:45 PM, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. A pointer from nesadapter back to > nesdev was added. > > Cc: F

[PATCH] x86/hyper-v: fix hypercalls with extended CPU ranges for TLB flushing

2017-10-05 Thread Marcelo Henrique Cerri
Do not consider the fixed size of hv_vp_set when passing the variable header size to hv_do_rep_hypercall(). The Hyper-V hypervisor specification states that for a hypercall with a variable header only the size of the variable portion should be supplied via the input control. For HVCALL_FLUSH_VIRT

Re: [PATCH 1/3] printk: Fix kdb_trap_printk placement

2017-10-05 Thread Petr Mladek
On Thu 2017-09-28 14:18:24, Peter Zijlstra wrote: > Some people figured vprintk_emit() makes for a nice API and exported > it, bypassing the kdb trap. > > This still leaves vprintk_nmi() outside of the kbd reach, should that > be fixed too? > > Cc: Jason Wessel > Signed-off-by: Peter Zijlstra (I

Re: [PATCH v6 6/6] lib/dlock-list: Provide IRQ-safe APIs

2017-10-05 Thread Waiman Long
On 10/04/2017 06:46 PM, Davidlohr Bueso wrote: > On Wed, 04 Oct 2017, Waiman Long wrote: > >> To enable the use of dlock-list in an interrupt handler, the following >> new APIs are provided for a irqsafe dlock-list: >> >> - void dlock_list_unlock_irqsafe(struct dlock_list_iter *) >> - void dlock_li

Re: [v10 5/6] mm, oom: add cgroup v2 mount option for cgroup-aware OOM killer

2017-10-05 Thread Roman Gushchin
On Thu, Oct 05, 2017 at 03:14:19PM +0200, Michal Hocko wrote: > On Wed 04-10-17 16:04:53, Johannes Weiner wrote: > [...] > > That will silently ignore what the user writes to the memory.oom_group > > control files across the system's cgroup tree. > > > > We'll have a knob that lets the workload de

Re: [PATCH tip/core/rcu 1/9] rcu: Provide GP ordering in face of migrations and delays

2017-10-05 Thread Peter Zijlstra
On Thu, Oct 05, 2017 at 09:17:03AM -0400, Steven Rostedt wrote: > On Wed, 4 Oct 2017 14:29:27 -0700 > "Paul E. McKenney" wrote: > > > Consider the following admittedly improbable sequence of events: > > > > o RCU is initially idle. > > > > o Task A on CPU 0 executes rcu_read_lock(). > > A

Re: [PATCH 1/3] printk: Fix kdb_trap_printk placement

2017-10-05 Thread Peter Zijlstra
On Thu, Oct 05, 2017 at 03:38:44PM +0200, Petr Mladek wrote: > Or can the kdb console commands be called in NMI context? IIRC most of KDB runs from NMI context.

Re: [PATCH v7 5/5] x86/xsave: Using generic CPUID clearing when disabling XSAVE

2017-10-05 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Andi Kleen wrote: > From: Andi Kleen > > Now that the generic CPUID clearing understands dependencies, > it's enough to clear the XSAVE CPUID bit to clear all depending > features when XSAVE gets disabled. > > So we don't need this hard to maintain explicit list > of feature

Re: [PATCH] drm/i915: Convert timers to use timer_setup()

2017-10-05 Thread Joonas Lahtinen
On Wed, 2017-10-04 at 17:54 -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Daniel Vetter > Cc: Jani Nikula > Cc: Da

[PATCH] Staging: rtl8723bs: core: rtw_recv: fix parenthesis alignment warning in validate_recv_mgnt_frame()

2017-10-05 Thread Srinivasan Shanmugam
Fix parenthesis alignment warning in validate_recv_mgnt_frame() Signed-off-by: Srinivasan Shanmugam --- drivers/staging/rtl8723bs/core/rtw_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_re

Re: [PATCH] vfs: hard-ban creating files with control characters in the name

2017-10-05 Thread Alan Cox
> For malformed Unicode or such, it'd make sense, yeah. Not really. It's legitimate to have bad unicode in a directory, or have a file system where some users are still in 8bit Russian encoding and some are unicode for example. The fix for this has always been the same - don't use shell script an

Re: [PATCH] RDMA/nes: Convert timers to use timer_setup()

2017-10-05 Thread Thomas Gleixner
On Thu, 5 Oct 2017, Doug Ledford wrote: > On 10/4/2017 8:45 PM, Kees Cook wrote: > > In preparation for unconditionally passing the struct timer_list pointer to > > all timer callbacks, switch to using the new timer_setup() and from_timer() > > to pass the timer pointer explicitly. A pointer from

Re: [PATCH] drm/i915: Preallocate mmu notifier to unbreak cpu hotplug deadlock

2017-10-05 Thread Chris Wilson
Quoting Daniel Vetter (2017-10-05 14:22:06) > 4.14-rc1 gained the fancy new cross-release support in lockdep, which > seems to have uncovered a few more rules about what is allowed and > isn't. > > This one here seems to indicate that allocating a work-queue while > holding mmap_sem is a no-go, so

Re: Draft manpage explaining kernel lockdown

2017-10-05 Thread Ard Biesheuvel
On 5 October 2017 at 12:00, David Howells wrote: > Hi Ard, Michael, > > Attached is a draft for a manual page (kernel_lockdown.7) that I intend to > point at from messages emitted when the kernel prohibits something because the > kernel is in 'lockdown' mode, typically triggered by EFI secure boot

[PATCH v4 2/3] KVM: LAPIC: Keep timer running when switching between one-shot and periodic mode

2017-10-05 Thread Wanpeng Li
From: Wanpeng Li If we take TSC-deadline mode timer out of the picture, the Intel SDM does not say that the timer is disable when the timer mode is change, either from one-shot to periodic or vice versa. After this patch, the timer is no longer disarmed on change of mode, so the counter (TMCCT)

[PATCH v4 1/3] KVM: LAPIC: Fix lapic timer mode transition

2017-10-05 Thread Wanpeng Li
From: Wanpeng Li SDM 10.5.4.1 TSC-Deadline Mode mentioned that "Transitioning between TSC-Deadline mode and other timer modes also disarms the timer". So the APIC Timer Initial Count Register for one-shot/periodic mode should be reset. This patch do it. Cc: Paolo Bonzini Cc: Radim Krčmář Sig

[PATCH v4 0/3] KVM: LAPIC: Rework lapic timer to behave more like real-hardware

2017-10-05 Thread Wanpeng Li
The issue is reported in xen community. Anthony PERARD pointed out: https://www.mail-archive.com/xen-devel@lists.xen.org/msg117283.html# | When developing PVH for OVMF, I've used the lapic timer. It turns out that the | way it is used by OVMF did not work with Xen [1]. I tried to find out how

[PATCH v4 3/3] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-05 Thread Wanpeng Li
From: Wanpeng Li The description in the Intel SDM of how the divide configuration register is used: "The APIC timer frequency will be the processor's bus clock or core crystal clock frequency divided by the value specified in the divide configuration register." Observation of baremetal shown tha

Re: [PATCH 5/6] kernel/locking: Prevent slowpath writers getting held up by fastpath

2017-10-05 Thread Peter Zijlstra
On Thu, Oct 05, 2017 at 01:54:56PM +0100, Will Deacon wrote: > When a prospective writer takes the qrwlock locking slowpath due to the > lock being held, it attempts to cmpxchg the wmode field from 0 to > _QW_WAITING so that concurrent lockers also take the slowpath and queue > on the spinlock acco

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-05 Thread Josh Poimboeuf
On Thu, Oct 05, 2017 at 08:02:33PM +0900, Tetsuo Handa wrote: > Josh Poimboeuf wrote: > > On Wed, Oct 04, 2017 at 06:44:50AM +0900, Tetsuo Handa wrote: > > > Josh Poimboeuf wrote: > > > > On Tue, Oct 03, 2017 at 11:28:15AM -0500, Josh Poimboeuf wrote: > > > > > There are two bugs: > > > > > > > >

Re: [PATCH] netfilter: ipset: Convert timers to use timer_setup()

2017-10-05 Thread Jozsef Kadlecsik
Hi, On Wed, 4 Oct 2017, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer > to all timer callbacks, switch to using the new timer_setup() and > from_timer() to pass the timer pointer explicitly. This introduces a > pointer back to the struct ip_set, wh

RE: [PATCH v4 08/14] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens

2017-10-05 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Thursday, October 5, 2017 3:50 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; LKML ; Platform Driver > ; Andy Lutomirski ; > quasi...@google.com; Pali Rohár ; Rafael J. Wysocki > ; mj...@google

Re: [PATCH] drm/i915: Preallocate mmu notifier to unbreak cpu hotplug deadlock

2017-10-05 Thread Chris Wilson
Quoting Daniel Vetter (2017-10-05 14:22:06) > 4.14-rc1 gained the fancy new cross-release support in lockdep, which > seems to have uncovered a few more rules about what is allowed and > isn't. > > This one here seems to indicate that allocating a work-queue while > holding mmap_sem is a no-go, so

RE: [PATCH v4 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-05 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Thursday, October 5, 2017 3:48 AM > To: Darren Hart > Cc: Limonciello, Mario ; LKML ker...@vger.kernel.org>; Platform Driver x...@vger.kernel.org>; Andy Lutomirski ; > quasi...@google.com; Pali Rohár

Re: [PATCH v4 13/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-05 Thread Alan Cox
On Wed, 4 Oct 2017 17:48:39 -0500 Mario Limonciello wrote: > This userspace character device will be used to perform SMBIOS calls > from any applications. > > It provides an ioctl that will allow passing the 32k WMI calling > interface buffer between userspace and kernel space. What is your se

[PATCH v3] Staging: rtl8188eu: core: rtw_mlme_ext: Use list_for_each_entry_safe

2017-10-05 Thread Srishti Sharma
This is a cleanup patch and doesn't change runtime behaviour. It changes an open coded list traversal to use list_for_each_entry_safe. Done using the following semantic patch by coccinelle. @r@ struct list_head* l; expression e; identifier m, list_del_init, f; type T1; T1* pos; iterator name list_

Re: Extreme time jitter with suspend/resume cycles

2017-10-05 Thread Thomas Gleixner
On Thu, 5 Oct 2017, Thomas Gleixner wrote: > On Wed, 4 Oct 2017, John Stultz wrote: > > So, on resume when we call __timekeeping_inject_sleeptime(), that uses > > the TK_CLEAR_NTP which clears the NTP state (sets STA_UNSYNC, etc) . > > I'm not sure how else we can notify userspace. It may be that

Re: [v10 5/6] mm, oom: add cgroup v2 mount option for cgroup-aware OOM killer

2017-10-05 Thread Michal Hocko
On Thu 05-10-17 14:41:13, Roman Gushchin wrote: > On Thu, Oct 05, 2017 at 03:14:19PM +0200, Michal Hocko wrote: > > On Wed 04-10-17 16:04:53, Johannes Weiner wrote: > > [...] > > > That will silently ignore what the user writes to the memory.oom_group > > > control files across the system's cgroup

Re: [PATCH v3 02/22] dt-bindings: arm: add support for ARM System Control and Management Interface(SCMI) protocol

2017-10-05 Thread Sudeep Holla
On 05/10/17 14:20, Jassi Brar wrote: > On Wed, Oct 4, 2017 at 5:35 AM, Arnd Bergmann wrote: >> On Wed, Oct 4, 2017 at 1:07 PM, Sudeep Holla wrote: >>> On 04/10/17 11:50, Arnd Bergmann wrote: On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: > >> > +- shmem : List of phandle pointi

Re: [PATCH] i2c: ismt: Separate I2C block read from SMBus block read

2017-10-05 Thread Pontus Andersson
On Thu, Oct 05, 2017 at 02:41:33PM +0200, Wolfram Sang wrote: > On Mon, Oct 02, 2017 at 02:45:19PM +0200, Pontus Andersson wrote: > > Commit b6c159a9cb69 ("i2c: ismt: Don't duplicate the receive length for > > block reads") broke I2C block reads. It aimed to fix normal SMBus block > > read, but cha

Re: [PATCH tip/core/rcu 1/9] rcu: Provide GP ordering in face of migrations and delays

2017-10-05 Thread Steven Rostedt
On Thu, 5 Oct 2017 15:40:42 +0200 Peter Zijlstra wrote: > On Thu, Oct 05, 2017 at 09:17:03AM -0400, Steven Rostedt wrote: > > On Wed, 4 Oct 2017 14:29:27 -0700 > > "Paul E. McKenney" wrote: > > > > > Consider the following admittedly improbable sequence of events: > > > > > > o RCU is initi

Re: [PATCH V9 13/15] mmc: block: Add CQE and blk-mq support

2017-10-05 Thread Bartlomiej Zolnierkiewicz
On Thursday, October 05, 2017 02:00:48 PM Bartlomiej Zolnierkiewicz wrote: > > > > I am trying to wrap my head around this large patch. The size makes it > > > > hard but I am doing my best. > > > > > > I also think that this patch should be split on two patches. The 1st one > > > introducing blk

Re: [PATCH v4 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-05 Thread Darren Hart
On Thu, Oct 05, 2017 at 01:59:36PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > Sent: Thursday, October 5, 2017 3:48 AM > > To: Darren Hart > > Cc: Limonciello, Mario ; LKML > ker...@vger.kernel.org>; Plat

Re: [PATCH v4 08/10] arm64: kexec_file: set up for crash dump adding elf core header

2017-10-05 Thread Julien Thierry
On 02/10/17 07:14, AKASHI Takahiro wrote: load_crashdump_segments() creates and loads a memory segment of elf core header for crash dump. "linux,usable-memory-range" and "linux,elfcorehdr" will add to the 2nd kernel's device-tree blob. The logic of this cod is also from kexec-tools. Signed-of

Re: [PATCH 1/2] IB/hfi1: Use preempt_{dis,en}able_nort()

2017-10-05 Thread Julia Cartwright
On Tue, Oct 03, 2017 at 12:49:19PM -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > sc_buffer_alloc() disables preemption that will be reenabled by either > pio_copy() or seg_pio_copy_end(). But before disabling preemption it > grabs a spin lock that will be dropped aft

Re: [PATCH] libata: Convert timers to use timer_setup()

2017-10-05 Thread Tejun Heo
On Wed, Oct 04, 2017 at 05:48:42PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Tejun Heo > Cc: linux-...@vger.ker

[PATCH] platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface

2017-10-05 Thread Hans de Goede
It seems that the WMI GUID used by the PEAQ 2-in-1 WMI hotkeys is not as unique as a GUID should be and is used on some other devices too. This is causing spurious key-press reports on these other devices. This commits adds a DMI check to the PEAQ 2-in-1 WMI hotkeys driver to ensure that it is ac

Re: [PATCH] ahci: Convert timers to use timer_setup()

2017-10-05 Thread Tejun Heo
On Wed, Oct 04, 2017 at 05:54:17PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. Adds a pointer back to link > structure. >

Re: [PATCH v4 08/14] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens

2017-10-05 Thread Andy Shevchenko
On Thu, Oct 5, 2017 at 4:58 PM, wrote: >> > Suggested-by: Andy Shevchenko >> >> To be clear I just suggested the output format in ->show() callback. > > Andy, do you mean you would prefer not to be attributed in the description, > or should I be clearer that was your suggestion? I think that t

[PATCH v5 0/3] KVM: LAPIC: Rework lapic timer to behave more like real-hardware

2017-10-05 Thread Wanpeng Li
The issue is reported in xen community. Anthony PERARD pointed out: https://www.mail-archive.com/xen-devel@lists.xen.org/msg117283.html# | When developing PVH for OVMF, I've used the lapic timer. It turns out that the | way it is used by OVMF did not work with Xen [1]. I tried to find out how

Re: [PATCH] i2c: piix4: Disable completely the IMC during SMBUS_BLOCK_DATA

2017-10-05 Thread Jean Delvare
Hi Ribalda, On Thu, 21 Sep 2017 09:37:43 +0200, Ricardo Ribalda Delgado wrote: > SMBUS_BLOCK_DATA transactions might fail due to a race condition with > the IMC, even when the IMC semaphore is used. An explanation of what IMC stands for, both in description and in the code, would be appreciated.

RE: [PATCH v4 13/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-05 Thread Mario.Limonciello
> -Original Message- > From: Alan Cox [mailto:gno...@lxorguk.ukuu.org.uk] > Sent: Thursday, October 5, 2017 8:59 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; > Andy Lutomirski ; quasi...@google.com; > pali.ro...@gma

Re: [PATCH] platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface

2017-10-05 Thread Andy Shevchenko
On Thu, Oct 5, 2017 at 5:20 PM, Hans de Goede wrote: > It seems that the WMI GUID used by the PEAQ 2-in-1 WMI hotkeys is not > as unique as a GUID should be and is used on some other devices too. > > This is causing spurious key-press reports on these other devices. > > This commits adds a DMI che

Re: [PATCH] platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface

2017-10-05 Thread Hans de Goede
Hi, On 05-10-17 16:23, Andy Shevchenko wrote: On Thu, Oct 5, 2017 at 5:20 PM, Hans de Goede wrote: It seems that the WMI GUID used by the PEAQ 2-in-1 WMI hotkeys is not as unique as a GUID should be and is used on some other devices too. This is causing spurious key-press reports on these oth

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-05 Thread Michal Hocko
On Thu 05-10-17 14:04:51, Roman Gushchin wrote: > Traditionally, the OOM killer is operating on a process level. > Under oom conditions, it finds a process with the highest oom score > and kills it. > > This behavior doesn't suit well the system with many running > containers: > > 1) There is no

Re: [v11 4/6] mm, oom: introduce memory.oom_group

2017-10-05 Thread Michal Hocko
On Thu 05-10-17 14:04:52, Roman Gushchin wrote: > The cgroup-aware OOM killer treats leaf memory cgroups as memory > consumption entities and performs the victim selection by comparing > them based on their memory footprint. Then it kills the biggest task > inside the selected memory cgroup. > > B

Re: [RFC] mmap(MAP_CONTIG)

2017-10-05 Thread Christopher Lameter
On Thu, 5 Oct 2017, Vlastimil Babka wrote: > On 10/04/2017 01:56 AM, Mike Kravetz wrote: > > At Plumbers this year, Guy Shattah and Christoph Lameter gave a presentation > > titled 'User space contiguous memory allocation for DMA' [1]. The slides > Hm I didn't find slides on that link, are they a

[PATCH v5 1/3] KVM: LAPIC: Fix lapic timer mode transition

2017-10-05 Thread Wanpeng Li
From: Wanpeng Li SDM 10.5.4.1 TSC-Deadline Mode mentioned that "Transitioning between TSC-Deadline mode and other timer modes also disarms the timer". So the APIC Timer Initial Count Register for one-shot/periodic mode should be reset. This patch do it. Cc: Paolo Bonzini Cc: Radim Kr??m

Re: [v11 4/6] mm, oom: introduce memory.oom_group

2017-10-05 Thread Michal Hocko
Btw. here is how I would do the recursive oom badness. The diff is not the nicest one because there is some code moving but the resulting code is smaller and imho easier to grasp. Only compile tested though --- diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 085056e562b1..9cdba46

[PATCH] MAINTAINERS: Add entry for the PEAQ WMI hotkeys driver

2017-10-05 Thread Hans de Goede
Add an entry to make myself the maintainer of the PEAQ WMI hotkeys driver. Signed-off-by: Hans de Goede --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea7d7955516e..e250a9c356c5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10544,6 +105

[PATCH v5 2/3] KVM: LAPIC: Keep timer running when switching between one-shot and periodic mode

2017-10-05 Thread Wanpeng Li
From: Wanpeng Li If we take TSC-deadline mode timer out of the picture, the Intel SDM does not say that the timer is disable when the timer mode is change, either from one-shot to periodic or vice versa. After this patch, the timer is no longer disarmed on change of mode, so the counter (TMCCT)

Re: [PATCH] i2c: piix4: Fix SMBus port selection for AMD Family 17h chips

2017-10-05 Thread Jean Delvare
On Sat, 12 Aug 2017 13:33:57 +0200, Wolfram Sang wrote: > On Sat, Jul 15, 2017 at 04:51:26PM -0700, Guenter Roeck wrote: > > AMD Family 17h uses the KERNCZ SMBus controller. While its documentation > > is not publicly available, it is documented in the BIOS and Kernel > > Developer’s Guide for AMD

[PATCH v5 3/3] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-05 Thread Wanpeng Li
From: Wanpeng Li The description in the Intel SDM of how the divide configuration register is used: "The APIC timer frequency will be the processor's bus clock or core crystal clock frequency divided by the value specified in the divide configuration register." Observation of baremetal shown tha

RE: [PATCH v4 12/14] platform/x86: wmi: create character devices when requested by drivers

2017-10-05 Thread Mario.Limonciello
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Thursday, October 5, 2017 2:16 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; > Andy Lutomirski ; quasi...@google.com; > pali.ro...@gmail.com; r...@

Re: [PATCH 5/6] kernel/locking: Prevent slowpath writers getting held up by fastpath

2017-10-05 Thread Waiman Long
On 10/05/2017 09:56 AM, Peter Zijlstra wrote: > On Thu, Oct 05, 2017 at 01:54:56PM +0100, Will Deacon wrote: >> When a prospective writer takes the qrwlock locking slowpath due to the >> lock being held, it attempts to cmpxchg the wmode field from 0 to >> _QW_WAITING so that concurrent lockers also

Re: [PATCH 3/4] irqchip: imgpdc: Set sys wake polarities to active high

2017-10-05 Thread Ed Blake
Hi James, Thanks for the review. On 04/10/17 14:14, James Hogan wrote: > Hi Ed, > > On Mon, Oct 02, 2017 at 10:55:58AM +0100, Ed Blake wrote: >> Set all sys wake polarities to active high during initial setup. The >> default is active low, which currently causes the 'flow_type' passed >> into

Re: [PATCH 1/2] scripts/dtc: add fdt_overlay.c and fdt_addresses.c to sync script

2017-10-05 Thread Tom Rini
On Tue, Oct 03, 2017 at 05:23:28PM -0500, Rob Herring wrote: > On Tue, Oct 3, 2017 at 5:04 PM, Tom Rini wrote: > > On Tue, Oct 03, 2017 at 01:31:17PM -0500, Rob Herring wrote: > > > >> libfdt has gained some new files. We need to include them in the > >> kernel's copy. > >> > >> Reported-by: Kyle

Re: [PATCH 5/6] kernel/locking: Prevent slowpath writers getting held up by fastpath

2017-10-05 Thread Will Deacon
HI Peter, Thanks for having a look. On Thu, Oct 05, 2017 at 03:56:18PM +0200, Peter Zijlstra wrote: > On Thu, Oct 05, 2017 at 01:54:56PM +0100, Will Deacon wrote: > > When a prospective writer takes the qrwlock locking slowpath due to the > > lock being held, it attempts to cmpxchg the wmode fiel

RE: [PATCH v4 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-05 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Thursday, October 5, 2017 9:15 AM > To: Limonciello, Mario > Cc: andy.shevche...@gmail.com; linux-kernel@vger.kernel.org; platform- > driver-...@vger.kernel.org; l...@kernel.org; quasi...@google.com; > pali.ro..

Re: [PATCH 00/12] of: overlay: clean up device tree overlay code

2017-10-05 Thread Rob Herring
On Thu, Oct 5, 2017 at 1:53 AM, Tomi Valkeinen wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 04/10/17 17:56, Rob Herring wrote: >> On Mon, Oct 2, 2017 at 10:53 PM, wrote: >>> From: Frank Rowand

Re: [PATCH 4/4] irqchip: imgpdc: Pass on peripheral mask/unmasks to the parent

2017-10-05 Thread Ed Blake
On 04/10/17 15:03, James Hogan wrote: > Hi Ed, > > On Mon, Oct 02, 2017 at 10:55:59AM +0100, Ed Blake wrote: >> Pass on peripheral (RTC/IR/WD) irq masks and unmasks to the parent >> interrupt controller, as well as setting / clearing the relevant bits >> in the IRQ_ROUTE register. >> >> Clearing bi

[PATCH v3 00/17] Hyper-V: add tracing to VMBus module and trace messages/events

2017-10-05 Thread Vitaly Kuznetsov
Changes since v2: - Use DEFINE_EVENT in PATCH1/2 to avoid compile warnings [Stephen Hemminger] - Add PATCH17 tracing channel events [Stephen Hemminger] Messages between guest and host are used in Hyper-V as control flow. To simplify debugging various issues which are often hard to reproduce add tr

[PATCH v3 15/17] hyper-v: trace vmbus_release_relid()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_RELID_RELEASED sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 7 +-- drivers/hv/hv_trace.h | 16 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c i

[PATCH v3 17/17] hyper-v: trace channel events

2017-10-05 Thread Vitaly Kuznetsov
Added an additional set of trace points for when channel gets notified or signals host. Suggested-by: Stephen Hemminger Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c| 2 ++ drivers/hv/connection.c | 2 ++ drivers/hv/hv_trace.h | 23 +++ drivers/hv/vmbus_dr

[PATCH v3 06/17] hyper-v: trace vmbus_ongpadl_created()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_GPADL_CREATED handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 17 + 2 files changed, 19 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 2abe0563876b..a

[PATCH v3 14/17] hyper-v: trace vmbus_negotiate_version()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_INITIATE_CONTACT sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/connection.c | 3 +++ drivers/hv/hv_trace.h | 26 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index f41901f80b6

[PATCH v3 13/17] hyper-v: trace vmbus_teardown_gpadl()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_GPADL_TEARDOWN sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 18 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index cf6bc0667cde..9cb81838e7bb 10064

[PATCH v3 01/17] hyper-v: trace vmbus_on_msg_dpc()

2017-10-05 Thread Vitaly Kuznetsov
Add tracing subsystem to Hyper-V VMBus module and add tracepoint to vmbus_on_msg_dpc() which is called when we receive a message from host. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/Makefile | 4 +++- drivers/hv/hv_trace.c | 4 drivers/hv/hv_trace.h | 29 +++

[PATCH v3 10/17] hyper-v: trace vmbus_open()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_OPENCHANNEL sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 27 +++ 2 files changed, 29 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index efd5db743319..82cb57e2d6bd

[PATCH v3 16/17] hyper-v: trace vmbus_send_tl_connect_request()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_TL_CONNECT_REQUEST sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 7 ++- drivers/hv/hv_trace.h | 20 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 9cb818

[PATCH v3 11/17] hyper-v: trace vmbus_close_internal()

2017-10-05 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_CLOSECHANNEL sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 15 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 82cb57e2d6bd..f919d9dd984b 100644 ---

<    1   2   3   4   5   6   7   8   9   10   >