[RFC 2/3] blk-throttling: weight based throttling

2016-01-20 Thread Shaohua Li
We know total bandwidth of a disk and can calculate cgroup's bandwidth percentage against disk bandwidth according to its weight. We can easily calculate cgroup bandwidth. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 135 ++- 1 file changed

[RFC 3/3] blk-throttling: detect inactive cgroup

2016-01-20 Thread Shaohua Li
If a cgroup is inactive for some time, it should be excluded from bandwidth calculation. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 71 +--- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-t

[RFC 0/3] block: proportional based blk-throttling

2016-01-20 Thread Shaohua Li
Hi, Currently we have 2 iocontrollers. blk-throttling is bandwidth based. CFQ is weight based. It would be great there is a unified iocontroller for the two. And blk-mq doesn't support ioscheduler, leaving blk-throttling the only option for blk-mq. It's time to have a scalable iocontroller support

Re: [PATCH RFC] wireless:libertas: enable auto deep sleep

2016-01-20 Thread Kalle Valo
Andreas Kemnade writes: > On Wed, 20 Jan 2016 14:42:47 +0200 > Kalle Valo wrote: > >> Andreas Kemnade writes: >> >> > Enables auto deep sleep whenever the interface is up and >> > power managament is enabled, so there is also power management >> > when there is no connection >> > That reduces

Re: [PATCH] mm, gup: introduce concept of "foreign" get_user_pages()

2016-01-20 Thread Vlastimil Babka
On 01/20/2016 06:35 PM, Dave Hansen wrote: > Here's another revision taking Vlastimil's suggestions about > keeping __get_user_pages_unlocked() as-is in to account. > This does, indeed, look nicer. Now, all the "__" variants > take a full tsk/mm and flags. > > He also noted that the two sites whe

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Thomas Gleixner
On Wed, 20 Jan 2016, Daniel Lezcano wrote: > +#ifdef CONFIG_IRQ_TIMINGS > +/** > + * struct irqt_ops - structure to be used by the subsystem to track > + * irq timings > + * @alloc:called when an irqdesc is allocated > + * @free: called when an irqdesc is free > + * @setup

Re: [BUG REPORT] ktime_get_ts64 causes Hard Lockup

2016-01-20 Thread John Stultz
On Wed, Jan 20, 2016 at 9:42 AM, Thomas Gleixner wrote: > On Wed, 20 Jan 2016, John Stultz wrote: >> Ehrm. A more productive route in solving this might be to cap the >> cycle delta we return from timekeeping_get_delta(). >> >> We already do this in the CONFIG_DEBUG_TIMEKEEPING, but adding a >> s

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-20 Thread H. Nikolaus Schaller
Am 20.01.2016 um 18:46 schrieb One Thousand Gnomes : >> The problem is that *I* have no control over user space. But I also don't >> want >> to say to my users "that is not my problem - get it solved yourself". This >> does >> not help them. > > Stuffing things into the kernel because the user

Re: [PATCH v3] arm: irq: l2c: do not print error in case of missing l2c from dtb

2016-01-20 Thread Javier Martinez Canillas
Hello Andi, On Tue, Jan 12, 2016 at 7:11 AM, Andi Shyti wrote: > In some architectures the L2 cache controller is integrated in the > processor's block itself and it doesn't use any external cache > controller. This means that an entry in the board's dtb related > to the l2c is not necessary. > >

Re: [BUG REPORT] ktime_get_ts64 causes Hard Lockup

2016-01-20 Thread Jeff Merkey
On 1/20/16, John Stultz wrote: > On Wed, Jan 20, 2016 at 9:42 AM, Thomas Gleixner > wrote: >> On Wed, 20 Jan 2016, John Stultz wrote: >>> Ehrm. A more productive route in solving this might be to cap the >>> cycle delta we return from timekeeping_get_delta(). >>> >>> We already do this in the CO

Re: [kernel-hardening] 2015 kernel CVEs

2016-01-20 Thread Greg KH
On Wed, Jan 20, 2016 at 05:05:39PM +, Ben Hutchings wrote: > On Tue, 2016-01-19 at 09:54 -0800, Greg KH wrote: > > On Tue, Jan 19, 2016 at 04:32:08PM +, Ben Hutchings wrote: > > > As for USB descriptors, I'm somewhat more hopeful about hardening.  At > > > the same time, it seems like it sh

[PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

2016-01-20 Thread Mans Rullgard
This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- Changes from v3: - use of_address_to_resource() rather accessing "reg" property directly Boot tested on SMP8643 (tango3) and SMP8759 (tango4) --- drivers/ir

[PATCH v4 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller

2016-01-20 Thread Mans Rullgard
This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- Changes: - not included in v3 --- .../interrupt-controller/sigma,smp8642-intc.txt| 49 ++ 1 file changed, 49 insertions(+) create mode

Re: [PATCH] usb: phy-am335x: clarify USB_COMMON dependency

2016-01-20 Thread Bin Liu
Hi, On Wed, Jan 20, 2016 at 11:56:34AM +0100, Arnd Bergmann wrote: > The phy-am335x driver accidentally selects 'USB_COMMON', which is > not correct as that symbol should indicate whether USB host or > target mode is enabled, but it might not: > > warning: (AM335X_PHY_USB) selects USB_COMMON whic

[PATCH v4] gpio: Add GPIO support for the WinSystems WS16C48

2016-01-20 Thread William Breathitt Gray
The WinSystems WS16C48 device provides 48 lines of digital I/O. In addition, the first 24 lines may be used for interrupt-handled edge detection; rising edge detection and falling edge detection are supported. This driver provides GPIO and IRQ support for these 48 channels of digital I/O. The base

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
Marc Gonzalez writes: > On 20/01/2016 17:38, Måns Rullgård wrote: > >> Marc Gonzalez writes: >> >>> On 20/01/2016 17:25, Måns Rullgård wrote: >>> Marc Zyngier writes: > On 20/01/16 16:10, Måns Rullgård wrote: > >> Marc Zyngier writes: >> + if (of_proper

RE: net: GPF in __netlink_ns_capable

2016-01-20 Thread Wan, Kaike
The problem was caused by the RDMA_NL_LS_OP_RESOLVE request (not response) packet sent by the user application, which falls through the netlink_dump path and eventually calls ib_nl_handle_resp() with a new skb with uninitialized control block. Checking the NETLINK_CB(skb).sk before calling netli

[PATCH] numa: fix /proc//numa_maps on s390

2016-01-20 Thread Michael Holzheu
When working with huge page pmds in general is not valid to directly use pte functions like pte_present() because the hardware bit layout of pmds and ptes can be different. This is the case on s390. Therefore we have to convert the pmds first into a valid pte encoding with huge_ptep_get(). So add t

[PATCH] gpio: 104-idio-16: Return IRQ_NONE if all relevant GPIO lines are masked

2016-01-20 Thread William Breathitt Gray
If the irq_mask member has a value of 0, then interrupts are disabled on the device. Therefore, IRQ_NONE should be returned if the irq_mask member is 0. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idio-16.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/g

Re: [RFC PATCH 4/4] sched: Upload nohz full CPU load on task enqueue/dequeue

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 06:21:07PM +0100, Frederic Weisbecker wrote: > You mean a periodic call to the above from the housekeepers? > > I didn't think about doing that because you nacked that approach with > scheduler_tick(). This isn't much different. This does _one_ thing, namely load accounti

Re: [RFC 00/29] De-stage android's sync framework

2016-01-20 Thread Gustavo Padovan
2016-01-20 Maarten Lankhorst : > Op 20-01-16 om 15:32 schreef Gustavo Padovan: > > 2016-01-20 Maarten Lankhorst : > > > >> Hey, > >> > >> Op 15-01-16 om 15:55 schreef Gustavo Padovan: > >>> From: Gustavo Padovan > >>> > >>> This patch series de-stage the sync framework, and in order to accomplish

Re: [PATCH v2 1/4] dt-bindings: power: reset: add document for reboot-mode driver

2016-01-20 Thread Rob Herring
On Tue, Jan 12, 2016 at 07:29:49PM +0800, Andy Yan wrote: > add device tree binding document for reboot-mode driver > > Signed-off-by: Andy Yan > > --- > > Changes in v2: None > Changes in v1: None > > .../bindings/power/reset/reboot-mode.txt | 41 + > .../bindings/p

Re: [PATCH] gpio: 104-idio-16: Return IRQ_NONE if all relevant GPIO lines are masked

2016-01-20 Thread William Breathitt Gray
Please ignore this patch. This device cannot differentiate between its own and other devices' interrupt requests. IRQ should not be shared with this device. William Breathitt Gray

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 12:46:48PM -0500, Nicolas Pitre wrote: > > +struct stats { > > + u64 sum; /* sum of values */ > > + u32 values[STATS_NR_VALUES]; /* array of values */ > > + unsigned char w_ptr; /* current window pointer */ > >

[PATCH v5] gpio: Add GPIO support for the WinSystems WS16C48

2016-01-20 Thread William Breathitt Gray
The WinSystems WS16C48 device provides 48 lines of digital I/O. In addition, the first 24 lines may be used for interrupt-handled edge detection; rising edge detection and falling edge detection are supported. This driver provides GPIO and IRQ support for these 48 channels of digital I/O. The base

Re: [PATCH v2 1/4] dt-bindings: power: reset: add document for reboot-mode driver

2016-01-20 Thread John Stultz
On Wed, Jan 20, 2016 at 10:28 AM, Rob Herring wrote: > On Tue, Jan 12, 2016 at 07:29:49PM +0800, Andy Yan wrote: >> add device tree binding document for reboot-mode driver >> >> Signed-off-by: Andy Yan >> >> --- >> >> Changes in v2: None >> Changes in v1: None >> >> .../bindings/power/reset/rebo

[PATCH 0/2]Staging:lustre:obdclass:linux:fix checkpatch.pl warnings

2016-01-20 Thread Bhumika Goyal
This patch series addresses checkpatch.pl warnings in lustre driver. Bhumika Goyal (2): Staging:lustre:obdclass:linux:remove unnecessary braces Staging:lustre:obdclass:linux:simplify NULL comparison drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 12 +--- 1 file change

Re: [PATCH] mm, gup: introduce concept of "foreign" get_user_pages()

2016-01-20 Thread Dave Hansen
On 01/20/2016 09:56 AM, Vlastimil Babka wrote: > On 01/20/2016 06:35 PM, Dave Hansen wrote: >> This also switches get_user_pages_(un)locked() over to be like >> get_user_pages() and not take a tsk/mm. There is no >> get_user_pages_foreign_(un)locked(). If someone wants that >> behavior they just

[PATCH 2/2] Staging:lustre:obdclass:linux:simplify NULL comparison

2016-01-20 Thread Bhumika Goyal
Remove explicit NULL comparision and replace it with a simpier form. Detected using checkpatch.pl. Signed-off-by: Bhumika Goyal --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/

[PATCH 1/2] Staging:lustre:obdclass:linux:remove unnecessary braces

2016-01-20 Thread Bhumika Goyal
Fixed 'braces {} are not necessary for single statement blocks' checkpatch.pl warning. Signed-off-by: Bhumika Goyal --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/lin

[PATCH v2] gpio: Add GPIO support for the ACCES 104-DIO-48E

2016-01-20 Thread William Breathitt Gray
The ACCES 104-DIO-48E device provides 48 lines digital I/O via two Programmable Peripheral Interface (PPI) chips of type 82C55. Bit C3 at each 24-bit Group can be used as an external interrupt, triggered by a rising edge. This driver provides GPIO and IRQ support for these 48 channels of digital I

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Måns Rullgård
Andy Shevchenko writes: >> Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver). >> >> Code here: >> https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata > > Thanks for testing! Have you had time to look any more at these patches? -- Måns Rullgård

Re: [PATCH v2 2/2] kbuild: Remove stale asm-generic wrappers

2016-01-20 Thread Florian Fainelli
Le 19/01/2016 05:37, James Hogan a écrit : > When a header file is removed from generic-y (often accompanied by the > addition of an arch specific header), the generated wrapper file will > persist, and in some cases may still take precedence over the new arch > header. > > For example commit f1fe

[PATCH] gpio: 104-idi-48: Allow IRQ sharing

2016-01-20 Thread William Breathitt Gray
The ACCES 104-IDI-48 can differentiate between its own and other devices' interrupt requests. Therefore, IRQ sharing is possible and should be permitted. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

Re: [RFC PATCH 00/20] KEYS: Restrict additions to 'trusted' keyrings [ver #2]

2016-01-20 Thread Mimi Zohar
On Tue, 2016-01-19 at 11:30 +, David Howells wrote: > Here's a set of patches that changes how certificates/keys are determined > to be trusted. That's currently a two-step process: > > (1) Up until recently, when an X.509 certificate was parsed - no matter > the source - it was judged

Re: [RFC PATCH 01/20] KEYS: Add an alloc flag to convey the builtinness of a key [ver #2]

2016-01-20 Thread Mimi Zohar
On Tue, 2016-01-19 at 11:30 +, David Howells wrote: > Add KEY_ALLOC_BUILT_IN to convey that a key should have KEY_FLAG_BUILTIN > set rather than setting it after the fact. > > Signed-off-by: David Howells Acked-by: Mimi Zohar > --- > > certs/system_keyring.c |4 ++-- > include/linux/

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 05:00:33PM +0100, Daniel Lezcano wrote: > +static void sched_irq_timing_handler(unsigned int irq, ktime_t timestamp, > void *dev_id) > +{ > + u32 diff; > + unsigned int cpu = raw_smp_processor_id(); > + struct wakeup *w = per_cpu(wakeups[irq], cpu); > + > +

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-20 Thread Vivek Goyal
On Wed, Jan 20, 2016 at 09:49:16AM -0800, Shaohua Li wrote: > Hi, > > Currently we have 2 iocontrollers. blk-throttling is bandwidth based. CFQ is > weight based. It would be great there is a unified iocontroller for the two. > And blk-mq doesn't support ioscheduler, leaving blk-throttling the onl

Re: [PATCH 1/2] Staging:lustre:obdclass:linux:remove unnecessary braces

2016-01-20 Thread Joe Perches
On Thu, 2016-01-21 at 00:17 +0530, Bhumika Goyal wrote: > Fixed 'braces {} are not necessary for single statement blocks' > checkpatch.pl warning. [] > diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c > b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c [] > @@ -

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 05:00:32PM +0100, Daniel Lezcano wrote: > +++ b/kernel/irq/handle.c > @@ -165,6 +165,7 @@ irqreturn_t handle_irq_event_percpu(struct irq_desc *desc) > /* Fall through to add to randomness */ > case IRQ_HANDLED: > flag

Re: [PATCH 4/4] x86_64: enable text relative kallsyms for 64-bit targets

2016-01-20 Thread Kees Cook
On Wed, Jan 20, 2016 at 1:05 AM, Ard Biesheuvel wrote: > This enables the newly introduced text-relative kallsyms support when > building 64-bit targets. This cuts the size of the kallsyms address > table in half, reducing the memory footprint of the kernel .rodata > section by about 400 KB for a

Re: [PATCH 1/4] kallsyms: add support for relative offsets in kallsyms address table

2016-01-20 Thread Kees Cook
On Wed, Jan 20, 2016 at 1:05 AM, Ard Biesheuvel wrote: > Similar to how relative extables are implemented, it is possible to emit > the kallsyms table in such a way that it contains offsets relative to some > anchor point in the kernel image rather than absolute addresses. The benefit > is that su

[PATCH] tools/virtio: use virt_xxx barriers

2016-01-20 Thread Michael S. Tsirkin
Fix build after API changes. Reported-by: Kamal Mostafa Signed-off-by: Michael S. Tsirkin --- tools/virtio/asm/barrier.h| 22 +- tools/virtio/linux/compiler.h | 9 + tools/virtio/linux/kernel.h | 1 + 3 files changed, 23 insertions(+), 9 deletions(-) create

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Nicolas Pitre
On Wed, 20 Jan 2016, Peter Zijlstra wrote: > On Wed, Jan 20, 2016 at 05:00:33PM +0100, Daniel Lezcano wrote: > > +static void sched_irq_timing_handler(unsigned int irq, ktime_t timestamp, > > void *dev_id) > > +{ > > + u32 diff; > > + unsigned int cpu = raw_smp_processor_id(); > > + struct

[PATCH v1 1/1] x86/platform/quark: Print boundaries correctly

2016-01-20 Thread Andy Shevchenko
When we print values, such as @size, we have to understand that it's derived from [begin .. end] as: size = end - begin + 1 On the opposite the @end is derived from the rest as: end = begin + size - 1 Correct the IMR code to print values correctly. Note that @__end_rodata actua

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Andy Shevchenko
On Wed, 2016-01-20 at 18:50 +, Måns Rullgård wrote: > Andy Shevchenko writes: > > > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver). > > > > > > Code here: > > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata > > > > Thanks for testing! > > Have you had time to look a

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Måns Rullgård
Andy Shevchenko writes: > On Wed, 2016-01-20 at 18:50 +, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver). >> > > >> > > Code here: >> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata >> > >> > Thanks for testi

[PATCH v15 3/6] ARM: socfpga: add bindings document for fpga bridge drivers

2016-01-20 Thread atull
From: Alan Tull Add bindings documentation for Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Signed-off-by: Alan Tull Signed-off-by: Matthew Gerlach Signed-off-by: Dinh Nguyen --- v2: separate into 2 documents for the 2 drivers v12: bump version to line up with

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 02:17:57PM -0500, Nicolas Pitre wrote: > > It is also a friggin pointless /1000. The cpuidle code also loves to do > > this, and its silly, u64 add/sub are _way_ cheaper than u64 / 1000. > > For the purpose of this code, nanoseconds simply provides too many bits > for what

Re: [PATCH] mm, gup: introduce concept of "foreign" get_user_pages()

2016-01-20 Thread Vlastimil Babka
On 01/20/2016 06:35 PM, Dave Hansen wrote: > Here's another revision taking Vlastimil's suggestions about > keeping __get_user_pages_unlocked() as-is in to account. > This does, indeed, look nicer. Now, all the "__" variants > take a full tsk/mm and flags. > > He also noted that the two sites whe

Re: [RFC PATCH 02/20] KEYS: Add a system blacklist keyring [ver #2]

2016-01-20 Thread Mimi Zohar
On Tue, 2016-01-19 at 11:30 +, David Howells wrote: > Add the following: > > (1) A new system keyring that is used to store information about > blacklisted certificates and signatures. > > (2) A new key type (called 'blacklist') that is used to store a > blacklisted hash in its de

Re: [PATCH] numa: fix /proc//numa_maps on s390

2016-01-20 Thread kbuild test robot
Hi Michael, [auto build test ERROR on next-20160120] [cannot apply to v4.4-rc8 v4.4-rc7 v4.4-rc6 v4.4] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Michael-Holzheu/numa-fix-proc-pid

Re: [PATCH] locktorture: Fix NULL pointer when torture_type is invalid

2016-01-20 Thread Paul E. McKenney
On Thu, Jan 14, 2016 at 09:38:04AM +0800, Kefeng Wang wrote: > Hi paul, > > On 2016/1/14 0:27, Paul E. McKenney wrote: > > On Wed, Jan 13, 2016 at 10:06:22AM +0800, Kefeng Wang wrote: > >> Insmod locktorture with torture_type=mutex will lead to crash, > >> > >> Unable to handle kernel NULL pointer

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 05:00:33PM +0100, Daniel Lezcano wrote: > + variance = stats_variance(&w->stats, mean); > + /* > + * We want to check the last interval is: > + * > + * mean - stddev < interval < mean + stddev > + *

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-20 Thread Shaohua Li
On Wed, Jan 20, 2016 at 02:05:35PM -0500, Vivek Goyal wrote: > On Wed, Jan 20, 2016 at 09:49:16AM -0800, Shaohua Li wrote: > > Hi, > > > > Currently we have 2 iocontrollers. blk-throttling is bandwidth based. CFQ is > > weight based. It would be great there is a unified iocontroller for the two. >

Re: [BUG REPORT] ktime_get_ts64 causes Hard Lockup

2016-01-20 Thread Thomas Gleixner
Jeff, On Wed, 20 Jan 2016, Jeff Merkey wrote: > Thomas, so far the only thing I've gotten from you are whining > diatribes about email ettiquette and today is the FIRST time you have > responded to me with any arguments that have technical merit and > actually address the problem.That's what I

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 05:00:32PM +0100, Daniel Lezcano wrote: > +++ b/kernel/irq/handle.c > @@ -165,6 +165,7 @@ irqreturn_t handle_irq_event_percpu(struct irq_desc *desc) > /* Fall through to add to randomness */ > case IRQ_HANDLED: > flag

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Andy Shevchenko
On Wed, Jan 20, 2016 at 9:24 PM, Måns Rullgård wrote: > Andy Shevchenko writes: > >> On Wed, 2016-01-20 at 18:50 +, Måns Rullgård wrote: >>> Andy Shevchenko writes: >>> >>> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver). >>> > > >>> > > Code here: >>> > > https://bitbucket.

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-20 Thread Dmitry Torokhov
On Fri, Jan 15, 2016 at 11:34 PM, Vostrikov Andrey wrote: > > Yes, such implementation will help. There is a need for interface like UART > BUS that will probe devices without user space. > Serial I/O for input subsystem defines new type of bus and uses dedicated > line discipline, but it still

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 05:00:33PM +0100, Daniel Lezcano wrote: > +static inline u32 stats_mean(struct stats *s) > +{ > + /* > + * gcc is smart enough to convert to a bits shift when the > + * divisor is constant and multiple of 2^x. > + * > + * The number of values could ha

[PATCH v15 5/6] fpga: fpga-area and fpga-bus: device tree control for FPGA

2016-01-20 Thread atull
From: Alan Tull FPGA Area and FPGA Bus support programming FPGA under control of the Device Tree. A FPGA Bus contains the devices necessary for programming an FPGA. When a Device Tree Overlay containing a FPGA Area is applied, the FPGA Area will be probed and will: * check to see if there is a

[PATCH v15 4/6] fpga: add fpga bridge framework

2016-01-20 Thread atull
From: Alan Tull This framework adds API functions for enabling/ disabling FPGA bridges under kernel control. This allows the Linux kernel to disable FPGA bridges during FPGA reprogramming and to enable FPGA bridges when FPGA reprogramming is done. This framework is be manufacturer-agnostic, all

[PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus

2016-01-20 Thread atull
From: Alan Tull New bindings document for FPGA Area for reprogramming FPGA's under Device Tree control Signed-off-by: Alan Tull --- v9: initial version added to this patchset v10: s/fpga/FPGA/g replace DT overlay example with slightly more complicated example move to staging/simple-f

[PATCH v15 0/6] altera fpga area and fpga bus

2016-01-20 Thread atull
From: Alan Tull For v15, I'm not using the FPGA Manager as the bus. I'm adding a FPGA Bus; the FPGA Manager and bridges go below it. I've gotten enough feedback that my proposals are Altera specific that I am going with that and changing the bindings to include an 'altr,' prefix. I've combined

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-20 Thread Shaohua Li
On Wed, Jan 20, 2016 at 02:40:13PM -0500, Vivek Goyal wrote: > On Wed, Jan 20, 2016 at 11:34:48AM -0800, Shaohua Li wrote: > > On Wed, Jan 20, 2016 at 02:05:35PM -0500, Vivek Goyal wrote: > > > On Wed, Jan 20, 2016 at 09:49:16AM -0800, Shaohua Li wrote: > > > > Hi, > > > > > > > > Currently we hav

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Måns Rullgård
Andy Shevchenko writes: > On Wed, Jan 20, 2016 at 9:24 PM, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >>> On Wed, 2016-01-20 at 18:50 +, Måns Rullgård wrote: Andy Shevchenko writes: > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver). > > > > C

Re: [PATCH 6/6] MIPS: ath79: irq: Move the CPU IRQ driver to drivers/irqchip

2016-01-20 Thread Alban
On Wed, 20 Jan 2016 12:49:48 + Marc Zyngier wrote: > On Tue, 17 Nov 2015 20:34:56 +0100 > Alban Bedel wrote: > > > Signed-off-by: Alban Bedel > > --- > > arch/mips/ath79/irq.c| 81 > > ++ arch/mips/include/asm/mach-ath79/ath79.h > > | 1 + driver

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-20 Thread Vivek Goyal
On Wed, Jan 20, 2016 at 11:34:48AM -0800, Shaohua Li wrote: > On Wed, Jan 20, 2016 at 02:05:35PM -0500, Vivek Goyal wrote: > > On Wed, Jan 20, 2016 at 09:49:16AM -0800, Shaohua Li wrote: > > > Hi, > > > > > > Currently we have 2 iocontrollers. blk-throttling is bandwidth based. CFQ > > > is > > >

[PATCHv2] SCSI: usd ida for host number management

2016-01-20 Thread Lee Duncan
Update the SCSI hosts module to use ida to manage its host_no index instead of an ATOMIC integer. This means that the SCSI host number will now be reclaimable. Use the ida "simple" mechanism, since there should be no need for a separate spin lock current usage. Ida was chosen over idr because the

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Thomas Gleixner
On Wed, 20 Jan 2016, Daniel Lezcano wrote: > +/* > + * Per cpu and irq statistics. Each cpu receives interrupts and those > + * ones can be distributed following an irq chip specific > + * algorithm. Random irq distribution is the worst case to predict > + * interruption behavior but usually that d

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Andy Shevchenko
On Wed, Jan 20, 2016 at 9:46 PM, Måns Rullgård wrote: One comment still regarding to lli types. We can avoid warnings by using (__force u32) in macros. >>> >>> But that won't give the benefits of having the types checked. >> >> You mean if we access the lli->field directly? I didn't qui

Re: [PATCH 4/6] MIPS: ath79: irq: Move the MISC driver to drivers/irqchip

2016-01-20 Thread Alban
On Wed, 20 Jan 2016 12:38:41 + Marc Zyngier wrote: > On Tue, 17 Nov 2015 20:34:54 +0100 > Alban Bedel wrote: > > Hi Alban, > > > The driver stays the same but the initialization changes a bit. > > For OF boards we now get the memory map from the OF node and use > > a linear mapping instead

Re: [PATCHv4 1/1] SCSI: hosts: update to use ida_simple for host_no management

2016-01-20 Thread Lee Duncan
On 01/05/2016 03:53 PM, Martin K. Petersen wrote: "Lee" == Lee Duncan writes: Lee> Do you need me to resubmit this patch now that it's accepted? Please resend. Thanks! Done, submitted against scsi tree, misc branch. -- Lee Duncan

Re: [PATCH v2 1/4] dt-bindings: power: reset: add document for reboot-mode driver

2016-01-20 Thread Rob Herring
On Wed, Jan 20, 2016 at 12:47 PM, John Stultz wrote: > On Wed, Jan 20, 2016 at 10:28 AM, Rob Herring wrote: >> On Tue, Jan 12, 2016 at 07:29:49PM +0800, Andy Yan wrote: >>> add device tree binding document for reboot-mode driver >>> >>> Signed-off-by: Andy Yan >>> >>> --- >>> >>> Changes in v2:

Re: [PATCH v3] futex: Remove requirement for lock_page in

2016-01-20 Thread Davidlohr Bueso
On Tue, 19 Jan 2016, Bueso wrote: /* * Private mappings are handled in a simple way. * +* If the futex key is stored on an anonymous page, then the associated +* object is the mm which is implicitly pinned by the calling process. +* * NOT

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-20 Thread Vivek Goyal
On Wed, Jan 20, 2016 at 11:43:27AM -0800, Shaohua Li wrote: > On Wed, Jan 20, 2016 at 02:40:13PM -0500, Vivek Goyal wrote: > > On Wed, Jan 20, 2016 at 11:34:48AM -0800, Shaohua Li wrote: > > > On Wed, Jan 20, 2016 at 02:05:35PM -0500, Vivek Goyal wrote: > > > > On Wed, Jan 20, 2016 at 09:49:16AM -0

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Nicolas Pitre
On Wed, 20 Jan 2016, Peter Zijlstra wrote: > On Wed, Jan 20, 2016 at 05:00:33PM +0100, Daniel Lezcano wrote: > > +static inline u32 stats_mean(struct stats *s) > > +{ > > + /* > > +* gcc is smart enough to convert to a bits shift when the > > +* divisor is constant and multiple of 2^x. >

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Thomas Gleixner
On Wed, 20 Jan 2016, Peter Zijlstra wrote: > On Wed, Jan 20, 2016 at 05:00:32PM +0100, Daniel Lezcano wrote: > > +++ b/kernel/irq/handle.c > > @@ -165,6 +165,7 @@ irqreturn_t handle_irq_event_percpu(struct irq_desc > > *desc) > > /* Fall through to add to randomness */ > >

[PATCH v15 6/6] ARM: socfpga: fpga bridge driver support

2016-01-20 Thread atull
From: Alan Tull Supports Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Allows enabling/disabling the bridges through the FPGA Bridge Framework API functions. The fpga2sdram driver only supports enabling and disabling of the ports that been configured early on. Thi

Re: [BUG REPORT] ktime_get_ts64 causes Hard Lockup

2016-01-20 Thread Jeff Merkey
On 1/20/16, Thomas Gleixner wrote: > Jeff, > > On Wed, 20 Jan 2016, Jeff Merkey wrote: >> Thomas, so far the only thing I've gotten from you are whining >> diatribes about email ettiquette and today is the FIRST time you have >> responded to me with any arguments that have technical merit and >> a

[PATCH v15 2/6] add sysfs document for fpga bridge class

2016-01-20 Thread atull
From: Alan Tull Add documentation for new FPGA bridge class's sysfs interface. Signed-off-by: Alan Tull -- v15: Document added in v15 of patch set --- Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/te

Re: [PATCH 07/13] aio: enabled thread based async fsync

2016-01-20 Thread Dave Chinner
On Tue, Jan 19, 2016 at 07:59:35PM -0800, Linus Torvalds wrote: > On Fri, Jan 15, 2016 at 12:21 PM, Benjamin LaHaise wrote: > >> > >> I'll have to think about this some more. > > > > Any further thoughts on this after a few days worth of pondering? > > Sorry about the delay, with the merge window

[PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo

2016-01-20 Thread Bhumika Goyal
Replace &foo[0] with foo,to follow Linux coding style. Signed-off-by: Bhumika Goyal --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/s

Boot problem on PPC with 4.4-git - Bisected to commit 21266be

2016-01-20 Thread Larry Finger
My PowerBook G4 Aluminum with a 32-bit PPC processor fails to boot for the 4.4-git series. The problem was bisected to commit 21266be. It took a while to figure out why a commit that only rearranges the Kconfig files could cause the problem. The answer came when I read the commit message for 9

Re: [PATCH v3] futex: Remove requirement for lock_page in

2016-01-20 Thread Thomas Gleixner
On Wed, 20 Jan 2016, Davidlohr Bueso wrote: > On Tue, 19 Jan 2016, Bueso wrote: > > + > > + /* Should be impossible but lets be paranoid for now */ > > + BUG_ON(inode->i_mapping != mapping); > > Hmm, do we want to transform this into an if and do rcu unlock and then just > call

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Nicolas Pitre
On Wed, 20 Jan 2016, Thomas Gleixner wrote: > On Wed, 20 Jan 2016, Peter Zijlstra wrote: > > > On Wed, Jan 20, 2016 at 05:00:32PM +0100, Daniel Lezcano wrote: > > > +++ b/kernel/irq/handle.c > > > @@ -165,6 +165,7 @@ irqreturn_t handle_irq_event_percpu(struct irq_desc > > > *desc) > > >

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-20 Thread Måns Rullgård
Andy Shevchenko writes: > On Wed, Jan 20, 2016 at 9:46 PM, Måns Rullgård wrote: > > One comment still regarding to lli types. We can avoid warnings by > using (__force u32) in macros. But that won't give the benefits of having the types checked. >>> >>> You mean if we access th

Re: Boot problem on PPC with 4.4-git - Bisected to commit 21266be

2016-01-20 Thread Dan Williams
On Wed, Jan 20, 2016 at 12:01 PM, Larry Finger wrote: > My PowerBook G4 Aluminum with a 32-bit PPC processor fails to boot for the > 4.4-git series. The problem was bisected to commit 21266be. It took a while > to figure out why a commit that only rearranges the Kconfig files could > cause the pro

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-20 Thread Vostrikov Andrey
Hi, Dmitry. > On Fri, Jan 15, 2016 at 11:34 PM, Vostrikov Andrey > wrote: >> >> Yes, such implementation will help. There is a need for interface like UART >> BUS that will probe devices without user space. >> Serial I/O for input subsystem defines new type of bus and uses dedicated >> line dis

Re: [kernel-hardening] 2015 kernel CVEs

2016-01-20 Thread Jann Horn
On Tue, Jan 19, 2016 at 04:47:32PM -0600, Eric W. Biederman wrote: > Dan Carpenter writes: > > > I like to look back over old CVEs to see how we could do better. Here > > is the list from 2015. I got most of this information from the Ubuntu > > CVE tracker. Thanks Ubuntu!. If it doesn't have a

Re: [PATCH v1 1/1] x86/platform/quark: Print boundaries correctly

2016-01-20 Thread kbuild test robot
Hi Andy, [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.4 next-20160120] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/x86-platform-quark-Print

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Nicolas Pitre
On Wed, 20 Jan 2016, Daniel Lezcano wrote: [...] One more comment: > + /* > + * If the mean value is null, just ignore this wakeup > + * source. > + */ > + mean = stats_mean(&w->stats); > + if (!mean) > +

Re: Boot problem on PPC with 4.4-git - Bisected to commit 21266be

2016-01-20 Thread Dan Williams
On Wed, Jan 20, 2016 at 12:08 PM, Dan Williams wrote: > On Wed, Jan 20, 2016 at 12:01 PM, Larry Finger > wrote: >> My PowerBook G4 Aluminum with a 32-bit PPC processor fails to boot for the >> 4.4-git series. The problem was bisected to commit 21266be. It took a while >> to figure out why a commi

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 08:57:06PM +0100, Thomas Gleixner wrote: > > Here too, ktime_get() is daft. > > What's the problem? ktime_xxx() itself or just the clock monotonic variant? > > On 99.% of the platforms ktime_get_mono_fast/raw_fast is not any slower > than sched_clock(). The only case w

Re: [PATCH v3] futex: Remove requirement for lock_page in

2016-01-20 Thread Davidlohr Bueso
On Wed, 20 Jan 2016, Thomas Gleixner wrote: On Wed, 20 Jan 2016, Davidlohr Bueso wrote: On Tue, 19 Jan 2016, Bueso wrote: > + > + /* Should be impossible but lets be paranoid for now */ > + BUG_ON(inode->i_mapping != mapping); Hmm, do we want to transform this into an if and

[PATCH v2 1/1] x86/platform/quark: Print boundaries correctly

2016-01-20 Thread Andy Shevchenko
When we print values, such as @size, we have to understand that it's derived from [begin .. end] as: size = end - begin + 1 On the opposite the @end is derived from the rest as: end = begin + size - 1 Correct the IMR code to print values correctly. Note that @__end_rodata actua

Re: [PATCH] crypto: af_alg - add async support to algif_aead

2016-01-20 Thread Tadeusz Struk
Hi Herbert, On 01/18/2016 04:34 PM, Herbert Xu wrote: >> My understanding is that the sock_kmalloc is mainly used for allocations >> > of the user provided data, because it keeps tracks of how much memory >> > is allocated by a socket, and makes sure that is will not exceed the >> > sysctl_optmem_

Re: [4.4-rt2 PATCH] ARM: highmem: take into account FIX_KMAP_BEGIN in switch_kmaps()

2016-01-20 Thread Sebastian Andrzej Siewior
* Grygorii Strashko | 2016-01-15 16:20:47 [+0200]: >--- a/arch/arm/mm/highmem.c >+++ b/arch/arm/mm/highmem.c >@@ -175,7 +180,7 @@ void switch_kmaps(struct task_struct *prev_p, struct >task_struct *next_p) >* Restore @next_p's kmap_atomic mappings >*/ > for (i = 0; i < next_p

Re: [RFC V2 2/2] sched: idle: IRQ based next prediction for idle period

2016-01-20 Thread Peter Zijlstra
On Wed, Jan 20, 2016 at 02:57:07PM -0500, Nicolas Pitre wrote: > On Wed, 20 Jan 2016, Peter Zijlstra wrote: > > > On Wed, Jan 20, 2016 at 05:00:33PM +0100, Daniel Lezcano wrote: > > > +static inline u32 stats_mean(struct stats *s) > > > +{ > > > + /* > > > + * gcc is smart enough to convert to a

Re: [RFC V2 1/2] irq: Add a framework to measure interrupt timings

2016-01-20 Thread Thomas Gleixner
On Wed, 20 Jan 2016, Peter Zijlstra wrote: > On Wed, Jan 20, 2016 at 08:57:06PM +0100, Thomas Gleixner wrote: > > > Here too, ktime_get() is daft. > > > > What's the problem? ktime_xxx() itself or just the clock monotonic variant? > > > > On 99.% of the platforms ktime_get_mono_fast/raw_fast

  1   2   3   4   5   6   7   8   >