Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Tejun Heo
On Thu, Jul 27, 2017 at 01:15:48PM -0500, Michael Bringmann wrote: > > On NUMA systems with dynamic processors, the content of the cpumask > may change over time. As new processors are added via DLPAR operations, > workqueues are created for them. Depending upon the order in which CPUs > are add

[PATCH 2/3] perf tools: Add mmap[2] events to ctf conversion

2017-07-27 Thread Geneviève Bastien
This adds the mmap and mmap2 events to the CTF trace obtained from perf data. These events will allow CTF trace visualization tools like Trace Compass to automatically resolve the symbols of the callchain to the corresponding function or origin library. To include those events, one needs to conve

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Andrew Hunter
On Thu, Jul 27, 2017 at 11:12 AM, Paul E. McKenney wrote: > Hello! > But my main question is whether the throttling shown below is acceptable > for your use cases, namely only one expedited sys_membarrier() permitted > per scheduling-clock period (1 millisecond on many platforms), with any > exces

Re: [PATCH v2 11/13] xen/pvcalls: implement release command

2017-07-27 Thread Boris Ostrovsky
> +int pvcalls_front_release(struct socket *sock) > +{ > + struct pvcalls_bedata *bedata; > + struct sock_mapping *map; > + int req_id, notify; > + struct xen_pvcalls_request *req; > + > + if (!pvcalls_front_dev) > + return -EIO; > + bedata = dev_get_drvdata(&pv

Re: [RFC 00/12] Misc patches for QCOM clocks

2017-07-27 Thread Stephen Boyd
On 07/27/2017 04:10 AM, Abhishek Sahu wrote: > This patch series does the miscellaneous changes in different > types of Qualcomm clock nodes which are required for IPQ8074 SoC. > Following are the major changes in IPQ8074 for which the existing > code does not have support. > > 1. Some of the IPQ80

Re: use-after-free. [libata/block]

2017-07-27 Thread Jens Axboe
On 07/27/2017 12:31 PM, Dave Jones wrote: > Found this in the logs this morning after an overnight fuzz run.. > > BUG: KASAN: use-after-free in __lock_acquire+0x1aa/0x1970 > Read of size 8 at addr 880406805e30 by task trinity-c8/25954 Fix already exists for this, just hasn't made it into main

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Nathan Fontenot
On 07/27/2017 01:15 PM, Michael Bringmann wrote: > > On NUMA systems with dynamic processors, the content of the cpumask > may change over time. As new processors are added via DLPAR operations, > workqueues are created for them. Depending upon the order in which CPUs > are added/removed, we may

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-27 Thread Raj, Ashok
Hi Casey > | Still no Intel and AMD guys has ack this, this is what I am worried about, > | should I ping some man again ? I can ack the patch set for Intel specific changes. Now that the doc is made public :-). Can you/Ding resend the patch series, i do have the most recent v7, some of the com

Re: [RFC 01/12] clk: qcom: support for register offsets from rcg2 clock node

2017-07-27 Thread Stephen Boyd
On 07/27/2017 04:10 AM, Abhishek Sahu wrote: > The current driver hardcodes the RCG2 register offsets. Some of > the RCG2’s use different offsets from the default one. > > This patch adds the support to provide the register offsets array in > RCG2 clock node. If RCG2 clock node contains the registe

Re: [PATCH v2 2/4] can: fixed-transceiver: Add documentation for CAN fixed transceiver bindings

2017-07-27 Thread Oliver Hartkopp
On 07/26/2017 08:29 PM, Franklin S Cooper Jr wrote: I'm fine with switching to using bitrate instead of speed. Kurk was originally the one that suggested to use the term arbitration and data since thats how the spec refers to it. Which I do agree with. But your right that in the drivers (stru

Re: [PATCH v1 1/2] x86/mm, kexec: Fix memory corruption with SME on successive kexecs

2017-07-27 Thread Tom Lendacky
On 7/27/2017 12:34 PM, Linus Torvalds wrote: On Thu, Jul 27, 2017 at 7:15 AM, Tom Lendacky wrote: I can #ifdef the wbinvd based on whether AMD_MEM_ENCRYPT is configured or not so that the wbinvd is avoided if not configured. I suspect an ifdef will be useless, since things like distro kernel

Re: [PATCH 002/102] ARM: socfpga: explicitly request exclusive reset control

2017-07-27 Thread Alan Tull
On Wed, Jul 19, 2017 at 11:12 AM, Moritz Fischer wrote: > On Wed, Jul 19, 2017 at 05:25:06PM +0200, Philipp Zabel wrote: >> Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting >> reset lines") started to transition the reset control request API calls >> to explicitly state whe

Re: [PATCH] selftests: capabilities: convert error output to TAP13 ksft framework

2017-07-27 Thread Andy Lutomirski
On Wed, Jul 26, 2017 at 2:18 PM, Shuah Khan wrote: > Convert errx() and err() usage to appropriate TAP13 ksft API. > > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/capabilities/test_execve.c | 105 > - > .../testing/selftests/capabilities/validate_cap.c | 9 +

Re: [PATCH 00/14] Fixes for Tegra clocks

2017-07-27 Thread Stephen Boyd
On 07/26, Peter De Schrijver wrote: > On Tue, Jul 25, 2017 at 06:37:46PM -0700, Stephen Boyd wrote: > > On 07/25, Peter De Schrijver wrote: > > > A number of smaller fixes and simplifications for the Tegra clock > > > implementation. > > > > Any of these need fixes tags so they can be backported t

Applied "ASoC: codecs: msm8916-analog: fix DIG_CLK_CTL_RXD3_CLK_EN define" to the asoc tree

2017-07-27 Thread Mark Brown
The patch ASoC: codecs: msm8916-analog: fix DIG_CLK_CTL_RXD3_CLK_EN define has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 h

Re: [PATCH] KVM: nVMX: INVPCID support

2017-07-27 Thread Paolo Bonzini
- Original Message - > From: "David Hildenbrand" > To: "Paolo Bonzini" , linux-kernel@vger.kernel.org, > k...@vger.kernel.org > Sent: Thursday, July 27, 2017 8:29:21 PM > Subject: Re: [PATCH] KVM: nVMX: INVPCID support > > On 27.07.2017 15:20, Paolo Bonzini wrote: > > Expose the "Enabl

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Paul E. McKenney
On Thu, Jul 27, 2017 at 11:36:38AM -0700, Andrew Hunter wrote: > On Thu, Jul 27, 2017 at 11:12 AM, Paul E. McKenney > wrote: > > Hello! > > But my main question is whether the throttling shown below is acceptable > > for your use cases, namely only one expedited sys_membarrier() permitted > > per

[RFC PATCH] membarrier: expedited private command

2017-07-27 Thread Mathieu Desnoyers
Implement MEMBARRIER_CMD_PRIVATE_EXPEDITED with IPIs using cpumask built from all runqueues for which current thread's mm is the same as our own. Scheduler-wise, it requires that we add a memory barrier after context switching between processes (which have different mm). It would be interesting t

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Michael Bringmann
On 07/27/2017 01:31 PM, Tejun Heo wrote: > On Thu, Jul 27, 2017 at 01:15:48PM -0500, Michael Bringmann wrote: >> >> On NUMA systems with dynamic processors, the content of the cpumask >> may change over time. As new processors are added via DLPAR operations, >> workqueues are created for them.

Re: [PATCH v2 02/22] fpga: add FPGA device framework

2017-07-27 Thread Rob Herring
On Thu, Jul 27, 2017 at 11:35 AM, Alan Tull wrote: > On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: > > Hi Rob, > > I was hoping to pick your brain a bit on a DT question. > >> During FPGA device (e.g PCI-based) discovery, platform devices are >> registered for different FPGA function units. But

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Michael Bringmann
>> >> /* yeap, return possible CPUs in @node that @attrs wants */ >> cpumask_and(cpumask, attrs->cpumask, wq_numa_possible_cpumask[node]); >> + >> +if (cpumask_empty(cpumask)) { >> +pr_warn_once("WARNING: workqueue cpumask: onl intersect > " >

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Avi Kivity
On 07/27/2017 09:12 PM, Paul E. McKenney wrote: Hello! Please see below for a prototype sys_membarrier() speedup patch. Please note that there is some controversy on this subject, so the final version will probably be quite a bit different than this prototype. But my main question is whether th

[GIT PULL] parisc architecture fixes for v4.13-rc3

2017-07-27 Thread Helge Deller
Hi Linus, please pull important fixes and updates for the parisc architecture for 4.13-rc3 from git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.13-3 Changes: The majority of lines changed are due to regenerated defconfig files. The support for the Page Deallo

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Tejun Heo
Hello, Michael. On Thu, Jul 27, 2017 at 02:07:53PM -0500, Michael Bringmann wrote: > The problem lies with the ordering of events with respect to the order in > which we add (or remove) CPUs to NUMA systems, and make use of that knowledge. Isn't the root cause that the upper layers including work

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Tejun Heo
On Thu, Jul 27, 2017 at 02:12:52PM -0500, Michael Bringmann wrote: > > >> > >>/* yeap, return possible CPUs in @node that @attrs wants */ > >>cpumask_and(cpumask, attrs->cpumask, wq_numa_possible_cpumask[node]); > >> + > >> + if (cpumask_empty(cpumask)) { > >> + pr_warn_once("WAR

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-07-27 Thread Miklos Szeredi
On Thu, Jul 27, 2017 at 8:20 PM, Tahsin Erdogan wrote: > Hi Miklos, > I made a first attempt to reproduce the failure but did not get lucky. > >> Inode 3093, i_blocks is 16, should be 8. Fix? yes > Does this inode correspond to foo, bar or a preexisting file? > > Do you mind sharing the output of

[PATCH v3 00/10] arm, arm64, cpufreq: frequency- and cpu-invariant accounting support for task scheduler

2017-07-27 Thread Dietmar Eggemann
For a more accurate (i.e. frequency- and cpu-invariant) accounting the task scheduler needs a frequency-scaling and on a heterogeneous system a cpu-scaling correction factor. This patch-set implements a Frequency Invariance Engine (FIE) based on the ratio of current frequency and maximum supported

[PATCH v3 03/10] cpufreq: arm_big_little: invoke frequency-invariance setter function

2017-07-27 Thread Dietmar Eggemann
Call the frequency-invariance setter function arch_set_freq_scale() if the new frequency has been successfully set which is indicated by bL_cpufreq_set_rate() returning 0. Cc: Rafael J. Wysocki Cc: Viresh Kumar Cc: Sudeep Holla Signed-off-by: Dietmar Eggemann --- drivers/cpufreq/arm_big_littl

[PATCH v3 06/10] drivers base/arch_topology: allow inlining cpu-invariant accounting support

2017-07-27 Thread Dietmar Eggemann
Allow inlining of topology_get_cpu_scale() into the task scheduler fast path (e.g. __update_load_avg_se()) by coding it as a static inline function in the arch topology header file. Cc: Greg Kroah-Hartman Cc: Juri Lelli Signed-off-by: Dietmar Eggemann --- drivers/base/arch_topology.c | 7 +---

[PATCH v3 10/10] arm64: wire cpu-invariant accounting support up to the task scheduler

2017-07-27 Thread Dietmar Eggemann
Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from weak function to #define") changed the wiring which now has to be done by associating arch_scale_cpu_capacity with the actual implementation provided by the architecture. Define arch_scale_cpu_capacity to use the arch_topolog

[PATCH v3 09/10] arm64: wire frequency-invariant accounting support up to the task scheduler

2017-07-27 Thread Dietmar Eggemann
Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") changed the wiring which now has to be done by associating arch_scale_freq_capacity with the actual implementation provided by the architecture. Define arch_scale_freq_capacity to use the arch_topology "driver" function topology_get

[PATCH v3 08/10] arm: wire cpu-invariant accounting support up to the task scheduler

2017-07-27 Thread Dietmar Eggemann
Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from weak function to #define") changed the wiring which now has to be done by associating arch_scale_cpu_capacity with the actual implementation provided by the architecture. Define arch_scale_cpu_capacity to use the arch_topolog

[PATCH v3 05/10] drivers base/arch_topology: provide frequency-invariant accounting support

2017-07-27 Thread Dietmar Eggemann
Implements the arch-specific (arm and arm64) frequency-invariance setter function arch_set_freq_scale() which provides the following frequency scaling factor: current_freq(cpu) << SCHED_CAPACITY_SHIFT / max_supported_freq(cpu) One possible consumer of the frequency-invariance getter function to

[PATCH v3 07/10] arm: wire frequency-invariant accounting support up to the task scheduler

2017-07-27 Thread Dietmar Eggemann
Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") changed the wiring which now has to be done by associating arch_scale_freq_capacity with the actual implementation provided by the architecture. Define arch_scale_freq_capacity to use the arch_topology "driver" function topology_get

[PATCH v3 04/10] cpufreq: dt: invoke frequency-invariance setter function

2017-07-27 Thread Dietmar Eggemann
Call the frequency-invariance setter function arch_set_freq_scale() if the new frequency has been successfully set which is indicated by dev_pm_opp_set_rate() returning 0. Cc: Rafael J. Wysocki Cc: Viresh Kumar Signed-off-by: Dietmar Eggemann --- drivers/cpufreq/cpufreq-dt.c | 12 ++--

[PATCH v3 02/10] cpufreq: provide default frequency-invariance setter function

2017-07-27 Thread Dietmar Eggemann
Frequency-invariant accounting support based on the ratio of current frequency and maximum supported frequency is an optional feature an arch can implement. Since there are cpufreq drivers (e.g. cpufreq-dt) which can be build for different arch's a default implementation of the frequency-invarianc

Re: [PATCH 18/20] staging: lustre: llite: Remove filtering of seclabel xattr

2017-07-27 Thread James Simmons
> From: Robin Humble > > The security.capability xattr is used to implement File > Capabilities in recent Linux versions. Capabilities are a > fine grained approach to granting executables elevated > privileges. eg. /bin/ping can have capabilities > cap_net_admin, cap_net_raw+ep instead of being

[PATCH v3 01/10] drivers base/arch_topology: free cpumask cpus_to_visit

2017-07-27 Thread Dietmar Eggemann
Free cpumask cpus_to_visit in case registering init_cpu_capacity_notifier has failed or the parsing of the cpu capacity-dmips-mhz property is done. The cpumask cpus_to_visit is only used inside the notifier call init_cpu_capacity_callback. Cc: Greg Kroah-Hartman Cc: Juri Lelli Reported-by: Vince

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-07-27 Thread Miklos Szeredi
On Thu, Jul 27, 2017 at 9:28 PM, Miklos Szeredi wrote: > On Thu, Jul 27, 2017 at 8:20 PM, Tahsin Erdogan wrote: >> Hi Miklos, >> I made a first attempt to reproduce the failure but did not get lucky. >> >>> Inode 3093, i_blocks is 16, should be 8. Fix? yes >> Does this inode correspond to foo, b

Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH

2017-07-27 Thread Murilo Opsfelder Araújo
On 07/26/2017 04:37 PM, Alex Williamson wrote: [...] > Applied to my for-linus branch with David and Alexey's R-b for v4.13. > Thanks, > > Alex Thank you all! -- Murilo

RE: [Linux-ima-devel] [RFC PATCH 1/5] ima: extend clone() with IMA namespace support

2017-07-27 Thread
> -Original Message- > From: Stefan Berger [mailto:stef...@linux.vnet.ibm.com] > Sent: quinta-feira, 27 de julho de 2017 14:50 > To: Magalhaes, Guilherme (Brazil R&D-CL) > ; Mimi Zohar > ; Serge E. Hallyn > Cc: Mehmet Kayaalp ; Yuqiong Sun > ; containers foundation.org>; linux-kernel ;

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-27 Thread Thomas Gleixner
On Thu, 27 Jul 2017, Tomi Sarvela wrote: > On 27/07/17 10:42, Thomas Gleixner wrote: > > On Thu, 27 Jul 2017, Tomi Sarvela wrote: > > > On 26/07/17 17:26, Thomas Gleixner wrote: > > > > So reverting that commit does not help. Does it help on your machine? > > > > > > Yes. Reverting it does not ca

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Paul E. McKenney
On Thu, Jul 27, 2017 at 10:20:14PM +0300, Avi Kivity wrote: > On 07/27/2017 09:12 PM, Paul E. McKenney wrote: > >Hello! > > > >Please see below for a prototype sys_membarrier() speedup patch. > >Please note that there is some controversy on this subject, so the final > >version will probably be qui

strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels

2017-07-27 Thread Mikael Pettersson
Attempting to build strace-4.18 as sparcv9 code and run its test suite on a sparc64 machine (Sun Blade 2500 w/ 2 x USIIIi in my case) fails reliably in three test cases (sched.gen, sched_xetattr.gen, and poll) because two test binaries (sched_xetattr and poll) OOPS the kernel and get killed. Sampl

Re: [PATCH] mm: memcontrol: Cast mismatched enum types passed to memcg state and event functions

2017-07-27 Thread Matthias Kaehlcke
El Thu, Jul 27, 2017 at 10:17:42AM -0400 Johannes Weiner ha dit: > On Thu, Jul 27, 2017 at 09:24:51AM +0200, Michal Hocko wrote: > > On Wed 26-07-17 15:03:32, Andrew Morton wrote: > > > On Wed, 26 Jul 2017 14:49:14 -0700 Matthias Kaehlcke > > > wrote: > > > > > > > El Wed, Jul 26, 2017 at 02:23

Re: [PATCH v2] cpuset: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-07-27 Thread Andrew Morton
On Thu, 27 Jul 2017 09:46:08 -0700 Dima Zavin wrote: > In codepaths that use the begin/retry interface for reading > mems_allowed_seq with irqs disabled, there exists a race condition that > stalls the patch process after only modifying a subset of the > static_branch call sites. > > This proble

Re: [PATCH 2/3] staging: ccree: Convert to devm_ioremap_resource for map, unmap

2017-07-27 Thread Dan Carpenter
On Thu, Jul 27, 2017 at 05:27:33PM +0300, Gilad Ben-Yossef wrote: > + new_drvdata->cc_base = devm_ioremap_resource(&plat_dev->dev, > + req_mem_cc_regs); > + if (IS_ERR(new_drvdata->cc_base)) { > + rc = PTR_ERR(new_drvdata->cc_base

Re: [PATCH v2] cpuset: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-07-27 Thread Andrew Morton
On Thu, 27 Jul 2017 09:46:08 -0700 Dima Zavin wrote: > - Applied on top of v4.12 since one of the callers in page_alloc.c changed. >Still only tested on v4.9.36 and compile tested against v4.12. That's a problem - this doesn't come close to applying on current mainline. I can fix that I gu

Re: [PATCHSET for-4.14] cgroup, sched: cgroup2 interface for CPU controller

2017-07-27 Thread Tejun Heo
Hello, On Thu, Jul 20, 2017 at 02:48:06PM -0400, Tejun Heo wrote: > These are two patches to implement the cgroup2 CPU controller > interface. It's separated from the [L] previous version of combined > cgroup2 threaded mode + CPU controller patchset. > > * "cpu.weight.nice" added which allows re

Re: [PATCH] ARM: shmobile: rcar-gen2: Fix deadlock in regulator quirk

2017-07-27 Thread Simon Horman
On Wed, Jul 12, 2017 at 04:45:20PM +0200, Geert Uytterhoeven wrote: > Simon Horman reported that Koelsch and Lager hang during boot, and > bisected this to commit 1c3c5eab171590f8 ("sched/core: Enable > might_sleep() and smp_processor_id() checks early"). > > The da9063/da9210 regulator quirk for

Re: [PATCH v3 06/11] x86/mm: Rework lazy TLB mode and TLB freshness tracking

2017-07-27 Thread Andrew Banman
On Thu, Jun 22, 2017 at 10:47:29AM -0700, Andy Lutomirski wrote: > On Thu, Jun 22, 2017 at 7:50 AM, Borislav Petkov wrote: > > On Tue, Jun 20, 2017 at 10:22:12PM -0700, Andy Lutomirski wrote: > >> Rewrite it entirely. When we enter lazy mode, we simply remove the > >> cpu from mm_cpumask. This m

Re: [Eas-dev] [PATCH V3 1/3] sched: cpufreq: Allow remote cpufreq callbacks

2017-07-27 Thread Saravana Kannan
On 07/26/2017 08:30 PM, Viresh Kumar wrote: On 26-07-17, 14:00, Saravana Kannan wrote: No, the alternative is to pass it on to the CPU freq driver and let it decide what it wants to do. That's the whole point if having a CPU freq driver -- so that the generic code doesn't need to care about HW s

Re: [RFC PATCH] membarrier: expedited private command

2017-07-27 Thread Peter Zijlstra
On Thu, Jul 27, 2017 at 02:59:43PM -0400, Mathieu Desnoyers wrote: > diff --git a/kernel/membarrier.c b/kernel/membarrier.c > index 9f9284f37f8d..8c6c0f96f617 100644 > --- a/kernel/membarrier.c > +++ b/kernel/membarrier.c > @@ -19,10 +19,81 @@ > #include > > /* > + * XXX For cpu_rq(). Should w

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Avi Kivity
On 07/27/2017 10:43 PM, Paul E. McKenney wrote: On Thu, Jul 27, 2017 at 10:20:14PM +0300, Avi Kivity wrote: On 07/27/2017 09:12 PM, Paul E. McKenney wrote: Hello! Please see below for a prototype sys_membarrier() speedup patch. Please note that there is some controversy on this subject, so the

Re: [RFC PATCH] membarrier: expedited private command

2017-07-27 Thread Paul E. McKenney
On Thu, Jul 27, 2017 at 02:59:43PM -0400, Mathieu Desnoyers wrote: > Implement MEMBARRIER_CMD_PRIVATE_EXPEDITED with IPIs using cpumask built > from all runqueues for which current thread's mm is the same as our own. > > Scheduler-wise, it requires that we add a memory barrier after context > swit

Re: [PATCH v3 1/3] ptp: introduce ptp auxiliary worker

2017-07-27 Thread Richard Cochran
On Wed, Jul 26, 2017 at 05:11:36PM -0500, Grygorii Strashko wrote: > @@ -217,6 +231,19 @@ struct ptp_clock *ptp_clock_register(struct > ptp_clock_info *info, > mutex_init(&ptp->pincfg_mux); > init_waitqueue_head(&ptp->tsev_wq); > > + if (ptp->info->do_aux_work) { > +

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-27 Thread Thomas Gleixner
On Thu, 27 Jul 2017, Thomas Gleixner wrote: > On Thu, 27 Jul 2017, Tomi Sarvela wrote: > > > On 27/07/17 10:42, Thomas Gleixner wrote: > > > On Thu, 27 Jul 2017, Tomi Sarvela wrote: > > > > On 26/07/17 17:26, Thomas Gleixner wrote: > > > > > So reverting that commit does not help. Does it help on

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Michael Bringmann
Revised text: There is an underlying assumption in many layers / modules of the Linux system that CPU <-> node mapping is static. This is despite the presence of features like NUMA and 'hotplug' that support the dynamic addition/ removal of fundamental system resources like CPUs and memory. Powe

Re: [RFC PATCH] membarrier: expedited private command

2017-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2017, at 4:06 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Thu, Jul 27, 2017 at 02:59:43PM -0400, Mathieu Desnoyers wrote: >> Implement MEMBARRIER_CMD_PRIVATE_EXPEDITED with IPIs using cpumask built >> from all runqueues for which current thread's mm is the same a

Re: [PATCH 0/2] gpio-mxc: Fix issue with gpios used as wake source on iMX27

2017-07-27 Thread Thomas Gleixner
Gentle ping Thanks, tglx On Wed, 12 Jul 2017, Philipp Rosenberger wrote: > The gpio-mxc driver is able to use two interrupts per gpio bank. One for > the lower 16 and the other for the higher 16 gpios. The iMX27 has only one > interrupt per bank. An error in the driver leads to th

Re: [RFC PATCH] membarrier: expedited private command

2017-07-27 Thread Paul E. McKenney
On Thu, Jul 27, 2017 at 08:18:47PM +, Mathieu Desnoyers wrote: > > - On Jul 27, 2017, at 4:06 PM, Paul E. McKenney > paul...@linux.vnet.ibm.com wrote: > > > On Thu, Jul 27, 2017 at 02:59:43PM -0400, Mathieu Desnoyers wrote: > >> Implement MEMBARRIER_CMD_PRIVATE_EXPEDITED with IPIs using

Re: [PATCH V2 net] Revert "vhost: cache used event for better performance"

2017-07-27 Thread Michael S. Tsirkin
On Thu, Jul 27, 2017 at 11:22:05AM +0800, Jason Wang wrote: > This reverts commit 809ecb9bca6a9424ccd392d67e368160f8b76c92. Since it > was reported to break vhost_net. We want to cache used event and use > it to check for notification. The assumption was that guest won't move > the event idx back,

Re: [RFC PATCH] membarrier: expedited private command

2017-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2017, at 3:55 PM, Peter Zijlstra pet...@infradead.org wrote: > On Thu, Jul 27, 2017 at 02:59:43PM -0400, Mathieu Desnoyers wrote: >> diff --git a/kernel/membarrier.c b/kernel/membarrier.c >> index 9f9284f37f8d..8c6c0f96f617 100644 >> --- a/kernel/membarrier.c >> +++ b/kernel/memba

Re: [PATCH] selftests: capabilities: convert error output to TAP13 ksft framework

2017-07-27 Thread Shuah Khan
On 07/27/2017 12:50 PM, Andy Lutomirski wrote: > On Wed, Jul 26, 2017 at 2:18 PM, Shuah Khan wrote: >> Convert errx() and err() usage to appropriate TAP13 ksft API. >> >> Signed-off-by: Shuah Khan >> --- >> tools/testing/selftests/capabilities/test_execve.c | 105 >> - >> ..

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Paul E. McKenney
On Thu, Jul 27, 2017 at 11:04:13PM +0300, Avi Kivity wrote: > On 07/27/2017 10:43 PM, Paul E. McKenney wrote: > >On Thu, Jul 27, 2017 at 10:20:14PM +0300, Avi Kivity wrote: > >>On 07/27/2017 09:12 PM, Paul E. McKenney wrote: > >>>Hello! > >>> > >>>Please see below for a prototype sys_membarrier() s

Re: [RFC v6 15/62] powerpc: helper functions to initialize AMR, IAMR and UMOR registers

2017-07-27 Thread Thiago Jung Bauermann
Ram Pai writes: > Introduce helper functions that can initialize the bits in the AMR, > IAMR and UMOR register; the bits that correspond to the given pkey. > > Signed-off-by: Ram Pai s/UMOR/UAMOR/ here and in the subject as well. > --- a/arch/powerpc/mm/pkeys.c > +++ b/arch/powerpc/mm/pkeys.c

Re: [PATCH 0/3] memdelay: memory health metric for systems and workloads

2017-07-27 Thread Andrew Morton
On Thu, 27 Jul 2017 11:30:07 -0400 Johannes Weiner wrote: > This patch series implements a fine-grained metric for memory > health. I assume some Documentation/ is forthcoming. Consuming another page flag hurts. What's our current status there? I'd be interested in seeing some usage examples.

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-27 Thread Joe Lawrence
On 07/20/2017 12:17 AM, Josh Poimboeuf wrote: > - The pre-patch and pre-unpatch hooks can be run before the > patching/unpatching process begins. Hi Josh, By "(un)patching process" are you referring to the klp_patch at large or each klp_object? ie, would all klp_objects execute their hooks bef

RE: [PATCH V4 net-next 1/8] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-07-27 Thread Salil Mehta
Hi Florian, > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Sunday, July 23, 2017 6:24 PM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger

Re: [PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Tejun Heo
Hello, Michael. On Thu, Jul 27, 2017 at 03:15:47PM -0500, Michael Bringmann wrote: > There is an underlying assumption in many layers / modules of the Linux > system that CPU <-> node mapping is static. This is despite the presence > of features like NUMA and 'hotplug' that support the dynamic ad

RE: [PATCH V4 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver

2017-07-27 Thread Salil Mehta
Hi Florian, > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Thursday, July 27, 2017 7:05 PM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vg

Re: [Linux-ima-devel] [RFC PATCH 1/5] ima: extend clone() with IMA namespace support

2017-07-27 Thread Stefan Berger
On 07/27/2017 03:39 PM, Magalhaes, Guilherme (Brazil R&D-CL) wrote: There's a vTPM proxy driver in the kernel that enables spawning a frontend /dev/tpm%d and an anonymous backend file descriptor where a vTPM can listen on for TPM commands. I integrated this with 'swtpm' and I have been working

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-07-27 Thread Tahsin Erdogan
Still no luck reproducing the error. I am using the test script below at v4.13-rc2. Do you mind checking my script to see what I am missing? #!/bin/bash set -ex while grep /dev/sdb /proc/mounts;do umount /dev/sdb; done mke2fs -F -t ext4 /dev/sdb mount /dev/sdb /mnt/sdb cd /mnt/sdb mkdir xattrhas

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2017, at 4:37 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Thu, Jul 27, 2017 at 11:04:13PM +0300, Avi Kivity wrote: >> On 07/27/2017 10:43 PM, Paul E. McKenney wrote: >> >On Thu, Jul 27, 2017 at 10:20:14PM +0300, Avi Kivity wrote: >> >>On 07/27/2017 09:12 PM, Paul

[PATCH 0/4] objtool: fix some objtool warnings

2017-07-27 Thread Josh Poimboeuf
Some objtool warning fixes, most of which were reported by Arnd. The first patch fixes an issue which is specific to GCC 7. It has been around a while. The second patch fixes an issue which has theoretically always existed in objtool, but was only recently uncovered due to some recent function w

[PATCH 3/4] objtool: Fix '-mtune=atom' decoding support in objtool 2.0

2017-07-27 Thread Josh Poimboeuf
With '-mtune=atom', which is enabled with CONFIG_MATOM=y, GCC uses some unusual instructions for setting up the stack. Instead of: mov %rsp, %rbp it does: lea (%rsp), %rbp And instead of: add imm, %rsp it does: lea disp(%rsp), %rsp Add support for these instructions to the objtool

[PATCH 4/4] objtool: Disable GCC '-Wpacked' warnings

2017-07-27 Thread Josh Poimboeuf
Objtool is failing to build with GCC 4.4.7 due to the following warnings: cc1: warnings being treated as errors In file included from orc.h:21, from orc_gen.c:21: orc_types.h:86: error: packed attribute is unnecessary for ‘sp_offset’ orc_types.h:87: error: packed attribu

[PATCH 2/4] objtool: Skip unreachable warnings for 'alt' instructions

2017-07-27 Thread Josh Poimboeuf
When a whitelisted function uses one of the ALTERNATIVE macros, it produces false positive warnings like: arch/x86/kvm/vmx.o: warning: objtool: .altinstr_replacement+0x0: unreachable instruction arch/x86/kvm/svm.o: warning: objtool: .altinstr_replacement+0x6e: unreachable instruction There'

Re: [PATCH v4 26/28] ARM: dts: s500: Set power domains for CPU2 and CPU3

2017-07-27 Thread Andreas Färber
Am 06.06.2017 um 02:54 schrieb Andreas Färber: > CPU2 has its own power domain PD_CPU2, and CPU3 has PD_CPU3. > > Signed-off-by: Andreas Färber > --- > v4: new (split off due to dt-bindings dependency) > > arch/arm/boot/dts/s500.dtsi | 3 +++ > 1 file changed, 3 insertions(+) Applied to v4.1

[PATCH 1/4] objtool: Assume unannotated 'ud2' instructions are dead ends

2017-07-27 Thread Josh Poimboeuf
Arnd reported some false positive warnings with GCC 7: drivers/hid/wacom_wac.o: warning: objtool: wacom_bpt3_touch()+0x2a5: stack state mismatch: cfa1=7+8 cfa2=6+16 drivers/iio/adc/vf610_adc.o: warning: objtool: vf610_adc_calculate_rates() falls through to next function vf610_adc_sample_set(

Re: linux-next: Signed-off-by missing in commit in the arm-soc tree

2017-07-27 Thread Arnd Bergmann
On Thu, Jul 27, 2017 at 5:21 PM, Stephen Rothwell wrote: > Hi all, > > I noticed that commit > > 2cb68e9b44f7 ("ARM: ep93xx: normalize clk API") > > has no Signed-off-by from its committer. Thanks, my mistake. I initially cherry-picked this one and added my S-o-B, but then had to do it again an

Re: [PATCH v4 02/12] ALSA: ac97: add an ac97 bus

2017-07-27 Thread Robert Jarzmik
Takashi Iwai writes: > On Mon, 24 Jul 2017 22:49:18 +0200, > Robert Jarzmik wrote: ...zip... >> +#ifndef AC97_COMPAT_H >> +#define AC97_COMPAT_H >> + >> +#include >> +#include > > Is this inclusion needed? The code here doesn't look ASoC-specific at > all. Mmm no, actually it's not, good poin

Re: [PATCH 2/2] arm64: dts: Add device node for pmi8994 gpios

2017-07-27 Thread Stephen Boyd
On 07/26/2017 11:30 PM, Vivek Gautam wrote: > Signed-off-by: Vivek Gautam > --- > arch/arm64/boot/dts/qcom/pmi8994.dtsi | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pmi8994.dtsi > b/arch/arm64/boot/dts/qcom/pmi8994.dtsi > index d3879a4e8076

Re: Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2017, at 4:58 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Jul 27, 2017, at 4:37 PM, Paul E. McKenney paul...@linux.vnet.ibm.com > wrote: > >> On Thu, Jul 27, 2017 at 11:04:13PM +0300, Avi Kivity wrote: [...] >>> >+ >>> >+ this_cpu = raw_smp_processor_

Re: [PATCH v5 03/19] arm: qcom-msm8974: dts: Update coresight replicator

2017-07-27 Thread Andy Gross
On Thu, Jul 27, 2017 at 12:17:14PM +0100, Suzuki K Poulose wrote: > On 20/07/17 11:17, Suzuki K Poulose wrote: > >Replace the obsolete compatible string for Coresight programmable > >replicator with the new one. > > > >Cc: Andy Gross > >Cc: David Brown > >Cc: linux-arm-...@vger.kernel.org > >Cc:

Re: [PATCH 1/2] pinctrl: qcom: spmi-gpio: Add pmi8994 gpio support

2017-07-27 Thread Stephen Boyd
On 07/26/2017 11:30 PM, Vivek Gautam wrote: > Update the bindings doc and driver for pmi8994-gpio devices. > > Signed-off-by: Vivek Gautam > --- > > - Have been using this patch-set on db820c [1] for extcon with > usb controller. The usb controller uses one of these gpios > for usb-id/vbus det

Re: [PATCH net] xgene: Don't fail probe, if there is no clk resource for SGMII interfaces

2017-07-27 Thread Laura Abbott
On 07/13/2017 01:57 AM, Thomas Bogendoerfer wrote: > From: Thomas Bogendoerfer > > This change fixes following problem > > [1.827940] xgene-enet: probe of 1f210030.ethernet failed with error -2 > > which leads to a missing ethernet interface (reproducable at least on > Gigabyte MP30-AR0 and

Re: [PATCH v7 02/12] mfd: rk808: add rk805 regs addr and ID

2017-07-27 Thread Heiko Stuebner
Hi Joseph, Am Freitag, 21. Juli 2017, 19:14:31 CEST schrieb Joseph Chen: > From: Elaine Zhang > > Signed-off-by: Elaine Zhang When you send out patches from someone else you should still add your own Signed-off-by line. So the patches that are originally from Elaine, should have her Signed-off

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-27 Thread Thomas Gleixner
On Thu, 27 Jul 2017, Thomas Gleixner wrote: > On Thu, 27 Jul 2017, Thomas Gleixner wrote: > > On Thu, 27 Jul 2017, Tomi Sarvela wrote: > > > > > On 27/07/17 10:42, Thomas Gleixner wrote: > > > > On Thu, 27 Jul 2017, Tomi Sarvela wrote: > > > > > On 26/07/17 17:26, Thomas Gleixner wrote: > > > > >

[PATCH] mm: memcontrol: Use int for event/state parameter in several functions

2017-07-27 Thread Matthias Kaehlcke
Several functions use an enum type as parameter for an event/state, but are called in some locations with an argument of a different enum type. Adjust the interface of these functions to reality by changing the parameter to int. This fixes a ton of enum-conversion warnings that are generated when

Re: [PATCH v2 2/4] can: fixed-transceiver: Add documentation for CAN fixed transceiver bindings

2017-07-27 Thread Franklin S Cooper Jr
On 07/27/2017 01:47 PM, Oliver Hartkopp wrote: > On 07/26/2017 08:29 PM, Franklin S Cooper Jr wrote: >> > >> I'm fine with switching to using bitrate instead of speed. Kurk was >> originally the one that suggested to use the term arbitration and data >> since thats how the spec refers to it. Whi

Re: [PATCH v3 1/3] arch: Define CPU_BIG_ENDIAN for all fixed big endian archs

2017-07-27 Thread Helge Deller
On 13.06.2017 00:09, Babu Moger wrote: > While working on enabling queued rwlock on SPARC, found > this following code in include/asm-generic/qrwlock.h > which uses CONFIG_CPU_BIG_ENDIAN to clear a byte. > > static inline u8 *__qrwlock_write_byte(struct qrwlock *lock) > { > return (u8 *)loc

[RFC PATCH v2] membarrier: expedited private command

2017-07-27 Thread Mathieu Desnoyers
Implement MEMBARRIER_CMD_PRIVATE_EXPEDITED with IPIs using cpumask built from all runqueues for which current thread's mm is the same as the thread calling sys_membarrier. Scheduler-wise, it requires that we add a memory barrier after context switching between processes (which have different mm).

Re: [RESEND PATCH v4 1/2] platform: Add driver for RAVE Supervisory Processor

2017-07-27 Thread Andrey Smirnov
On Thu, Jul 27, 2017 at 2:03 AM, Andy Shevchenko wrote: > On Tue, Jul 25, 2017 at 9:44 PM, Andrey Smirnov > wrote: >> Add a driver for RAVE Supervisory Processor, an MCU implementing >> varoius bits of housekeeping functionality (watchdoging, backlight >> control, LED control, etc) on RAVE family

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-27 Thread Mike Kravetz
On 07/27/2017 12:50 AM, Michal Hocko wrote: > On Wed 26-07-17 10:39:30, Mike Kravetz wrote: >> On 07/26/2017 03:07 AM, Michal Hocko wrote: >>> On Wed 26-07-17 11:53:38, Michal Hocko wrote: On Mon 17-07-17 15:28:01, Mike Kravetz wrote: > Use the common definitions from hugetlb_encode.h head

[PATCH v7] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Michael Bringmann
There is an underlying assumption/trade-off in many layers of the Linux system that CPU <-> node mapping is static. This is despite the presence of features like NUMA and 'hotplug' that support the dynamic addition/ removal of fundamental system resources like CPUs and memory. PowerPC systems, h

[PATCH v2] btrfs: Remove extra parentheses from condition in copy_items()

2017-07-27 Thread Matthias Kaehlcke
There is no need for the extra pair of parentheses, remove it. This fixes the following warning when building with clang: fs/btrfs/tree-log.c:3694:10: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((i == (nr - 1))) ~~^~~

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-27 Thread Josh Poimboeuf
On Thu, Jul 27, 2017 at 04:43:58PM -0400, Joe Lawrence wrote: > On 07/20/2017 12:17 AM, Josh Poimboeuf wrote: > > - The pre-patch and pre-unpatch hooks can be run before the > > patching/unpatching process begins. > > Hi Josh, > > By "(un)patching process" are you referring to the klp_patch at

Re: [PATCH net] xgene: Don't fail probe, if there is no clk resource for SGMII interfaces

2017-07-27 Thread Tom Bogendoerfer
On Thu, Jul 27, 2017 at 02:03:42PM -0700, Laura Abbott wrote: > This change causes boot failures for me on my APM Mustang system running > Fedora rawhide: > > [ 16.669089] Synchronous External Abort: synchronous external abort > (0x960 > [ 16.669099] Internal error: : 9610 [#1] SMP

Re: Regression with suspicious RCU usage splats with cpu_pm change

2017-07-27 Thread Rafael J. Wysocki
On Thursday, July 27, 2017 05:55:19 PM Alex Shi wrote: > Hi Rafael, > > Guess you overlook my new patch in this thread. :) > Do I need to recent this patch as new? or you could pick it up here? Please resend it, add all of the applicable tags etc. Thanks, Rafael

<    1   2   3   4   5   6   7   8   9   >