[ANNOUNCE] 4.1.27-rt31

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.1.27-rt31 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.1-rt Head SHA1: 19f31cf0a5e2c6c52d7b0ca781121d774a103041 Or to build 4.1.27-rt31 directl

[ANNOUNCE] 3.10.102-rt113

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.10.102-rt113 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.10-rt Head SHA1: 1df43a742d5375abf819762126f484afe674dbda Or to build 3.10.102-rt113

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Oleg Nesterov
On 07/14, Peter Zijlstra wrote: > > OK, not too horrible if I say so myself :-) > > The below is a compile tested only first draft so far. I'll go give it > some runtime next. Yes, thanks. But note that we do not need RCU_NONE. All we need is the trivial change below. Damn, I am trying to find my

[ANNOUNCE] 3.14.72-rt76

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.14.72-rt76 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.14-rt Head SHA1: e9deb8e0208728e04f658d89e60e641f0beefe54 Or to build 3.14.72-rt76 dire

[ANNOUNCE] 3.12.61-rt82

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.12.61-rt82 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.12-rt Head SHA1: 275c808f91fc8e1873873718290a7f242fe127cd Or to build 3.12.61-rt82 dire

[ANNOUNCE] 3.2.81-rt117

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.2.81-rt117 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.2-rt Head SHA1: fe7588485c196d9dcfb35019c846c7f9cdde64fa Or to build 3.2.81-rt117 direc

Re: System freezes after OOM

2016-07-14 Thread Michal Hocko
On Thu 14-07-16 10:00:16, Mikulas Patocka wrote: > > > On Thu, 14 Jul 2016, Michal Hocko wrote: > > > On Wed 13-07-16 11:02:15, Mikulas Patocka wrote: > > > > > diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c > > > > index 4f3cb3554944..0b806810efab 100644 > > > > --- a/drivers/md/dm

[ANNOUNCE] 3.4.112-rt143

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.4.112-rt143 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.4-rt Head SHA1: 7a6baa46e0f5e19beea329413b9832722f86ee5e Or to build 3.4.112-rt143 dir

Re: [PATCH v2] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-14 Thread Waiman Long
On 07/14/2016 07:26 AM, Peter Zijlstra wrote: On Thu, Jul 14, 2016 at 04:15:56PM +0800, Wanpeng Li wrote: In this case, lock holder inserts the pv_node of queue head into the hash table and set _Q_SLOW_VAL unnecessary. This patch avoids it by restoring/setting vcpu_halted state after failing ada

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Jan Kara
On Thu 14-07-16 23:34:50, Sergey Senozhatsky wrote: > Hello Jan, > > On (07/14/16 16:12), Jan Kara wrote: > [..] > > > *** a printk() call from here will kill the system. either it will > > > recurse printk(), or spin forever in 'nested' printk() on one of > > > the already taken spin locks. > [..

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > 0x0001 //io > > You have not missed anything, you ch

Re: [PATCH v2 1/7] lib/dlock-list: Distributed and lock-protected lists

2016-07-14 Thread Tejun Heo
Hello, Jan. On Thu, Jul 14, 2016 at 04:35:47PM +0200, Jan Kara wrote: > > > The current use case only need to use the regular lock functions. You are > > > right that future use cases may require an irqsafe version of locks. I can > > > either modify the code now to allow lock type selection at in

[PATCH] mmc: pxamci: fix potential oops

2016-07-14 Thread Robert Jarzmik
As reported by Dan in his report in [1], there is a potential NULL pointer derefence if these conditions are met : - there is no platform_data provided, ie. host->pdata = NULL Fix this by only using the platform data ro_invert when a gpio for read-only is provided by the platform data. This does

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Tejun Heo
On Thu, Jul 14, 2016 at 02:20:49PM +0200, Peter Zijlstra wrote: > > If that's the case, we have the wrong implemention > > for percpu-rwsem where very long delays for writers induce the same > > level of delays to all readers. If expedited by default isn't > > workable, we should move away from rc

Re: [PATCH v2] media: s5p-mfc remove unnecessary error messages

2016-07-14 Thread Javier Martinez Canillas
Hello Shuah, On 07/14/2016 10:40 AM, Shuah Khan wrote: > Removed unnecessary error message as appropriate error code is returned. > Changed error message into a debug. > > Signed-off-by: Shuah Khan > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Open Sou

RE: [PATCH v3 5/8] thunderbolt: Communication with the ICM (firmware)

2016-07-14 Thread Rosen, Rami
Hi Amir, Here are my 2 cents: This method always returns true, should be void (unless you will change PDF_ERROR_NOTIFICATION or other pdf values to return false), and likewise its invocation should not check return value. > +static bool nhi_msg_from_icm_analysis(struct tbt_nhi_ctxt *nhi_ctxt,

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Arnd Bergmann
On Thursday, July 14, 2016 3:56:24 PM CEST Lorenzo Pieralisi wrote: > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0

Re: [PATCH v2 06/13] sched: Store maximum per-cpu capacity in root domain

2016-07-14 Thread Morten Rasmussen
On Thu, Jul 14, 2016 at 03:25:36PM +0200, Vincent Guittot wrote: > On 13 July 2016 at 18:37, Morten Rasmussen wrote: > > On Wed, Jul 13, 2016 at 02:48:24PM +0100, Dietmar Eggemann wrote: > >> On 13/07/16 13:40, Vincent Guittot wrote: > >> > On 22 June 2016 at 19:03, Morten Rasmussen > >> > wrote

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Tejun Heo
On Thu, Jul 14, 2016 at 02:11:01PM +0200, Peter Zijlstra wrote: > > How so? As the number of cores increases, it'll get proportionally > > more expensive as the same operation is performed on more CPUs; > > however, the latency is dependent on the slowest one and it'll get > > higher more often wi

Re: [PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-14 Thread Sean Paul
On Thu, Jul 14, 2016 at 12:15:49PM +0800, Yakir Yang wrote: > The PSR driver have exported four symbols for specific device driver: > - rockchip_drm_psr_register() > - rockchip_drm_psr_unregister() > - rockchip_drm_psr_enable() > - rockchip_drm_psr_disable() > - rockchip_drm_psr_flush() > > Encode

[PATCH] [media] vb2: include length in dmabuf qbuf debug message

2016-07-14 Thread Javier Martinez Canillas
If the the VIDIOC_QBUF ioctl fails due a wrong dmabuf length, it's useful to get the invalid length as a debug information. Before this patch: vb2-core: __qbuf_dmabuf: invalid dmabuf length for plane 1 After this patch: vb2-core: __qbuf_dmabuf: invalid dmabuf length 221248 for plane 1 Signed-o

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Ard Biesheuvel
On 13 July 2016 at 18:14, Alexander Graf wrote: > On 07/13/2016 05:59 PM, Ard Biesheuvel wrote: >> >> On 13 July 2016 at 17:42, Alexander Graf wrote: >>> >>> Some user space applications are known to break with 48 bits virtual >> >> known by whom? At least I wasn't aware of it, so could you pleas

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 03:05:40PM +, Bharat Kumar Gogada wrote: [...] > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > > 0x0001 //io > > > > You have not missed anything, you changed the

Re: [PATCH 0/8] x86: audit and remove needless module.h includes

2016-07-14 Thread Paul Gortmaker
[Re: [PATCH 0/8] x86: audit and remove needless module.h includes] On 14/07/2016 (Thu 15:04) Ingo Molnar wrote: > > * Paul Gortmaker wrote: > > > To that end, I have done allmodconfig, allyesconfig and allnoconfig > > for both 32 bit and 64 bit x86 with these changes on the linux-next > > from

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Tejun Heo
On Thu, Jul 14, 2016 at 11:07:15AM -0400, Tejun Heo wrote: > On Thu, Jul 14, 2016 at 02:20:49PM +0200, Peter Zijlstra wrote: > > > If that's the case, we have the wrong implemention > > > for percpu-rwsem where very long delays for writers induce the same > > > level of delays to all readers. If e

Re: System freezes after OOM

2016-07-14 Thread Ondrej Kozina
On 07/14/2016 02:51 PM, Michal Hocko wrote: On Wed 13-07-16 11:02:15, Mikulas Patocka wrote: On Wed, 13 Jul 2016, Michal Hocko wrote: [...] We are discussing several topics together so let's focus on this particlar thing for now The kernel 4.7-rc almost deadlocks in another way. The machine

[PATCH net-next] rxrpc: checking for IS_ERR() instead of NULL

2016-07-14 Thread David Howells
From: Dan Carpenter The rxrpc_lookup_peer() function returns NULL on error, it never returns error pointers. Fixes: 8496af50eb38 ('rxrpc: Use RCU to access a peer's service connection tree') Signed-off-by: Dan Carpenter Signed-off-by: David Howells --- net/rxrpc/conn_service.c |2 +- 1

[PATCH v4 1/2] arch, x86, tsc deadline clockevent dev: eliminate frequency roundoff error

2016-07-14 Thread Nicolai Stange
In setup_APIC_timer(), the registered clockevent device's frequency is calculated by first dividing tsc_khz by TSC_DIVISOR and multiplying it with 1000 afterwards: (tsc_khz / TSC_DIVISOR) * 1000 The multiplication with 1000 is done for converting from kHz to Hz and the division by TSC_DIVISOR i

[PATCH v4 2/2] arch, x86, tsc: inform TSC deadline clockevent device about recalibration

2016-07-14 Thread Nicolai Stange
The TSC deadline clockevent devices' configuration and registration happens before the TSC frequency calibration is refined in tsc_refine_calibration_work(). This results in the TSC clocksource and the TSC deadline clockevent devices being configured with slightly different frequencies: the former

Re: [PATCH v4 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-14 Thread Sean Paul
On Thu, Jul 14, 2016 at 12:15:53PM +0800, Yakir Yang wrote: > The full name of PSR is Panel Self Refresh, panel device could refresh > itself with the hardware framebuffer in panel, this would make lots of > sense to save the power consumption. > > This patch have exported two symbols for platform

[PATCH v4 0/2] reduce TSC deadline frequency errors

2016-07-14 Thread Nicolai Stange
The v3 series can be found at http://lkml.kernel.org/g/20160713130344.8319-1-nicsta...@gmail.com Applicable to linux-next-20160708 (in case you wonder why I turned back from the 20160712 given in v3 to 20160708 again: mysteriously, 20160712 doesn't boot neither w/ nor w/o this series anymore).

Re: System freezes after OOM

2016-07-14 Thread Ondrej Kozina
On 07/14/2016 04:59 PM, Michal Hocko wrote: On Thu 14-07-16 10:00:16, Mikulas Patocka wrote: On Thu, 14 Jul 2016, Michal Hocko wrote: On Wed 13-07-16 11:02:15, Mikulas Patocka wrote: diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 4f3cb3554944..0b806810efab 100644 --- a/d

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 05:12:01PM +0200, Arnd Bergmann wrote: > On Thursday, July 14, 2016 3:56:24 PM CEST Lorenzo Pieralisi wrote: > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > Hi Lorenzo, > > > > > > I missed something in my device tree now I

Re: [PATCH v4 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-14 Thread Sean Paul
On Thu, Jul 14, 2016 at 12:15:58PM +0800, Yakir Yang wrote: > Alway enable the PSR function for Rockchip analogix_dp driver. If panel > don't support PSR, then the core analogix_dp would ignore this setting. > > Signed-off-by: Yakir Yang Reviewed-by: Sean Paul > --- > Changes in v4: > - Return

Re: System freezes after OOM

2016-07-14 Thread Michal Hocko
On Wed 13-07-16 16:53:28, David Rientjes wrote: > On Wed, 13 Jul 2016, Mikulas Patocka wrote: > > > What are the real problems that f9054c70d28bc214b2857cf8db8269f4f45a5e23 > > tries to fix? > > > > It prevents the whole system from livelocking due to an oom killed process > stalling forever w

[PATCH] drm/rockchip: allocate correct crtc state structure on reset

2016-07-14 Thread John Keeping
Because we are using a custom crtc_state structure, we must override the reset helper to allocate the correct amount of memory. Cc: sta...@vger.kernel.org Fixes: 4e257d9eee23 ("drm/rockchip: get rid of rockchip_drm_crtc_mode_config") Signed-off-by: John Keeping --- drivers/gpu/drm/rockchip/rockc

Re: [PATCH 3/4] mm, page_alloc: fix dirtyable highmem calculation

2016-07-14 Thread Vlastimil Babka
On 07/13/2016 12:00 PM, Mel Gorman wrote: From: Minchan Kim Note from Mel: This may optionally be considered a fix to the mmotm patch mm-page_alloc-consider-dirtyable-memory-in-terms-of-nodes.patch but if so, please preserve credit for Minchan. When I tested vmscale in mmtest i

[PATCH 1/7 v3] drm/vc4: Add a getparam ioctl for getting the V3D identity regs.

2016-07-14 Thread Eric Anholt
As I extend the driver to support different V3D revisions, userspace needs to know what version it's targeting. This is most easily detected using the V3D identity registers. v2: Make sure V3D is runtime PM on when reading the registers. v3: Switch to a 64-bit param value (suggested by Rob Clark

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-14 Thread Matt Wilson
On Thu, Jul 14, 2016 at 09:46:14AM +0300, Netanel Belgazal wrote: > This is a driver for the ENA family of networking devices. > > Signed-off-by: Netanel Belgazal > --- > > Notes: > Changes in v3: > - Fix compilation warning for 32bit systems. [kbuild test rebot] > - Replace netdev->

Re: [PATCH] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Rafał Miłecki
On 14 July 2016 at 16:11, Alan Stern wrote: > On Wed, 13 Jul 2016, Rafał Miłecki wrote: > >> Probing function was using &dev->dev and dev->dev.of_node over 20 times >> so I believe it made sense to use helper variables for both of them. >> To avoid some uncommon variable name for struct device I f

Re: CGroups: idr_remove called for id=65536 which is not allocated.

2016-07-14 Thread Tejun Heo
Hello, Greg. On Thu, Jul 14, 2016 at 08:02:26AM +0900, Greg KH wrote: > On Wed, Jul 13, 2016 at 04:14:17PM -0400, Tejun Heo wrote: > > On Wed, Jul 13, 2016 at 01:10:05PM -0700, John Garcia wrote: > > > Hi Tejun, thanks for the response! > > > > > > It sounds like everything is good then, is it li

Re: System freezes after OOM

2016-07-14 Thread Michal Hocko
On Thu 14-07-16 16:08:28, Ondrej Kozina wrote: [...] > As Mikulas pointed out, this doesn't work. The system froze as well with the > patch above. Will try to tweak the patch with Mikulas's suggestion... Thank you for testing! Do you happen to have traces of the frozen processes? Does the flusher

Re: [PATCH v4 2/2] ARM: cpuidle: make arm_cpuidle_suspend() a bit more efficient

2016-07-14 Thread Russell King - ARM Linux
On Fri, Jul 08, 2016 at 06:58:54PM +0800, Jisheng Zhang wrote: > On Fri, 8 Jul 2016 12:50:12 +0200 Daniel Lezcano wrote: > > > On Fri, Jul 08, 2016 at 02:17:29PM +0800, Jisheng Zhang wrote: > > > Dear Daniel, > > > > > > On Thu, 7 Jul 2016 15:46:28 +0200 Daniel Lezcano wrote: > > > > > > > On

Re: [PATCH perf/core 07/10] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-07-14 Thread Masami Hiramatsu
On Wed, 13 Jul 2016 21:20:48 -0300 Arnaldo Carvalho de Melo wrote: > Em Wed, Jul 13, 2016 at 09:16:32PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Jul 13, 2016 at 09:07:19PM -0300, Arnaldo Carvalho de Melo escreveu: > > > I'm going to look my inbox for patches I overlook that added 'pe

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-14 Thread Shayan Pooya
> Well, but we can't do this. And "as expected" is actually just wrong. I still > think that the whole FAULT_FLAG_USER logic is not right. This needs another > email. I meant as expected from the content of the patch :) I think Konstantin agrees that this patch cannot be merged upstream. > fork(

Re: [PATCH] drm/rockchip: allocate correct crtc state structure on reset

2016-07-14 Thread Sean Paul
On Thu, Jul 14, 2016 at 8:29 AM, John Keeping wrote: > Because we are using a custom crtc_state structure, we must override the > reset helper to allocate the correct amount of memory. > > Cc: sta...@vger.kernel.org > Fixes: 4e257d9eee23 ("drm/rockchip: get rid of rockchip_drm_crtc_mode_config") >

Re: [PATCH 6/6] drm/rockchip: vop: correct rk3036 register define

2016-07-14 Thread Sean Paul
On Wed, Jul 13, 2016 at 8:33 PM, Mark Yao wrote: > Signed-off-by: Mark Yao > Reported-by: Tomasz Figa Reviewed-by: Sean Paul > --- > drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_

Re: [PATCH] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-07-14 Thread Johannes Weiner
Hi Andrew, this issue dates back quite a bit and wasn't reported until now, so I didn't tag it for stable. However, it seems that larger scale setups are now running into this as they upgrade their kernels, and several people have run into this independently now. Could you please add: Reported-by

Re: [PATCH v2 00/10] Exynos IOMMU: proper runtime PM support (use device dependencies)

2016-07-14 Thread Tobias Jakobi
Hello Marek, I've tested the patchset on 4.7-rc7 and noticed that it breaks reboot on my ODROID-X2. Going to check where exactly things break. With best wishes, Tobias Marek Szyprowski wrote: > Hello, > > This patch series finally implements proper runtime PM support in Exynos > IOMMU driver.

Re: [PATCH v4 1/2] arch, x86, tsc deadline clockevent dev: eliminate frequency roundoff error

2016-07-14 Thread Paolo Bonzini
On 14/07/2016 17:22, Nicolai Stange wrote: > In setup_APIC_timer(), the registered clockevent device's frequency > is calculated by first dividing tsc_khz by TSC_DIVISOR and multiplying > it with 1000 afterwards: > > (tsc_khz / TSC_DIVISOR) * 1000 > > The multiplication with 1000 is done for

[PATCH] powernv: Use __printf in pe_level_printk

2016-07-14 Thread Joe Perches
Make the compiler detect format and argument mismatches. Signed-off-by: Joe Perches --- arch/powerpc/platforms/powernv/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powernv/pci.h b/arch/powerpc/platforms/powernv/pci.h index 3a97990..1c1a586 100644 --- a/arch/p

Re: [PATCH V1] regulator: da9210: addition of device tree support

2016-07-14 Thread Mark Brown
On Wed, Jul 13, 2016 at 04:41:19PM +0100, Steve Twiss wrote: > Two files are modified, the driver source file and the binding document. > Updates for the regulator source file include an .of_match_table entry, node > match checking in the probe() function for a compatible da9210 string, and > a ne

[PATCH] security: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread Javier Martinez Canillas
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas --- security/lsm_audit.c | 2 +- security/selinux/hooks.c | 12 ++-- security/s

Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface

2016-07-14 Thread John Stultz
On Thu, Jul 14, 2016 at 6:42 AM, Arjan van de Ven wrote: > On 7/14/2016 5:48 AM, Serge E. Hallyn wrote: > >> Can someone give a detailed explanation of what you could do with >> the new timerslack feature and compare it to what you can do with >> sys_nice? >> > > what you can do with the timerslac

Re: [PATCH -next] mtd: nand: omap2: fix return value check in omap_nand_probe()

2016-07-14 Thread Brian Norris
On Thu, Jul 14, 2016 at 12:06:45PM +, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function dma_request_chan() returns ERR_PTR() and > never returns NULL. The NULL test in the return value check should be > replaced with IS_ERR(). > > Fixes: aa7abd312c11 ('mtd: nand:

[RT PATCH 1/2] timers: wakeup all timer waiters

2016-07-14 Thread Sebastian Andrzej Siewior
The base lock is dropped during the invocation if the timer. That means it is possible that we have one waiter while timer1 is running and once this one finished, we get another waiter while timer2 is running. Since we wake up only one waiter it is possible that we miss the other one. This will pro

[RT PATCH 2/2] timers: wakeup all timer waiters without holding the base lock

2016-07-14 Thread Sebastian Andrzej Siewior
There should be no need to hold the base lock during the wakeup. There should be no boosting involved, the wakeup list has its own lock so it should be safe to do this without the lock. Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- kernel/time/timer.c | 2 +- 1 file

Re: [PATCH v3 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-07-14 Thread Marek Vasut
On 07/13/2016 02:49 PM, Lee Jones wrote: On Fri, 01 Jul 2016, Harald Geyer wrote: Hi Ksenija! Ksenija Stanojević writes: On Tue, Jun 28, 2016 at 6:28 PM, Lee Jones wrote: +static int mxs_lradc_add_device(struct platform_device *pdev, + struct mxs_lradc *lradc, ch

[PATCH net-next v2 0/3] BPF event output helper improvements

2016-07-14 Thread Daniel Borkmann
This set adds improvements to the BPF event output helper to support non-linear data sampling, here specifically, for skb context. For details please see individual patches. The set is based against net-next tree. v1 -> v2: - Integrated and adapted Peter's diff into patch 1, updated the rema

[PATCH net-next v2 1/3] perf, events: add non-linear data support for raw records

2016-07-14 Thread Daniel Borkmann
This patch adds support for non-linear data on raw records. It extends raw records to have one or multiple fragments that will be written linearly into the ring slot, where each fragment can optionally have a custom callback handler to walk and extract complex, possibly non-linear data. If a callb

Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface

2016-07-14 Thread John Stultz
On Thu, Jul 14, 2016 at 5:48 AM, Serge E. Hallyn wrote: > Quoting Kees Cook (keesc...@chromium.org): >> I think the original CAP_SYS_NICE should be fine. A malicious >> CAP_SYS_NICE process can do plenty of insane things, I don't feel like >> the timer slack adds to any realistic risks. > > Can so

Re: [RT PATCH 2/2] timers: wakeup all timer waiters without holding the base lock

2016-07-14 Thread Steven Rostedt
On Thu, 14 Jul 2016 18:05:04 +0200 Sebastian Andrzej Siewior wrote: > There should be no need to hold the base lock during the wakeup. There > should be no boosting involved, the wakeup list has its own lock so it > should be safe to do this without the lock. > > Cc: stable...@vger.kernel.org N

[PATCH net-next v2 3/3] bpf: avoid stack copy and use skb ctx for event output

2016-07-14 Thread Daniel Borkmann
This work addresses a couple of issues bpf_skb_event_output() helper currently has: i) We need two copies instead of just a single one for the skb data when it should be part of a sample. The data can be non-linear and thus needs to be extracted via bpf_skb_load_bytes() helper first, and then copie

Re: [PATCH 4/4] ARM: dts: at91: sama5d4_ma5d4evk: fix regulator names

2016-07-14 Thread Marek Vasut
On 07/13/2016 12:45 AM, Alexandre Belloni wrote: vcc_mmc1_reg is a fixed regulators and doesn't need a reg property. Remove its unit-address. Solves: Warning (unit_address_vs_reg): Node /fixedregulator@2 has a unit name, but no reg property Signed-off-by: Alexandre Belloni Reviewed-by: Mare

Re: [RT PATCH 1/2] timers: wakeup all timer waiters

2016-07-14 Thread Steven Rostedt
On Thu, 14 Jul 2016 18:05:03 +0200 Sebastian Andrzej Siewior wrote: > The base lock is dropped during the invocation if the timer. That means > it is possible that we have one waiter while timer1 is running and once > this one finished, we get another waiter while timer2 is running. Since > we wa

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 04:58:44PM +0200, Oleg Nesterov wrote: > > Of course, this leads to another question: do we really need rcu-sync at > all, or should we change percpu-rwsem to always work in the "slow" mode > which is not that slow with your change... I'd like to keep it ;) > > What do you

Re: [PATCH] mtd: nand: omap2: add missing braces

2016-07-14 Thread Brian Norris
On Thu, Jul 14, 2016 at 11:53:48AM +0200, Arnd Bergmann wrote: > A bug fix just introduced incorrect behavior in the omap2 nand driver, as > found by gcc-6.1: > > drivers/mtd/nand/omap2.c: In function 'omap_get_dt_info': > drivers/mtd/nand/omap2.c:1658:2: error: this 'if' clause does not guard...

[PATCH net-next v2 2/3] bpf, perf: split bpf_perf_event_output

2016-07-14 Thread Daniel Borkmann
Split the bpf_perf_event_output() helper as a preparation into two parts. The new bpf_perf_event_output() will prepare the raw record itself and test for unknown flags from BPF trace context, where the __bpf_perf_event_output() does the core work. The latter will be reused later on from bpf_event_o

Re: [PATCH 3/4] ARM: dts: at91: sama5d4_ma5d4: fix regulator names

2016-07-14 Thread Marek Vasut
On 07/13/2016 12:45 AM, Alexandre Belloni wrote: vcc_3v3_reg and vcc_mmc1_reg are fixed regulators and don't need a reg property. Remove their unit-address. Solves: Warning (unit_address_vs_reg): Node /fixedregulator@0 has a unit name, but no reg property Warning (unit_address_vs_reg): Node /fi

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-14 Thread Benjamin Poirier
On 2016/07/14 08:22, Matt Wilson wrote: [...] > > Dave and Benjamin, > > Do you want to see the interrupt moderation extensions to ethtool and > the sysfs nodes removed before this lands in net-next? Or should > Netanel remove the sysfs bits until we can extend the ethtool > interfaces to cover t

Re: [PATCH v4] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-07-14 Thread Al Stone
On 07/14/2016 04:03 AM, Alexey Klimov wrote: > Hi Al, > > On Tue, Jul 12, 2016 at 11:16:11AM -0600, Al Stone wrote: >> When CPPC is being used by ACPI on arm64, user space tools such as >> cpupower report CPU frequency values from sysfs that are incorrect. >> >> What the driver was doing was repor

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-14 Thread Matt Wilson
On Thu, Jul 14, 2016 at 09:08:03AM -0700, Benjamin Poirier wrote: > On 2016/07/14 08:22, Matt Wilson wrote: > [...] > > > > Dave and Benjamin, > > > > Do you want to see the interrupt moderation extensions to ethtool and > > the sysfs nodes removed before this lands in net-next? Or should > > Net

Re: [PATCH v2 1/7] lib/dlock-list: Distributed and lock-protected lists

2016-07-14 Thread Waiman Long
On 07/14/2016 10:51 AM, Tejun Heo wrote: Hello, Jan. On Thu, Jul 14, 2016 at 04:35:47PM +0200, Jan Kara wrote: The current use case only need to use the regular lock functions. You are right that future use cases may require an irqsafe version of locks. I can either modify the code now to allow

[PATCH 09/10] ARM: dts: Add Arria10 DMA EDAC devicetree entry

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera DMA FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/ar

[PATCH 03/10] Documentation: dt: socfpga: Add Arria10 USB EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera USB FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetre

[PATCH 02/10] Documentation: dt: socfpga: Add Arria10 DMA EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera DMA FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetr

Re: [PATCH] security: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread Casey Schaufler
On 7/14/2016 9:00 AM, Javier Martinez Canillas wrote: > The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either > built-in or as a module, use that macro instead of open coding the same. Why? > > Signed-off-by: Javier Martinez Canillas > --- > > security/lsm_audit.c

[PATCH 06/10] EDAC, altera: Add Arria10 DMA EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 DMA FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfig

[PATCH 05/10] EDAC, altera: Add Arria10 NAND EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 NAND FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfi

[PATCH 10/10] ARM: dts: Add Arria10 USB EDAC devicetree entry

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera USB FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/ar

[PATCH 00/10] Add NAND, DMA, USB, and QSPI EDAC

2016-07-14 Thread tthayer
From: Thor Thayer This patch series adds the NAND, DMA, USB and QSPI FIFO EDAC modules. Thor Thayer (10): Documentation: dt: socfpga: Add Arria10 NAND EDAC binding Documentation: dt: socfpga: Add Arria10 DMA EDAC binding Documentation: dt: socfpga: Add Arria10 USB EDAC binding Documentat

Re: [PATCH] security: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread Javier Martinez Canillas
Hello Casey, On 07/14/2016 12:17 PM, Casey Schaufler wrote: > On 7/14/2016 9:00 AM, Javier Martinez Canillas wrote: >> The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either >> built-in or as a module, use that macro instead of open coding the same. > > Why? > Why not? We hav

Re: [PATCH v3 2/2] ASoC: atmel-i2s: add driver for the new Atmel I2S controller

2016-07-14 Thread Mark Brown
On Wed, Jul 13, 2016 at 12:25:39PM +0200, Cyrille Pitchen wrote: A few small things but otherwise this looks good: > + switch (params_channels(params)) { > + case 1: > + mr |= is_playback ? ATMEL_I2SC_MR_TXMONO : ATMEL_I2SC_MR_RXMONO; Please write normal if statements, it mak

Re: [PATCH v15 00/10] arm64: Add kernel probes (kprobes) support

2016-07-14 Thread Catalin Marinas
On Fri, Jul 08, 2016 at 12:35:44PM -0400, David Long wrote: > David A. Long (3): > arm64: Add HAVE_REGS_AND_STACK_ACCESS_API feature > arm64: Add more test functions to insn.c > arm64: add conditional instruction simulation support > > Pratyush Anand (2): > arm64: Blacklist non-kprobe-able

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Paul E. McKenney
On Thu, Jul 14, 2016 at 03:18:09PM +0200, Peter Zijlstra wrote: > On Wed, Jul 13, 2016 at 10:51:02PM +0200, Peter Zijlstra wrote: > > So, IIRC, the trade-off is a full memory barrier in read_lock and > > read_unlock() vs sync_sched() in write. > > > > Full memory barriers are expensive and while t

Re: [PATCH] regmap: add iopoll-like polling macro

2016-07-14 Thread Mark Brown
On Wed, Jul 13, 2016 at 09:37:09AM +0200, Philipp Zabel wrote: > Any comments on this? If I can't convince you to keep the macro, I could > change it into a function: No, I've not looked at your mail yet. Please don't send content free pings. signature.asc Description: PGP signature

Re: [PATCH] security: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread Casey Schaufler
On 7/14/2016 9:20 AM, Javier Martinez Canillas wrote: > Hello Casey, > > On 07/14/2016 12:17 PM, Casey Schaufler wrote: >> On 7/14/2016 9:00 AM, Javier Martinez Canillas wrote: >>> The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either >>> built-in or as a module, use that macro

[PATCH 07/10] EDAC, altera: Add Arria10 USB EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 USB FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfig

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 11:07:15AM -0400, Tejun Heo wrote: > How? While write lock is pending, no new reader is allowed. Look at the new percpu_down_write (the old one is similar in concept): + void percpu_down_write(struct percpu_rw_semaphore *sem) + { + down_write(&sem->rw_sem); + +

Applied "regulator: act8865: Fix missing of_node_put() in act8865_pdata_from_dt()" to the regulator tree

2016-07-14 Thread Mark Brown
The patch regulator: act8865: Fix missing of_node_put() in act8865_pdata_from_dt() has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "ASoC: mediatek: mt2701: fix non static symbol warning" to the asoc tree

2016-07-14 Thread Mark Brown
The patch ASoC: mediatek: mt2701: fix non static symbol warning 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 hours) and s

[PATCH v4 2/4] dmi: Add a DMI firmware node and handling

2016-07-14 Thread minyard
From: Corey Minyard This is so that an IPMI platform device can be created from a DMI firmware entry. Signed-off-by: Corey Minyard Cc: Jean Delvare Cc: Andy Lutomirski Tested-by: Andy Lutomirski --- drivers/firmware/dmi_scan.c | 16 ++-- include/linux/dmi.h | 14

[PATCH v4 0/4] dmi: Rework to get IPMI autoloading from DMI tables

2016-07-14 Thread minyard
No changes at all, just rebasing on current kernel.org and hoping it gets approved and/or put into a subsystem tree. -corey

[PATCH v4 4/4] dmi: Add IPMI DMI devices as platform devices

2016-07-14 Thread minyard
From: Corey Minyard Have DMI create a platform device for every IPMI device it finds. Signed-off-by: Corey Minyard Cc: Jean Delvare Cc: Andy Lutomirski Tested-by: Andy Lutomirski --- drivers/firmware/dmi_scan.c | 55 +++-- 1 file changed, 53 insertion

[PATCH v4 3/4] dmi: Add IPMI DMI scanning to the DMI code

2016-07-14 Thread minyard
From: Corey Minyard It makes more sense to be there, and it's cleaner with the upcoming conversion of IPMI DMI to a platform device. Signed-off-by: Corey Minyard Cc: Jean Delvare Cc: Andy Lutomirski Tested-by: Andy Lutomirski --- drivers/firmware/dmi_scan.c | 108 +++

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 04:58:44PM +0200, Oleg Nesterov wrote: > > But note that we do not need RCU_NONE. All we need is the trivial change > below. Hurm, maybe. So having that unbalanced keeps us in GP_PASSED state and since we'll never drop gp_count back to 0 nothing will ever happen. Cute, ye

Re: [PATCH 0/2] ipc/sem.c: sem_lock fixes

2016-07-14 Thread Manfred Spraul
Hi Andrew, On 07/14/2016 12:05 AM, Andrew Morton wrote: On Wed, 13 Jul 2016 07:06:50 +0200 Manfred Spraul wrote: Hi Andrew, Hi Peter, next version of the sem_lock() fixes: The patches are again vs. tip. Patch 1 is ready for merging, Patch 2 is for review. - Patch 1 is the patch as in -nex

Re: [PATCH v2 11/13] sched/fair: Avoid pulling tasks from non-overloaded higher capacity groups

2016-07-14 Thread Sai Gurrappadi
On 06/30/2016 12:49 AM, Morten Rasmussen wrote: > On Thu, Jun 23, 2016 at 02:20:48PM -0700, Sai Gurrappadi wrote: >> Hi Morten, >> >> On 06/22/2016 10:03 AM, Morten Rasmussen wrote: >> >> [...] >> >>> >>> +/* >>> + * group_smaller_cpu_capacity: Returns true if sched_group sg has smaller >>> + * p

[PATCH 04/10] Documentation: dt: socfpga: Add Arria10 QSPI EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera QSPI FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicet

[PATCH v4 1/4] dmi: remove const from return of dmi_find_device

2016-07-14 Thread minyard
From: Corey Minyard A fwnode_handle is being added to dmi_device, and that will need to be updated. So remove the const. Signed-off-by: Corey Minyard Cc: Jean Delvare Cc: Andy Lutomirski Tested-by: Andy Lutomirski --- drivers/firmware/dmi_scan.c | 11 +-- include/linux/dmi.h

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